/* ===== CSS VARIABLES ===== */
:root {
  --blue: #0056d2;
  --blue-dark: #003fa3;
  --blue-light: #e8f0fe;
  --blue-mid: #1d63ed;
  --text-primary: #1c1d1f;
  --text-secondary: #5c5f62;
  --text-muted: #8d9298;
  --border: #e0e0e0;
  --bg-white: #ffffff;
  --bg-light: #f8f9fb;
  --bg-section: #f1f4f8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --radius: 8px;
  --radius-lg: 12px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Source Serif 4', serif;
  --nav-height: 90px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input { font-family: var(--font-body); outline: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Brand: bigger logo + close-to-title text */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto; /* pushes everything else to the right */
}
.nav-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.nav-logo span { color: var(--blue); }

/* Right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.explore-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all 0.2s;
  background: #fff;
}
.explore-btn:hover { border-color: var(--blue); color: var(--blue); }
.hamburger-lines { display: flex; flex-direction: column; gap: 3.5px; }
.hamburger-lines span { width: 16px; height: 2px; background: currentColor; border-radius: 2px; display: block; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 18px;
  width: 320px;
  transition: border-color 0.2s;
}
.nav-search:focus-within { border-color: var(--blue); background: #fff; }
.nav-search input { flex: 1; background: none; border: none; font-size: 0.88rem; color: var(--text-primary); width: 100%; }
.nav-search input::placeholder { color: var(--text-muted); }

/* Language Selector */
.lang-selector { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 130px;
  overflow: hidden;
  display: none;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-option {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.lang-option:hover { background: var(--blue-light); color: var(--blue); }
.lang-option.active { color: var(--blue); font-weight: 600; background: var(--blue-light); }

.nav-auth { display: flex; gap: 10px; flex-shrink: 0; }
.btn-login {
  padding: 8px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  background: #fff;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--blue-light); }
.btn-signup {
  padding: 8px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-signup:hover { background: var(--blue-dark); }

/* ===== EXPLORE DROPDOWN ===== */
.explore-dropdown {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: none;
  animation: dropFade 0.18s ease;
}
.explore-dropdown.open { display: block; }
@keyframes dropFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.explore-inner {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 320px;
}
.explore-categories { border-right: 1px solid var(--border); padding: 20px 0; }
.explore-subcats { padding: 20px 24px; }
.explore-cat-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 20px 12px;
  text-transform: uppercase;
}
.cat-list { padding: 0; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.cat-item:hover, .cat-item.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 500;
}
.subcat-list { display: flex; flex-direction: column; gap: 2px; }
.subcat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.subcat-list li:hover { background: var(--blue-light); color: var(--blue); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 60%);
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--blue);
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-primary.large { padding: 15px 36px; font-size: 1rem; }
.btn-primary.full { width: 100%; padding: 13px; font-size: 0.95rem; }
.btn-outline {
  padding: 12px 28px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue-light); }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 700; color: var(--blue); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-image { position: relative; }
.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 400px;
}
.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.hero-badge div { display: flex; flex-direction: column; gap: 2px; }
.hero-badge strong { font-weight: 700; color: var(--text-primary); font-size: 0.88rem; }
.hero-badge span { color: var(--text-muted); }

/* ===== TRUSTED ===== */
.trusted {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: #fff;
}
.trusted p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; font-weight: 500; }
.trusted-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 36px; }
.trust-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #a0aab4;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.trust-logo:hover { color: var(--blue); }

/* ===== CATEGORIES ===== */
.categories-section { background: var(--bg-light); }
.categories-section h2, .courses-header h2, .why-section h2, .faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.section-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 40px; }
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.cat-card-img { height: 140px; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 14px 16px; }
.cat-card-body h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.cat-card-body p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== COURSES SECTION ===== */
.courses-section { background: #fff; }
.courses-header { margin-bottom: 32px; }
.courses-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.courses-sidebar {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  border: 1.5px solid var(--border);
  position: sticky;
  top: 90px;
}
.sidebar-item {
  padding: 11px 20px;
  font-size: 0.96rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.sidebar-item:hover { color: var(--blue); background: var(--blue-light); border-left-color: var(--blue); }
.sidebar-item.active { color: var(--blue); font-weight: 700; background: var(--blue-light); border-left-color: var(--blue); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ===== COURSE CARD (NEW – no badge popup, tappable, lang buttons) ===== */
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c0d4f5; }
.course-card-img { height: 148px; overflow: hidden; position: relative; }
.course-card-img img { width: 100%; height: 100%; object-fit: cover; }
.course-card-provider {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  backdrop-filter: blur(4px);
}
.course-card-body { padding: 14px 16px 0; flex: 1; }
.course-card-body h4 { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; min-height: 2.8rem; }
.course-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.course-meta-item { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--text-muted); }
.course-meta-item svg { flex-shrink: 0; }
.course-stats { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border); margin-top: auto; }
.course-stats .rating { color: #f59e0b; font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* Language pick row inside card */
.course-langs {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
}
.course-langs button {
  flex: 1;
  padding: 6px 4px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.course-langs button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* "Watch Now" footer button */
.course-card-footer { padding: 0 16px 14px; }
.btn-watch {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-watch:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ===== WHY SECTION ===== */
.why-section { background: var(--bg-light); }
.why-section h2 { text-align: center; }
.why-section .section-sub { text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border);
  transition: all 0.22s;
}
.why-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); transform: translateY(-3px); }
.why-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.why-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { background: #fff; }
.faq-section h2, .faq-section .section-sub { text-align: center; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--blue); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-light); }
.faq-arrow { flex-shrink: 0; transition: transform 0.25s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 22px 18px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 64px 0;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 30px; }
.cta-banner .btn-primary { background: #fff; color: var(--blue); border-color: #fff; }
.cta-banner .btn-primary:hover { background: var(--blue-light); border-color: var(--blue-light); }

/* ===== FOOTER ===== */
.footer { background: #1c1d1f; color: #d1d7dc; padding: 56px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #3a3b3e;
}
.footer-logo { color: #fff !important; }
.footer-brand p { font-size: 0.88rem; color: #8d9298; margin: 14px 0 20px; line-height: 1.6; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: #3a3b3e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8d9298;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 0.88rem; color: #8d9298; transition: color 0.2s; }
.footer-col li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #8d9298;
}
.footer-lang { display: flex; align-items: center; gap: 6px; }

/* ===== DETAIL PAGE ===== */
.detail-page {
  background: #fff;
  min-height: calc(100vh - var(--nav-height));
  padding: 32px 0 80px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
  margin-bottom: 28px;
}
.detail-back:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.detail-provider {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}
.detail-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}
.detail-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.detail-stats .rating { color: #f59e0b; font-weight: 700; }

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "What you'll learn" + skills */
.detail-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 22px;
}
.skills-title { margin-top: 44px; }

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 48px;
  row-gap: 18px;
}
.learn-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
}
.learn-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--text-primary);
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-pill {
  background: #f1f4f8;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 16px;
  border: 1px solid #e6eaf0;
}

/* ===== SCROLL ANIMATION ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.5s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav-search { width: 220px; }
}
@media (max-width: 960px) {
  .nav-search { display: none; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .courses-layout { grid-template-columns: 1fr; }
  .courses-sidebar { position: static; overflow-x: auto; }
  .sidebar-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .sidebar-item { border-left: none; border-bottom: 2px solid transparent; border-radius: 4px; white-space: nowrap; }
  .sidebar-item.active { border-left: none; border-bottom-color: var(--blue); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .nav-inner { gap: 8px; padding: 0 14px; }
  .nav-logo-img { width: 52px; height: 52px; }
  .nav-logo { font-size: 1.7rem; }
  .nav-right { gap: 8px; }
  .explore-btn span:last-child { display: none; }
  .lang-btn { padding: 7px 8px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .explore-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH MODAL (Login / Sign Up popup)
   ============================================================ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: authFadeIn 0.2s ease-out;
}
.auth-overlay[hidden] { display: none; }

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  padding: 44px 40px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: authSlideIn 0.25s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.auth-close:hover { background: #f3f4f6; color: #111; }

.auth-view[hidden] { display: none; }

/* ----- Headings ----- */
.auth-eyebrow {
  color: #9ca3af;
  font-size: 0.95rem;
  margin: 0 0 6px;
  font-weight: 400;
}
.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 26px;
  line-height: 1.2;
}
.auth-title-center {
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub {
  text-align: center;
  color: #4b5563;
  margin: 0 0 26px;
  font-size: 0.95rem;
}

/* ----- Fields ----- */
.auth-field {
  margin-bottom: 14px;
}
.auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.97rem;
  color: #111;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.auth-field input::placeholder { color: #9ca3af; }
.auth-field input:focus {
  border-color: #0056d2;
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.12);
}

/* Underline-style fields (used on the Sign-up view to match the mockup) */
.auth-field-underline {
  margin-bottom: 22px;
}
.auth-field-underline label {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 4px;
}
.auth-field-underline input {
  border: none;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  padding: 4px 0 8px;
  background: transparent;
}
.auth-field-underline input:focus {
  box-shadow: none;
  border-bottom-color: #0056d2;
}

/* ----- Row (remember + forgot) ----- */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0056d2;
  cursor: pointer;
}
.auth-check-row {
  margin: 14px 0 22px;
}
.auth-link {
  color: #0056d2;
  font-size: 0.9rem;
  text-decoration: underline;
  font-weight: 500;
}
.auth-link:hover { color: #003d99; }

/* ----- Submit button ----- */
.auth-submit {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
  margin-bottom: 14px;
}
.auth-submit:hover { background: #1d4ed8; }
.auth-submit:active { transform: scale(0.99); }

/* ----- Google button (login view) ----- */
.auth-google {
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s;
}
.auth-google:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* ----- Divider + quick-access buttons (signup view) ----- */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
  color: #9ca3af;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.auth-divider span { padding: 0 14px; }

.auth-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.auth-quick-btn {
  padding: 10px 6px;
  background: #fff;
  border: 1px solid #cfe0fb;
  border-radius: 6px;
  color: #0056d2;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.auth-quick-btn:hover { background: #eff5ff; }

/* ----- Switch link ----- */
.auth-switch {
  text-align: center;
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #4b5563;
}
.auth-switch .auth-link { margin-left: 4px; }

/* Lock body scroll when modal is open */
body.auth-open { overflow: hidden; }

/* Responsive */
@media (max-width: 500px) {
  .auth-modal { padding: 36px 22px 28px; }
  .auth-title { font-size: 1.6rem; }
  .auth-quick { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
.about-section {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-eyebrow {
  display: inline-block;
  color: #0056d2;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.about-section h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--text-primary);
}
.about-text p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 14px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}
.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #0056d2;
  line-height: 1.1;
}
.about-stat span {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}
.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: #f5f1ea;
}
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 0;
}
.contact-eyebrow {
  display: inline-block;
  color: #0056d2;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 12px;
}
.contact-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.05;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 14px;
}
.contact-divider {
  width: 56px;
  height: 3px;
  background: #0056d2;
  border-radius: 2px;
  margin-bottom: 20px;
}
.contact-sub {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 36px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
}
.contact-label {
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 500;
}

/* ============================================================
   AUTH SUCCESS VIEW (after login/signup)
   ============================================================ */
.auth-success-view {
  text-align: center;
  padding: 14px 0 6px;
}
.auth-success-tick {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  animation: tickPop 0.45s cubic-bezier(0.18, 1.25, 0.55, 1.05);
}
@keyframes tickPop {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.auth-success-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
}
.auth-success-msg {
  color: #6b7280;
  font-size: 0.97rem;
  margin: 0 0 26px;
}

/* ============================================================
   Hide arrow after sub-categories in Explore dropdown
   ============================================================ */
.subcat-list li svg { display: none; }

/* ============================================================
   Responsive tweaks for new sections
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-title { font-size: 2.6rem; }
}
@media (max-width: 600px) {
  .about-section h2 { font-size: 1.8rem; }
  .contact-title { font-size: 2.1rem; }
  .contact-icon { width: 44px; height: 44px; }
  .contact-icon svg { width: 28px; height: 28px; }
}
