*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #1f2937; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.07); position: sticky; top: 0; z-index: 500; overflow: visible; }
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-left { display: flex; align-items: center; gap: 40px; }
.navbar-logo { font-size: 1.5rem; font-weight: 800; color: #111827; letter-spacing: -.5px; }
.navbar-logo span { color: #2563eb; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a { font-size: .875rem; font-weight: 500; color: #6b7280; transition: color .15s; }
.navbar-links a:hover,
.navbar-links a.active { color: #2563eb; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-login { font-size: .8125rem; font-weight: 500; color: #374151; border: 1px solid #d1d5db; border-radius: 6px; padding: 7px 18px; transition: all .15s; display: inline-block; }
.btn-login:hover { border-color: #2563eb; color: #2563eb; }
.btn-register { font-size: .8125rem; font-weight: 600; color: #fff; background: #2563eb; border-radius: 6px; padding: 7px 18px; transition: background .15s; display: inline-block; border: none; cursor: pointer; }
.btn-register:hover { background: #1d4ed8; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { background: #fff; padding: 28px 0 0; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero-card {
    background: #2563eb;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 20px;
    padding: 52px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    position: relative;
}
.hero-text { max-width: 480px; }
.hero-text h1 { font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary { font-size: .8125rem; font-weight: 600; color: #1d4ed8; background: #fff; border: 1.5px solid #fff; border-radius: 6px; padding: 9px 22px; transition: background .15s; display: inline-block; }
.btn-hero-primary:hover { background: #eff6ff; }
.btn-hero-outline { font-size: .8125rem; font-weight: 600; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 6px; padding: 9px 22px; transition: all .15s; display: inline-block; }
.btn-hero-outline:hover { background: rgba(255,255,255,.15); }
.hero-img { flex-shrink: 0; }
.hero-img img { width: 420px; border-radius: 12px; }

/* ── Category Bar ───────────────────────────────────────────────── */
.category-bar { background: #fff; border-bottom: 1px solid #f3f4f6; padding: 18px 0; }
.category-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 76px; cursor: pointer; }
.cat-icon { width: 52px; height: 52px; background: #f9fafb; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.cat-item:hover .cat-icon { background: #eff6ff; }
.cat-item:hover .cat-icon svg { color: #2563eb; }
.cat-icon svg { width: 22px; height: 22px; color: #6b7280; }
.cat-name { font-size: .6875rem; font-weight: 500; color: #6b7280; text-align: center; white-space: nowrap; }
.cat-item:hover .cat-name { color: #2563eb; }

/* ── Shared ─────────────────────────────────────────────────────── */
.section { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 1.375rem; font-weight: 700; color: #111827; margin-bottom: 24px; }

/* ── Featured Classes ───────────────────────────────────────────── */
.featured { padding: 56px 0; background: #fff; }
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; cursor: pointer; }
.course-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.course-thumb { position: relative; }
.course-thumb img { width: 100%; height: 148px; object-fit: cover; }
.badge-level { position: absolute; top: 8px; left: 8px; background: #f97316; color: #fff; font-size: .625rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.course-body { padding: 12px 14px 14px; }
.course-title { font-size: .8125rem; font-weight: 600; color: #111827; line-height: 1.45; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.course-author { font-size: .6875rem; color: #9ca3af; margin-bottom: 8px; }
.course-author span { color: #6366f1; }
.stars { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.stars svg { width: 12px; height: 12px; }
.star-on { color: #f59e0b; }
.star-off { color: #d1d5db; }
.rating-val { font-size: .6875rem; color: #6b7280; margin-left: 3px; }
.course-price { display: flex; align-items: center; gap: 8px; }
.price-now { font-size: .875rem; font-weight: 700; color: #111827; }
.price-was { font-size: .75rem; color: #9ca3af; text-decoration: line-through; }
.course-students { font-size: .75rem; color: #6b7280; }

/* ── Popular Classes ────────────────────────────────────────────── */
.popular { padding: 56px 0; background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 40%, #3b82f6 100%); }
.popular .section-title { color: #fff; }
.popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.popular-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.1); transition: box-shadow .2s, transform .2s; cursor: pointer; }
.popular-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.15); transform: translateY(-3px); }
.popular-card .course-body { padding: 14px; }
.btn-start { display: block; text-align: center; font-size: .8125rem; font-weight: 600; color: #2563eb; border: 1.5px solid #2563eb; border-radius: 6px; padding: 8px; margin-top: 12px; transition: all .15s; }
.btn-start:hover { background: #2563eb; color: #fff; }

/* ── Why Upskill ────────────────────────────────────────────────── */
.why { padding: 72px 0; background: #fff; }
.why-inner { display: flex; align-items: center; gap: 64px; }
.why-img { flex: 0 0 46%; }
.why-img img { width: 100%; border-radius: 16px; }
.why-content { flex: 1; }
.why-content h2 { font-size: 1.5rem; font-weight: 800; color: #111827; line-height: 1.35; margin-bottom: 32px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.why-feat { display: flex; gap: 12px; align-items: flex-start; }
.check-wrap { flex-shrink: 0; width: 28px; height: 28px; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-wrap svg { width: 13px; height: 13px; color: #2563eb; }
.feat-text h4 { font-size: .875rem; font-weight: 600; color: #111827; margin-bottom: 4px; }
.feat-text p { font-size: .75rem; color: #9ca3af; line-height: 1.6; }

/* ── Promo Banners ──────────────────────────────────────────────── */
.promo { padding: 40px 0; background: #f9fafb; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card { border-radius: 14px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.promo-1 { background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%); }
.promo-2 { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); }
.promo-text h3 { font-size: 1.125rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 16px; }
.btn-promo { font-size: .75rem; font-weight: 600; color: #fff; border: 1.5px solid rgba(255,255,255,.8); border-radius: 6px; padding: 7px 18px; display: inline-block; transition: all .15s; }
.btn-promo:hover { background: rgba(255,255,255,.2); }
.promo-img img { width: 120px; border-radius: 10px; opacity: .85; }

/* ── Partners ───────────────────────────────────────────────────── */
.partners { padding: 36px 0; background: #fff; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; }
.partners-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.partner-name { font-size: .9375rem; font-weight: 600; color: #9ca3af; letter-spacing: .3px; }

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials { padding: 72px 0; background: #fff; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #f9fafb; border-radius: 12px; padding: 24px; }
.testi-text { font-size: .8125rem; color: #4b5563; line-height: 1.75; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-stars { display: flex; gap: 2px; margin-bottom: 4px; }
.testi-stars svg { width: 13px; height: 13px; color: #f59e0b; }
.testi-name { font-size: .8125rem; font-weight: 600; color: #111827; }

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta { padding: 40px 0 0; background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #1d4ed8 100%); overflow: hidden; }
.cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.cta-text h2 { font-size: 2.125rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 28px; }
.cta-text h2 mark { background: #fde047; color: #111827; padding: 3px 10px; border-radius: 4px; font-style: normal; }
.cta-text { padding-bottom: 72px; }
.btn-cta { font-size: .875rem; font-weight: 700; color: #fff; background: #111827; border-radius: 6px; padding: 12px 28px; display: inline-block; transition: background .15s; }
.btn-cta:hover { background: #374151; }
.cta-img { display: flex; align-items: flex-end; }
.cta-img img { width: 220px; border-radius: 0; opacity: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18)); display: block; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid #f3f4f6; padding: 56px 0 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; margin-bottom: 48px; }
.footer-logo { font-size: 1.25rem; font-weight: 800; color: #111827; margin-bottom: 16px; display: block; }
.footer-logo span { color: #2563eb; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: .75rem; color: #6b7280; }
.contact-row svg { width: 15px; height: 15px; color: #2563eb; flex-shrink: 0; margin-top: 1px; }
.footer-col h5 { font-size: .8125rem; font-weight: 700; color: #111827; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: .75rem; color: #6b7280; transition: color .15s; }
.footer-col ul a:hover { color: #2563eb; }
.social-row { display: flex; gap: 8px; margin-bottom: 16px; }
.social-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.social-btn:hover { opacity: .8; }
.social-btn svg { width: 15px; height: 15px; fill: #fff; }
.store-row { display: flex; gap: 8px; flex-wrap: wrap; }
.store-btn { background: #111827; color: #fff; font-size: .6875rem; font-weight: 500; padding: 7px 12px; border-radius: 6px; display: flex; align-items: center; gap: 5px; transition: background .15s; }
.store-btn:hover { background: #374151; }
.store-btn svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid #f3f4f6; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .6875rem; color: #9ca3af; transition: color .15s; }
.footer-links a:hover { color: #2563eb; }
.footer-copy { font-size: .6875rem; color: #9ca3af; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-img { display: none; }
    .cta-img { display: none; }
    .hero-card { padding: 40px 36px; }
}
@media (max-width: 900px) {
    .courses-grid, .popular-grid { grid-template-columns: repeat(2, 1fr); }
    .why-inner { flex-direction: column; gap: 36px; }
    .why-img { flex: none; width: 100%; }
    .promo-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
    .courses-grid, .popular-grid { grid-template-columns: 1fr; }
    .navbar-links { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}
