/**
 * Career Guide Foundation - Custom Styles
 * Matches the original HTML design
 */

:root {
    --primary-blue: #0b56a4;
    --primary-dark: #08407a;
    --secondary-orange: #ff5722;
    --text-dark: #333;
    --bg-light: #f4f6f8;
    --white: #ffffff;
    --color-primary: #fd7e14;
    --color-secondary: #ffc107;
    --color-text: #343a40;
    --color-bg-light: #f7f9fc;
    --color-border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================
   Top News Ticker
   ====================== */
.ticker-wrap {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    font-size: 13px;
    overflow: hidden;
    height: 35px;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ======================
   Hero Section
   ====================== */
.hero-wrapper {
    background: linear-gradient(135deg, #f7f9fc 0%, #e8f0f8 100%);
    padding: 60px 0;
    overflow: hidden;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-left {
    padding-right: 30px;
}

.hero-tag {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-blue);
    display: block;
}

.hero-title .hero-line-1,
.hero-title .hero-line-2,
.hero-title .hero-line-3 {
    display: block;
}

.hero-image-mobile {
    display: none;
    margin: 20px 0;
}

.hero-image-mobile img {
    width: 100%;
    border-radius: 15px;
}

.hero-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-content strong {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.stat-content span {
    font-size: 13px;
    color: #666;
}

/* Hero Form Card */
.hero-right {
    position: relative;
}

.hero-form-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}



.form-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.lead-form .form-group {
    margin-bottom: 15px;
}

.lead-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.lead-form .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 86, 164, 0.1);
}

.lead-form select.form-control {
    background-color: white;
    cursor: pointer;
}

.form-message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: #e66d0f;
    border-color: #e66d0f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 126, 20, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 16px;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 6px;
}

.form-note svg {
    flex-shrink: 0;
    color: var(--primary-blue);
}

.form-consent {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    font-size: 11px;
    color: #666;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}




/* ======================
   Benefits Section
   ====================== */
.benefits-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 15px;
    color: #666;
}

/* ======================
   Team Section
   ====================== */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-blue);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.team-role {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 5px;
}

.team-exp {
    font-size: 12px;
    color: #666;
}

/* ======================
   Footer
   ====================== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 50px 0 20px;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p,
.footer-section ul {
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}



/* ======================
   Utility Classes
   ====================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* ===================================
   HEADER NAVIGATION
   =================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1100; /* above content */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.1;
}

.tagline {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    border-left: 1px solid #ccc;
    padding-left: 15px;
}

/* Desktop search */
.search-section {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    max-width: 500px;
}

.search-container {
    display: flex;
    width: 100%;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    overflow: hidden;
}

.search-container form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
}

.search-button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Desktop Navigation */
.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile elements (hidden by default on desktop) */
.hamburger {
    display: none;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 1201;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    visibility: hidden;
}

/* Drawer search */
.drawer-search {
    padding: 16px 18px 10px;
    border-bottom: 1px solid #eee;
    background: #f7f9fc;
}

.drawer-search-container {
    display: flex;
    align-items: center;
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
    background: #fff;
    overflow: hidden;
}

.drawer-search-input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
}

.drawer-search-button {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 16px;
}
.drawer-search-button i {
    pointer-events: none;
}

/* Desktop / default */
.search-desktop { display: flex; }

/* MOBILE: up to 900px */
@media (max-width: 900px) {

    .site-header {
        padding: 8px 12px;          /* shorter header */
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo-section {
        flex: 0 1 auto;
        gap: 8px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .tagline {
        display: none;
    }

    /* hide desktop nav & search */
    .main-nav {
        display: none;
    }

    .search-desktop {
        display: none;
    }

    /* Hamburger button */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: var(--primary-blue);
        border: none;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        margin-left: auto;
    }

    .hamburger .line {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile drawer behaviour */
    .mobile-drawer {
        visibility: visible;
        padding-top: 0;
    }

    .mobile-drawer.active {
        right: 0;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: var(--primary-blue);
        color: white;
        font-size: 20px;
        font-weight: 700;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .drawer-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
    }

    .drawer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .drawer-links li {
        border-bottom: 1px solid #eee;
    }

    .drawer-links a {
        display: block;
        padding: 18px 25px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s;
    }

    .drawer-links a:hover {
        background: rgba(11, 86, 164, 0.05);
        color: var(--primary-blue);
        padding-left: 35px;
    }

    body.drawer-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 18px;
    }
}

/* MOBILE HEADER: logo + hamburger only */
@media (max-width: 900px) {

    /* Header becomes compact row */
    .site-header {
        padding: 8px 12px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo-section {
        flex: 0 1 auto;
        gap: 8px;
    }

    .brand-logo {
        font-size: 20px;
    }

    .tagline {
        display: none;
    }

    /* Hide desktop nav and desktop search completely */
    .main-nav,
    .nav-links {
        display: none !important;
    }

    .search-desktop,
    .search-section {
        display: none !important;
    }

    /* Hamburger visible and aligned right */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        background: var(--primary-blue);
        border: none;
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
        margin-left: auto;
        z-index: 1300;
    }
}

/* ======================
   Homepage Courses Tabs + Grid
   ====================== */

/* Center section and tabs */
.home-courses-section {
    padding: 60px 5%;
    background: #f7f9fc;
    text-align: center; /* to center inline-flex tabs */
}
.home-courses-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Top pill tabs */
.course-tabs {
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin: 0 auto 24px;
}

.course-tab {
    border: none;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.course-tab:hover {
    background: #eef3ff;
    color: #0b56a4;
}

.course-tab.active {
    background: #0b56a4;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(11, 86, 164, 0.3);
}

/* Panels */
.course-tab-panels { margin-top: 10px; }
.course-panel { display: none; }
.course-panel.active { display: block; }

/* Grid = 4 cards per row on desktop */
.home-courses-section .course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.home-courses-section .course-grid .course-card {
    flex: 0 0 25%;
    max-width: 25%;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
    box-sizing: border-box;
}

/* Brutally hide any old black strip inside new cards */
.home-courses-section .course-card div[style*="background:#000"],
.home-courses-section .course-card div[style*="background: #000"],
.home-courses-section .course-card div[style*="background-color:#000"],
.home-courses-section .course-card div[style*="background-color: #000"],
.home-courses-section .course-card .black-footer,
.home-courses-section .course-card .bottom-strip,
.home-courses-section .course-card .card-footer,
.home-courses-section .course-card .bg-black {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card header */
.course-card-head { margin-bottom: 8px; }
.course-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.course-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Pills */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.pill-soft-blue { background: #eef3ff; color: #0b56a4; }
.pill-green     { background: #e6f6ec; color: #15803d; }
.pill-small     { margin-top: 4px; }
.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2563eb;
}

/* Placement icon */
.placement-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Price */
.course-price { text-align: right; }
.price-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}
.price-value {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fffbeb;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
}

/* Title */
.course-name {
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0 0;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta + eligibility */
.course-card-body { margin-top: 10px; }
.course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
}
.meta-chip i { font-size: 11px; }
.course-eligibility {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    max-height: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.course-card-foot {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}
.enquire-btn {
    border: none;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}
.enquire-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
}



