/* === DESIGN SYSTEM === */
:root {
    --primary: #5F9EAD;
    --primary-dark: #4A8A99;
    --primary-light: #EDF5F7;
    --accent: #F7A828;
    --accent-dark: #D4891A;
    --neutral-900: #1A1F2B;
    --neutral-700: #374151;
    --neutral-400: #9CA3AF;
    --neutral-200: #E5E7EB;
    --neutral-100: #F8FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.2s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { color: var(--neutral-900); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background: var(--neutral-100); }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--neutral-400); margin-bottom: 48px; font-size: 1.1rem; }
.center-cta { text-align: center; margin-top: 40px; }
.text-accent { color: var(--accent); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}
.logo-img { width: 36px; height: 36px; border-radius: 50%; }
.footer-logo-img { width: 40px; height: 40px; border-radius: 50%; }
.nav.scrolled .nav-logo { color: var(--neutral-900); }
.logo-icon { font-size: 1.5rem; }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--neutral-700); }
.nav.scrolled .nav-links a:hover { color: var(--primary); }
.nav-cta { font-size: 0.9rem !important; padding: 10px 20px !important; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--neutral-900); }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #4A8A99 0%, #5F9EAD 50%, #6FB3C2 100%);
    padding: 160px 0 100px;
    color: var(--white);
}
.hero-content { max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* === COURSE FEATURED === */
.course-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
}
.course-video {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--neutral-200);
    box-shadow: var(--shadow-lg);
}
.course-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.course-meta {
    list-style: none;
    margin: 20px 0;
}
.course-meta li {
    padding: 6px 0;
    font-size: 0.95rem;
}
.course-price {
    margin: 24px 0;
}
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
}
.price-note {
    color: var(--neutral-400);
    font-size: 0.9rem;
    margin-left: 8px;
}

/* === FEATURE CARDS === */
.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--neutral-400); font-size: 0.95rem; }

/* === VIDEO CARDS === */
.video-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--neutral-200);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}
.video-card:hover .play-btn { background: var(--accent); }
.video-card h4 { padding: 16px 16px 4px; font-size: 1rem; }
.video-views { padding: 0 16px 16px; display: block; color: var(--neutral-400); font-size: 0.85rem; }

/* === RESOURCE CARDS === */
.resource-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--neutral-200);
    transition: var(--transition);
}
.resource-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.resource-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.resource-card h4 { margin-bottom: 8px; }
.resource-card p { color: var(--neutral-400); font-size: 0.9rem; }

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; font-size: 1.05rem; }
.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}
.about-photo {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* === LEGAL PAGES === */
.legal-page { padding-top: 120px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page h3 { margin: 32px 0 12px; font-size: 1.2rem; }
.legal-page h4 { margin: 20px 0 8px; font-size: 1.05rem; }
.legal-page p, .legal-page li { line-height: 1.8; color: var(--neutral-700); }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page a { color: var(--primary); }

/* === MISSION === */
.mission-content { max-width: 760px; margin: 0 auto; }
.mission-text p { font-size: 1.05rem; margin-bottom: 16px; line-height: 1.8; }
.mission-text h3 { margin: 40px 0 16px; font-size: 1.4rem; }
.mission-lead { font-size: 1.25rem !important; font-weight: 500; color: var(--neutral-900); line-height: 1.7 !important; }
.mission-story {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.mission-story blockquote p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--neutral-700);
    margin: 0;
}

/* === CTA SECTION === */
.section-cta {
    background: linear-gradient(135deg, #4A8A99 0%, #5F9EAD 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}
.section-cta h2 { color: var(--white); margin-bottom: 16px; }
.section-cta p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.section-cta .hero-actions { justify-content: center; }

/* === FOOTER === */
.footer {
    background: var(--neutral-900);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .logo-icon { font-size: 1.5rem; }
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; }
.footer-links h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; }
.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--neutral-900);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 99;
    }
    .nav-links.active { display: flex; }
    .nav-links a { color: var(--white) !important; font-size: 1.2rem; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; z-index: 101; }
    .nav-toggle.active span { background: var(--white); }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 120px 0 60px; }
    .hero-stats { gap: 24px; }
    .hero-actions { flex-direction: column; }
    .course-featured { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-placeholder { height: 250px; }
    .credentials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .section { padding: 60px 0; }
}
/* 4-column video grid */
.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .video-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .video-grid-4 { grid-template-columns: 1fr; }
}

/* NEW badge on latest video */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent, #f5a623);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* 3-column video grid (iframes) */
.video-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .video-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .video-grid-3 { grid-template-columns: 1fr; }
}

/* Responsive iframe wrapper (16:9) */
.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.video-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Single centered latest video */
.video-embed-single {
    max-width: 720px;
    margin: 0 auto;
}
