/* Global Styles */
:root {
    --primary: #A9112C;
    /* CS Educacional / St. Croix Red */
    --primary-light: #C52A44;
    --primary-dark: #8a0e24;
    --secondary: #0f172a;
    /* Sophisticated deep navy */
    --secondary-light: #1e293b;
    --accent: #EAB308;
    /* Premium Gold/Yellow */
    --accent-light: #fef9c3;

    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #020617;

    --text-main: #1e293b;
    --text-muted: #475569;
    --text-light: #94a3b8;

    --font-main: 'Mulish', sans-serif;
    --font-display: 'Mulish', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-premium: 0 0 40px rgba(169, 17, 44, 0.1);

    --container-max: 1216px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-8 {
    margin-top: 4rem;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.rounded-lg {
    border-radius: var(--radius-md);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(169, 17, 44, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 15px 30px -10px rgba(169, 17, 44, 0.6);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(169, 17, 44, 0.5);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
}

.btn-large {
    padding: 1.125rem 3rem;
    font-size: 1.125rem;
}

/* Header */
.site-header {
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cs-logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary);
}

.partner-logo {
    height: 40px;
    filter: grayscale(0.2);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Typography Parametrization */
h1,
.h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--secondary);
}

h2,
.h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--secondary);
}

h3,
.h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1px;
    color: var(--secondary);
}

/* Hero Section */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)), url('../assets/campus_hero.jpg');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0 100px;
    color: var(--text-main);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    /* bare visible background */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    background: var(--bg-gray);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-shadow: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    font-weight: 800;
    color: var(--primary);
    display: inline;
}

.hero .subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-text {
    font-size: 1.125rem;
    margin-bottom: 1.7rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.microcopy {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.microcopy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.section-gray {
    background-color: var(--bg-gray);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    z-index: 1;
}



.card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(169, 17, 44, 0.2);
}



.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

.info-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fffbeb;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    color: #92400e;
    font-weight: 500;
    max-width: 600px;
    margin: 4rem auto 0;
}

/* Check List */
.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.rounded-image {
    border-radius: var(--radius-md);
    width: 100%;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fef2f2;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Authority Sections */
.authority-logo-hero {
    height: 80px;
    margin: 0 auto 2rem;
    display: block;
}

.cs-authority-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-premium);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(169, 17, 44, 0.1);
}

.cs-authority-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--primary);
    border-radius: 0 0 10px 10px;
}

.cs-authority-card h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.1;
}

/* St Croix Section */
.st-croix-section {
    background-color: white;
    text-align: center;
}

.partner-logo-large {
    height: 70px;
    margin: 0 auto 1.5rem;
    display: block;
}

.partner-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.partner-feature {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.partner-feature i {
    color: var(--primary);
    background: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.partner-feature:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(169, 17, 44, 0.1);
}

.partner-feature span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
}

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-container {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-container:hover .gallery-img {
    transform: scale(1.05);
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.step {
    background: white;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-md);
    position: relative;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(169, 17, 44, 0.1);
}

.step-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 16px -4px rgba(169, 17, 44, 0.4);
    border: 3px solid white;
    z-index: 2;
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.step p {
    color: var(--text-muted);
}

/* Hero Footer */
.section-hero-footer {
    background: linear-gradient(rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.95)), url('../assets/classroom_empty.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.cta-card {
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.cta-card h2 {
    margin-bottom: 1.5rem;
}

.microcopy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.microcopy-item-final {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.microcopy-item-final i {
    flex-shrink: 0;
}

.dot {
    color: var(--text-light);
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 2rem auto 0;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.footer-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE IMPROVEMENTS
   ======================================== */



/* Desktop & Tablet (≤1024px) */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Tablet & Mobile (≤768px) */
@media (max-width: 768px) {

    .hero-text {
        font-size: 1rem;
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding: 80px 1.5rem 60px;
    }

    .section {
        padding: 60px 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* 1. MICROCOPIES - Stack vertically */
    .microcopy {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .microcopy .dot {
        display: none;
    }
    
    .microcopy-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .microcopy-row .dot {
        display: none;
    }
    
    /* 2. CARDS - Center content on mobile */
    .card {
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .card .icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 3. INFO ALERT - Larger icon and better layout */
    .info-alert {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .info-alert i {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    /* 4. SPLIT LAYOUT - Reverse order (image first) */
    .split-layout .image-content {
        order: -1;
    }
    
    .split-layout .text-content h3,
    .split-layout .text-content .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 5. CS AUTHORITY CARD - Reduce lateral padding */
    .cs-authority-card {
        padding: 3rem 1.5rem;
    }
    
                    /* 6. STEPS - Stack vertically on mobile */
    .steps-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .step {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
    
    /* 7. FEATURES GRID - Better mobile layout */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }

    /* Partner features grid */
    .partner-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Campus gallery - stack vertically */
    .campus-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-img {
        height: 220px;
    }
}

/* Mobile Specific (≤600px) */
@media (max-width: 600px) {
    
    /* Hero adjustments */
    .hero {
        padding: 70px 1rem 50px;
    }
    
    .badge-hero {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    /* Microcopy items - better spacing */
    .microcopy-item,
    .microcopy-item-final {
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .microcopy-item i,
    .microcopy-item-final i {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* Info alert - full width friendly */
    .info-alert {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .info-alert i {
        margin: 0 auto;
    }
    
    /* CS Authority Card - more breathing room */
    .cs-authority-card {
        padding: 2.5rem 1.25rem;
    }
    
    .cs-authority-card h2 {
        font-size: 1.75rem;
    }
    
                    /* Steps - adjust for smaller screens */
    .step {
        padding: 2rem 1.25rem;
    }
    
    .step h3 {
        font-size: 1.25rem;
    }
    
    /* Section padding reduction */
    .section {
        padding: 60px 1rem;
    }
    
    /* CTA Buttons - Full width for better thumb reach */
    .btn-large {
        width: 100%;
        max-width: 400px;
    }
    
    .cta-container {
        width: 100%;
    }
    
    .cta-container .btn {
        width: 100%;
        max-width: 400px;
    }
    
    /* Disclaimer - Better readability */
    .disclaimer {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* CTA Card */
    .cta-card {
        padding: 3rem 1.5rem;
    }
}

/* Extra Small Mobile (≤375px) */
@media (max-width: 375px) {
    
    .step {
        padding: 1.75rem 1rem;
    }
    
    .cs-authority-card {
        padding: 2rem 1rem;
    }
    
    .info-alert {
        padding: 1.25rem 1rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 0.75rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.25rem;
    }
}

/* Additional Utilities */
.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.partner-badge {
    display: inline-block;
    background: rgba(169, 17, 44, 0.1);
    color: var(--primary);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(169, 17, 44, 0.2);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-transform: uppercase;
}