:root {
  --bw-navy: #10233d;
  --bw-blue: #2660d6;
  --bw-gold: #d9a441;
  --bw-bg: #f7f8fa;
  --bw-text: #1c2733;
  --bw-muted: #667085;
  --bw-border: #e4e7ec;
  --bw-white: #ffffff;
  --bw-danger: #c0392b;
  --bw-radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bw-bg);
  color: var(--bw-text);
  line-height: 1.55;
}
a { color: var(--bw-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--bw-navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 20px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand span { color: var(--bw-gold); }
.tagline { font-size: 12px; color: #c6cedb; display: block; margin-top: -2px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; width: 100%;
    background: var(--bw-navy); padding: 10px 0 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { width: 100%; padding: 10px 4px; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown .dropdown-panel {
    display: none; position: static; box-shadow: none; background: #16294a;
    margin-top: 4px; border-radius: 6px; width: 100%;
  }
  .nav-dropdown.open .dropdown-panel { display: block; }
  .nav-dropdown .dropdown-panel a { color: #dbe2ee; }
  .nav-dropdown:hover .dropdown-panel { display: none; }
  .nav-dropdown.open:hover .dropdown-panel { display: block; }
}
.nav-links a { color: #dbe2ee; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-panel {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 10px;
  background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  min-width: 200px; max-height: 340px; overflow-y: auto; padding: 8px 0; z-index: 60;
}
.nav-dropdown .dropdown-panel a { color: var(--bw-text); padding: 8px 16px; font-size: 14px; display: block; }
.nav-dropdown .dropdown-panel a:hover { background: #f2f4f7; text-decoration: none; }
.nav-dropdown.open .dropdown-panel { display: block; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--bw-radius);
  font-weight: 600; font-size: 14px; border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--bw-blue); color: #fff; }
.btn-primary:hover { background: #1c4bb0; color: #fff; text-decoration: none; }
.btn-gold { background: var(--bw-gold); color: #1c2733; }
.btn-gold:hover { background: #c18f31; text-decoration: none; }
.btn-outline { background: transparent; border: 1px solid #4a5c76; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bw-navy), #1a3a63);
  color: #fff; padding: 70px 0 60px;
  text-align: center;
}
.hero h1 { font-size: 40px; margin: 0 0 10px; font-weight: 800; }
.hero .slogan { font-size: 18px; color: var(--bw-gold); font-weight: 600; margin-bottom: 22px; }
.hero p.lead { color: #c6cedb; max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Trust bar: student/course/guarantee stats under the hero */
.trust-bar { background: #fff; border-bottom: 1px solid var(--bw-border); }
.trust-bar-inner {
  display: flex; justify-content: center; gap: 60px; padding: 24px 20px; flex-wrap: wrap; text-align: center;
}
.trust-stat .trust-num { font-size: 24px; font-weight: 800; color: var(--bw-navy); }
.trust-stat .trust-lbl { font-size: 13px; color: var(--bw-muted); font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) { .trust-bar-inner { gap: 30px; } }

.campaign-banner {
  background: var(--bw-gold); color: #241a02; text-align: center;
  padding: 10px 16px; font-weight: 700; font-size: 14px;
}

/* Section */
.section { padding: 50px 0; }
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.section-subtitle { color: var(--bw-muted); margin-bottom: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }

/* Grid & cards */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bw-white); border: 1px solid var(--bw-border); border-radius: var(--bw-radius);
  overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(16,35,61,0.08); transform: translateY(-2px); }
.card-img { width: 100%; height: 150px; object-fit: cover; background: #e9edf3; }
/*.card-img { width: 100%; height: 180px; object-fit: cover; object-position: center top; background: #e9edf3; }*/
/*.card-img { width: 100%; height: 180px; object-fit: contain; background: #f2f4f7; }*/
.card-body { padding: 14px 16px 16px; position: relative; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.card-meta { font-size: 13px; color: var(--bw-muted); margin-bottom: 8px; }
.card-desc { font-size: 13.5px; color: #4a5568; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.badge-new { background: #eaf7ea; color: #1c7a2e; }
.badge-sale { background: #fdecea; color: var(--bw-danger); }
.badge-free { background: #eaf1fd; color: var(--bw-blue); }
.badge-corner { position: absolute; top: -164px; right: 10px; }

/* Filters / search */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 24px; background: #fff; border: 1px solid var(--bw-border); border-radius: var(--bw-radius); padding: 16px; }
.filter-bar .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--bw-muted); }
.filter-bar input, .filter-bar select {
  padding: 9px 12px; border: 1px solid var(--bw-border); border-radius: 8px; font-size: 14px; min-width: 160px;
}
.filter-bar input[type=text] { min-width: 220px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 34px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--bw-border);
  font-size: 14px; color: var(--bw-text); background: #fff;
}
.pagination a:hover { border-color: var(--bw-blue); text-decoration: none; }
.pagination .current { background: var(--bw-blue); border-color: var(--bw-blue); color: #fff; font-weight: 700; }
.pagination .disabled { color: #c2c9d3; }
.pagination .ellipsis { border: none; background: none; }

/* Course detail */
.course-hero { display: grid; grid-template-columns: 1fr 380px; gap: 34px; padding: 40px 0; }
@media (max-width: 860px) { .course-hero { grid-template-columns: 1fr; } }
.course-hero img.cover { border-radius: var(--bw-radius); width: 100%; }
.price-box { background: #fff; border: 1px solid var(--bw-border); border-radius: var(--bw-radius); padding: 22px; height: fit-content; }
.price-box .price { font-size: 28px; font-weight: 800; }
.access-box { background: #eaf7ea; border: 1px solid #b7e2bb; border-radius: 8px; padding: 14px; margin-top: 14px; font-size: 14px; }
.locked-box { background: #fdf7ec; border: 1px solid #f0dfb3; border-radius: 8px; padding: 14px; margin-top: 14px; font-size: 14px; }

/* Pricing */
.plan-card { background: #fff; border: 2px solid var(--bw-border); border-radius: var(--bw-radius); padding: 28px; text-align: center; }
.plan-card.featured { border-color: var(--bw-gold); }
.plan-price { font-size: 36px; font-weight: 800; margin: 10px 0; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--bw-muted); }

/* Newsletter */
.newsletter { background: var(--bw-navy); color: #fff; padding: 44px 0; text-align: center; }
.newsletter form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.newsletter input[type=email] { padding: 12px 16px; border-radius: 8px; border: none; min-width: 280px; }

/* Forms */
.form-card { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--bw-border); border-radius: var(--bw-radius); padding: 32px; }
.form-card h1 { font-size: 22px; margin-top: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input:not([type=radio]):not([type=checkbox]), .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--bw-border); border-radius: 8px; font-size: 14px;
}
.form-group input[type=radio], .form-group input[type=checkbox] {
  width: auto; margin: 0 8px 0 0; vertical-align: middle;
}
.form-group label input[type=radio], .form-group label input[type=checkbox] {
  display: inline-block;
}
.errorlist { color: var(--bw-danger); font-size: 13px; padding-left: 0; list-style: none; }
.messages { list-style: none; padding: 0; margin: 0 0 18px; }
.messages li { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; }
.messages .success { background: #eaf7ea; color: #1c7a2e; }
.messages .error { background: #fdecea; color: var(--bw-danger); }

footer { background: var(--bw-navy); color: #b8c2d3; padding: 40px 0 24px; margin-top: 40px; }
footer .grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer a { color: #b8c2d3; font-size: 14px; display: block; margin-bottom: 8px; }
footer .bottom { text-align: center; font-size: 13px; border-top: 1px solid #263c58; padding-top: 18px; }
@media (max-width: 700px) { footer .grid { grid-template-columns: repeat(2, 1fr); } }

/* Deals / celebration countdown section */
.deals-section {
  background: linear-gradient(135deg, #7a1f1f, #c0392b 60%, #d9a441);
  color: #fff; padding: 50px 0; position: relative; overflow: hidden;
}
.deals-section::before {
  content: "🎉"; position: absolute; font-size: 140px; opacity: 0.08; top: -30px; right: -10px;
}
.deals-head { text-align: center; margin-bottom: 26px; }
.deals-head h2 { font-size: 30px; margin: 0 0 6px; font-weight: 900; letter-spacing: -0.5px; }
.deals-head p { color: #ffe3d6; margin: 0; }
.countdown {
  display: flex; gap: 14px; justify-content: center; margin: 22px 0 8px; flex-wrap: wrap;
}
.countdown .unit {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px; padding: 14px 18px; text-align: center; min-width: 78px;
  backdrop-filter: blur(2px);
}
.countdown .unit .num { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown .unit .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #ffe3d6; }
.deal-card {
  background: #fff; color: var(--bw-text); border-radius: var(--bw-radius); overflow: hidden;
  position: relative;
}
.deal-card .discount-flag {
  position: absolute; top: 10px; left: 10px; background: var(--bw-danger); color: #fff;
  font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 6px;
}
.deal-card .card-body .deal-type { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--bw-danger); letter-spacing: 0.5px; }
.badge-bestseller { background: #fff4d6; color: #8a5a00; }

.banner-frame {
  width: 100%; max-height: 420px; overflow: hidden; border-radius: 10px;
  margin-bottom: 20px; background: #eef1f5; display: flex; align-items: center; justify-content: center;
}
.banner-frame img { width: 100%; height: auto; display: block; }

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sitemap-card {
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 22px;
}
.sitemap-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bw-border);
}
.sitemap-icon { font-size: 20px; }
.sitemap-card-head h3 { margin: 0; font-size: 16px; }
.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sitemap-links a {
  display: inline-block;
  padding: 6px 14px;
  background: #f2f4f7;
  border-radius: 20px;
  font-size: 13px;
  color: var(--bw-text);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.sitemap-links a:hover {
  background: var(--bw-blue);
  color: #fff;
  text-decoration: none;
}
.sitemap-empty {
  font-size: 13px;
  color: var(--bw-muted);
}
@media (max-width: 860px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}