@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
    --navy:       #0a0e1a;
    --dark-blue:  #0d1b2a;
    --mid-blue:   #1a2744;
    --gold:       #e8a020;
    --gold-light: #f5c842;
    --white:      #ffffff;
    --off-white:  #f8f9fc;
    --gray-100:   #f1f5f9;
    --gray-200:   #e2e8f0;
    --gray-400:   #94a3b8;
    --gray-600:   #475569;
    --text-dark:  #0f172a;
    --text-body:  #334155;
    --radius:     14px;
    --shadow-sm:  0 2px 12px rgba(0,0,0,.08);
    --shadow-md:  0 6px 28px rgba(0,0,0,.12);
    --shadow-lg:  0 16px 48px rgba(0,0,0,.18);
    --transition: all .25s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-body); background: var(--white); line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ─── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,160,32,.45);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.65);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--navy);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--mid-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-sm { padding: 10px 24px; font-size: .9rem; }

/* ─── Navigation ────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,14,26,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 0;
    border-bottom: 1px solid rgba(232,160,32,.18);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.5px;
}
.navbar-brand span { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: 32px; }
.navbar-nav a {
    color: rgba(255,255,255,.8);
    font-size: .95rem;
    font-weight: 500;
    transition: color .2s;
}
.navbar-nav a:hover,
.navbar-nav a.active { color: var(--white); }
.btn-nav {
    background: var(--gold);
    color: var(--navy) !important;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .88rem;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; }

/* ─── Sections ──────────────────────────────────────────────────────────── */
section { padding: 100px 0; }
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 56px;
}
.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; }
.section-header-center .section-subtitle { margin-left: auto; margin-right: auto; }
.bg-gray { background: var(--gray-100); }
.bg-navy { background: var(--navy); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--dark-blue);
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(10,14,26,.88) 40%, rgba(10,14,26,.55) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    padding-top: 80px;
}
.hero-badge {
    display: inline-block;
    background: rgba(232,160,32,.18);
    border: 1px solid rgba(232,160,32,.5);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.12;
}
.hero h1 span { color: var(--gold); }
.hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 36px;
    max-width: 580px;
    line-height: 1.75;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-lbl { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ─── About ─────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
.about-badge {
    position: absolute;
    bottom: -28px; right: -28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    padding: 20px 26px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.about-badge-num { font-family: 'Poppins', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about-badge-lbl { font-size: .82rem; font-weight: 700; }
.about-features { display: flex; flex-direction: column; gap: 22px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.about-dot { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.about-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.about-feature p  { font-size: .9rem; color: var(--gray-600); }

/* ─── Courses ───────────────────────────────────────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.course-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-img { position: relative; height: 230px; overflow: hidden; background: var(--mid-blue); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .course-img img { transform: scale(1.06); }
.course-level {
    position: absolute; top: 16px; left: 16px;
    background: var(--gold); color: var(--navy);
    padding: 4px 14px; border-radius: 50px;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.course-body { padding: 26px; }
.course-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.course-body p  { font-size: .9rem; color: var(--gray-600); margin-bottom: 18px; line-height: 1.65; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .82rem; color: var(--gray-600); margin-bottom: 20px; }
.course-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 18px; border-top: 1px solid var(--gray-200);
}
.course-price { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.course-price small { font-size: .8rem; font-weight: 400; color: var(--gray-400); }

/* ─── Instructor ────────────────────────────────────────────────────────── */
.instructor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.instructor-img img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }

/* ─── CTA Banner ────────────────────────────────────────────────────────── */
.cta-section { position: relative; overflow: hidden; padding: 130px 0; }
.cta-bg { position: absolute; inset: 0; background: var(--dark-blue); }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,.92), rgba(26,39,68,.88));
    z-index: 1;
}
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.cta-inner h2 span { color: var(--gold); }
.cta-inner p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 36px; }

/* ─── Testimonials ──────────────────────────────────────────────────────── */
.testimonials { background: var(--navy); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-subtitle { color: rgba(255,255,255,.65); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 32px;
}
.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 8px; letter-spacing: 2px; }
.testi-quote { font-size: 3.5rem; line-height: .7; color: var(--gold); font-family: Georgia, serif; margin-bottom: 12px; }
.testi-text { color: rgba(255,255,255,.82); font-size: .93rem; line-height: 1.75; margin-bottom: 24px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--mid-blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.testi-name  { color: var(--white); font-weight: 600; font-size: .93rem; }
.testi-role  { color: rgba(255,255,255,.45); font-size: .8rem; }

/* ─── Blog cards ────────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 220px; overflow: hidden; background: var(--mid-blue); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; }
.blog-cat {
    display: inline-block;
    background: rgba(232,160,32,.12);
    color: var(--gold);
    padding: 3px 12px; border-radius: 50px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.45; }
.blog-card h3 a { color: var(--text-dark); transition: color .2s; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-card p { font-size: .88rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px; }
.blog-date { font-size: .8rem; color: var(--gray-400); }

/* ─── Blog page hero ────────────────────────────────────────────────────── */
.page-hero {
    background: var(--navy);
    padding: 160px 0 80px;
    text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.1rem; }

/* ─── Blog list page ────────────────────────────────────────────────────── */
.blog-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

/* ─── Blog post page ────────────────────────────────────────────────────── */
.post-hero-img {
    height: 500px;
    overflow: hidden;
    position: relative;
    background: var(--dark-blue);
    margin-top: 88px;
}
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,.4));
}
.post-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px 100px; }
.post-cat { display: inline-block; background: rgba(232,160,32,.12); color: var(--gold); padding: 4px 14px; border-radius: 50px; font-size: .78rem; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.post-title { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text-dark); margin-bottom: 16px; line-height: 1.22; }
.post-meta { font-size: .88rem; color: var(--gray-400); padding-bottom: 28px; border-bottom: 1px solid var(--gray-200); margin-bottom: 40px; }
.post-content { font-size: 1.05rem; line-height: 1.9; color: var(--text-body); }
.post-content h2 { font-size: 1.65rem; margin: 44px 0 16px; color: var(--text-dark); }
.post-content h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.post-content p  { margin-bottom: 22px; }
.post-content img { width: 100%; border-radius: var(--radius); margin: 32px 0; }
.post-content a { color: var(--gold); text-decoration: underline; }

/* ─── Contact page ──────────────────────────────────────────────────────── */
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
}
.contact-hero-bg { position: absolute; inset: 0; background: var(--dark-blue); }
.contact-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,.92), rgba(10,14,26,.7));
    z-index: 1;
}
.contact-hero-inner { position: relative; z-index: 2; text-align: center; }
.contact-hero-inner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.contact-hero-inner p  { color: rgba(255,255,255,.72); font-size: 1.05rem; }
.contact-section { padding: 100px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; max-width: 1040px; margin: 0 auto; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-info > p { color: var(--gray-600); font-size: .93rem; margin-bottom: 36px; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-lbl { font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 2px; }
.contact-detail-val { font-size: .9rem; color: var(--gray-600); }
.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: .9rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 150px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.form-check input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.form-check label { font-size: .87rem; color: var(--gray-600); line-height: 1.55; }
.form-check label a { color: var(--gold); text-decoration: underline; }
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: .9rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ─── Privacy page ──────────────────────────────────────────────────────── */
.privacy-content { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.privacy-content h2 { font-size: 1.45rem; color: var(--text-dark); margin: 44px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.privacy-content p,
.privacy-content li { color: var(--gray-600); font-size: .95rem; line-height: 1.82; margin-bottom: 12px; }
.privacy-content ul { list-style: disc; padding-left: 24px; }

/* ─── 404 ───────────────────────────────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; background: var(--navy); padding: 40px 24px;
}
.error-page h1 { font-size: 9rem; color: var(--gold); font-weight: 800; line-height: 1; margin-bottom: 12px; }
.error-page h2 { color: var(--white); font-size: 2rem; margin-bottom: 14px; }
.error-page p  { color: rgba(255,255,255,.65); margin-bottom: 32px; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 88px 0 40px; border-top: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand { font-family: 'Poppins', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-brand span { color: var(--gold); }
.footer-desc { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.72; }
.footer-heading { color: var(--white); font-family: 'Poppins', sans-serif; font-size: .88rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.48); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,.07);
    display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p,
.footer-bottom a { color: rgba(255,255,255,.35); font-size: .82rem; }
.footer-bottom a:hover { color: var(--gold); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .about-grid       { grid-template-columns: 1fr; gap: 48px; }
    .instructor-grid  { grid-template-columns: 1fr; gap: 48px; }
    .courses-grid     { grid-template-columns: 1fr; }
    .testi-grid       { grid-template-columns: 1fr 1fr; }
    .blog-grid        { grid-template-columns: repeat(2, 1fr); }
    .blog-list-grid   { grid-template-columns: repeat(2, 1fr); }
    .footer-grid      { grid-template-columns: 1fr 1fr; }
    .contact-wrap     { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .navbar-nav                  { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 24px; gap: 20px; border-top: 1px solid rgba(255,255,255,.08); }
    .navbar-nav.open             { display: flex; }
    .menu-toggle                 { display: flex; }
    .hero h1                     { font-size: 2.2rem; }
    .hero-stats                  { flex-wrap: wrap; gap: 24px; }
    .about-badge                 { bottom: -16px; right: -16px; }
    .about-img img,
    .instructor-img img          { height: 360px; }
    .testi-grid                  { grid-template-columns: 1fr; }
    .blog-grid,
    .blog-list-grid              { grid-template-columns: 1fr; }
    .footer-grid                 { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom               { flex-direction: column; gap: 10px; text-align: center; }
    .contact-form-card           { padding: 28px; }
    .form-row                    { grid-template-columns: 1fr; }
    section                      { padding: 64px 0; }
    .post-hero-img               { height: 300px; }
    .contact-hero                { padding: 130px 0 64px; }
    .page-hero                   { padding: 130px 0 60px; }
}
