/* Hero Section Styles - Scoped to prevent CSS pollution */

/* Base Hero Styles - Only affect hero section elements */
section.hero,
.hero-section {
    height: auto;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

/* Default hero height for simple heroes */
section.hero:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success),
.hero-section:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success) {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

section.hero .hero-content,
.hero-section .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Typography Scaling - Scoped to hero sections */
section.hero h1,
.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
    max-width: 100%;
}

section.hero .tagline,
section.hero .hero-subtitle,
.hero-section .tagline,
.hero-section .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Hero Variants - Scoped to prevent pollution */

/* Simple Hero - for about.html */
section.hero.hero-simple,
.hero-section.hero-simple {
    background: var(--bg-darker);
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

section.hero.hero-simple::before,
.hero-section.hero-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Program Hero - for frlp.html, gcip.html */
section.hero.hero-program,
.hero-section.hero-program {
    background: var(--bg-darker);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

section.hero.hero-program::before,
.hero-section.hero-program::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
}

section.hero.hero-program::after,
.hero-section.hero-program::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Complex Hero - for index.html, academics.html */
section.hero.hero-complex,
.hero-section.hero-complex {
    background: var(--bg-darker);
    color: var(--white);
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-complex .hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Application Hero - for apply.html */
.hero.hero-application {
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0f0f0f 100%);
    color: var(--white);
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Hero - for apply-submit.html */
.hero.hero-success {
    background: linear-gradient(180deg, var(--bg-darker) 0%, #0f0f0f 100%);
    color: var(--white);
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Components - Scoped to prevent pollution */

section.hero .hero-label,
.hero-section .hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

section.hero .hero-description,
.hero-section .hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

section.hero .cta-button,
.hero-section .cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
    border: none;
    cursor: pointer;
}

section.hero .cta-button:hover,
.hero-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

section.hero .cta-button.secondary,
.hero-section .cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

section.hero .cta-button.secondary:hover,
.hero-section .cta-button.secondary:hover {
    background: var(--white);
    color: var(--bg-darker);
}

section.hero .cta-buttons,
.hero-section .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Journey Steps - for academics.html - Scoped */
section.hero .hero-journey,
.hero-section .hero-journey {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

section.hero .hero-journey-title,
.hero-section .hero-journey-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-align: center;
}

section.hero .hero-journey-steps,
.hero-section .hero-journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

section.hero .journey-step,
.hero-section .journey-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

section.hero .journey-step:hover,
.hero-section .journey-step:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-purple);
    transform: translateY(-3px);
}

section.hero .journey-step-number,
.hero-section .journey-step-number {
    position: absolute;
    top: -15px;
    left: 1rem;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

section.hero .journey-step h3,
.hero-section .journey-step h3 {
    font-size: 1rem;
    color: var(--white);
    margin: 0.5rem 0;
    font-weight: 600;
}

section.hero .journey-step p,
.hero-section .journey-step p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Checklist - for apply.html - Scoped to prevent pollution */
section.hero .checklist,
.hero-section .checklist {
    max-width: 800px;
    margin: 2rem auto 0;
    width: 100%;
}

section.hero .checklist ul,
.hero-section .checklist ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

section.hero .checklist li,
.hero-section .checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

section.hero .checklist li::before,
.hero-section .checklist li::before {
    content: '✓';
    color: var(--light-purple);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Success Elements - Only for hero sections, not apply-submit page (which has its own styles) */
section.hero .success-icon,
.hero-section .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--white);
    animation: scaleIn 0.6s ease-out;
}

section.hero .success-title,
.hero-section .success-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

section.hero .success-message,
.hero-section .success-message {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    section.hero .hero-content,
    .hero-section .hero-content {
        padding: 1.5rem;
    }

    section.hero .hero-journey-steps,
    .hero-section .hero-journey-steps {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }

    section.hero .checklist ul,
    .hero-section .checklist ul {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    section.hero:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success),
    .hero-section:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success) {
        min-height: calc(100vh - 80px);
        padding: 80px 0 3rem;
    }

    section.hero.hero-complex,
    section.hero.hero-program,
    section.hero.hero-application,
    section.hero.hero-success,
    .hero-section.hero-complex,
    .hero-section.hero-program,
    .hero-section.hero-application,
    .hero-section.hero-success {
        min-height: calc(100vh - 80px);
    }

    section.hero.hero-complex,
    .hero-section.hero-complex {
        align-items: flex-start;
        padding-top: 2rem;
    }

    section.hero.hero-complex .hero-content,
    .hero-section.hero-complex .hero-content {
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    section.hero .hero-content,
    .hero-section .hero-content {
        padding: 1rem 1.5rem;
    }

    section.hero h1,
    .hero-section h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    section.hero .tagline,
    section.hero .hero-subtitle,
    .hero-section .tagline,
    .hero-section .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 1rem;
    }

    section.hero .hero-description,
    .hero-section .hero-description {
        font-size: clamp(0.95rem, 2vw, 1.05rem);
        margin-bottom: 1.5rem;
    }

    section.hero .hero-journey,
    .hero-section .hero-journey {
        margin-top: 1.5rem;
    }

    section.hero .hero-journey-steps,
    .hero-section .hero-journey-steps {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    section.hero .journey-step,
    .hero-section .journey-step {
        padding: 1rem 0.8rem;
    }

    section.hero .journey-step-number,
    .hero-section .journey-step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    section.hero .checklist ul,
    .hero-section .checklist ul {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    section.hero .cta-button,
    .hero-section .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    section.hero .cta-buttons,
    .hero-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    section.hero .success-icon,
    .hero-section .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    section.hero:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success),
    .hero-section:not(.hero-complex):not(.hero-program):not(.hero-application):not(.hero-success) {
        min-height: calc(100vh - 80px);
        padding: 80px 0 2rem;
    }

    section.hero.hero-complex,
    section.hero.hero-program,
    section.hero.hero-application,
    section.hero.hero-success,
    .hero-section.hero-complex,
    .hero-section.hero-program,
    .hero-section.hero-application,
    .hero-section.hero-success {
        min-height: calc(100vh - 80px);
    }

    section.hero .hero-content,
    .hero-section .hero-content {
        padding: 0.8rem 1rem;
    }

    section.hero .hero-journey-steps,
    .hero-section .hero-journey-steps {
        grid-template-columns: 1fr;
    }

    section.hero .cta-button,
    .hero-section .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Theme Variations - Scoped */
section.hero.hero-program.purple-theme,
.hero-section.hero-program.purple-theme {
    --primary-color: var(--primary-purple);
    --light-color: var(--light-purple);
}

section.hero.hero-program.green-theme,
.hero-section.hero-program.green-theme {
    --primary-color: #10B981;
    --light-color: #34D399;
}

section.hero.hero-program.green-theme .hero-label,
.hero-section.hero-program.green-theme .hero-label {
    background: rgba(16, 185, 129, 0.2);
}

section.hero.hero-program.green-theme .cta-button,
.hero-section.hero-program.green-theme .cta-button {
    background: linear-gradient(135deg, #10B981, #34D399);
}