/* --- 1. GLOBAL SETTINGS & TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #3498db;
    --dark-navy: #0d3b66;
    --school-yellow: #f4d35e;
    --text-main: #1a1c1e;
    --text-gray: #4a5568;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-bold: 0 15px 35px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. HERO SECTION (VIDEO & CENTERED TEXT) --- */
.hero {
    position: relative;
    height: 85vh;
    height: 85dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Fallback if video fails */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    display: block;
}

/* Dark overlay so white text stands out */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.58);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.hero-lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- 3. HERO BUTTONS --- */
/* --- 3. HERO BUTTONS --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.course-ticker-section {
    background: rgba(244, 211, 94, 0.08);
    padding: 18px 0 24px;
}

.course-ticker {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 14px 0;
}

.course-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}

.course-ticker-group {
    display: flex;
    flex: 0 0 auto;
    gap: 70px;
    padding-right: 70px;
}

.course-ticker-track span {
    color: var(--dark-navy);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Base style for both buttons */
.btn-primary-animate, 
.btn-outline-animate {
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s all ease;
    display: inline-block;
}

/* Explore Programs Button */
.btn-primary-animate {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

/* Apply Now Button */
.btn-outline-animate {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

/* Hover Effects */
.btn-primary-animate:hover,
.btn-outline-animate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-animate:hover {
    background-color: var(--white);
    color: var(--dark-navy);
}

/* --- 4. WHY CHOOSE OSAFUNE (SCREENSHOT STYLE) --- */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-center h2 {
    font-size: 2.5rem;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 700px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.feature-icon-box {
    font-size: 28px;
    color: var(--dark-navy);
    padding-top: 5px;
    flex-shrink: 0;
}

.feature-text {
    min-width: 0;
}

.feature-text h3 {
    font-size: 1.4rem;
    color: var(--dark-navy);
    margin: 0 0 10px 0;
    font-weight: 700;
    overflow-wrap: break-word;
}

.feature-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
}

/* --- 5. PRINCIPAL MESSAGE (SIDE-BY-SIDE) --- */
.principal-message {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.message-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.message-image-box {
    position: relative;
    flex: 0 0 360px;
    min-height: 420px;
    height: 420px;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.message-image-box img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    position: relative;
    z-index: 2;
    display: block;
}

.message-image-box .principal-photo {
    transition: transform 0.5s ease;
}

.message-image-box:hover .principal-photo {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    top: 18px; left: 18px;
    width: 110px; height: 110px;
    background: linear-gradient(135deg, var(--school-yellow), var(--primary-blue));
    border-radius: 24px;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* --- 6. PROGRAMS (2 CARDS IN 1 ROW) --- */
.programs-row {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.program-card {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-top: 6px solid var(--primary-blue);
    position: relative;
}

.program-card.secondary {
    border-top-color: var(--school-yellow);
}

/* --- 7. CTA & ANIMATIONS --- */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-main {
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-main:first-child { background: var(--primary-blue); color: #fff; }
.btn-main.download { background: var(--school-yellow); color: var(--dark-navy); }

/* Animation: Pulse */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}
.pulse { animation: pulse 2s infinite; }

/* Animation: Shine */
.shine { position: relative; overflow: hidden; }
.shine::after {
    content: ''; position: absolute;
    top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255,255,255,0.4);
    transform: rotate(30deg); transition: 0.5s;
}
.shine:hover::after { left: 120%; }

/* --- 8. RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero {
        height: 70vh;
        height: 70dvh;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-lead {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 25px;
    }

    .message-wrapper, .programs-row, .cta-buttons, .hero-buttons {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .btn-primary-animate, 
    .btn-outline-animate { 
        width: 100%; 
        max-width: 320px; 
        justify-content: center; 
        padding: 14px 24px;
    }
    
    .message-image-box { flex: 0 0 auto; width: 280px; margin-bottom: 30px; }
    .program-card { width: 100%; }
}

@media (max-width: 576px) {
    .hero {
        height: 60vh;
        height: 60dvh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn-primary-animate,
    .btn-outline-animate {
        width: 100%;
        max-width: 100%;
    }
}