:root {
    --primary-color: #9d00ff; /* Vibrant Purple from C logo */
    --secondary-color: #0084ff; /* Cyan-blue from C logo */
    --dark-navy: #130f26; /* Deep indigo for strong contrast */
    --text-color: #333;
    --bg-color: #ffffff;
    --accent-color: #9d00ff;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative;
}

/* Clean background */

.container {
    max-width: 1600px; /* Very wide cutoff for ultra-large screens */
    width: 92%;
    margin: 0 auto;
    padding: 0;
}

header .container {
    max-width: 100%;
    padding: 0 4%;
}

/* Navigation */
header { 
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.92); /* Slightly transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Subtle shadow when scrolling */
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0; 
    z-index: 2;
    flex-shrink: 0;
}

.logo-icon-wrapper {
    height: 50px;
    width: 50px;
    border-radius: 12px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon-wrapper img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    margin: 0;
    margin-left: -2px; /* Slight negative margin just to tighten, no overlapping */
    font-size: 2.4rem; /* Match height better */
    font-weight: 900;
    color: var(--dark-navy);
    letter-spacing: -1.5px; /* Tighter spacing for a logo feel */
    line-height: 1;
    text-transform: uppercase;
}

/* Stylized 'A' in logo */
.stylized-a {
    position: relative;
    display: inline-block;
    margin-left: -2px; /* Pull it slightly closer to Z */
}

.stylized-a .purple-dot {
    position: absolute;
    bottom: 30%; /* Sit perfectly on the crossbar of the A */
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #6d28d9; /* Vibrant purple dot */
    border-radius: 50%;
    z-index: 2;
}

.slogan-gradient {
    margin: 2px 0 0 2px; /* Tightened margin */
    font-size: 0.8rem; /* Slightly smaller to fit nicely under OGNIZA */
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
    min-width: max-content;
}

.pill-nav {
    display: inline-flex;
    background: #f4f5f9;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 6px 12px;
    border-radius: 50px;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #4a4e69;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px; 
    border-radius: 30px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #1a1a2e;
    background-color: #e2e4f0;
}

.nav-links li a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(157, 0, 255, 0.2);
}

.nav-actions {
    z-index: 2;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative; /* Anchor for the watermark */
    z-index: 1; /* Creates a stacking context so the watermark doesn't hide behind the body background */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 0; /* Extremely tight padding */
    gap: 30px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative; /* For watermark */
}

/* Global Watermark */
.hero-section::before {
    content: 'COGNIZA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw; /* Standardized to viewport width so it never incorrectly scales down */
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05); /* Slightly subtle */
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
    letter-spacing: -5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #000000;
    line-height: 1.1;
    margin: 0 0 20px 0; /* Forced margin-top to 0 to kill default H1 gap */
    letter-spacing: -1px;
}

.dynamic-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 5px 0;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    color: transparent; /* hide the actual text pipe if used */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.title-underline {
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-bottom: 25px;
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 30px; /* Reduced gap before the button */
    max-width: 550px;
}

.btn-view-projects {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-projects:hover {
    border-color: #000000;
    background-color: #f8f9fa;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 90%; /* Prevent it from taking the full column width */
    max-height: 400px; /* Constrain height so it doesn't get too tall */
    width: auto;
    object-fit: cover; /* Ensure it stays looking good if constrained */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* Alumni Section */
.alumni-section {
    padding: 40px 20px 80px 20px;
    text-align: left;
}

.section-heading {
    font-size: 1.8rem;
    color: #3b285b; /* A deep muted purple */
    margin-bottom: 40px;
    font-weight: 600;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.mt-3 {
    margin-top: 25px;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

.track-1 {
    animation: scroll-left 35s linear infinite;
}

.track-2 {
    animation: scroll-left 40s linear infinite reverse; /* Moves right */
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Collaboration Section */
.collaboration-section {
    padding: 70px 0 30px;
}
.collab-header { 
    text-align: center;
    margin-bottom: 50px;
}
.collab-header h2 {
    font-size: 2.8rem;
    color: #333;
    font-weight: 300;
    margin-bottom: 20px;
}
.collab-header p {
    font-size: 1.05rem;
    color: #555;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}
.collab-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.collab-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 15px 25px;
    width: 180px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.collab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.08);
}
.collab-card img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.collab-card:hover img {
    transform: scale(1.05);
}

.alumni-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    min-width: 150px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alumni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.alumni-card img {
    max-width: 110px;
    max-height: 35px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Certifications Section */
.certifications-section {
    padding: 30px 0 20px; /* Removed massive top gap */
    text-align: center;
}
.cert-header h2 {
    font-size: 2.2rem;
    color: #2b2b42;
    margin-bottom: 15px;
    font-weight: 700;
}
.cert-header p {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px; /* Reduced gap */
    line-height: 1.6;
}
.cert-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}
.cert-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}
.cert-logo .cert-text {
    display: flex;
    flex-direction: column;
}
.cert-text .mca {
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a237e;
    line-height: 1.2;
}
.cert-text .govt {
    font-size: 0.7rem;
    color: #0288d1;
    margin-top: 4px;
    font-weight: 600;
}
.cert-logo.msme-logo {
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.cert-text.msme span {
    font-weight: 900;
    font-size: 1.5rem;
    color: #283593;
    letter-spacing: 2px;
}


/* Approach Section */
.approach-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 0 40px; /* Removed massive gaps */
}
.approach-content {
    flex: 1;
    max-width: 45%;
}
.approach-title {
    font-size: 2.5rem;
    color: #2b2b42;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.approach-desc {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}
.approach-features {
    flex: 1.2;
    background-color: #fafbfe;
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.feature-header { 
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-icon {
    width: 45px;
    height: 45px;
    background-color: #4a4a68;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.feature-header h3 {
    font-size: 1rem;
    color: #2b2b42;
    margin: 0;
    font-weight: 600;
}
.feature-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Journey Section Timeline */
.journey-section {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.journey-header { 
    text-align: center;
    margin-bottom: 30px;
}
.journey-header h2 {
    font-size: 2.8rem;
    color: #1a1a4b;
    margin-bottom: 15px;
}
.journey-header p {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Expanding Cards Timeline */
.expanding-cards-container {
    display: flex;
    width: 100%;
    height: 300px;
    gap: 15px;
    margin: 40px 0;
}
.expand-card {
    position: relative;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    flex: 0.7;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}
.expand-card.active, .expand-card:hover {
    flex: 4;
    box-shadow: 0 15px 40px rgba(157, 0, 255, 0.4);
    border-color: var(--primary-color);
}
.ec-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.5s ease;
}
.expand-card.active .ec-icon, .expand-card:hover .ec-icon {
    left: 20px;
    transform: translateX(0);
    background: rgba(255,255,255,0.3);
}
.ec-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.05;
    transition: opacity 0.5s ease;
}
.expand-card.active .ec-number, .expand-card:hover .ec-number {
    opacity: 0.2;
}
.ec-content {
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    min-width: 250px;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}
.expand-card.active .ec-content, .expand-card:hover .ec-content {
    opacity: 1;
    transform: translateY(0);
}
.ec-content h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: white;
    font-weight: 700;
}
.ec-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.4;
}

/* Trending Section */
.trending-section {
    padding: 20px 0 60px;
}
.trending-header { 
    text-align: left;
    margin-bottom: 40px;
}
.trending-header h2 {
    font-size: 2.8rem;
    color: #1a1a4b;
    margin-bottom: 15px;
    font-weight: 700;
}
.trending-header p {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

/* Projects Filter Group */
.filter-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}
.filter-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-navy);
    background-color: #ffffff;
    border: 2px solid #eaeaea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(157, 0, 255, 0.3);
}

/* Trending Domains Grid */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.domain-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.domain-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}
.domain-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.domain-content h3 {
    font-size: 1.1rem;
    color: #121c2d;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
}

.card-desc {
    font-size: 0.85rem;
    color: #667085;
    line-height: 1.4;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge-tech {
    background-color: #e5f0ff;
    color: #0052cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-ongoing {
    color: #00a651;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #667085;
    font-weight: 500;
}

.popularity {
    color: #4353ff;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

.btn-explore {
    background: #4f6bff;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-explore:hover {
    background: #3a54d6;
}

.btn-register {
    background: white;
    color: #4f6bff;
    border: 1px solid #4f6bff;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #f0f4ff;
}

/* Laptop & Tablets */
@media (max-width: 1400px) {
    html {
        font-size: 90%; /* Scales everything down slightly for normal laptops */
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 85%; /* Scales all text down for smaller laptops */
    }
    
    .certifications-section {
        padding: 20px 0;
    }
    .cert-logos {
        gap: 30px;
    }
    .approach-section {
        padding: 20px 0 40px;
        gap: 30px;
    }
    .approach-features {
        padding: 25px;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 3rem; /* Scaled down for laptop screens */
    }
    
    .dynamic-subtitle {
        font-size: 1.5rem;
    }

    .hero-section {
        gap: 20px;
        padding: 5px 0; /* Basically zero padding for laptops */
    }
    
    .hero-description {
        font-size: 1.05rem;
        max-width: 500px;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    html {
        font-size: 80%;
    }
    
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* hide scrollbar for cleaner look */
    }
    
    .pill-nav {
        padding: 10px 15px;
        border-radius: 20px;
    }
    
    .title-underline {
        margin: 0 auto 30px auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .approach-section {
        flex-direction: column;
    }
    .approach-content {
        max-width: 100%;
        text-align: center;
    }
    .approach-features {
        grid-template-columns: 1fr;
    }

    /* Expanding Cards Mobile Adjustments */
    .expanding-cards-container {
        flex-direction: column;
        height: auto;
        min-height: 450px;
    }
    .expand-card {
        flex: 1;
        min-height: 60px;
        align-items: center;
        border-radius: 15px;
    }
    .expand-card.active, .expand-card:hover {
        min-height: 150px;
    }
    .ec-icon {
        top: 50%;
        transform: translate(-50%, -50%);
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .expand-card.active .ec-icon, .expand-card:hover .ec-icon {
        top: 20px;
        transform: translate(0, 0);
    }
}

@media (max-width: 600px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }
}

/* Success Stats Section */
.stats-section {
    padding: 40px 0;
    background-color: #f5f7fc; /* Soft minimal background */
    margin-bottom: 0;
}
.stats-header { 
    margin-bottom: 30px;
}
.stats-header h2 {
    font-size: 2rem;
    color: var(--dark-navy);
    font-weight: 400;
    margin-bottom: 10px;
}
.stats-header p {
    font-size: 1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0 20px;
}
.stat-card {
    text-align: center;
    padding: 5px;
    /* Removed heavy background, shadows, and borders */
}
.stat-icon {
    font-size: 1.6rem;
    color: #333; /* Clean dark gray/navy */
    margin-bottom: 10px;
}
.stat-card h3 {
    display: inline-block;
    font-size: 2rem;
    color: #000;
    margin: 0;
    font-weight: 400; /* Thinner, cleaner font weight */
}
.stat-label {
    font-size: 1rem;
    color: #444;
    margin-top: 5px;
    font-weight: 400;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
    margin-bottom: 20px;
}
.testi-header { 
    margin-bottom: 40px;
}
.testi-header h2 {
    font-size: 2.5rem;
    color: var(--dark-navy);
    font-weight: 500;
    margin-bottom: 10px;
}
.testi-header p {
    font-size: 1.05rem;
    color: #444;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px;
}
.testi-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}
.testi-card:hover {
    transform: translateY(-5px);
}
.testi-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.testi-user-info h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #222;
    font-weight: 700;
}
.testi-user-info span {
    font-size: 0.85rem;
    color: #666;
}
.testi-stars {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1rem;
}
.testi-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}


/* Contact Section */
.contact-section {
    padding: 40px 0;
    margin-bottom: 0;
    background-color: #f4f8fc; /* Soft light blue */
}
.contact-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.contact-left h2 {
    font-size: 2.2rem;
    color: var(--dark-navy);
    font-weight: 500;
    margin-bottom: 15px;
}
.contact-left p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}
.contact-img-wrapper {
    text-align: center;
}
.contact-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-right {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
}
.contact-form-title {
    font-size: 1.8rem;
    color: var(--dark-navy);
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}
.contact-form-minimal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.input-group-min {
    display: flex;
    flex-direction: column;
}
.input-group-min label {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-group-min label i {
    color: var(--primary-color);
}
.input-group-min input, .input-group-min textarea {
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    background: #fbfdff;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.input-group-min input:focus, .input-group-min textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(157, 0, 255, 0.1), inset 0 2px 5px rgba(0,0,0,0.01);
}
.submit-btn-wrapper {
    text-align: center;
    margin-top: 15px;
}
.btn-outline-submit {
    padding: 14px 45px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}
.btn-outline-submit:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(157,0,255,0.2);
    transform: translateY(-3px);
}
@media (max-width: 900px) {
    .contact-grid-split {
        grid-template-columns: 1fr;
    }
}


/* Footer Section (Dark Theme) */
.site-footer {
    background-color: var(--dark-navy);
    color: #fff;
    padding: 80px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 20px; /* Reduced gap */
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #d4b3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    font-size: 1rem;
}
.footer-col h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}
.footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-col ul li {
    margin-bottom: 15px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.contact-col .footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-col .footer-contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1rem;
}
.contact-col .footer-contact-item span {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-socials {
    display: flex;
    gap: 15px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}
.footer-socials a:has(.fa-instagram) { background: #E1306C; }
.footer-socials a:has(.fa-facebook-f) { background: #1877F2; }
.footer-socials a:has(.fa-linkedin-in) { background: #0A66C2; }
.footer-socials a:has(.fa-youtube) { background: #FF0000; }
.footer-socials a:has(.fa-twitter) { background: #1DA1F2; }
.footer-socials a:has(.fa-whatsapp) { background: #25D366; }
.footer-socials a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}
.footer-copyright p, .footer-managed p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background: #f4f5f7;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2), inset 0 0 100px rgba(90, 120, 255, 0.05);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-badge {
    background: #5a78ff;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.modal-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.modal-form .input-wrapper i {
    color: #5a78ff;
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.modal-form .input-wrapper input,
.modal-form .input-wrapper select {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #333;
    font-family: inherit;
}

.modal-form .input-wrapper select {
    cursor: pointer;
}

.modal-form .input-wrapper input::placeholder {
    color: #aaa;
}

.btn-submit-modal {
    width: 100%;
    padding: 15px;
    background: #5a78ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-submit-modal:hover {
    background: #4663e6;
}

@media (max-width: 768px) {
    .modal-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .modal-content {
        padding: 30px 20px;
    }
}

/* Elite Packs Section */
.elite-packs-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

/* Background gradient effect */
.elite-packs-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.25) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.elite-header {
    text-align: center;
    margin-bottom: 50px;
}

.elite-badge {
    display: inline-block;
    background: #eef5ff;
    color: #5a78ff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.elite-header h2 {
    font-size: 2.8rem;
    color: #111;
    font-weight: 800;
    margin-bottom: 15px;
}

.elite-header p {
    font-size: 1.05rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

.packs-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.pack-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.pack-card:hover {
    transform: translateY(-10px);
}

.pack-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.pack-badge {
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pack-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.4rem;
}

.pack-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.3;
}

.pack-price {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.pack-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 45px;
}

.pack-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pack-features li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pack-features li i {
    font-size: 1.1rem;
}

.btn-pack {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-pack:hover {
    opacity: 0.9;
}

/* Tech Starter - Blue */
.pack-card.tech-starter { box-shadow: 0 15px 40px rgba(0, 143, 255, 0.15); }
.pack-card.tech-starter .pack-badge,
.pack-card.tech-starter .pack-icon,
.pack-card.tech-starter .btn-pack { background: #008fff; }
.pack-card.tech-starter .pack-features li i { color: #008fff; }

/* MBA Lite - Purple */
.pack-card.mba-lite { box-shadow: 0 15px 40px rgba(168, 85, 247, 0.15); }
.pack-card.mba-lite .pack-badge,
.pack-card.mba-lite .pack-icon,
.pack-card.mba-lite .btn-pack { background: #9d4edd; }
.pack-card.mba-lite .pack-features li i { color: #9d4edd; }

/* Make Your Own - Pink */
.pack-card.make-your-own { box-shadow: 0 15px 40px rgba(255, 42, 122, 0.15); }
.pack-card.make-your-own .pack-badge,
.pack-card.make-your-own .pack-icon,
.pack-card.make-your-own .btn-pack { background: #ff2a7a; }
.pack-card.make-your-own .pack-features li i { color: #ff2a7a; }

/* Golden Pass - Yellow/Orange */
.pack-card.golden-pass { box-shadow: 0 15px 40px rgba(255, 183, 3, 0.15); }
.pack-card.golden-pass .pack-badge,
.pack-card.golden-pass .pack-icon,
.pack-card.golden-pass .btn-pack { background: #ffb703; }
.pack-card.golden-pass .pack-features li i { color: #ffb703; }

@media (max-width: 1024px) {
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .packs-grid {
        grid-template-columns: 1fr;
    }
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #eff1f3;
    min-width: 360px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin-top: 10px;
}

/* Invisible bridge so hover isn't lost */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 14px 20px;
    color: #3b2d59;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    text-align: left;
}

.dropdown-menu li a:hover {
    background: #e2e6eb;
}


/* ==========================================================================
   DEDICATED PACK LANDING PAGE STYLES (Cornixe Inspired)
   ========================================================================== */
.pack-hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, rgba(230,230,250,0.4) 0%, rgba(240,248,255,0.4) 100%);
    overflow: hidden;
}
.pack-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.3;
    background-image: radial-gradient(circle at 20% 30%, rgba(90, 120, 255, 0.4) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.3) 0%, transparent 40%);
    z-index: 1;
}
.pack-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.pack-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-navy);
    line-height: 1.2;
    margin-bottom: 20px;
}
.pack-hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pack-hero-pricing {
    background: #1a1a2e;
    border-radius: 24px;
    padding: 30px;
    max-width: 400px;
    margin: 40px auto;
    color: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.pack-hero-pricing .original-price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
}
.pack-hero-pricing .discounted-price {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 10px 0;
}
.pack-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.btn-enroll {
    background: #1a1a2e;
    color: white;
    padding: 15px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-enroll:hover {
    transform: translateY(-5px);
}
.btn-brochure {
    background: white;
    color: var(--dark-navy);
    padding: 15px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.btn-brochure:hover {
    background: #f0f0f0;
}

.pack-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}
.pack-feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}
.pack-feature-card .icon-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(90, 120, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
}
.pack-feature-card h3 {
    font-size: 1.4rem;
    color: var(--dark-navy);
}

.pack-section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin: 80px 0 40px;
}
.pack-section-title span {
    color: var(--primary-color);
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.career-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}
.career-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.career-card p {
    color: #666;
    line-height: 1.6;
}

.courses-bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 60px auto 100px;
}
.course-bundle-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.course-bundle-card:hover {
    border-color: rgba(90, 120, 255, 0.3);
    transform: translateY(-5px);
}
.course-bundle-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.course-bundle-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--dark-navy);
    margin-bottom: 10px;
}
.course-bundle-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.course-bundle-card .badge {
    background: #f0f4f8;
    color: var(--dark-navy);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

@media (max-width: 768px) {
    .pack-hero { padding: 80px 15px 50px; }
    .pack-hero-title { font-size: 2.2rem; }
    .pack-hero-pricing { padding: 20px; }
    .pack-hero-pricing .discounted-price { font-size: 2.5rem; }
    .btn-enroll, .btn-brochure { padding: 12px 25px; font-size: 1rem; width: 100%; }
    .pack-hero-actions { flex-direction: column; gap: 15px; }
    .pack-section-title { font-size: 2rem; margin-bottom: 30px; }
    
    .pack-features-grid { grid-template-columns: 1fr; gap: 15px; }
    .careers-grid { grid-template-columns: 1fr; gap: 15px; }
    .courses-bundle-grid { grid-template-columns: 1fr; gap: 15px; }
    
    .course-bundle-card, .career-card, .pack-feature-card { padding: 20px; }
}

/* AI Greeting Bubble */
.ai-greeting-bubble {
    position: fixed;
    bottom: 40px;
    right: 100px;
    background: white;
    color: var(--dark-navy);
    padding: 10px 25px 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 180px;
    line-height: 1.3;
    z-index: 9998;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    animation: fadeInBubble 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform-origin: right bottom;
}

.ai-greeting-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.ai-greeting-bubble.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateX(10px);
}

.close-greeting {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}
.close-greeting:hover {
    color: #333;
}

@keyframes fadeInBubble {
    from {
        opacity: 0;
        transform: scale(0.8) translateX(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Floating AI Button */
.floating-ai-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(157, 0, 255, 0.4);
    text-decoration: none;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: pulse-glow 2s infinite;
}

.floating-ai-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(157, 0, 255, 0.6);
    color: white;
}@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(157, 0, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(157, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(157, 0, 255, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom right;
}

.ai-chat-widget.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    z-index: 10000 !important;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ai-chat-actions button:hover {
    opacity: 1;
}

.ai-chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9fbfd;
}

.ai-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-message.ai {
    align-self: flex-start;
}

.ai-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.ai-message.user .msg-avatar {
    background: #6c7a89;
}

.msg-bubble {
    background: white;
    padding: 12px 15px;
    border-radius: 0 15px 15px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
}

.ai-message.user .msg-bubble {
    background: var(--primary-color);
    color: white;
    border-radius: 15px 0 15px 15px;
}

.ai-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input-area textarea {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    height: 20px;
    max-height: 100px;
}

.ai-chat-input-area textarea:focus {
    border-color: var(--primary-color);
}

.ai-chat-input-area button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.ai-chat-input-area button:hover {
    transform: scale(1.05);
}

/* AI Settings Panel */
.ai-settings-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.ai-settings-panel.active {
    transform: translateX(0);
}

.ai-settings-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-settings-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-navy);
}

.ai-settings-header button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
}

.ai-settings-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-settings-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.ai-settings-body input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.ai-settings-body input:focus {
    border-color: var(--primary-color);
}

.settings-msg {
    font-size: 0.85rem !important;
    text-align: center;
    margin-top: 5px;
}
.settings-msg.success {
    color: #28a745 !important;
}
.settings-msg.error {
    color: #dc3545 !important;
}

@media (max-width: 480px) {
    .ai-chat-widget {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* --- GLOBAL MOBILE FIXES (Modal & Program Pages) --- */
@media (max-width: 768px) {
    /* Enquiry Modal Fixes */
    .modal-content {
        width: 95% !important;
        padding: 25px 15px !important;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-title {
        font-size: 1.5rem !important;
    }
    .modal-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    .modal-form .form-group input, 
    .modal-form .form-group select {
        padding: 10px 12px !important;
        padding-left: 40px !important;
        font-size: 0.9rem !important;
    }
    .input-wrapper i {
        top: 13px !important;
    }
    
    /* 52 Program Pages Inline-Style Overrides */
    main[style*="padding: 100px 20px"] {
        padding: 40px 15px !important;
    }
    
    /* Container gap */
    #program-container > div[style*="gap: 50px"] {
        gap: 30px !important;
    }
    
    /* Hero Title */
    #program-container h1 {
        font-size: 2.2rem !important;
    }
    
    /* Stats Bar */
    div[style*="background: #f8f9ff"][style*="gap: 30px"] {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    
    /* Hide dividers in Stats bar */
    div[style*="background: #dde5ff"][style*="width: 1px"] {
        display: none !important;
    }
    
    /* "Why Choose This Program" Grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Hero Badges wrapper */
    div[style*="gap: 10px"][style*="margin-bottom: 15px"] {
        flex-wrap: wrap;
    }
}


@media (max-width: 768px) {
    /* Connect Anytime Image Fix */
    .contact-img-wrapper img {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Overall Image Fixes on Mobile */
    img:not([style*="object-fit: cover"]) {
        max-width: 100% !important;
    }

    /* AI Chat Widget Mobile Redesign */
    .ai-chat-widget {
        width: 90% !important;
        height: 60vh !important;
        max-height: 500px !important;
        bottom: 80px !important;
        right: 5% !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    }
}

/* =========================================
   Mobile Hamburger Menu (Header & Nav)
   ========================================= */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-navy);
    cursor: pointer;
    padding: 5px 10px;
    z-index: 3001;
}

/* Explicitly keep hamburger hidden on laptop/desktop (>900px),
   even when browser is zoomed in */
@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none !important;
    }
    .top-bar .nav-container,
    .top-bar .nav-actions {
        display: flex !important;
    }
}


@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .top-bar .nav-container, 
    .top-bar .nav-actions {
        display: none;
        width: 100%;
    }
    
    /* Full-Screen Overlay Menu */
    .top-bar.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(244, 245, 249, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 3000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        animation: fadeInMenu 0.3s ease;
    }
    
    .top-bar.menu-open .logo {
        position: absolute;
        top: 15px;
        left: 4%;
    }
    
    .top-bar.menu-open .mobile-menu-btn {
        position: absolute;
        top: 20px;
        right: 4%;
    }
    
    .top-bar.menu-open .nav-container,
    .top-bar.menu-open .nav-actions {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .top-bar.menu-open .nav-container {
        margin-top: 40px;
    }
    
    .top-bar.menu-open .nav-actions {
        margin-top: 40px;
    }

    .top-bar.menu-open .pill-nav {
        background: transparent;
        border: none;
        width: 100%;
        padding: 0;
    }
    
    .top-bar.menu-open .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }
    
    .top-bar.menu-open .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .top-bar.menu-open .nav-links li a {
        padding: 10px 20px;
        background: transparent;
        border-radius: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--dark-navy);
        display: inline-block;
    }
    
    .top-bar.menu-open .nav-links li a:hover {
        color: var(--primary-color);
        transform: scale(1.05);
    }
}

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

/* =========================================
   Comprehensive Mobile Responsiveness
   ========================================= */

@media (max-width: 768px) {

    /* ---- Base ---- */
    html {
        font-size: 75%;
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
    }

    /* ---- Header ---- */
    header {
        padding: 8px 0;
    }
    .logo-icon-wrapper {
        height: 40px;
        width: 40px;
    }
    .logo-text h1 {
        font-size: 1.8rem;
    }
    .slogan-gradient {
        font-size: 0.6rem;
    }

    /* ---- Hero Section ---- */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px 20px;
        margin-top: 20px;
        gap: 20px;
    }
    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.25;
    }
    .dynamic-subtitle {
        font-size: 1.15rem;
    }
    .hero-description {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    .hero-image {
        width: 100%;
    }
    .hero-image img {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    .title-underline {
        margin: 0 auto 20px auto;
    }

    /* ---- Alumni / Marquee ---- */
    .alumni-section {
        padding: 20px 0;
    }
    .section-heading {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .alumni-card {
        padding: 8px 14px;
        min-width: 90px;
    }
    .alumni-card img {
        height: 24px;
    }

    /* ---- Certifications ---- */
    .certifications-section {
        padding: 30px 15px;
    }
    .cert-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        align-items: center;
        justify-items: center;
    }
    .cert-logo {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    /* ---- Trending Programs (Domains) ---- */
    .domains-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 5px;
    }
    .domain-card {
        padding: 16px 10px;
    }

    /* ---- Educational Approach ---- */
    .approach-section {
        flex-direction: column;
        padding: 30px 15px;
    }
    .approach-content {
        max-width: 100%;
        text-align: center;
    }
    .approach-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* ---- Journey (Expanding Cards) — Mobile Redesign ---- */
    .journey-section {
        padding: 10px 0;
    }
    .journey-header h2 {
        font-size: 1.6rem;
    }
    .journey-header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    .expanding-cards-container {
        flex-direction: column;
        height: auto;
        min-height: unset;
        gap: 10px;
        padding: 0 5px;
        margin: 20px 0;
    }
    /* Collapsed card — shows photo + icon + title */
    .expand-card {
        height: 130px;
        width: 100% !important;
        flex: none !important;
        border-radius: 14px;
        margin-bottom: 0;
        align-items: flex-end;
        transition: height 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    }
    /* Active card — expands to show full content */
    .expand-card.active,
    .expand-card:hover {
        height: 290px;
        flex: none !important;
        box-shadow: 0 12px 35px rgba(157, 0, 255, 0.35);
        border-color: var(--primary-color);
    }
    /* Icon: always visible, vertically centered on collapsed */
    .ec-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.25);
        backdrop-filter: blur(4px);
    }
    /* On active card, move icon to top-left */
    .expand-card.active .ec-icon,
    .expand-card:hover .ec-icon {
        top: 15px;
        left: 15px;
        transform: none;
    }
    .ec-number {
        font-size: 4rem;
        opacity: 0.12;
    }
    .expand-card.active .ec-number,
    .expand-card:hover .ec-number {
        opacity: 0.22;
    }
    /* Title always visible at bottom of card */
    .ec-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
        padding: 12px 15px;
        min-width: unset;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
    }
    .ec-content h3 {
        font-size: 0.95rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    /* Description hidden on collapsed, shown on active */
    .ec-content p {
        font-size: 0.82rem;
        line-height: 1.4;
        margin-top: 6px;
        display: none;
    }
    .expand-card.active .ec-content p,
    .expand-card:hover .ec-content p {
        display: block;
    }
    .expand-card.active .ec-content h3,
    .expand-card:hover .ec-content h3 {
        font-size: 1.05rem;
        white-space: normal;
        margin-bottom: 6px;
    }

    /* ---- Success Stats ---- */
    .stats-section {
        padding: 30px 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0;
    }
    .stat-card h3 {
        font-size: 1.6rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    /* ---- Elite Packs ---- */
    .elite-packs-section {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    .elite-header h2 {
        font-size: 1.8rem;
    }
    .packs-grid,
    .packs-grid-3,
    .packs-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .pack-card {
        padding: 20px 15px;
    }

    /* ---- Testimonials ---- */
    .testimonials-section {
        padding: 30px 15px;
    }
    .testi-header h2 {
        font-size: 1.8rem;
    }
    .testi-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* ---- Contact Section ---- */
    .contact-section {
        padding: 30px 15px;
    }
    .contact-grid-split {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .contact-left {
        text-align: center;
    }
    .contact-left h2 {
        font-size: 1.6rem;
    }
    .contact-img-wrapper img {
        width: 100%;
        max-width: 100%;
    }
    .contact-right {
        padding: 20px 15px;
    }
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* ---- Footer ---- */
    .site-footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-col .footer-contact-item {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
    }
    .footer-socials {
        justify-content: center;
    }

    /* ---- Enquiry Modal ---- */
    .modal-content {
        width: 95% !important;
        padding: 20px 15px !important;
        max-height: 92vh;
        overflow-y: auto;
    }
    .modal-title {
        font-size: 1.4rem !important;
    }
    .modal-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 15px !important;
    }
    .modal-form .form-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    /* ---- Program Pages ---- */
    main[style*="padding: 100px 20px"] {
        padding: 40px 15px !important;
    }
    #program-container > div[style*="gap: 50px"] {
        gap: 20px !important;
    }
    #program-container h1 {
        font-size: 1.9rem !important;
    }
    div[style*="background: #f8f9ff"][style*="gap: 30px"] {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 18px !important;
    }
    div[style*="background: #dde5ff"][style*="width: 1px"] {
        display: none !important;
    }
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- Pack Landing Pages ---- */
    .pack-hero {
        padding: 70px 15px 40px;
    }
    .pack-hero-title {
        font-size: 2rem;
    }
    .pack-hero-pricing {
        padding: 18px;
        max-width: 100%;
    }
    .pack-hero-pricing .discounted-price {
        font-size: 2.2rem;
    }
    .pack-hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn-enroll,
    .btn-brochure {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .pack-section-title {
        font-size: 1.8rem;
        margin: 40px 0 20px;
    }
    .pack-features-grid,
    .careers-grid,
    .courses-bundle-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .pack-feature-card,
    .career-card,
    .course-bundle-card {
        padding: 18px;
    }

    /* ---- AI Chat Widget ---- */
    .ai-chat-widget {
        width: 92% !important;
        height: 62vh !important;
        max-height: 520px !important;
        bottom: 85px !important;
        right: 4% !important;
        border-radius: 18px !important;
    }

    /* ---- Floating AI Button ---- */
    .floating-ai-btn {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    img { max-width: 100%; }
    * { box-sizing: border-box; }
}

/* Extra-small phones */
@media (max-width: 400px) {
    .hero-title { font-size: 1.9rem; }
    .domains-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .logo-text h1 { font-size: 1.5rem; }
}
