:root {
    --primary: #ff6e00;
    --primary-dark: #cc5800;
    --secondary: #0a0e27;
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --text-main: #1a1a24;
    --text-muted: #5e5e6e;
    --surface-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 8px 30px rgba(255, 110, 0, 0.4);

    /* --- Theme Variables --- */
    --bg-color: #fafafa;
    --text-color: #2b2b3a;
    --card-bg: #ffffff;
    --border-color: #ebebeb;
    --input-bg: #ffffff;
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

.section-heading {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* --- Top Contact Bar --- */
.top-contact-bar {
    background-color: var(--secondary);
    /* Even darker navy for contrast */
    color: #b0b0cc;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-contact-bar .contact-left,
.top-contact-bar .contact-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.top-bar-link:hover {
    color: white;
    text-decoration: underline;
}

.top-contact-bar .icon-small {
    color: var(--primary);
    margin-right: 0.3rem;
}

.social-links-small a {
    color: #b0b0cc;
    text-decoration: none;
    margin-left: 0.8rem;
    transition: color 0.3s;
}

.social-links-small a:hover {
    color: var(--primary);
}

/* --- Main Header --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--secondary);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    height: 80px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled {
    background-color: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-left {
    flex: 1 1 200px;
    /* Allow flexible growth with a baseline */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-text {
    color: white;
}

.logo-text .highlight {
    color: var(--primary);
}

.goal-select .small {
    font-size: 0.65rem;
    color: var(--primary);
}

.goal-select .bold {
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- Goal Dropdown Menu --- */

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header .dropdown-search input::placeholder {
    color: #888;
}

.category-title .category-title h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Header Navigation Links --- */
.header-center-links {
    display: flex;
    gap: clamp(0.7rem, 1vw, 1.3rem);
    align-items: center;
    flex: 0 1 auto;
    /* Don't force growth, but allow shrink */
    justify-content: center;
}

.header-center-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.header-center-links a:hover {
    color: #ffaa33;
}

/* --- Mega Dropdown --- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 720px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--surface-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 1.8rem 2rem;
    z-index: 2000;
    animation: megaSlideIn 0.25s ease-out;
}

.nav-dropdown:hover .mega-dropdown {
    display: grid;
}

/* Invisible bridge so mouse can travel from trigger to dropdown */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 16px;
}

@keyframes megaSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1rem;
    border-right: 1px solid #f0f0f0;
}

.mega-col:last-child {
    border-right: none;
}

.mega-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.mega-col a {
    color: #444 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 0.35rem 0;
    transition: color 0.2s, padding-left 0.2s;
    text-decoration: none;
    display: block;
    border-radius: 4px;
}

.mega-col a:hover {
    color: var(--primary) !important;
    padding-left: 6px;
    background: rgba(255, 110, 0, 0.05);
}

/* --- Mini Dropdown (for "More" nav item) --- */
.mini-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    background: var(--surface-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 0.8rem 0;
    z-index: 2000;
    animation: miniSlideIn 0.2s ease-out;
    transform: translateY(8px);
}

@keyframes miniSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(8px);
    }
}

.nav-dropdown:hover .mini-dropdown {
    display: flex;
}

.mini-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 16px;
}

.mini-dropdown a {
    color: #333 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 1.2rem !important;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.mini-dropdown a:hover {
    background: rgba(255, 110, 0, 0.06);
    color: var(--primary) !important;
}

/* 3-column variant for Exams dropdown */
.mega-dropdown.mega-dropdown-3col {
    grid-template-columns: repeat(3, 1fr);
    min-width: 560px;
}

.header-center-links .caret {
    font-size: 0.8rem;
    position: relative;
    top: -1px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger .caret {
    transform: rotate(180deg);
}

/* --- Header Right Icons --- */
.header-right-icons {
    display: flex;
    flex-direction: row-reverse;
    /* Swap Profile to left and Hamburger to right */
    gap: clamp(0.6rem, 1vw, 1.1rem);
    align-items: center;
    flex: 1 1 200px;
    justify-content: flex-start;
    /* Aligns items to the right edge since flow is now reversed */
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}

.nav-icon-btn:hover {
    transform: scale(1.1);
    color: #ffaa33;
}

/* --- Profile Dropdown --- */
/* --- Premium User Dashboard (Profile Flow) --- */
.profile-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    width: 380px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    transform-origin: top right;
    animation: dashboardPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dashboardPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dropdown.show {
    display: flex;
}

/* User Identity Section */
.dropdown-user-banner {
    background: linear-gradient(135deg, #0a1128, #1c2541);
    padding: 2.5rem 1.5rem 1.5rem;
    position: relative;
    color: white;
}

.dropdown-avatar-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.dropdown-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.online-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #28a745;
    border: 3px solid #0a1128;
    border-radius: 50%;
}

.dropdown-greeting p {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.user-meta-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Passport Content Body */
.dropdown-body {
    padding: 1.5rem;
    background: white;
}

.passport-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #99aab5;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    display: block;
}

/* Goal Selector Styling */
.dropdown-goal-pill {
    background: #f8f9fa;
    border: 1.5px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.dropdown-goal-pill:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.08);
}

.goal-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.goal-info .emoji {
    font-size: 1.4rem;
}

.goal-info .text {
    font-weight: 700;
    color: #111;
}

/* Quick Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.action-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.action-item:hover {
    background: #fdfdfd;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

.action-item i {
    font-size: 1.2rem;
    color: #555;
}

.action-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
}

/* Logout/Auth Button */
.dropdown-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #f5f5f5;
}

.dropdown-login-btn,
.dropdown-logout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-login-btn {
    background: linear-gradient(90deg, #ff5500, #ff8800);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 85, 0, 0.2);
}

.dropdown-logout-btn {
    background: #f8f9fa;
    color: #db2d2d;
    border: 1px solid #eee;
}

.dropdown-logout-btn:hover {
    background: #fff5f5;
    border-color: #ffc9c9;
    color: #ff4444;
}

/* --- New Recommendations Enhancements --- */

/* Profile Strength Tracker */
.profile-strength-container {
    margin-top: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strength-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.strength-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8800, #fffa00);
    width: 30%;
    /* Initial fallback */
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verified-badge {
    background: #28a745;
    color: white;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    transform: translateY(-2px);
}

/* Recent Colleges Mini List */
.recent-views-wrap {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.recent-views-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recent-views-scroll::-webkit-scrollbar {
    display: none;
}

.recent-mini-card {
    min-width: 145px;
    max-width: 145px;
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 18px;
    padding: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.recent-mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.recent-mini-card img {
    width: 100%;
    height: 65px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
}

.recent-mini-card p {
    font-size: 0.78rem;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Symmetrical Modal Footer */
.modal-footer-symmetrical {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 12px;
    background: #fafafa;
}

.modal-footer-symmetrical button {
    margin: 0 !important;
    white-space: nowrap;
}

/* State Handlers */
[data-auth-state="logged-out"] .logged-in-only {
    display: none !important;
}

[data-auth-state="logged-in"] .logged-out-only {
    display: none !important;
}


.dropdown-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 110, 0, 0.4);
}

.dropdown-banner {
    background: #fffdf5;
    border: 1px dashed #ffb84d;
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-banner strong {
    font-size: 1rem;
    line-height: 1.4;
    color: #111;
}

.banner-stars {
    display: flex;
    gap: 3px;
    margin-top: 8px;
}

.dropdown-banner img {
    width: 60px;
    height: auto;
    object-fit: cover;
}

.dropdown-social-links {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.dropdown-social-links a {
    color: #555;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.dropdown-social-links a:hover {
    transform: scale(1.1);
}

.hero {
    position: relative;
    min-height: 700px;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #121212;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(255, 110, 0, 0.5) 100%);
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

/* Ensure foreground content stays above sliding background */
.sub-nav,
.hero-content,
.image-indicator {
    position: relative;
    z-index: 3;
}

.nav-links a,

.nav-links a:hover,

.nav-links a::after,
.right-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: white;
    text-align: center;
    padding: 100px 5rem 80px;
    /* Top padding for header, bottom for visibility */
}

.hero-content.align-left {
    align-items: flex-start;
    text-align: left;
    max-width: 950px;
    padding-left: 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: white;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.highlight-orange {
    color: var(--primary);
    font-weight: 600;
}

.hero-action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.primary-btn-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    border-radius: 50px;
}

.primary-btn-hero:hover {
    background: #e66d00;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -4px rgba(255, 110, 0, 0.6);
}

.ghost-btn-hero {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid var(--primary);
    padding: 0.8rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.ghost-btn-hero:hover {
    background-color: rgba(255, 121, 0, 0.15);
    transform: translateY(-2px);
}

.hero-play-button {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-play-button:hover {
    background: rgba(255, 121, 0, 0.6);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.hero-play-button .play-icon {
    color: white;
    font-size: 2.2rem;
    margin-left: 6px;
    /* Offset to center optically */
}

.hero-search-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center search bar in wrapper */
    margin-top: 1rem;
}

.hero-search {
    width: 100%;
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 50px;
    height: 65px;
    overflow: hidden;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 5px;
}

.hero-search .search-icon {
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    color: #555;
    font-size: 1.2rem;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    background: transparent;
    color: #222;
    padding-left: 0.5rem;
}

.hero-search input::placeholder {
    color: #888;
}

/* --- Hero Ticker --- */
.hero-ticker-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    width: fit-content;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.ticker-label {
    color: #ff8c00;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
}

.ticker-wrap {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.ticker-move {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0;
    animation: tickerMove 25s linear infinite;
    will-change: transform;
}

.ticker-move:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.ticker-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

@media (max-width: 768px) {
    .ticker-wrap {
        width: 160px;
    }

    .hero-ticker-container {
        padding: 6px 12px;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 30px;
        gap: 10px;
        max-width: 100%;
    }

    .ticker-label {
        font-size: 0.65rem;
        padding-right: 10px;
    }

    .ticker-item {
        font-size: 0.75rem;
        padding: 0 15px;
        gap: 6px;
    }

    .ticker-item img {
        width: 20px;
        height: 20px;
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhancing Goal Cards */
.goal-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.goal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0 3.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.search-btn:hover {
    background: #e66d00;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -4px rgba(255, 110, 0, 0.6);
}

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.about-experience-badge .years {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.about-experience-badge .text {
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 35px;
}

.about-stat-item p:first-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.about-stat-item p:last-child {
    color: #666;
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Responsiveness for these sections */
@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .about-stats {
        gap: 20px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .about-experience-badge {
        position: static;
        margin-top: 15px;
        width: fit-content;
    }
}

.image-indicator {
    position: absolute;
    bottom: 20px;
    right: 30px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.image-indicator .badge {
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* --- General Layout --- */
.container {
    max-width: 1200px;
    margin: clamp(3rem, 6vh, 5.5rem) auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.section-heading {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

/* --- Cards --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.cards-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
    width: 100%;
}

.cards-wrapper::-webkit-scrollbar {
    display: none;
}

.goal-card {
    min-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    background: var(--surface-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.goal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 110, 0, 0.3);
}

.card-top {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.goal-card:hover .card-top {
    background-color: #fffaf5;
}

.icon-ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
}

.card-title h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.card-title p {
    font-size: 0.85rem;
    color: #666;
}

.card-description {
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.card-links {
    list-style: none;
    padding: 0 1.5rem;
}

.card-links li {
    padding: 1rem 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: flex;
    align-items: center;
}

.card-links li::before {
    content: "›";
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.card-links li:hover {
    color: var(--primary);
    padding-left: 5px;
}

.card-links li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.card-links li:last-child {
    border-bottom: none;
}

/* --- Programs Section --- */
/* --- Programs Section: Premium Grid --- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.program-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #ebebeb;
    display: flex !important;
    /* Overwrite pill display */
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.program-card.pill {
    padding: 25px;
    /* Ensure uniform padding */
    border-radius: 20px;
    width: auto;
    height: auto;
}

.program-card:hover {
    transform: translateY(-8px);
    border-color: #ffaa33;
    box-shadow: 0 15px 35px rgba(255, 110, 0, 0.12);
}

.program-card .program-icon {
    font-size: 2.2rem;
    background: #fff8f0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.program-card:hover .program-icon {
    background: #ff7900;
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.program-info h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: #111;
    font-weight: 700;
}

.program-info p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

.program-desc {
    font-size: 0.75rem !important;
    line-height: 1.4;
    color: #888;
    margin-top: 5px !important;
    display: block;
}

.program-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
    padding: 3px 6px;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
}

.program-tag.trending {
    background: #fff0f0;
    color: #ff4757;
    border: 1px solid #ffccd2;
}

.program-tag.high-salary {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bcf0da;
}

.program-card::after {
    content: '→';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.1rem;
    color: #ffaa33;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.program-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Maintain active state from existing JS */
.program-card.pill.active {
    border-color: var(--primary);
    background: #fff9f5;
    box-shadow: 0 10px 25px rgba(255, 110, 0, 0.1);
    transform: translateY(-5px);
}

.program-card.pill.active .program-icon {
    background: var(--primary);
    color: white;
}

.program-card.pill.active h3 {
    color: var(--primary);
}

.program-card.pill.active p {
    color: #ff7900;
}

/* --- Next Button (Floating Arrow) --- */
.next-btn {
    position: absolute;
    right: -20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next-btn.small {
    width: 40px;
    height: 40px;
    right: -10px;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1.2rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-body p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.6rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #c4c4c4;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input::placeholder {
    color: #777;
}

.input-group input:focus {
    border-color: var(--primary);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.primary-btn.full-width {
    width: 100%;
}

.primary-btn:hover {
    background-color: #e66d00;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    font-size: 0.95rem;
    color: #666;
}

.social-login {
    display: flex;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid #c4c4c4;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: #f9f9f9;
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Specific Login Modal Adjustments */
.login-subtitle {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.login-input-group {
    margin-bottom: 2rem;
}

/* --- Hero Dots Pagination --- */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 4;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dots .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-dots .dot.active {
    background: #ffaa33;
    transform: scale(1.3);
}

/* --- News & Updates Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--surface-white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 110, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    position: relative;
    background-size: cover;
    background-position: center;
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #111;
    line-height: 1.4;
}

.news-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.read-more-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    margin-top: auto;
}

.read-more-link::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.2s;
}

.read-more-link:hover {
    color: #e66d00;
}

.read-more-link:hover::after {
    transform: translateX(3px);
}

/* --- Comprehensive Footer --- */
.main-footer {
    background-color: #0b0b2a;
    color: #d0d0e0;
    padding-top: 4rem;
    font-size: 0.95rem;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-col:first-child {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .footer-col:first-child {
        grid-column: span 1;
    }
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo .highlight {
    color: var(--primary);
}

.footer-about {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #b0b0cc;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b0b0cc;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #b0b0cc;
}

.footer-contact-item .icon {
    color: var(--primary);
}

.footer-subscribe p {
    margin-bottom: 1rem;
    color: #b0b0cc;
}

.subscribe-form {
    display: flex;
    margin-bottom: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    background: white;
    color: #111;
}

.subscribe-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #e66d00;
}

.footer-bottom {
    background-color: var(--secondary);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #b0b0cc;
}

/* --- Responsive Layout Adjustments --- */
.hamburger-menu,
.mobile-menu-header,
.drawer-header {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 1024px) {
    .main-header {
        padding: 0 1.2rem;
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    /* ── Mobile Drawer Optimization ── */
    .header-center-links {
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100dvh;
        background: rgba(10, 14, 39, 0.96);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        padding: 0;
        /* Remove top padding to fit header */
        z-index: 2005;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -15px 0 45px rgba(0, 0, 0, 0.4);
    }

    /* Dedicated Drawer Header (Injected via JS or manually) */
    .drawer-header {
        padding: 30px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .drawer-logo {
        font-size: 1.5rem;
        font-weight: 800;
        color: white;
    }

    .drawer-logo span {
        color: var(--primary);
    }

    .drawer-subtitle {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* Overlay removed for cleaner look */
    body.menu-open::after {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        z-index: 2006;
    }

    /* ── Active State ── */
    .header-center-links.active {
        transform: translateX(0);
    }

    /* ── Nav Links Optimization ── */
    .header-center-links>a,
    .nav-dropdown>.nav-dropdown-trigger {
        width: 100%;
        padding: 1.1rem 1.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        font-size: 1.05rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9) !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        position: relative;
    }

    .header-center-links>a:active,
    .nav-dropdown.active>.nav-dropdown-trigger {
        background: rgba(255, 255, 255, 0.05);
        color: var(--primary) !important;
    }

    .header-center-links>a:hover,
    .nav-dropdown>.nav-dropdown-trigger:hover {
        color: #fff !important;
        background: rgba(255, 110, 0, 0.06);
        padding-left: 1.75rem;
    }

    .header-center-links>a:hover::before,
    .nav-dropdown>.nav-dropdown-trigger:hover::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        height: 70%;
        width: 3px;
        background: var(--primary);
        border-radius: 0 3px 3px 0;
    }

    .counselling-btn {
        margin: 1.5rem 1.5rem 0.5rem 1.5rem !important;
        width: calc(100% - 3rem) !important;
        text-align: center;
        justify-content: center;
        font-size: 1rem !important;
        padding: 0.85rem !important;
        background: var(--primary) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 6px 20px rgba(255, 110, 0, 0.3) !important;
    }

    .counselling-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 110, 0, 0.4) !important;
    }

    /* caret icon */
    .nav-dropdown-trigger .caret {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
        color: rgba(255, 255, 255, 0.4);
    }

    /* ── Mobile Dropdown Styling ── */
    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .mega-dropdown,
    .mini-dropdown {
        position: static;
        display: none !important;
        opacity: 1;
        visibility: visible;
        width: 100%;
        min-width: 0 !important;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        padding: 0;
        margin-top: 0;
        border-radius: 0;
        transform: none !important;
    }

    .mega-dropdown.show,
    .mini-dropdown.show {
        display: flex !important;
        flex-direction: column;
        animation: slideDownMobile 0.25s ease;
    }

    @keyframes slideDownMobile {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-dropdown:hover .mega-dropdown:not(.show),
    .nav-dropdown:hover .mini-dropdown:not(.show) {
        display: none !important;
    }

    .nav-dropdown:hover .mega-dropdown.show,
    .nav-dropdown:hover .mini-dropdown.show {
        display: flex !important;
        flex-direction: column;
    }

    .mega-dropdown::before,
    .mini-dropdown::before {
        display: none;
    }

    /* ── Mega-column Layout ── */
    .mega-col {
        border-right: none !important;
        padding: 0.6rem 1rem 0.5rem 1.8rem;
        border-left: 2px solid rgba(255, 110, 0, 0.15);
        margin: 0.3rem 0 0.3rem 1rem;
    }

    .mega-col:last-child {
        margin-bottom: 0.8rem;
    }

    .mini-dropdown {
        padding: 0.5rem 1rem 0.8rem 1.8rem !important;
    }

    .mega-col h4 {
        margin-bottom: 0.6rem;
        font-size: 0.75rem;
        color: var(--primary) !important;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-weight: 700;
    }

    .mega-col a,
    .mini-dropdown a {
        padding: 0.45rem 0 0.45rem 0.5rem !important;
        font-size: 0.9rem !important;
        border-bottom: none !important;
        color: rgba(200, 200, 220, 0.8) !important;
        width: 100%;
        display: block;
        transition: color 0.2s, padding-left 0.2s, border-color 0.2s;
        opacity: 1;
        border-left: 2px solid transparent;
    }

    .mega-col a:hover,
    .mini-dropdown a:hover {
        color: #fff !important;
        background: transparent !important;
        padding-left: 1rem !important;
        border-left-color: var(--primary);
    }

    .hero-content {
        padding: 2rem 2rem 5rem;
    }

    /* .hero-content h1 font-size controlled by clamp globally */

    .footer-top {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .top-contact-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 15px;
        gap: 20px;
        justify-content: center;
        /* Center-aligned single line */
        scrollbar-width: none;
    }

    .top-contact-bar::-webkit-scrollbar {
        display: none;
    }

    .top-contact-bar .contact-left {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 20px;
        width: auto;
    }

    .top-contact-bar .contact-right,
    .top-contact-bar .contact-left span:nth-child(n+3),
    .top-contact-bar .hide-on-mobile {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding-top: 70px;
    }

    .main-header {
        padding: 0 1rem;
    }

    .main-header.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: #0d1333 !important;
    }

    .section-heading {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
        align-items: flex-start;
        text-align: left;
    }

    .hero-content.align-left {
        align-items: flex-start;
        text-align: left;
        padding: 2rem 1rem 5rem;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.25;
    }

    .hero-subtext {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .hero-search-wrapper {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-search {
        flex-direction: row;
        padding: 0.4rem 0.5rem;
        border-radius: 50px;
        gap: 0.3rem;
    }

    .hero-search input {
        font-size: 0.85rem;
        min-width: 0;
    }

    .hero-search input::placeholder {
        font-size: 0.8rem;
    }

    .search-btn {
        padding: 0 1.5rem;
        font-size: 0.85rem;
    }

    .hero-search-bar {
        flex-direction: column;
        padding: 0.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .hero-search-bar input {
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-search-bar button {
        width: 100%;
        padding: 1rem;
        border-radius: 8px !important;
        margin-top: 0.5rem;
    }

    .hero-action-buttons {
        flex-direction: row;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-action-buttons button,
    .hero-action-buttons a {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.7rem 0.5rem;
    }

    .hero-play-button {
        display: none;
    }

    .carousel-container {
        padding-bottom: 1.5rem;
    }

    .next-btn {
        display: none;
    }

    /* About section responsive */
    #about .section-heading,
    .about-grid {
        text-align: center;
    }

    /* Contact form responsive */
    #contact {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }

    #contact>div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    #contact form {
        grid-template-columns: 1fr !important;
    }

    #contact form .input-group[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    #contact form button[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Top Colleges grid */
    .top-colleges-grid {
        grid-template-columns: 1fr !important;
    }

    /* News Skeleton */
    .news-skeleton-grid,
    .college-skeleton-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 2rem 1.2rem;
    }

    .footer-col:first-child {
        grid-column: span 1;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-content {
        width: 94%;
        margin: 10px auto;
        padding: 1.5rem 1.2rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Floating buttons - smaller on mobile */
    .whatsapp-float {
        width: 44px;
        height: 44px;
        bottom: 12px;
        right: 12px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .scroll-to-top-btn {
        bottom: 65px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .apply-now-float {
        bottom: 12px;
        left: 12px;
        padding: 8px 16px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .apply-now-float svg {
        width: 16px;
        height: 16px;
    }

    /* Goal cards */
    .goal-card {
        min-width: 240px;
    }

    /* Program pills */
    .program-grid {
        gap: 0.8rem;
    }

    .program-card {
        padding: 1rem;
    }

    /* Search dropdown */
    .search-results-dropdown {
        left: 0;
        right: 0;
    }

    /* Toast */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem !important;
    }

    .section-heading-dark,
    .section-heading {
        font-size: 1.3rem;
    }

    .hero-ticker-container {
        padding: 5px 10px;
        gap: 8px;
    }

    .ticker-wrap {
        width: 130px;
    }

    .ticker-label {
        font-size: 0.6rem;
    }

    .ticker-item {
        font-size: 0.7rem;
        padding: 0 12px;
    }

    .ticker-item img {
        width: 16px;
        height: 16px;
    }

    .hero-action-buttons button,
    .hero-action-buttons a {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }

    .container {
        padding: 2rem 0.8rem;
    }

    .goal-card {
        min-width: 220px;
    }
}

/* --- Scroll Animation Recommendations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Dynamic Top Colleges Recommendations --- */
.top-colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.college-live-card {
    background: var(--surface-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.college-live-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 110, 0, 0.3);
}

.college-live-img {
    height: 180px;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.college-live-content {
    padding: 1.2rem;
}

.college-live-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #111;
    line-height: 1.3;
}

.college-live-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.college-live-rating {
    background: #fff8f0;
    color: #ffaa33;
    border: 1px solid #ffaa33;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* --- Added Buttons --- */
.outline-btn-orange {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.outline-btn-orange:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 121, 0, 0.2);
}

.outline-btn-orange.full-width {
    width: 100%;
}


/* --- Floating Apply Now Button --- */
.apply-now-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 14px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: applyPulse 2.5s ease-in-out infinite;
    text-decoration: none;
}

.apply-now-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px -4px rgba(255, 110, 0, 0.6);
    animation: none;
}

.apply-now-float svg {
    flex-shrink: 0;
}

@keyframes applyPulse {

    0%,
    100% {
        box-shadow: var(--shadow-glow);
    }

    50% {
        box-shadow: 0 8px 35px 2px rgba(255, 110, 0, 0.7);
    }
}

/* --- Scroll to Top Button --- */
.scroll-to-top-btn {
    position: fixed;
    bottom: 95px;
    /* Moved up to make room for WhatsApp */
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--surface-white);
    color: var(--secondary);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Section Spacing for Visibility */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-heading {
    margin-bottom: 4rem;
}

/* --- Recommendation 1: Skeleton Loaders --- */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: var(--radius-md);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.news-skeleton-grid,
.college-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.skeleton-hero {
    height: 400px;
    width: 100%;
    border-radius: 0;
}

.skeleton-text-block {
    height: 20px;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-card {
    height: 350px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-img {
    height: 180px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    width: 80%;
}

.skeleton-text {
    height: 16px;
    width: 100%;
}

.skeleton-btn {
    height: 40px;
    width: 100%;
    margin-top: auto;
}

/* --- Recommendation 2: Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 2px 8px 18px rgba(0, 0, 0, 0.3);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    /* Show tooltip to the left of the button */
    background: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- Recommendation 3: Toast System --- */
.toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2100;
}

.toast {
    background: white;
    color: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast svg {
    color: var(--primary);
}

/* --- Recommendation 4: Search Autocomplete --- */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 10px;
    right: 170px;
    /* Adjusting for search button */
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item:hover {
    background: #fff8f4;
}

.search-result-item .type {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: bold;
}

/* --- Recommendation 5: Multi-Step Lead Form --- */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.progress-bar-wrap {
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 33%;
    transition: width 0.4s ease;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.modal-content.lead-modal {
    max-width: 500px;
    padding: 2rem;
}