/* =============================
   HERO SECTION STYLES
   ============================= */
.hero-section {
    padding: 80px 0 100px 0;
    background-color: white;
    overflow-x: hidden;
}

/* --- Left Column Typography --- */
.hero-eyebrow {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

/* --- Conversational Form (UPDATED: Plain Look) --- */
.conversational-form-box {
    background-color: transparent; /* No background */
    padding: 20px; /* No padding */
    border: 1px solid #0000000f; /* No border */
    border-radius: 20px;
    box-shadow: none; /* No shadow */
    margin-top: 20px;
}

.form-heading {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 1.25rem;
}

/* The "Mad Libs" style inputs */
.conversational-line {
    font-size: 1.15rem; /* Matches subtitle size roughly */
    color: var(--color-primary);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline; /* Aligns text with input underline */
    gap: 12px;
    line-height: 2;
}

.conv-input, .conv-select {
    border: none;
    border-bottom: 2px solid var(--color-border); /* Just the line */
    background: transparent;
    padding: 0 5px 2px 5px; /* Minimal padding */
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s;
    width: auto !important;
}

.conv-input[type="text"] { width: 140px; }
.conv-select { width: 180px; cursor: pointer;}
.full-width-input { flex-grow: 1; min-width: 200px; }

.conv-input:focus, .conv-select:focus {
    border-bottom-color: var(--color-accent);
}

.conv-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.5;
}

/* Checkbox styling */
.form-check {
    padding-left: 1.7em; /* Bootstrap default adjustment */
}

.form-check-input {
    border-color: var(--color-border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Hero Submit Button */
.btn-hero-submit {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-hero-submit:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}
.btn-hero-submit svg {
    width: 18px; height: 18px;
}

/* =============================
   RIGHT COLUMN & ANIMATIONS
   ============================= */
/* (Keep the previous right column CSS exactly as is) */
.hero-image-wrapper {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-hero-img {
    max-height: 100%;
    width: auto;
    max-width: 80%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
}

.float-box {
    position: absolute;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 2;
    white-space: nowrap;
    animation: subtleFloat 6s ease-in-out infinite;
}

.float-box svg { width: 24px; height: 24px; }
.float-box strong { display: block; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.float-box span { font-size: 0.75rem; opacity: 0.8; }

.float-green { background-color: #eefdec; color: var(--color-primary); }
.float-green svg { color: #2ecc71; }
.fill-green { fill: #2ecc71; }

.float-dark { background-color: var(--color-primary); color: white; }
.float-dark svg { color: var(--color-accent); }

.fb-top-left { top: 5%; left: 0; animation-delay: 0s; }
.fb-top-center { top: 12%; right: 15%; padding: 15px 25px; animation-delay: 1.5s; background-color: #000; }
.fb-mid-left { top: 35%; left: -5%; padding: 15px 25px; animation-delay: 0.5s; background-color: #000; }
.fb-mid-right { top: 40%; right: 0; animation-delay: 2s; }
.fb-bottom-left { bottom: 15%; left: 5%; animation-delay: 1s; flex-direction: column; align-items: flex-start; gap: 5px; }
.fb-bottom-right { bottom: 5%; right: 10%; animation-delay: 2.5s; background-color: #000; }

@keyframes subtleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-image-wrapper { height: 450px; margin-top: 50px; }
    .float-box { transform: scale(0.8); }
    .fb-mid-left { left: 0; }
    .fb-top-left { left: 5%; }
}

/* =============================
   MOBILE OPTIMIZATIONS (FIXED)
   ============================= */

@media (max-width: 768px) {

    .hero-image-wrapper {
        height: 400px;
        margin-top: 20px;
    }

    .main-hero-img {
        max-width: 100%;
    }

    /* --- 1. GENERAL BOX SIZING --- */
    .float-box {
        padding: 6px 10px; /* Smaller padding instead of scaling */
        gap: 6px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* Make text smaller to fit */
    .float-box strong { font-size: 0.75rem; }
    .float-box span { font-size: 0.65rem; }
    .float-box svg { width: 16px; height: 16px; }

    /* --- 2. HIDE THE CLUTTER --- */
    /* Still hiding 4 boxes to keep it clean */
    .fb-mid-right,
    .fb-bottom-left,
    .fb-top-center,
    .fb-bottom-right
    {
        display: none !important;
    }

    /* --- 3. REPOSITION THE SURVIVORS --- */

    /* Keep: Rating (Social Proof) - Top Left */
    .fb-top-left {
        top: 10px;
        left: 0;
        /* No transform: scale here, so animation works freely */
    }

    /* Keep: Success Rate (Authority) - Bottom Right */
    .fb-mid-left {
        top: auto;
        left: auto;
        bottom: 20px;
        right: 0;
        background-color: var(--color-primary);
    }
}

/* =============================
   WHY AUSTRALIA SECTION
   ============================= */
.why-australia-section {
    padding: 100px 0;
    background-color: white;
}

.section-title {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* --- Stat Counters --- */
.stat-box {
    background-color: var(--color-bg-cream);
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    height: 100%; /* Ensure equal height */
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    /* Add a '+' sign after the counter finishes */
}
.stat-number.counted::after {
    content: '+';
}


.stat-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* --- Tabs Styling --- */
.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 30px;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: var(--color-primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--color-primary);
    background: transparent;
    border-bottom: 3px solid var(--color-accent);
}

/* Tab Content */
.tab-heading {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
}

.tab-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.tab-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.tab-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Style the Lucide check icon */
.tab-list li svg.fill-green {
    width: 24px;
    height: 24px;
    color: #2ecc71; /* Green check */
    fill: #2ecc71;
    flex-shrink: 0;
}

/* =============================
   MOBILE SCROLLABLE TABS
   ============================= */
@media (max-width: 768px) {
    /* Target the tabs within the specific section */
    .why-australia-section .nav-tabs {
        display: flex;
        flex-wrap: nowrap;          /* Forces items into a single row */
        overflow-x: auto;           /* Enables horizontal scrolling */
        overflow-y: hidden;
        justify-content: flex-start !important; /* Start from left so first tab is visible */
        gap: 10px;                  /* Space between tabs */
        padding-bottom: 5px;        /* Space for scrollbar (if visible) */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */

        /* Hide the scrollbar for a cleaner look */
        scrollbar-width: none;      /* Firefox */
        -ms-overflow-style: none;   /* IE/Edge */
    }

    /* Hide scrollbar for Chrome/Safari/Webkit */
    .why-australia-section .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .why-australia-section .nav-link {
        white-space: nowrap;        /* Prevents text like "For Professionals" from breaking lines */
        flex-shrink: 0;             /* Prevents the button from being squashed */
        font-size: 1rem;            /* Slightly smaller text for mobile */
        padding: 10px 20px;         /* Adjusted padding */
    }
}

/* =============================
   STACKING CARDS SECTION
   ============================= */
.stacking-section {
    padding: 100px 0 150px 0; /* Extra bottom padding for scroll space */
    background-color: white;
}

.stacking-cards-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* --- Base Card Styles --- */
.card-stack-item {
    position: sticky;
    /* Height is important for the sticky effect to look consistent */
    min-height: 500px;
    border-radius: 30px;
    margin-bottom: 40px; /* Space between cards in normal flow */
    padding: 0;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05); /* Shadow on top to separate cards */
    transition: transform 0.3s ease;
}

/* Inner Layout */
.card-stack-item .content-col {
    padding: 60px 50px;
}

.card-stack-item .image-col {
    height: 100%;
    min-height: 300px; /* For mobile */
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    /* Optional: margin if you want the image 'floating' inside */
    margin: 0;
}

/* --- STICKY LOGIC (The Magic Part) --- */

/* Card 1 */
.card-stack-item:nth-child(1) {
    top: 120px; /* Stick 120px from top of viewport */
    z-index: 1;
}

/* Card 2 */
.card-stack-item:nth-child(2) {
    top: 160px; /* 120px + 40px offset */
    z-index: 2;
}

/* Card 3 */
.card-stack-item:nth-child(3) {
    top: 200px; /* 160px + 40px offset */
    z-index: 3;
}

/* Card 4 */
.card-stack-item:nth-child(4) {
    top: 240px; /* 200px + 40px offset */
    z-index: 4;
    margin-bottom: 0;
}

/* --- Color Variants --- */

/* Light Card (Cream) */
.card-light {
    background-color: var(--color-bg-cream);
    color: var(--color-primary);
}

.card-light .card-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.card-light .card-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Checklist Items for Light Card */
.card-light .card-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}
.card-light .card-checklist svg {
    color: #2ecc71; /* Green check */
    width: 20px; height: 20px;
}

/* Dark Card (Green) */
.card-dark {
    background-color: var(--color-primary);
    color: white;
}

.card-dark .card-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.card-dark .card-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.8);
}

/* Checklist Items for Dark Card */
.card-dark .card-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
}
.card-dark .card-checklist svg {
    color: #2ecc71; /* Keep green check or make it white/accent */
    fill: #2ecc71; /* Filled variant looks good on dark */
    width: 20px; height: 20px;
}

/* --- Buttons --- */
.btn-dark-custom {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-dark-custom:hover {
    background-color: var(--color-accent);
    color: white;
}

.btn-light-custom {
    background-color: var(--color-bg-cream);
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-light-custom:hover {
    background-color: white;
    color: var(--color-accent);
}

/* --- Responsive Mobile Tweaks --- */
@media (max-width: 991px) {
    .card-stack-item {
        min-height: auto; /* Let content dictate height */
        padding-bottom: 0;
    }

    .card-stack-item .content-col {
        padding: 40px 30px;
    }

    /* On mobile, images go on top for all cards */
    .image-col {
        height: 250px;
    }

    /* Reduce sticky offset on mobile to save space */
    .card-stack-item:nth-child(1) { top: 80px; }
    .card-stack-item:nth-child(2) { top: 100px; }
    .card-stack-item:nth-child(3) { top: 120px; }
    .card-stack-item:nth-child(4) { top: 140px; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .card-title { font-size: 1.5rem; }

    /* Ensure image fills width */
    .image-col {
        min-height: 200px;
    }
}

/* =============================
   PATHWAYS SECTION
   ============================= */
.pathways-section {
    padding: 80px 0;
    background-color: var(--color-bg-cream); /* Cream Background */
}

/* --- Horizontal Scrolling Tabs (Mobile Responsive) --- */
.tabs-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    padding-bottom: 10px; /* Space for scrollbar if visible */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Hide scrollbar for tabs */
.tabs-scroll-wrapper::-webkit-scrollbar {
    height: 0px;
    background: transparent;
}

.custom-tabs {
    display: inline-flex;
    gap: 10px;
}

.custom-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 0;
    margin-right: 30px;
    background: transparent;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.custom-tabs .nav-link:hover {
    color: var(--color-primary);
}

.custom-tabs .nav-link.active {
    color: var(--color-primary); /* Dark Green Text */
    background: transparent;
    border-bottom: 3px solid var(--color-primary); /* Dark Green Underline */
}

/* --- Card Sliders --- */
.slider-wrapper {
    position: relative;
}

.cards-scroller {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.cards-scroller::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* --- The Dark Green Card --- */
.course-card {
    min-width: 350px; /* Fixed width for consistency */
    max-width: 350px;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0; /* Prevent shrinking in flex container */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* Placeholder Image area (simulating transparency/grid in design) */
.card-img-top {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* This makes the image crop to fit, rather than stretch */
    display: block;
}

.card-body-dark {
    background-color: var(--color-primary); /* Dark Green */
    color: white;
    padding: 25px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body-dark h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body-dark p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.explore-link {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: opacity 0.2s;
}

.explore-link:hover {
    opacity: 0.8;
    color: white;
}

/* --- Navigation Buttons (Arrows) --- */
.btn-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 10px;
}

.btn-arrow:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-arrow svg {
    width: 20px;
    height: 20px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .course-card {
        min-width: 280px; /* Slightly smaller cards on mobile */
        max-width: 280px;
    }

    /* Ensure tabs are clearly scrollable */
    .tabs-scroll-wrapper {
        margin-right: 0; /* Bleed to edge */
    }
    .custom-tabs {
        padding-right: 0;
    }
}

/* =============================
   MOBILE FIX FOR PATHWAYS TABS
   ============================= */
@media (max-width: 768px) {

    /* 1. Target the specific scroll wrapper in this section */
    .pathways-section .tabs-scroll-wrapper {
        display: block;
        width: 100%;
        overflow-x: auto;           /* Enable horizontal scroll */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;        /* Space for scrollbar */

        /* Hide scrollbars */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pathways-section .tabs-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* 2. Force the tabs list to stay in one row */
    .pathways-section .custom-tabs {
        display: flex;              /* Ensure flex behavior */
        flex-wrap: nowrap !important; /* CRITICAL: Stop Bootstrap from stacking them */
        gap: 10px;                  /* Space between items */
        width: max-content;         /* Let the list grow as wide as it needs */
    }

    /* 3. Style the individual tab links for mobile */
    .pathways-section .custom-tabs .nav-link {
        white-space: nowrap;        /* Prevent text wrapping */
        flex-shrink: 0;             /* Prevent squashing */
        margin-right: 0;            /* Reset large desktop margins */
        padding: 10px 15px;         /* Comfortable touch targets */
        font-size: 1rem;
    }

}

/* =============================
   UNIVERSITY SPOTLIGHT SECTION
   ============================= */
.university-spotlight-section {
    padding: 100px 0;
    background-color: white;
}

/* Override Bootstrap row alignment to ensure top alignment */
.university-spotlight-section .row {
    align-items: flex-start !important; /* Forces columns to start at the top */
}

/* --- Left Column: Main Image Slider --- */
.uni-image-slider-container {
    position: relative;
    height: 520px; /* Reduced slightly to match the natural height of the right card */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.uni-image-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
}

.uni-image-slide.active {
    opacity: 1;
    visibility: visible;
}

.uni-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Floating KPI Elements --- */
.uni-float-box {
    position: absolute;
    padding: 10px 18px; /* Slightly more compact */
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    animation: subtleFloat 4s ease-in-out infinite;
}

.uni-float-box i { width: 18px; height: 18px; }

/* Float Variants */
.uni-float-dark { background-color: var(--color-primary); color: white; }
.uni-float-light { background-color: white; color: var(--color-primary); }

/* Float Positions */
.ufb-top-left { top: 30px; left: 30px; animation-delay: 0s; }
.ufb-top-right { top: 30px; right: 30px; animation-delay: 0.5s; }
.ufb-bottom-left { bottom: 30px; left: 30px; animation-delay: 1s; }
.ufb-bottom-right { bottom: 30px; right: 30px; animation-delay: 1.5s; }

@keyframes subtleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* --- Right Column: Details Slider Container --- */
.uni-details-slider-container {
    position: relative;
    /* Adjusted height to fit the card exactly, preventing the gap below */
    min-height: 480px;
    display: flex;
    align-items: flex-start; /* KEY FIX: Aligns card to the top */
}

.uni-details-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.uni-details-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

/* --- The University Card (Right Side) --- */
.uni-card {
    background-color: var(--color-primary);
    color: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 53, 43, 0.15);
    overflow: hidden;
    padding: 0;
    margin-bottom: 0; /* Remove any bottom margin */
}

/* Card Image Wrapper */
.uni-card-img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
}

.uni-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content Body */
.uni-card-body {
    padding: 30px;
}

.uni-location-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.uni-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: white;
}

.uni-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.uni-ranking {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 8px;
    width: fit-content;
}

.rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* --- Navigation Controls --- */
.uni-slider-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    /* KEY FIX: Reduced margin to bring nav closer to card */
    margin-top: 15px;
    padding: 0 5px;
}

.btn-uni-nav {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}

.btn-uni-nav:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

.btn-uni-nav svg {
    width: 28px;
    height: 28px;
}

/* Progress Bar */
.uni-progress-bar {
    flex-grow: 1;
    height: 3px;
    background-color: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.uni-progress-inner {
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .uni-image-slider-container {
        height: 350px;
        margin-bottom: 20px;
    }

    .uni-details-slider-container {
        min-height: auto;
        display: block;
    }

    .uni-details-slide {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .uni-details-slide.active { display: block; }

    .uni-slider-controls { margin-top: 20px; }
}

/* =============================
   REAL STORIES VIDEO SECTION
   ============================= */
.real-stories-section {
    padding: 80px 0;
    background-color: white;
}

.video-cards-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    /* Hide scrollbars */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.video-cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* --- The Video Card --- */
.video-card {
    position: relative;
    width: 300px;
    height: 480px; /* Tall aspect ratio like image */
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background-color: #000;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Top Left: Play Icon --- */
.play-icon-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s;
}

/* When playing, we can animate the icon or hide it.
   Here I keep it but maybe scale it down or change opacity
   as per "content visible" requirement */
.video-card.is-playing .play-icon-wrapper {
    opacity: 0; /* Optional: Fade out play icon when playing to see video better */
}

.play-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

/* --- Top Right: Location Badge --- */
.location-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: black;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Bottom: Green Gradient Overlay --- */
.video-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* The Green Gradient: From transparent to your Brand Green */
    background: linear-gradient(to top, var(--color-primary) 10%, rgba(0, 53, 43, 0.8) 50%, transparent 100%);
    padding: 60px 20px 25px 20px; /* Top padding creates space for gradient fade */
    color: white;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through to video */
}

.testimonial {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.5;
}

.university-name {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Navigation Buttons */
.carousel-navigation {
    display: none; /* Hidden by default */
}
.carousel-navigation.show-nav {
    display: block;
}

/* =============================
   LATEST NEWS SECTION
   ============================= */
.latest-news-section {
    padding: 80px 0;
    background-color: white;
}

/* Card Container */
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.3s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* Image Styling */
.news-img-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f0f0f0; /* Loading placeholder color */
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Body Content */
.news-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.news-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
    /* Limit title to 3 lines with ellipsis if too long */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: var(--color-accent);
}

/* Read More Link */
.news-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto; /* Pushes link to bottom if card heights vary */
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    width: fit-content;
}

.news-read-more:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Responsive Tweak */
@media (max-width: 768px) {
    .news-img-wrapper {
        height: 200px;
    }
    .news-title {
        font-size: 1.1rem;
    }
}

