html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  margin-bottom: 0;
}

.mirza-body {
  background:
    linear-gradient(180deg, rgba(249, 243, 232, 0.88) 0%, rgba(240, 228, 211, 0.92) 100%),
    url('/images/kurdish/carpet-pattern.svg') center / 160px 160px repeat;
  min-height: 100vh;
  min-height: 100dvh;
}

.mirza-navbar {
  background:
    linear-gradient(135deg, rgba(123, 74, 46, 0.96) 0%, rgba(167, 111, 75, 0.96) 100%),
    url('/images/kurdish/carpet-pattern.svg') center / 100px 100px repeat;
  box-shadow: 0 4px 20px rgba(80, 50, 30, 0.15);
  border-bottom: 2px solid rgba(201, 162, 39, 0.4);
}

.mirza-navbar .navbar-brand,
.mirza-navbar .nav-link,
.mirza-navbar .btn-link {
  color: #fff6e5 !important;
}

.mirza-navbar .nav-link:hover {
  color: #ffd699 !important;
}

.mirza-brand {
  font-weight: 800;
  font-size: 1.4rem;
}

.mirza-footer {
  color: #8b6b52;
}

.mirza-title {
  color: #5c3824;
}

.mirza-subtitle {
  color: #8b6b52;
}

.mirza-accent {
  color: #a76f4b;
}

.feature-card {
  background: rgba(255, 248, 240, 0.9);
  border: 2px solid rgba(200, 160, 120, 0.25);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(100, 70, 40, 0.08);
}

.btn-mirza {
  background: linear-gradient(135deg, #8b5a3c, #6d3f26);
  border: none;
  color: #fff6e5;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
}

.btn-mirza:hover {
  background: linear-gradient(135deg, #9d6b4b, #7b4a2e);
  color: #fff;
}

.btn-outline-mirza {
  border: 2px solid #b89478;
  color: #6d3f26;
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
}

.btn-outline-mirza:hover {
  background: #b89478;
  color: #fff;
}

.hero-landing {
  max-width: 900px;
  margin: 0 auto;
}

.hero-glow {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 149, 106, 0.5) 0%, transparent 70%);
}

/* ===== Kurdish Sorani home atmosphere ===== */
.hero-kurdish {
  position: relative;
}

.hero-kurdish-sun {
  width: 120px;
  height: 120px;
  animation: kurdishSunGlow 4s ease-in-out infinite;
}

.hero-kurdish-sun img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 24px rgba(212, 160, 23, 0.35));
}

@keyframes kurdishSunGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08); }
}

.hero-tray-preview {
  max-width: 320px;
}

.hero-table-surface {
  position: relative;
  padding: 1.6rem 1.4rem 1.8rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(40, 22, 12, 0.12) 0%, rgba(20, 10, 6, 0.2) 100%),
    url('/images/kurdish/wood-table.svg') center / cover no-repeat;
  box-shadow:
    0 16px 36px rgba(80, 40, 20, 0.22),
    inset 0 0 0 2px rgba(139, 42, 26, 0.28),
    inset 0 0 0 5px rgba(201, 162, 39, 0.2);
}

.hero-tray-img {
  display: block;
  width: min(220px, 70%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.feature-card-kurdish {
  background:
    linear-gradient(160deg, rgba(255, 248, 240, 0.95) 0%, rgba(255, 244, 230, 0.9) 100%);
  border-color: rgba(201, 162, 39, 0.35);
  position: relative;
  overflow: hidden;
}

.feature-card-kurdish::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b2a1a 0%, #c9a227 50%, #0d5c2e 100%);
}

.level-tile {
  background: rgba(255, 248, 240, 0.95);
  border: 2px solid #dbbc9e;
  border-radius: 1rem;
  color: #4d2e1a;
  transition: transform .15s ease;
}

.level-tile:hover:not(.locked) {
  transform: translateY(-2px);
  border-color: #a76f4b;
}

.level-tile.locked {
  opacity: .5;
  background: #e8ddd0;
}

/* ===== Chapter map (legacy slider — superseded by chapters-map.css on Levels/Map) ===== */
.chapters-map-header h1 {
  color: #5c3824;
  font-weight: 800;
}

.chapter-slider {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2.6rem;
}

.chapter-slider-viewport {
  overflow: hidden;
  border-radius: 1.25rem;
  direction: ltr; /* keep slide math simple */
}

.chapter-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.chapter-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding: 0.15rem;
  box-sizing: border-box;
  direction: rtl; /* restore content RTL */
}

.chapter-card {
  position: relative;
}

.chapter-card.chapter-locked {
  opacity: 0.72;
}

.chapter-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 39, 0.45);
  background: #fff8ee;
  color: #5c3824;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(80, 40, 20, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.chapter-nav:hover:not(:disabled) {
  background: #ffe8c8;
  transform: translateY(-50%) scale(1.05);
}

.chapter-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.chapter-nav-prev {
  right: 0;
}

.chapter-nav-next {
  left: 0;
}

.chapter-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chapter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(123, 74, 46, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.chapter-dot.active {
  background: #c4956a;
  transform: scale(1.25);
}

.chapter-cover {
  position: relative;
  min-height: 220px;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(26, 14, 10, 0.55) 0%, rgba(26, 14, 10, 0.25) 55%, rgba(26, 14, 10, 0.45) 100%),
    var(--chapter-cover) center / cover no-repeat;
  box-shadow:
    0 16px 40px rgba(80, 40, 20, 0.22),
    inset 0 0 0 2px rgba(201, 162, 39, 0.28);
}

.chapter-cover-overlay {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.5rem 1.2rem;
  color: #fff6e5;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 220px;
  justify-content: flex-end;
}

.chapter-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-size: 0.8rem;
  font-weight: 700;
}

.chapter-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.chapter-quote {
  margin: 0;
  max-width: 36rem;
}

.chapter-quote p {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.7;
  font-weight: 600;
}

.chapter-quote footer {
  margin-top: 0.35rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.chapter-progress {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 576px) {
  .chapter-slider {
    padding: 0 2.2rem;
  }

  .chapter-nav {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

@media (min-width: 992px) {
  .chapter-level-col {
    flex: 0 0 10%;
    max-width: 10%;
  }
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}
