:root {
    /* Colors extracted from reference site */
    --clr-bg-main: #f5f2ed;
    /* The off-white main background */
    --clr-brand-orange-main: #1e2666;
    /* Vibrant brand blue */
    --clr-brand-orange-light: #ffffff;
    /* Lighter accent (white) */
    --clr-text-dark: #3a3836;
    /* Dark brown/grey text */
    --clr-text-mid: #5e5a56;
    --clr-white: #ffffff;

    /* Typography */
    --font-heading: 'Roboto Serif', serif;
    --font-body: 'Roboto', sans-serif;

    /* Animation timing */
    --anim-duration: 0.6s;
    --anim-curve: cubic-bezier(0.16, 1, 0.3, 1);
    /* Emulates spring feel */
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* =========================================
   Layout & Reusable Utilities
   ========================================= */
main {
    background-color: var(--clr-bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    width: 100%;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-center .section-title,
.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.mb-5 {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.75rem;
    color: var(--clr-text-dark);
    margin-bottom: 1rem;
}

/* Tag style (e.g. Unique Benefits) */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.tag-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    background-color: #eee9e0;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--clr-text-mid);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--clr-brand-orange-main);
    border-radius: 50%;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--clr-brand-orange-light);
    color: var(--clr-text-dark);
}

.btn-primary-alt {
    background-color: var(--clr-brand-orange-main);
    color: var(--clr-white);
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-dark);
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

.btn-text {
    font-weight: 500;
    position: relative;
}

/* =========================================
   Layout Utilities
   ========================================= */
.split-50 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* =========================================
   Animations
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--anim-duration) var(--anim-curve),
        transform var(--anim-duration) var(--anim-curve);
    transition-delay: var(--delay, 0s);
}

.fade-in {
    opacity: 0;
    transition: opacity var(--anim-duration) ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =========================================
   Header Nav (Not explicitly in main screenshot but inferred)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-links a {
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--clr-brand-orange-main);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* =========================================
   1. Hero Section (Unlocking True Potential)
   ========================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background-color: var(--clr-bg-main);
    min-height: 100vh;
    gap: 0;
}

.hero-image-container {
    position: relative;
    padding: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    padding: 1.25rem 2rem;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    border-radius: 0;
}

.hero-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    height: 80px;
    /* strict match to .hero-badge height */
    gap: 0;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-nav a {
    flex: 1;
    /* Equal width rectangles */
    color: var(--clr-text-mid);
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    /* Rectangles attached to each other */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s var(--anim-curve);
    text-decoration: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    /* Transparent grey stroke */
}

.hero-nav a:last-child {
    border-right: none;
}

.hero-nav a:hover {
    background-color: rgba(0, 0, 0, 0.03);
    /* Hover logic remains the same */
}

.hero-nav a.active {
    font-weight: 500;
}



/* Sliding text effect for large center text */
.hero-nav a .nav-text-container {
    height: 3rem;
    /* Fixed height acting as a window */
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-nav a .text-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: min(1.5rem, 1.5vw);
    /* Scale dynamically for longer strings like French */
    white-space: nowrap;
    color: var(--clr-brand-orange-main);
    /* Orange/Red color matching drawing */
    font-weight: 400;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav a .text-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-dark);
    /* Ensure hover text matches active/dark color */
}

.hero-nav a:hover .text-wrapper {
    transform: translateY(-100%);
}

/* The 'Contact Us' button matching the reference */
.hero-nav a.nav-link-contact {
    background-color: #f7e6d2;
    /* Beige background from MindSpring */
    color: var(--clr-text-dark);
    font-weight: 500;
}

.hero-nav a.nav-link-contact:hover {
    background-color: #f0deca;
    /* Slightly darker on hover */
}

.hero-text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6rem;
}

.display-title {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--clr-text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-text-mid);
    max-width: 400px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 6rem 4rem 6rem;
}

.hero-stats h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hero-stats p {
    font-size: 0.85rem;
    color: var(--clr-text-mid);
}

/* =========================================
   2. Testimonial Banner
   ========================================= */
.testimonial-banner {
    width: 100%;
    /* layout handled by .split-50 */
}

.testimonial-text {
    background-color: var(--clr-bg-main);
    padding: 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--clr-text-mid);
    margin-bottom: 2rem;
}

.author {
    font-size: 1rem;
    font-weight: 700;
}

.banner-cta {
    /* layout handled by .split-50 */
    align-items: stretch;
}

.cta-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--clr-text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-orange {
    background-color: var(--clr-brand-orange-main);
    color: #ffffff;
}

.cta-orange:hover {
    background-color: #d17540;
}

.cta-beige {
    background-color: #f7e6d2;
}

.cta-beige:hover {
    background-color: #f0deca;
}

/* =========================================
   3. Distinctive Features
   ========================================= */
.features-section {
    background-color: var(--clr-bg-main);
    width: 100%;
    padding-top: 6rem;
}

.features-section .section-header {
    text-align: center;
}

.features-section .tag {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--clr-text-dark);
}

.features-section .dot {
    background-color: var(--clr-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
    text-align: center;
}

.feature-card {
    background-color: var(--clr-bg-main);
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: background-color 0.3s;
}

.feature-card:hover {
    background-color: var(--clr-white);
}

.icon-placeholder {
    color: var(--clr-brand-orange-main);
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 250px;
}

/* =========================================
   3b. Academic Programs (White Grid Area)
   ========================================= */
.academic-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: var(--clr-white);
    /* Reference shows a clean white section here */
}

.academic-image {
    width: 100%;
    height: 100%;
}

.academic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.academic-content {
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
}

.academic-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.academic-tabs a {
    font-size: 0.85rem;
    color: var(--clr-text-mid);
    font-weight: 500;
}

.academic-tabs a.active {
    color: var(--clr-text-dark);
}

.academic-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.academic-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--clr-text-dark);
}

.academic-text p {
    font-size: 1.1rem;
    color: var(--clr-text-mid);
    max-width: 400px;
    margin-bottom: 2.5rem;
}

.academic-text .btn-text {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   4. History & Vision (With Timeline)
   ========================================= */
.history-section {
    width: 100%;
    background-color: var(--clr-bg-main);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.history-image-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
    /* Create the sharp split border on the left */
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.history-image-sticky img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}


/* Content Right Side */
.history-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.history-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
}

.history-block> :not(.history-image) {
    padding-left: 6rem;
    padding-right: 6rem;
}

.history-block>span.tag {
    margin-top: 6rem;
    align-self: flex-start;
}

.history-block:last-child {
    border-bottom: none;
}

.history-desc {
    font-size: 1.1rem;
    color: var(--clr-text-mid);
    max-width: 450px;
    margin-bottom: 3rem;
}



/* =========================================
   5. News & Events
   ========================================= */
.news-section {
    width: 100%;
    background-color: var(--clr-white);
    padding-top: 10rem;
    padding-bottom: 8rem;
}

.news-section .section-header {
    text-align: center;
    margin-bottom: var(--sp-48);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
    text-align: left;
}

.news-card {
    display: flex;
    flex-direction: column;
    background-color: var(--clr-white);
}

.news-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-info {
    padding: 2.5rem;
    background-color: var(--clr-white);
    flex: 1;
}

.tags-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-info .tag-small {
    margin-bottom: 1rem;
}

.news-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.news-info .date {
    font-size: 0.85rem;
    color: var(--clr-text-mid);
}

.news-footer {
    background-color: var(--clr-brand-orange-light);
    padding: var(--sp-48);
    text-align: center;
}

.btn-browse {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
}

/* =========================================
   7. Form Section (Card Variant)
   ========================================= */
.form-section.card-variant {
    position: relative;
    width: 100%;
    padding: 8rem 0 10rem 0;
    background: url("./assets/form-bg.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section.card-variant::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.form-section-header,
.form-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
    color: white;
}

.header-left h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 500;
}

.header-right {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-right p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-brand-orange {
    background-color: var(--clr-brand-orange-main);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-brand-orange:hover {
    background-color: #e69130;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-card {
    background: white;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-card-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-card-left h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
}

.form-card-left p {
    color: var(--clr-text-mid);
    line-height: 1.6;
}

.card-features {
    display: flex;
    gap: 2rem;
    margin-top: auto;
    padding-top: 2rem;
}

.feature-tag {
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
}

.campus-form-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campus-form-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campus-form-card .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-left: 0.25rem;
}

.campus-form-card input,
.campus-form-card select {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #111;
    transition: all 0.3s ease;
}

.campus-form-card input::placeholder {
    color: #999;
}

/* Hidden native select (handled by JS, but good fallback) */
.campus-form-card select {
    display: none;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

/* The Trigger Button (looks like the input) */
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    /* Default unselected color (like placeholder) */
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger.has-value {
    color: #111;
    /* Darker color when selected */
}

.custom-select-trigger svg {
    color: #999;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--clr-brand-orange-main);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(252, 163, 61, 0.15);
}

.custom-select-wrapper.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

/* The Dropdown Menu (Light Theme to match website) */
.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff;
    /* White background */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    /* Faster transition */
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 0;
    color: #111111;
    /* Dark text for light bg */
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Custom Scrollbar for Dropdown */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    /* Darker thumb for light bg */
    border-radius: 10px;
}

/* OptGroup Labels */
.custom-optgroup-label {
    padding: 1rem 1.25rem 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Selectable Options */
.custom-option {
    position: relative;
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    /* Extra left padding for checkmark space */
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: flex-start;
    /* Align checkmark with first line of wrapped text */
    min-height: 48px;
    /* Ensure a good tap target even for single lines */
    line-height: 1.4;
    /* Better spacing for wrapped text */
}

.custom-option:hover {
    background-color: #f5f5f5;
    /* Light gray hover */
    color: #111;
}

.custom-option.selected {
    background-color: rgba(252, 163, 61, 0.1);
    /* Lighter Orange tint */
    color: var(--clr-brand-orange-main);
    font-weight: 500;
}

/* Checkmark logic */
.custom-option-check {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    /* Explicitly align with the first line of text */
    display: flex;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.15s ease;
}

.custom-option.selected .custom-option-check {
    opacity: 1;
    transform: scale(1);
    color: var(--clr-brand-orange-main);
}

.btn-brand-orange-full {
    width: 100%;
    background-color: var(--clr-brand-orange-main);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.btn-brand-orange-full:hover {
    background-color: #e69130;
}

/* Multi-Step Form Logic */
.form-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-brand-orange-main);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--clr-brand-orange-main);
    width: 33.33%;
    transition: width 0.4s ease;
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.form-step.form-step-active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-brand-orange {
    color: var(--clr-brand-orange-main);
}

.campus-form-card textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #111;
    transition: all 0.3s ease;
    resize: vertical;
}

.campus-form-card textarea:focus {
    outline: none;
    border-color: var(--clr-brand-orange-main);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(252, 163, 61, 0.15);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions-right {
    justify-content: flex-end;
}

.form-actions .btn-brand-orange-full {
    margin-top: 0;
}

.btn-outline-dark {
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--clr-text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    border-color: #999;
}

/* Custom Checkbox */
.checkbox-group {
    margin-top: 0.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--clr-text-mid);
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    min-width: 20px;
    height: 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
    border-color: var(--clr-brand-orange-main);
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--clr-brand-orange-main);
    border-color: var(--clr-brand-orange-main);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    background-color: var(--clr-bg-main);
    width: 100%;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--clr-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--clr-brand-orange-main);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--clr-text-dark);
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;
}

.faq-item.active .faq-question {
    color: var(--clr-brand-orange-main);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
    background-color: var(--clr-brand-orange-main);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.1, 0.7, 0.1, 1), padding 0.4s ease;
}

.faq-answer-content {
    padding-bottom: 1.5rem;
    color: var(--clr-text-mid);
    line-height: 1.6;
}

/* =========================================
   Storytelling Steps Section (Votre parcours)
========================================= */
.story-section {
    background-color: var(--clr-bg-main);
    width: 100%;
}

.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-bottom: 3rem; /* padding at bottom of timeline */
}

/* Base vertical line */
.timeline-line-bg {
    position: absolute;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.4); /* Faded white track */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
}

/* Progressive fill vertical line */
.timeline-line-fill {
    position: absolute;
    width: 4px;
    background: linear-gradient(135deg, var(--clr-brand-orange-main), #ff6b3b);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 2;
    height: 0%; /* JS will animate this */
}

.story-step {
    position: relative;
    z-index: 5;
    width: 50%;
    padding: 2rem 5rem; /* Pushes content far from central axis */
    min-height: 250px; /* High value spacing */
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-step.active-step {
    opacity: 1;
    transform: translateY(0);
}

.story-step.left {
    left: 0;
    justify-content: flex-end;
    text-align: right;
}

.story-step.right {
    left: 50%;
    justify-content: flex-start;
    text-align: left;
}

.step-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.6);
    width: 66px;
    height: 66px;
    background-color: var(--clr-brand-orange-main);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 3;
    box-shadow: 0 0 0 8px var(--clr-white), 0 8px 25px rgba(252, 163, 61, 0.35);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
}

.story-step.active-step .step-number {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.story-step.active-step:hover .step-number {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 0 8px var(--clr-white), 0 12px 30px rgba(252, 163, 61, 0.5);
}

/* Align numbers precisely on the center line */
.story-step.left .step-number {
    right: -33px; /* Half width */
}

.story-step.right .step-number {
    left: -33px;
}

.step-content {
    max-width: 380px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--clr-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.step-content p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--clr-text-mid);
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustment for mobile: revert to left-aligned stacking */
@media (max-width: 768px) {
    .story-timeline {
        padding-left: 1.5rem; /* space for the line on the extreme left */
    }

    .timeline-line-bg, .timeline-line-fill {
        left: 30px;
        transform: none;
    }

    .story-step {
        width: 100%;
        padding: 2rem 0 2rem 5rem;
        min-height: auto;
        justify-content: flex-start !important;
        text-align: left !important;
        left: 0 !important;
        margin-bottom: 2rem;
    }
    
    .story-step.left .step-number, .story-step.right .step-number {
        left: -20px; /* 30px (line pos) - 25px width / 2 */
        right: auto;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        box-shadow: 0 0 0 6px var(--clr-bg-main), 0 4px 15px rgba(252, 163, 61, 0.3);
    }
    
    .step-content h3 {
        font-size: 1.4rem;
    }
    
    .step-content p {
        font-size: 1.05rem;
    }
}

/* =========================================
   Formations Linguistiques Section (Premium Minimalist)
========================================= */

.formations-section {
    background-color: var(--clr-bg-main);
    padding-bottom: 0; /* Remove bottom padding as images touch the next section */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Top border for the whole grid */
}

.formation-image-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.05); /* Divider between cards */
    transition: background-color 0.4s ease;
}

.formation-image-card:last-child {
    border-right: none;
}

.formation-image-card:hover {
    background-color: #ffffff; /* Highlight background on hover instead of zoom box */
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    background-color: #e2e8f0;
    /* Removed border-radius */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(15%); /* Slight desaturation for premium feel */
}

.card-hover-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    /* Keep round for the icon only */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translate(-10px, 10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    color: var(--clr-text-dark);
}

.formation-image-card:hover .card-image-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%); /* Full color on hover */
}

.formation-image-card:hover .card-hover-arrow {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

.card-hover-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.card-hover-text .card-subtitle {
    color: #ffffff;
    margin: 0;
}

.formation-image-card:hover .card-hover-text {
    opacity: 1;
    transform: translateY(0);
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.formation-image-card:hover .card-image-wrapper::after {
    opacity: 1;
}

.card-content-box {
    padding: 2rem 1.5rem;
    text-align: left; /* Align left for editorial look */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Removed floating negative margins, backgrounds, border-radius, and box shadows */
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--clr-white);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.card-title {
    font-family: var(--font-heading);
    color: var(--clr-text-dark);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-subtitle {
    font-family: var(--font-body);
    color: var(--clr-text-mid);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Specific colors for language levels matching previous design */
.level-a2 {
    background-color: #6B7F96;
}

.level-b1 {
    background-color: #1DA1F2;
}

.level-b2 {
    background-color: #F59E0B;
}

.level-c1 {
    background-color: #EF4444;
}

.level-c2 {
    background-color: #8B5CF6;
}

@media (max-width: 991px) {
    .formations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .formation-image-card {
        border-right: 1px solid rgba(0, 0, 0, 0.05); /* re-apply for inner items */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .formation-image-card:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 767px) {
    .formations-grid {
        grid-template-columns: 1fr;
    }
    .formation-image-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    .formation-image-card:last-child {
        border-bottom: none;
    }

    .card-content-box {
        margin: -2rem 0.5rem 0 0.5rem;
    }
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large number to allow full expansion */
}

/* =========================================
   Location Section
   ========================================= */
.location-section {
    background-color: var(--clr-bg-main);
    width: 100%;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: var(--clr-white);
    padding: 6rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col {
    justify-content: space-between;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-brand-orange-main);
    margin-bottom: 2rem;
}

.footer-bottom-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.footer-badge {
    background-color: var(--clr-brand-orange-main);
    color: var(--clr-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem;
    border-radius: 4px;
    line-height: 1;
}

.copyright {
    color: var(--clr-text-mid);
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-dark);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--clr-text-mid);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--clr-brand-orange-main);
}

.contact-col .footer-btn {
    margin-top: 2rem;
    align-self: flex-start;
}

/* Mobile Navigation Button (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 1024px) {

    .hero-section,
    .history-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image-container {
        height: 50vh;
    }

    .display-title {
        font-size: 3.5rem;
    }

    .features-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .brand-col {
        grid-column: 1 / -1;
    }

    .testimonial-banner {
        grid-template-columns: 1fr;
    }

    .banner-cta {
        grid-column: span 1;
        flex-direction: column;
    }

    .form-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .form-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem;
    }
}

@media (max-width: 768px) {

    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        padding: 0;
        text-align: left;
        margin-top: 3rem;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .display-title {
        font-size: 2.75rem;
    }

    .hero-content,
    .history-content {
        padding: 2.5rem 1.5rem;
    }

    .hero-text-area {
        padding: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--clr-bg-main);
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding-top: 6rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        border-bottom: none;
    }

    .hero-nav.active {
        right: 0;
    }

    .hero-nav a {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        height: 70px;
        flex: none;
        justify-content: flex-start;
        padding-left: 2rem;
    }

    .hero-nav a .text-wrapper {
        font-size: 1.25rem !important;
    }

    /* Remove hover translate effect on mobile */
    .hero-nav a:hover .text-wrapper {
        transform: none;
    }

    .hero-nav a .text-wrapper::after {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .header-actions .btn {
        text-align: center;
    }

    .form-card {
        padding: 2rem;
    }

    .card-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}