/* --- Google Fonts --- */
/* @import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;700&display=swap'); */

/* --- CSS Variables for Easy Theming --- */
:root {
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-dark-blue: #0D1B3E;
    --color-primary: #3A4FDD;
    --color-accent: #22D3EE;
    --color-text-light: #F8F9FA;
    --color-text-dark: #212529;
    --color-text-muted: #6C757D;
    --color-bg-light: #FFFFFF;
    --color-bg-offwhite: #F8F9FA;
    --color-bg-dark-slate: #0a101f;
    --color-border: #e9ecef;
    --container-width: 1200px;
    --container-padding: 1rem;
    --header-height: 80px;
    /* Added for easier calculations */
}

/* --- Base & Reset Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ADDED: Offset main content to account for fixed header on non-home pages */
main {
    padding-top: var(--header-height);
}

/* On the homepage, the hero section itself handles the space */
body:has(.hero-section-video) main {
    padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-dark-blue);
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
    /* overflow: hidden; */
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- MODIFIED: Header Redesign --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-bg-light);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid var(--color-border);
}

/* MODIFIED: Add translucent/blur effect on scroll */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-logo {
    position: relative;
    height: 40px;
    /* Adjusted height */
    width: 140px;
    /* Adjusted width */
}

.site-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

/* --- UPDATED: Logo Visibility Logic --- */
.logo-desktop {
    display: none;
}

.logo-mobile {
    display: block;
}

@media (min-width: 992px) {
    .logo-desktop {
        display: block;
    }

    .logo-mobile {
        display: none;
    }
}

/* --- MODIFIED: Desktop Navigation for new Header --- */
.main-navigation {
    display: none;
}

@media (min-width: 992px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .main-navigation a {
        color: var(--color-text-dark);
        font-weight: 500;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
        position: relative;
    }

    .main-navigation a::after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--color-primary);
        transform-origin: bottom right;
        transition: transform 0.25s ease-out;
    }

    .main-navigation a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }

    .main-navigation a:hover {
        color: var(--color-dark-blue);
    }

    .main-navigation a.active {
        color: var(--color-primary);
        font-weight: 700;
    }
}

.header-cta {
    display: none;
}

@media (min-width: 992px) {
    .header-cta {
        display: block;
    }
}


/* --- Buttons (UPDATED FOR A NEATER LOOK) --- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 15px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}


.btn-primary:hover {
    background-color: #2c3db9;
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 79, 221, 0.3);
}


.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}


.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}








/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark-blue);
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-toggle svg {
    display: block;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 80%;
    height: 100%;
    background: var(--color-bg-light);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-menu-logo {
    height: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-dark-blue);
}

.mobile-menu-close svg {
    display: block;
}

.mobile-menu-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-menu-content a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu-content a:hover {
    background-color: var(--color-bg-offwhite);
    color: var(--color-primary);
}

.mobile-menu-content a.active {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.mobile-menu-content .header-cta {
    display: block;
    margin-top: auto;
}

.mobile-menu-content .header-cta .btn {
    width: 100%;
    text-align: center;
    color: var(--color-text-light);
}

/* --- ADDED: Generic Page Hero for pages like Research --- */
.page-hero {
    background-color: var(--color-dark-blue);
    padding: 60px 0;
    text-align: center;
    color: var(--color-text-light);
}

.page-hero h1 {
    color: var(--color-text-light);
    font-size: 2.8rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.8;
}

/* --- Hero Section --- */
.hero-section-video {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    padding: 0 var(--container-padding);
}

/* MODIFIED: Shorter hero on mobile */
@media (max-width: 768px) {
    .hero-section-video {
        height: 80vh;
        min-height: 550px;
    }
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(13, 27, 62, 0.85) 0%, rgba(58, 79, 221, 0.6) 100%); */
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.3rem;
    color: var(--color-text-light);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    /* Adjusted margin */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.7rem;
    margin: 0 auto 1.5rem auto;
    /* Adjusted margin */
    max-width: 650px;
    opacity: 0.9;
}

.hero-content p .pastYear {
    font-size: 1.5rem;
}

/* ADDED: Hero Partner Logo styles */
.hero-partner {
    margin: 0 auto 2.5rem auto;
}

.hero-partner img {
    height: 30px;
    margin: 0 auto;
    /* filter: brightness(0) invert(1);
    opacity: 0.8; */
    display: inline;
    margin: auto 10px;
}

/* --- Opportunity Section --- */
.opportunity-section-dark {
    background-color: var(--color-bg-dark-slate);
}

.opportunity-section-dark .section-title h2 {
    color: var(--color-text-light);
}

.opportunity-section-dark .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.opportunity-grid-puzzle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .opportunity-grid-puzzle {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .opportunity-grid-puzzle {
        grid-template-columns: repeat(3, 1fr);
    }
}

.opportunity-card-puzzle {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #334155;
    overflow: hidden;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.opportunity-card-puzzle:hover {
    transform: translateY(-4px);
    /* border-color: var(--color-accent); */
}

.opportunity-card-puzzle::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease-in-out;
    z-index: 1;
}

.opportunity-card-puzzle:hover::after {
    background: linear-gradient(135deg, rgba(58, 79, 221, 0.7) 0%, rgba(10, 16, 31, 0.85) 100%);
}

.card-icon-wrapper,
.card-content {
    position: relative;
    z-index: 2;
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
}

.card-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 0;
}

.card-content p {
    font-size: 1.125rem;
    color: white;
    margin-top: 0.5rem;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .card-univ {
        background-image: url('../images/university.png');
    }

    .card-courses {
        background-image: url('../images/courses.png');
    }

    .card-scholarship {
        background-image: url('../images/scholarship.png');
    }

    .card-seats {
        background-image: url('../images/seats.png');
    }

    .card-acceptance {
        background-image: url('../images/acceptance.png');
    }

    .card-success {
        background-image: url('../images/success.png');
    }
}

@media (min-width: 992px) {
    .opportunity-card-puzzle {
        background-image: url('../images/big-opp-university.png');
        background-size: 300% 200%;
    }

    .card-univ {
        background-position: 0% 0%;
    }

    .card-courses {
        background-position: 50% 0%;
    }

    .card-scholarship {
        background-position: 100% 0%;
    }

    .card-seats {
        background-position: 0% 100%;
    }

    .card-acceptance {
        background-position: 50% 100%;
    }

    .card-success {
        background-position: 100% 100%;
    }
}

/* --- Methodology Section --- */
.methodology-section {
    background-color: var(--color-bg-offwhite);
}

.methodology-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .methodology-content {
        grid-template-columns: 1fr 1fr;
    }
}

.methodology-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.methodology-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.methodology-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-block {
    margin-bottom: 1.5rem;
}

.feature-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.methodology-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- CTA Section (REDESIGNED) --- */
.cta-section {
    background-color: var(--color-dark-blue);
    color: var(--color-text-light);
    padding: 80px 0;
}

/* .cta-content h2 {
    color: var(--color-text-light);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-content .btn {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.cta-content .btn:hover {
    background-color: #f0f0f0;
    color: var(--color-primary);
} */

.cta-grid {
    display: grid;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.cta-text-content h2 {
    color: var(--color-text-light);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-text-content p {
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.cta-text-content .btn {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.cta-text-content .btn:hover {
    background-color: #f0f0f0;
    color: var(--color-primary);
}


/* --- University Logos Section (REDESIGNED) --- */
.university-logos-section {
    /* background-color: var(--color-bg-dark-slate); */
    padding: 60px 0;
    /* Reduced padding as there's no title */
}

.university-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
}

.university-logo-grid img {
    max-height: 45px;
    max-width: 150px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
    /* Good opacity for dark background */
    transition: all 0.3s ease-in-out;
}

.university-logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .university-logo-grid {
        gap: 2.5rem;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .university-logo-grid img {
        max-height: 35px;
    }
}

/* --- Testimonial Section (REDESIGNED) --- */
.testimonial-section-new {
    padding: 80px 0;
    background-color: var(--color-bg-offwhite);
}

/* CHANGE: The section-title is now part of the grid, so its default mobile styles are here */
.testimonial-grid-layout-new > .section-title {
    text-align: center;
    margin-bottom: 0; /* Let grid gap handle spacing */
}

.testimonial-section-new .subtitle-keywords {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.testimonial-section-new .subtitle-keywords br {
    display: none; /* Hide line break on large screens */
}

@media (max-width: 768px) {
    .testimonial-section-new .subtitle-keywords br {
        display: block; /* Show line break on smaller screens */
    }
}

/* CHANGE: This is now the main layout controller for this section */
.testimonial-grid-layout-new {
    display: grid;
    gap: 2.5rem; /* Default gap for mobile stacking */
}

@media (min-width: 992px) {
    .testimonial-grid-layout-new {
        /* On desktop, create a complex grid for positioning */
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        grid-template-rows: auto 1fr;
        gap: 3.5rem;
        align-items: start;
    }

    /* CHANGE: Position grid items on desktop */
    .testimonial-grid-layout-new > .section-title {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        text-align: left; /* Align title left on desktop */
    }
    .testimonial-grid-layout-new > .scholar-media-container {
        grid-column: 1 / 2;
        grid-row: 1 / 3; /* Span both rows */
    }
    .testimonial-grid-layout-new > .scholar-breakdown {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
}

.scholar-media-container {
    position: sticky; /* Makes the video stick on scroll */
    top: 120px; /* Space from top (Header height + padding) */
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: var(--color-dark-blue);
    /* Force a portrait aspect ratio */
    /* aspect-ratio: 9 / 13; */
    aspect-ratio: 9 / 16;
}

/* Style all possible media elements to fill the portrait container */
.scholar-media-container iframe,
.scholar-media-container video,
.scholar-media-container img {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover; /* This covers the frame, cropping if necessary */
}

.scholar-media-container a {
    display: block;
    width: 100%;
    height: 100%;
}


/* Right Column: Scholar Breakdown */
.scholar-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Space between categories */
}

.scholar-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-border);
}

.scholar-grid-inner {
    display: grid;
    /* CHANGE: Default is 2 columns for mobile */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem; /* row-gap column-gap */
}

/* CHANGE: On desktop, show 4 scholars in a single line */
@media (min-width: 992px) {
    .scholar-grid-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Scholar Card Styling (re-using your existing styles) */
.scholar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.scholar-card .img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scholar-card:hover .img-wrapper {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(58, 79, 221, 0.2);
}

.scholar-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scholar-card .scholar-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin: 0;
    line-height: 1.3;
}

.scholar-card .scholar-info p {
    font-size: 0.875rem;
    color: var(--color-primary); /* Highlight the scholarship amount */
    font-weight: 500;
    margin: 0.25rem 0 0 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    /* CHANGE: When the layout stacks, remove the sticky position but keep the portrait aspect ratio */
    .scholar-media-container {
        position: relative;
        top: 0;
        /* The landscape aspect-ratio rule has been removed to keep it portrait */
    }
}

@media (max-width: 576px) {
    .scholar-category h3 {
        font-size: 1.1rem;
    }
    
    .scholar-card .img-wrapper {
        width: 80px;
        height: 80px;
    }
}
/* --- Resources Section --- */
.resources-section {
    background-color: var(--color-bg-light);
}

.resource-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.resource-card {
    background-color: var(--color-bg-offwhite);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.resource-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.resource-card-header img {
    height: 40px;
    width: 40px;
    /* Give fixed width */
    flex-shrink: 0;
    object-fit: contain;
}

.resource-card-header h3 {
    font-size: 1.25rem;
    margin: 0;
    /* FIX: Prevent overflow on flex items */
    word-break: break-word;
}

.resource-card p {
    color: var(--color-text-muted);
    flex-grow: 1;
}

.resources-section-footer {
    text-align: center;
    margin-top: 4rem;
}

/* --- Research Section --- */
.research-section {
    background-color: var(--color-bg-offwhite);
}

.research-grid {
    display: grid;
    gap: 3rem;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .research-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

.research-main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.research-main-content .research-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
}

.research-main-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.research-side-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.research-section-footer {
    margin-top: 2rem;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-text-light);
    padding: 80px 0 30px 0;
}

.footer-content {
    text-align: center;
}

.footer-content .disclaimer {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 0.875rem;
    color: #adb5bd;
}

.footer-content .disclaimer h4 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-rankings h4 {
    color: #ced4da;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.ranking-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ranking-logos img {
    height: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a img {
    height: 24px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-socials a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.875rem;
    color: #adb5bd;
}

/* --- General Mobile Responsiveness --- */
@media (max-width: 767px) {

    .section-title h2,
    .methodology-text h2,
    .research-main-content h2,
    .cta-text-content h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content {
        margin-top: 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .card-content h3 {
        font-size: 2rem;
    }
}

/* --- Custom Video Player Styles --- */
.cta-video-wrapper {
    position: relative; /* This is crucial for positioning the button */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#cta-video {
    width: 100%;
    height: 100%;
    display: block; /* Removes any extra space below the video */
    cursor: pointer; /* So users know they can click the video itself */
}

#play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-left: 2px; /* Optically center the play icon */
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

#play-pause-btn svg {
    color: var(--color-primary);
}

/* When the video is playing, hide the play button */
#custom-video-player.is-playing #play-pause-btn {
    opacity: 0;
    pointer-events: none; /* Makes the button unclickable when invisible */
}