/* style.css */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Colors */
    --clr-primary: #9B0000;      /* Dark Red */
    --clr-primary-hover: #7A0000;
    --clr-accent: #E5B300;       /* Yellow */
    --clr-text-dark: #1A1A24;    /* Very dark blue/black for headings */
    --clr-text-body: #333333;    /* Dark grey for body text */
    --clr-white: #FFFFFF;
    
    /* Overlay Gradient (Warm/Yellowish tint as seen in design) */
    --clr-overlay-start: rgba(245, 238, 220, 0.95);
    --clr-overlay-end: rgba(245, 238, 220, 0.85);

    /* Typography (Using clamp for fluid responsiveness) */
    --fs-h1: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h2: clamp(1.25rem, 2vw + 0.875rem, 1.5rem);
    --fs-body: clamp(0.9375rem, 1vw + 0.75rem, 1.125rem);
    
    /* Layout */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --duration-fast: 0.2s;
    --duration-med: 0.6s;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--clr-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, picture {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: clamp(500px, 80vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-block: 4rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        var(--clr-overlay-start) 0%, 
        var(--clr-overlay-end) 100%
    );
    backdrop-filter: blur(2px); /* Adds subtle softening to background image */
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 1000px;
    margin-inline: auto;
}

.hero__title {
    font-size: var(--fs-h1);
    color: var(--clr-text-dark);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--fs-h2);
    color: var(--clr-text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.hero__description {
    font-size: var(--fs-body);
    max-width: 900px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 50px;
    transition: transform var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
    cursor: pointer;
    width: 100%;
}

.btn:hover, .btn:focus-visible {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    border: 2px solid var(--clr-primary);
}

.btn--primary:hover, .btn--primary:focus-visible {
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(155, 0, 0, 0.2);
}

.icon {
    flex-shrink: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-med) var(--ease-out),
                transform var(--duration-med) var(--ease-out);
    will-change: opacity, transform;
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries (Mobile First structure applied)
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row;
        width: auto;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        min-width: 160px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .hero {
        padding-block: 6rem;
    }
}

/* ==========================================================================
   In-Page Navigation (Sticky Menu)
   ========================================================================== */
:root {
    --clr-nav-text: var(--clr-text-body);
    --clr-nav-border: rgba(0, 0, 0, 0.08);
    --clr-nav-active: var(--clr-primary);
}

.page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-nav-border);
    /* Subtle shadow for depth when sticky */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Mobile-first: allow full-width bleeding for the horizontal scroll */
.page-nav__container {
    padding-inline: 0; 
}

.page-nav__list {
    display: flex;
    list-style: none;
    /* Enable horizontal scrolling for smaller screens */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    gap: clamp(1.5rem, 3vw, 2.5rem); /* Fluid gap spacing */
    padding-inline: var(--container-padding);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.page-nav__list::-webkit-scrollbar {
    display: none;
}

.page-nav__item {
    flex-shrink: 0; /* Prevents text from wrapping on small screens */
}

.page-nav__link {
    display: block;
    padding-block: 1.5rem;
    color: var(--clr-nav-text);
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    transition: color var(--duration-fast) ease;
    white-space: nowrap;
}

.page-nav__link:hover {
    opacity: 0.7;
}

/* Active State Styling */
.page-nav__link.is-active {
    color: var(--clr-nav-active);
    font-weight: 600;
}

/* The thick red bottom border for the active item */
.page-nav__link.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Align perfectly over the nav container border */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-primary);
    border-radius: 4px 4px 0 0;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .page-nav__container {
        padding-inline: var(--container-padding);
    }
    
    .page-nav__list {
        justify-content: center; /* Center the menu items on desktop */
        overflow-x: visible;
        padding-inline: 0;
    }
}


/* ==========================================================================
   Overview Section Base
   ========================================================================== */
:root {
    --fs-small: 0.875rem;
    --fs-stat-num: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    --clr-bg-light: #F7F3EC;
    --clr-border-light: rgba(0, 0, 0, 0.08);
}

.overview-section {
    background-color: var(--clr-bg-light);
    padding-block: clamp(4rem, 8vw, 6rem);
}

/* ==========================================================================
   Top Row: Text and Media
   ========================================================================== */
.overview__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* Content & Typography */
.overview__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: rgba(155, 0, 0, 0.08); /* Transparent primary */
    color: var(--clr-primary);
    font-size: var(--fs-small);
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: var(--fs-h2);
    color: var(--clr-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: var(--fs-body);
    color: var(--clr-text-body);
    margin-bottom: 2.5rem;
    max-width: 95%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    /* Default to 2 columns on mobile */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.stat-item__num {
    font-size: var(--fs-stat-num);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-item__label {
    font-size: var(--fs-small);
    color: var(--clr-text-body);
    font-weight: 500;
}

/* Media Frame (Right Side Image) */
.overview__media {
    position: relative;
    width: 100%;
}

.media-frame {
    position: relative;
    border: 2px solid var(--clr-accent);
    border-radius: clamp(20px, 4vw, 40px);
    padding: clamp(8px, 1.5vw, 16px);
    background-color: var(--clr-white);
    /* Subtle shadow to lift it off the background */
    box-shadow: 0 20px 40px rgba(0,0,0,0.03); 
}

.media-image {
    width: 100%;
    height: auto;
    border-radius: clamp(12px, 3vw, 24px);
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ==========================================================================
   Bottom Row: Feature Cards
   ========================================================================== */
.overview__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: transform var(--duration-fast) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 
  Hardcoding the hex values directly ensures the background color 
  will render even if CSS variables are scoped incorrectly.
*/
.card--peach { 
    background-color: #FDF2EC !important; 
}

.card--grey { 
    background-color: #F2F4F5 !important; 
}

.card--purple { 
    background-color: #F3EDF7 !important; 
}

.card--green { 
    background-color: #EDF5EE !important; 
}

/* Icon Colors */
.card--peach .feature-card__icon, .card--peach .feature-card__bg-icon { color: #C27A53; }
.card--grey .feature-card__icon, .card--grey .feature-card__bg-icon { color: #5A6D7C; }
.card--purple .feature-card__icon, .card--purple .feature-card__bg-icon { color: #7B5C9C; }
.card--green .feature-card__icon, .card--green .feature-card__bg-icon { color: #4A7A53; }

/* Card Content Styling */
.feature-card__icon {
    margin-bottom: 1rem;
    display: inline-flex;
}

.feature-card__bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.05;
    z-index: -1;
    transform: rotate(-15deg);
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-text-dark);
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: var(--fs-small);
    color: var(--clr-text-body);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet & Desktop: Switch to 4 columns and add the yellow dividers */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0; /* Remove gap so dividers align perfectly */
    }

    .stat-item {
        padding-right: 1.5rem;
        padding-left: 0.5rem;
    }

    .stat-item:first-child {
        padding-left: 0;
    }
    
    /* The Yellow Vertical Divider */
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%; /* Centers the line vertically */
        height: 70%;
        width: 2px;
        background-color: #E5B300; /* Yellow accent color */
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .overview__top {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .overview__features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .overview__top {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 5rem;
    }
}

/* ==========================================================================
   Eligibility Section Styles
   ========================================================================== */
:root {
    --clr-text-muted: #6B6B76;
    --border-radius-lg: 16px;
}

.eligibility-section {
    background-color: var(--clr-bg-light); /* Matches the warm beige background */
    padding-block: clamp(3rem, 6vw, 5rem);
}

.eligibility__container {
    max-width: 1280px; /* Restrict width for better readability */
}

/* Header Adjustments */
.eligibility__header {
    margin-bottom: 2rem;
}

.badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: rgba(155, 0, 0, 0.08); /* Transparent primary (Light Red) */
    color: var(--clr-primary);               /* Dark Red */
    font-size: var(--fs-small);
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure the eligibility section header handles the layout correctly */
.eligibility__header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

/* Specific Title Color override to match design exactly */
.eligibility-section .section-title {
    color: var(--clr-primary); /* Dark Red */
    margin-top: 1rem;
}

.eligibility-section .section-desc {
    color: var(--clr-text-muted); /* Slightly lighter grey for the subtitle */
    max-width: 800px;
}

/* ==========================================================================
   Eligibility Box
   ========================================================================== */
.eligibility__box {
    background-color: var(--clr-white);
    border: 1px solid var(--clr-accent); /* Yellow/Golden border */
    border-radius: var(--border-radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Very subtle shadow */
}

.eligibility__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.eligibility__icon {
    color: var(--clr-primary); /* Dark red color for the icon */
    flex-shrink: 0;
    margin-top: 0.15rem; /* Optical alignment with the first line of text */
}

.eligibility__text {
    font-size: var(--fs-body);
    color: var(--clr-text-body);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet and above adjustments */
@media (min-width: 768px) {
    .eligibility__item {
        align-items: center; /* Center align when text forms fewer lines */
    }
    
    .eligibility__icon {
        margin-top: 0;
    }
}

/* ==========================================================================
   Process Section Layout
   ========================================================================== */
/* ==========================================================================
   Process Section Layout (UPDATED)
   ========================================================================== */
.process-section {
    /* Hardcoded color to ensure it overrides everything else */
    background-color: #FDF9EE !important; 
    padding-block: clamp(4rem, 8vw, 6rem);
}

.process__header {
    text-align: center;
    max-width: 900px;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the children horizontally */
}

/* 
  By default, your global `.badge` class has `align-self: flex-start`.
  We need to override that specifically here so it stays in the center.
  Make sure you REMOVE the white background override from the previous code!
*/
.process-badge {
    align-self: center !important; 
    margin-bottom: 1.5rem;
}

.process__desc {
    font-size: var(--fs-body);
    color: var(--clr-text-body);
    line-height: 1.6;
    text-align: center; /* Force center alignment */
    margin: 0 auto;
}

/* ==========================================================================
   Process Grid & Interactive Cards
   ========================================================================== */
.process__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Base Card Setup */
.process-card {
    position: relative;
    min-height: 200px;
    width: 100%;
    cursor: pointer;
    perspective: 1000px; /* Optional: adds depth if you ever want to flip */
}

/* Focus outline for accessibility */
.process-card:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 4px;
    border-radius: 8px;
}

/* 
   FRONT STATE 
   (Visible by default: Icon + Text)
*/
.process-card__front {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    
    /* Animation using transforms & opacity */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity var(--duration-med) ease, 
                transform var(--duration-med) ease,
                visibility var(--duration-med) ease;
}

.process-card__icon {
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    /* Ensure icon sizes correctly */
    display: flex;
    justify-content: center;
    align-items: center;
}

.process-card__title {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    font-weight: 500;
    color: var(--clr-text-dark);
}

/* 
   BACK STATE 
   (Hidden by default: White Card + Text)
*/
.process-card__back {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-color: var(--clr-white);
    border: 1.5px solid var(--clr-accent); /* Golden/Yellow border */
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    
    /* Animation using transforms & opacity */
    opacity: 0;
    transform: translateY(15px);
    visibility: hidden;
    transition: opacity var(--duration-med) ease, 
                transform var(--duration-med) ease,
                visibility var(--duration-med) ease;
}

.process-card__text {
    font-size: var(--fs-small);
    color: var(--clr-text-body);
    margin: 0;
    line-height: 1.5;
    text-align: left; /* Align left as per screenshot */
}

/* ==========================================================================
   Hover & Focus Interactions (The Reveal)
   ========================================================================== */

/* Hide front layer on hover */
.process-card:hover .process-card__front,
.process-card:focus-within .process-card__front {
    opacity: 0;
    transform: translateY(-15px);
    visibility: hidden;
}

/* Show back layer (white card) on hover */
.process-card:hover .process-card__back,
.process-card:focus-within .process-card__back {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .process__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    /* Increase card height slightly on desktop for longer text */
    .process-card {
        min-height: 220px; 
    }
}

/* ==========================================================================
   Curriculum / Insights Section
   ========================================================================== */
:root {
    /* The specific cream background requested */
    --clr-bg-cream: #FCF8F2; 
    --clr-card-hero-bg: #FFF3E1; /* Light warm tint for the first card */
}

.curriculum-section {
    background-color: var(--clr-bg-cream);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.curriculum__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Base Card Styling */
.curriculum-card {
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

/* 1. Hero Card (Top Left) - No Image */
.card--hero {
    background-color: var(--clr-card-hero-bg);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the text */
    /* Removed padding-bottom: 0 and min-height so it behaves like a normal card */
}

.curriculum-card__main-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    color: var(--clr-text-dark);
    font-weight: 600;
    line-height: 1.25;
    z-index: 2;
    margin: 0; /* Removed bottom margin since there is no image below it */
}

/* 
   Note: You can now safely delete these two classes from your CSS 
   as they are no longer needed:
   - .curriculum-card__image-wrapper 
   - .curriculum-card__image 
*/

.curriculum-card__image-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    max-width: 280px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}

.curriculum-card__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

/* 2. Standard List Cards (White with subtle shadow) */
.card--list {
    background-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card--list:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.curriculum-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-text-dark);
    margin-bottom: 1.5rem;
}

/* 3. Accent Card (Bottom Right - Dark Red) */
.card--accent {
    background-color: var(--clr-primary); /* Dark Red (#9B0000) */
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(155, 0, 0, 0.15);
}

.card--accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(155, 0, 0, 0.25);
}

.card--accent .curriculum-card__title {
    color: #FFFFFF;
}

/* ==========================================================================
   Plus Bullet List Styling
   ========================================================================== */
.plus-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.plus-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--clr-text-body);
}

/* The Red Plus (+) Icon */
.plus-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: -2px; /* Optical alignment */
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-primary);
}

/* Overrides for the Red Accent Card */
.card--accent .plus-list li {
    color: rgba(255, 255, 255, 0.95);
}

.card--accent .plus-list li::before {
    color: #FFFFFF;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 768px) {
    .curriculum__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .curriculum__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Audience Layout & Grid
   ========================================================================== */
.audience-section {
    background-color: var(--clr-bg-cream);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.audience__grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, auto);
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ==========================================================================
   Base Card Styles
   ========================================================================== */
.audience-card {
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.audience-card:hover {
    transform: translateY(-4px);
}

/* Title inside the first card */
.audience-card__main-title {
    font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
    color: var(--clr-text-dark);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 2rem;
}

/* Item Content Formatting */
.audience-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.audience-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.audience-item__desc {
    font-size: var(--fs-small);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Dashed Dividers
   ========================================================================== */
.dashed-divider {
    border: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
    margin-block: 1.5rem;
    width: 100%;
}

.divider--light {
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.divider--dark {
    border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Card Theme Variations
   ========================================================================== */
:root {
    --clr-card-pale: #FDF6E3;
    --clr-card-red: var(--clr-primary);
    --clr-card-gold: #E8BC52;
}

/* 1. Pale Yellow Card */
.card--pale {
    background-color: var(--clr-card-pale);
    color: var(--clr-text-dark);
}

.card--pale .audience-item__desc { color: var(--clr-text-body); }

/* 2. White Cards */
.card--white {
    background-color: #FFFFFF;
    color: var(--clr-text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card--white .audience-item__desc { color: var(--clr-text-body); }

/* 3. Dark Red Card */
.card--red {
    background-color: var(--clr-card-red);
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(155, 0, 0, 0.15);
}

.card--red .audience-item__desc { color: rgba(255, 255, 255, 0.9); }

/* 4. Gold Card */
.card--gold {
    background-color: var(--clr-card-gold);
    color: var(--clr-text-dark);
    box-shadow: 0 8px 24px rgba(232, 188, 82, 0.2);
}

.card--gold .audience-item__desc { color: rgba(26, 26, 36, 0.85); } /* Slightly darker text for readability */

/* 5. Image Cards */
.card--image {
    padding: 0; /* Remove padding so image bleeds to edges */
    background-color: #EFEFEF; /* Fallback while loading */
    height: 100%;
    width: 100%;
}

.card--image:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease; /* Subtle zoom effect */
}

.card--image:hover .card-img {
    transform: scale(1.03);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet (768px and up) - 2 Columns */
@media (min-width: 768px) {
    .audience__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (1024px and up) - 4 Columns */
@media (min-width: 1024px) {
    .audience__grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
}


/* ==========================================================================
   Benefits Layout
   ========================================================================== */
:root {
    --clr-bg-contrast: #FFFFFF;
    --clr-icon-base: #5A6D7C;
    --clr-box-peach: #FDF2EC;
    --clr-box-grey: #F2F4F5;
    --clr-box-lavender: #F3EDF7;
    --clr-box-green: #EDF5EE;
}

.benefits-section {
    background-color: var(--clr-bg-contrast);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.benefits__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left Content Area */
.benefits__content {
    display: flex;
    flex-direction: column;
}

/* Alternate light badge for this specific section */
.badge--light {
    background-color: #FFF3F5;
    color: var(--clr-text-dark);
}

/* Text primary override for the title */
.text-primary {
    color: var(--clr-primary) !important;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.benefits__content .section-desc {
    max-width: 95%;
    transition: opacity 0.3s ease;
}

/* Wrapper for smooth JS text transitions */
.dynamic-wrapper {
    transition: opacity 0.3s ease-in-out;
}

.dynamic-wrapper.is-fading {
    opacity: 0;
}

/* ==========================================================================
   Right Side: Icon Grid
   ========================================================================== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Icon Button Base */
.benefit-btn {
    border: none;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--clr-icon-base);
    background-color: var(--clr-white); /* Fallback */
    /* Add subtle initial shadow */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.benefit-btn svg {
    transition: transform 0.3s ease, color 0.3s ease;
}

.benefit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.benefit-btn:hover svg {
    transform: scale(1.1);
}

/* Button Focus State for Accessibility */
.benefit-btn:focus-visible {
    outline: 2px solid var(--clr-primary);
    outline-offset: 4px;
}

/* Background Color Classes */
.bg-peach { background-color: var(--clr-box-peach); }
.bg-grey { background-color: var(--clr-box-grey); }
.bg-lavender { background-color: var(--clr-box-lavender); }
.bg-green { background-color: var(--clr-box-green); }

/* 
   Active State Styling 
   Overrides all background colors and turns text/icon white
*/
.benefit-btn.is-active {
    background-color: var(--clr-primary) !important;
    color: var(--clr-white);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(155, 0, 0, 0.25);
    /* Prevents clicking the already active item */
    pointer-events: none; 
}

.benefit-btn.is-active svg {
    transform: scale(1.1);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .benefits__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .benefits__container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    
    /* Allow the left content to stay centered visually alongside the grid */
    .benefits__content {
        padding-right: 2rem;
    }
}

/* ==========================================================================
   Scholarship CTA Banner Section
   ========================================================================== */
.scholarship-cta {
    background-color: var(--clr-bg-cream); /* Continues the cream background */
    padding-block: clamp(3rem, 6vw, 4rem);
}

.cta-banner {
    position: relative;
    background-color: var(--clr-primary); /* Dark Red */
    border-radius: 16px; /* Matches the rounded corners in the design */
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(155, 0, 0, 0.15);
    z-index: 1;
}

/* ==========================================================================
   CTA Content
   ========================================================================== */
.cta-banner__content {
    color: #FFFFFF;
    text-align: center;
    z-index: 2; /* Keep above decorative elements */
    max-width: 600px;
}

.cta-banner__title {
    font-size: clamp(1.5rem, 3vw + 0.75rem, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #FFFFFF !important;
}

.cta-banner__desc {
    font-size: var(--fs-body);
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   CTA Action & Buttons
   ========================================================================== */
.cta-banner__action {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* White Button Variant (Add to your global button styles if missing) */
.btn--white {
    background-color: transparent;
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF;
    font-weight: 600;
}

.btn--white:hover, 
.btn--white:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Decorative SVG Elements (Absolute Positioned)
   ========================================================================== */
.cta-banner__decor {
    position: absolute;
    pointer-events: none; /* Prevents decorations from blocking clicks */
    z-index: 0;
}

/* Left Squiggle */
.cta-banner__decor--left {
    top: 0;
    left: 0;
    transform: translate(-20%, -10%);
}

/* Right Crest Watermark */
.cta-banner__decor--right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(20%);
    opacity: 0.15; /* Blends it softly into the background */
    width: clamp(120px, 15vw, 180px); /* Scales proportionally */
}

/* Arrow (Hidden on mobile to prevent layout clutter) */
.cta-banner__decor--arrow {
    display: none;
    top: -40px;
    right: -140px;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .cta-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
    
    .cta-banner__content {
        text-align: left;
        flex: 1;
        padding-right: 2rem;
    }
    
    /* Reveal the arrow pointing to the button on larger screens */
    .cta-banner__decor--arrow {
        display: block;
    }
}

/* ==========================================================================
   Program Curriculum Tables Section
   ========================================================================== */
:root {
    --clr-table-header-bg: #091C32; /* Dark Navy Blue */
    --clr-table-border: rgba(9, 28, 50, 0.25);
    --clr-year-title: #B58444; /* Gold/Brown */
    
    /* Table Body Themes */
    --clr-theme-peach: #F6ECE2;
    --clr-theme-grey: #EEF1F3;
    --clr-theme-lavender: #E8E4EC;
}

.curriculum-tables-section {
    background-color: var(--clr-bg-cream);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.curriculum-tables__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* Force badge to center if it isn't already */
.badge--center {
    align-self: center !important;
}

.text-primary {
    color: var(--clr-primary) !important; /* Dark Red Title */
    margin-top: 0.5rem;
}

/* ==========================================================================
   Tables Grid Layout
   ========================================================================== */
.curriculum-tables__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 4vw, 2rem);
    align-items: start; /* Prevents stretching to match tallest sibling */
}

/* ==========================================================================
   Individual Year Module
   ========================================================================== */
.curric-year__title {
    color: var(--clr-year-title);
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    text-align: center;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.curric-year__wrapper {
    position: relative;
    border-radius: 12px;
    padding-bottom: 1.5rem; /* Space for the overlapping button */
}

/* Theme Backgrounds */
.theme-peach { background-color: var(--clr-theme-peach); }
.theme-grey { background-color: var(--clr-theme-grey); }
.theme-lavender { background-color: var(--clr-theme-lavender); }

.table-responsive {
    overflow-x: auto;
    border-radius: 12px; /* Smooth corners for the table boundaries */
}

/* ==========================================================================
   Table Specific Styling
   ========================================================================== */
.curric-table {
    width: 100%;
    border-collapse: collapse; /* Borders merge cleanly */
    min-width: 320px; /* Ensures legibility on tiny screens */
    text-align: left;
}

.curric-table th, 
.curric-table td {
    padding: clamp(0.75rem, 2vw, 1.125rem);
    border: 1px solid var(--clr-table-border);
    font-size: var(--fs-small);
}

/* Specific Column Widths */
.col-ref { width: 20%; text-align: center; }
.col-title { width: 55%; }
.col-ects { width: 25%; text-align: center; }

/* Center text in Ref and ECTS columns */
.curric-table td:nth-child(1),
.curric-table td:nth-child(3) {
    text-align: center;
    font-weight: 500;
}

.curric-table td:nth-child(2) {
    color: var(--clr-text-body);
    line-height: 1.5;
}

/* Header Styling */
.curric-table thead th {
    background-color: var(--clr-table-header-bg);
    color: #FFFFFF;
    font-weight: 600;
    border-color: var(--clr-table-header-bg); /* Removes inner border clash */
}

/* Dynamic Row Toggle Class */
.toggle-row {
    transition: opacity var(--duration-fast) ease, display var(--duration-fast) ease allow-discrete;
}

.curric-year__wrapper.is-collapsed .toggle-row {
    display: none;
    opacity: 0;
}

/* ==========================================================================
   Show More / Show Less Button
   ========================================================================== */
.btn-table-toggle {
    position: absolute;
    bottom: -15px; /* Pulls it down to overlap the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--clr-primary); /* Dark Red */
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(155, 0, 0, 0.2);
    transition: background-color var(--duration-fast) ease, transform var(--duration-fast) ease;
    z-index: 10;
}

.btn-table-toggle:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Tablet & Desktop */
@media (min-width: 1024px) {
    .curriculum-tables__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ==========================================================================
   Prospects Section (Success Beyond the DBA)
   ========================================================================== */
:root {
    --clr-bg-tan: #F2E3D0; /* The darker beige bottom half */
    --clr-number-bg: #FFF0F0;
    --clr-accordion-border: #F0F0F0;
    --clr-cta-icon-bg: #FDF9EE;
}

.prospects-section {
    position: relative;
    z-index: 1;
    background-color: var(--clr-bg-cream); /* Top half matches previous sections */
    padding-block: clamp(4rem, 8vw, 6rem);
}

/* Two-tone background split */
.prospects__bg-split {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%; /* Covers the bottom 45% of the section */
    background-color: var(--clr-bg-tan);
    z-index: -1;
}

.prospects__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Accordion Card
   ========================================================================== */
.prospects__card {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

/* Accordion Wrapper & Connecting Line */
.accordion {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* The vertical grey line connecting the numbers */
.accordion::before {
    content: '';
    position: absolute;
    left: calc(1rem + 15px); /* Center of the 30px number circle, offset by trigger's padding */
    top: 2rem;
    bottom: 2rem;
    width: 1px;
    background-color: #E6E6E6;
    z-index: 0;
}

/* Accordion Item */
.accordion__item {
    border-bottom: 1px solid var(--clr-accordion-border);
}

.accordion__item:last-child {
    border-bottom: none;
}

/* Trigger Button */
.accordion__trigger {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    position: relative;
    z-index: 1; /* Keep above the vertical line */
    transition: background-color var(--duration-fast) ease;
}

.accordion__trigger:hover {
    background-color: var(--clr-primary);
}

.accordion__trigger:hover .accordion__title,
.accordion__trigger:hover .accordion__icon {
    color: #FFFFFF;
}

.accordion__trigger:hover .accordion__number {
    background-color: #FFFFFF;
}

/* The Number Circle */
.accordion__number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--clr-number-bg);
    color: var(--clr-primary);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    /* This white shadow creates the clean "break" in the vertical line */
    box-shadow: 0 0 0 10px #FFFFFF; 
}

.accordion__title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--clr-text-dark);
    padding-right: 1rem;
}

.accordion__icon {
    flex-shrink: 0;
    color: var(--clr-text-dark);
    transition: transform var(--duration-fast) ease;
}

/* 
   Content Animation via Grid
   (Hardware accelerated height transition) 
*/
.accordion__content {
    display: grid;
    grid-template-rows: 0fr; /* Collapsed by default */
    transition: grid-template-rows 0.3s ease-out;
}

.accordion__inner {
    overflow: hidden;
    padding-left: calc(1rem + 30px + 1.25rem); /* Align text with title */
    padding-right: 1rem;
}

.accordion__inner p {
    font-size: var(--fs-small);
    color: var(--clr-text-body);
    padding-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.accordion__inner p:last-child {
    margin-bottom: 1.5rem;
}

/* Active State */
.accordion__item.is-active .accordion__content {
    grid-template-rows: 1fr; /* Expands to natural height */
}

.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg); /* Flip chevron */
}

/* ==========================================================================
   Bottom CTA Layout
   ========================================================================== */
.prospects__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.prospects__cta-icon {
    background-color: var(--clr-cta-icon-bg);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.prospects__cta-icon img {
    max-width: 100%;
    height: auto;
}

.prospects__cta-title {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    font-weight: 700;
    color: var(--clr-text-dark);
    margin-bottom: 0.5rem;
}

.prospects__cta-desc {
    font-size: var(--fs-body);
    color: var(--clr-text-body);
}

/* Desktop Alignment Adjustment */
@media (min-width: 768px) {
    .accordion__title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Join Us / Contact Section Variables
   ========================================================================== */
:root {
    --clr-gold: #E5B300;
    --clr-glass-bg: rgba(45, 45, 45, 0.45);
    --clr-glass-border: rgba(255, 255, 255, 0.3);
    --clr-input-border: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Layout & Background
   ========================================================================== */
.join-section {
    position: relative;
    padding-block: clamp(4rem, 10vw, 8rem);
    color: #FFFFFF;
    overflow: hidden;
    z-index: 1;
}

.join__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.join__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient overlay for text readability (dark to transparent) */
.join__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.6) 40%, 
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* On mobile, make the gradient vertical to protect text above the form */
@media (max-width: 1023px) {
    .join__overlay {
        background: linear-gradient(
            to bottom, 
            rgba(0, 0, 0, 0.9) 0%, 
            rgba(0, 0, 0, 0.7) 40%, 
            rgba(0, 0, 0, 0.3) 100%
        );
    }
}

.join__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 6vw, 4rem);
    align-items: center;
}

/* ==========================================================================
   Left Content
   ========================================================================== */
.join__content {
    position: relative;
    max-width: 600px;
}

.join__title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    color: var(--clr-gold);
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.join__desc {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Decorative Stars */
.decor-star {
    color: rgba(255, 255, 255, 0.4);
    position: absolute;
}

.decor-star--main {
    top: -20px;
    left: -40px;
}

.decor-star--small {
    bottom: -10px;
    right: 20px;
}

/* ==========================================================================
   Right Content (Glassmorphism Form Card)
   ========================================================================== */
.glass-card {
    background-color: var(--clr-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 16px;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-card__title {
    text-align: center;
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

/* The small underline under the title */
.glass-card__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.counselling-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    position: relative;
    width: 100%;
}

/* Standard Input Styling */
.form-control {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--clr-input-border);
    border-radius: 50px;
    padding: 0.875rem 1.5rem;
    color: #FFFFFF;
    font-size: 0.9375rem;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Composite Inputs (Phone and Math Captcha) */
.input-composite {
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-input-border);
    border-radius: 50px;
    background-color: transparent;
    overflow: hidden;
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.input-composite:focus-within {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-composite .form-control {
    border: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none; /* Let the wrapper handle focus styling */
}

/* Custom Country Select */
.country-select {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    color: #333;
    padding: 0.875rem 0.5rem 0.875rem 1.25rem;
    height: 100%;
    border-radius: 50px 0 0 50px;
}

.form-select {
    background: transparent;
    border: none;
    font-weight: 500;
    color: #333;
    outline: none;
    cursor: pointer;
    margin-left: 0.25rem;
}

/* Captcha Block */
.captcha-label {
    background-color: #FFFFFF;
    color: #333;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    height: 100%;
    border-radius: 50px 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

/* Submit Button */
.btn--submit {
    background-color: #FFF0F0; /* Very light pink/white */
    color: var(--clr-text-dark); /* Dark text */
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease;
    margin-top: 0.5rem;
}

.btn--submit:hover, .btn--submit:focus-visible {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn--submit:active {
    transform: translateY(0);
}

/* Form Feedback */
.form-feedback {
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
    display: none; /* Hidden by default */
}

.form-feedback.is-error {
    color: #FFB3B3;
    display: block;
}

.form-feedback.is-success {
    color: #A3E4D7;
    display: block;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .join__container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 5rem;
    }
    
    .decor-star--main {
        top: -40px;
        left: -60px;
    }
}

/* ==========================================================================
   Forminator Plugin CSS Overrides (Glassmorphism Theme)
   ========================================================================== */

/* Target the inputs inside our specific wrapper */
.custom-forminator-wrapper .forminator-ui .forminator-input,
.custom-forminator-wrapper .forminator-ui .forminator-select,
.custom-forminator-wrapper .forminator-ui .forminator-textarea {
    background-color: transparent !important;
    border: 1px solid var(--clr-input-border) !important;
    border-radius: 50px !important;
    padding: 0.875rem 1.5rem !important;
    color: #FFFFFF !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
    height: auto !important;
}

/* Placeholder color styling */
.custom-forminator-wrapper .forminator-ui .forminator-input::placeholder,
.custom-forminator-wrapper .forminator-ui .forminator-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Focus states */
.custom-forminator-wrapper .forminator-ui .forminator-input:focus,
.custom-forminator-wrapper .forminator-ui .forminator-select:focus,
.custom-forminator-wrapper .forminator-ui .forminator-textarea:focus {
    outline: none !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

/* Submit Button Styling */
.custom-forminator-wrapper .forminator-ui .forminator-button-submit {
    background-color: #FFF0F0 !important;
    color: var(--clr-text-dark) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    width: 100% !important; /* Forces it to be full width */
    cursor: pointer !important;
    transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease !important;
    margin-top: 0.5rem !important;
}

.custom-forminator-wrapper .forminator-ui .forminator-button-submit:hover {
    background-color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Field labels (if you choose to show them in Forminator settings) */
.custom-forminator-wrapper .forminator-ui .forminator-label {
    color: #FFFFFF !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

/* Adjust spacing between Forminator rows */
.custom-forminator-wrapper .forminator-ui .forminator-row {
    margin-bottom: 1.25rem !important;
}

/* ==========================================================================
   FAQ Section Variables & Layout
   ========================================================================== */
:root {
    --clr-faq-border: #F1D98B; /* Golden yellow for the dividers */
}

.faq-section {
    background-color: var(--clr-bg-cream);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.faq__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Sidebar Styling */
.faq__sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.faq__title {
    font-size: clamp(2.25rem, 4vw + 1rem, 3rem);
    color: var(--clr-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.faq__icon-wrapper {
    color: var(--clr-gold);
    filter: drop-shadow(0 4px 6px rgba(229, 179, 0, 0.15));
}

/* ==========================================================================
   Base Accordion Logic (CRITICAL FIX FOR THE BUG)
   ========================================================================== */
.accordion__content {
    display: grid;
    grid-template-rows: 0fr; /* Collapsed by default */
    transition: grid-template-rows 0.3s ease-out;
}

/* 
  BUG FIX: The inner wrapper must have NO vertical padding or margins. 
  If it has padding, the grid will never fully collapse to 0px height.
*/
.accordion__inner {
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0; 
}

/* We apply the spacing to the paragraph INSIDE the wrapper instead. 
   When the wrapper shrinks to 0 height via grid, this spacing vanishes. */
.accordion__inner p {
    font-size: var(--fs-small);
    color: var(--clr-text-body);
    margin-top: 0;
    margin-bottom: 1.5rem; /* This provides the bottom spacing safely */
    line-height: 1.6;
}

.accordion__item.is-active .accordion__content {
    grid-template-rows: 1fr;
}

.accordion--faq .accordion__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==========================================================================
   FAQ Specific Accordion Styling Overrides
   ========================================================================== */
.accordion--faq::before {
    display: none; /* Removes the vertical line from previous accordion style */
}

.accordion--faq .accordion__item {
    border-bottom: 1px solid var(--clr-faq-border);
    transition: border-color var(--duration-fast) ease;
}

.accordion--faq .accordion__item:first-child {
    border-top: 1px solid var(--clr-faq-border);
}

.accordion--faq .accordion__trigger {
    padding: 1.25rem 1.25rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes chevron to right */
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--duration-fast) ease;
}

.accordion--faq .accordion__trigger:hover,
.accordion--faq .accordion__trigger:focus-visible {
    background-color: var(--clr-primary);
}

.accordion--faq .accordion__trigger:hover .accordion__title,
.accordion--faq .accordion__trigger:focus-visible .accordion__title,
.accordion--faq .accordion__trigger:hover .accordion__icon,
.accordion--faq .accordion__trigger:focus-visible .accordion__icon {
    color: #FFFFFF;
}

.accordion--faq .accordion__title {
    font-weight: 400;
    color: var(--clr-text-dark);
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.125rem);
    line-height: 1.5;
    padding-right: 1.5rem;
    transition: color var(--duration-fast) ease;
}

.accordion--faq .accordion__icon {
    flex-shrink: 0;
    color: var(--clr-text-dark);
    transition: transform 0.3s ease, color var(--duration-fast) ease;
}

/* Flip arrow when active */
.accordion__item.is-active .accordion__icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 1024px) {
    .faq__container {
        grid-template-columns: 320px 1fr;
        gap: 5rem;
    }
    
    .faq__sidebar {
        position: sticky;
        top: 120px; 
        height: max-content;
    }
}

/* ==========================================================================
   SPECIFICITY OVERRIDES  (added last on purpose)
   --------------------------------------------------------------------------
   Elementor and the Hello theme ship their own rules for buttons, headings
   and links. Those were beating the rules above, so everything below is
   scoped to the landing-page <body> class, which raises specificity enough
   to win without needing !important on every single line.

   WordPress automatically adds these body classes for custom page templates:
     .page-template-template-bba-landing
     .page-template-template-mba-landing
     .page-template-template-dba-landing
   ========================================================================== */

/* -------- 1. Submit Application: white text on hover -------- */
body[class*="-landing"] .btn.btn--primary,
body[class*="-landing"] .btn.btn--primary:link,
body[class*="-landing"] .btn.btn--primary:visited {
    background-color: var(--clr-primary);
    color: #FFFFFF;
    border: 2px solid var(--clr-primary);
}

body[class*="-landing"] .btn.btn--primary:hover,
body[class*="-landing"] .btn.btn--primary:focus,
body[class*="-landing"] .btn.btn--primary:focus-visible,
body[class*="-landing"] .btn.btn--primary:active {
    background-color: var(--clr-primary);
    color: #FFFFFF;
    border-color: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(155, 0, 0, 0.2);
}

/* -------- 2. Every section shares the same 1280px content width -------- */
body[class*="-landing"] .container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Kill any per-section width that disagreed with the global container */
body[class*="-landing"] .eligibility__container,
body[class*="-landing"] .benefits__container,
body[class*="-landing"] .faq__container,
body[class*="-landing"] .join__container,
body[class*="-landing"] .prospects__container,
body[class*="-landing"] .hero__container {
    max-width: 1280px;
}

/* -------- 5. Scholarship CTA: white heading + white button text -------- */
body[class*="-landing"] .cta-banner .cta-banner__title,
body[class*="-landing"] .cta-banner h2 {
    color: #FFFFFF;
}

body[class*="-landing"] .cta-banner .cta-banner__desc {
    color: rgba(255, 255, 255, 0.95);
}

body[class*="-landing"] .btn.btn--white,
body[class*="-landing"] .btn.btn--white:link,
body[class*="-landing"] .btn.btn--white:visited,
body[class*="-landing"] .btn.btn--white:hover,
body[class*="-landing"] .btn.btn--white:focus,
body[class*="-landing"] .btn.btn--white:focus-visible {
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    background-color: transparent;
}

body[class*="-landing"] .btn.btn--white:hover,
body[class*="-landing"] .btn.btn--white:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
}

/* -------- 6. Buttons: smaller, still pill-rounded -------- */
body[class*="-landing"] .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9375rem;
    border-radius: 50px;
    gap: 0.5rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    body[class*="-landing"] .btn {
        width: auto;
        min-width: 160px;
    }
}

/* Show More / Show Less toggle under the curriculum tables */
body[class*="-landing"] .btn-table-toggle {
    padding: 0.4rem 1.1rem;
    font-size: 0.8125rem;
    border-radius: 50px;
    background-color: var(--clr-primary);
    color: #FFFFFF;
    line-height: 1.4;
}

body[class*="-landing"] .btn-table-toggle:hover,
body[class*="-landing"] .btn-table-toggle:focus-visible {
    background-color: var(--clr-primary);
    color: #FFFFFF;
}

/* -------- 7 + 8 + 9. Accordions: white-on-red hover, padding, polish -------- */

/* Shared trigger treatment for BOTH accordions */
body[class*="-landing"] .accordion .accordion__trigger {
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

body[class*="-landing"] .accordion .accordion__trigger:hover,
body[class*="-landing"] .accordion .accordion__trigger:focus-visible {
    background-color: var(--clr-primary);
}

/* Title + chevron turn white on hover */
body[class*="-landing"] .accordion .accordion__trigger:hover .accordion__title,
body[class*="-landing"] .accordion .accordion__trigger:focus-visible .accordion__title,
body[class*="-landing"] .accordion .accordion__trigger:hover .accordion__icon,
body[class*="-landing"] .accordion .accordion__trigger:focus-visible .accordion__icon {
    color: #FFFFFF;
}

body[class*="-landing"] .accordion .accordion__title,
body[class*="-landing"] .accordion .accordion__icon {
    transition: color 0.2s ease, transform 0.3s ease;
}

/* Numbered circle inverts to white on hover (timeline accordion only) */
body[class*="-landing"] .accordion .accordion__trigger:hover .accordion__number {
    background-color: #FFFFFF;
    color: var(--clr-primary);
}

/* Numbered "Success Beyond" accordion: padding + alignment */
body[class*="-landing"] .prospects__card .accordion__trigger {
    padding: 1.25rem 1rem;
}

body[class*="-landing"] .prospects__card .accordion__inner {
    padding-left: calc(1rem + 30px + 1.25rem);
    padding-right: 1rem;
}

body[class*="-landing"] .prospects__card .accordion__inner p:first-child {
    padding-top: 0.5rem;
}

body[class*="-landing"] .prospects__card .accordion__inner p:last-child {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

/* FAQ accordion: padding + alignment */
body[class*="-landing"] .accordion--faq .accordion__trigger {
    padding: 1.25rem;
}

body[class*="-landing"] .accordion--faq .accordion__inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

body[class*="-landing"] .accordion--faq .accordion__inner p:first-child {
    padding-top: 0.5rem;
}

body[class*="-landing"] .accordion--faq .accordion__inner p:last-child {
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}


/* ==========================================================================
   TABLET RESPONSIVENESS + MOBILE ACCORDIONS
   --------------------------------------------------------------------------
   Scoped to the landing body class for the same specificity reasons as the
   block above.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Global overflow guard.
   Grid/flex children default to min-width:auto, which means they refuse to
   shrink below their content and push the page sideways. This is what caused
   the horizontal scrollbar on tablet.
   -------------------------------------------------------------------------- */
body[class*="-landing"] .curriculum-tables__grid > *,
body[class*="-landing"] .benefits__container > *,
body[class*="-landing"] .faq__container > *,
body[class*="-landing"] .join__container > *,
body[class*="-landing"] .overview__features > *,
body[class*="-landing"] .process-grid > * {
    min-width: 0;
}

/* Decorative icons must never create scroll */
body[class*="-landing"] .feature-card,
body[class*="-landing"] .cta-banner,
body[class*="-landing"] .join__content {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT (768px - 1023px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Curriculum: 2 columns instead of 1, but never 3 (3 overflows) */
    body[class*="-landing"] .curriculum-tables__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Audience cards: 2 across reads better than 4 on tablet */
    body[class*="-landing"] .audience__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(240px, auto);
    }

    /* Feature cards 2-up */
    body[class*="-landing"] .overview__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE (1024px - 1199px)
   The 3-column curriculum grid does not fit here because each table has a
   320px min-width. Keep it at 2 columns until there is genuinely room.
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-width: 1199px) {
    body[class*="-landing"] .curriculum-tables__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Only go 3-wide once there is actual space for it */
@media (min-width: 1200px) {
    body[class*="-landing"] .curriculum-tables__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tables: let them shrink, and scroll internally if they must */
body[class*="-landing"] .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 1199px) {
    body[class*="-landing"] .curric-table {
        min-width: 0;
    }
}

/* --------------------------------------------------------------------------
   ACCORDIONS ON MOBILE
   The answer text was indented ~66px to clear the number circle, which left
   very little usable width on a phone. Below 768px the indent is dropped and
   the number circle shrinks.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

    /* ---- Numbered "Success Beyond" accordion ---- */
    body[class*="-landing"] .prospects__card {
        padding: 1rem 0.75rem;
    }

    body[class*="-landing"] .prospects__card .accordion__trigger {
        padding: 1rem 0.75rem;
        align-items: flex-start;
    }

    /* Smaller circle, less margin, so the title gets more room */
    body[class*="-landing"] .prospects__card .accordion__number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        margin-right: 0.75rem;
        box-shadow: 0 0 0 6px #FFFFFF;
    }

    body[class*="-landing"] .prospects__card .accordion__title {
        font-size: 1rem;
        line-height: 1.4;
        padding-right: 0.5rem;
    }

    /* Drop the deep indent - answers use the full card width */
    body[class*="-landing"] .prospects__card .accordion__inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Realign the vertical connector line with the smaller circle */
    body[class*="-landing"] .prospects__card .accordion::before {
        left: calc(0.75rem + 12px);
    }

    /* ---- FAQ accordion ---- */
    body[class*="-landing"] .accordion--faq .accordion__trigger {
        padding: 1rem 0.75rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body[class*="-landing"] .accordion--faq .accordion__title {
        font-size: 0.9375rem;
        line-height: 1.45;
        padding-right: 0;
    }

    body[class*="-landing"] .accordion--faq .accordion__inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* ---- Shared ---- */
    body[class*="-landing"] .accordion__icon {
        width: 18px;
        height: 18px;
        margin-top: 0.15rem;
    }

    body[class*="-landing"] .accordion__inner p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* Long words / URLs must not force sideways scroll */
    body[class*="-landing"] .accordion__title,
    body[class*="-landing"] .accordion__inner p {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* --------------------------------------------------------------------------
   Accordion on tablet - roomier than phone, tighter than desktop
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    body[class*="-landing"] .prospects__card .accordion__inner {
        padding-left: calc(0.75rem + 30px + 1rem);
    }

    body[class*="-landing"] .prospects__card .accordion__trigger {
        padding: 1.15rem 0.75rem;
    }

    body[class*="-landing"] .prospects__card .accordion::before {
        left: calc(0.75rem + 15px);
    }
}

/* --------------------------------------------------------------------------
   Misc tablet polish
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    /* The hand-drawn arrow in the scholarship banner has no room on tablet */
    body[class*="-landing"] .cta-banner__decor--arrow {
        display: none;
    }

    /* Keep decorative stars from poking outside the section */
    body[class*="-landing"] .decor-star--main {
        left: auto;
        position: relative;
    }

    /* Tables stay readable rather than cramped */
    body[class*="-landing"] .curric-table th,
    body[class*="-landing"] .curric-table td {
        padding: 0.7rem 0.6rem;
        font-size: 0.8125rem;
    }
}