/* Page-specific styles for /urdu-alphabet — shared base comes from styles.css */

/* ---- Content page layout ---- */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Hero ---- */
.guide-hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}
.guide-hero h1 {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.guide-hero .subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.hero-letters {
  font-family: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Fallback", serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 2.2;
  direction: rtl;
  color: var(--accent);
  letter-spacing: 0.15em;
  padding-bottom: 0.8rem;
}
.quick-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.quick-facts span {
  background: var(--accent-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Content sections ---- */
.page-wrap h2 {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.page-wrap h3 {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}
.page-wrap p { margin: 0 0 1rem; }

/* ---- Alphabet table ---- */
.alpha-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 2rem;
  font-size: 0.92rem;
}
.alpha-table thead th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}
.alpha-table thead th:first-child {
  text-align: center;
}
.alpha-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.alpha-table tbody tr:hover {
  background: rgba(15, 139, 116, 0.04);
}
.alpha-table td {
  padding: 0.55rem 0.6rem;
  vertical-align: middle;
}
.alpha-table .letter-cell {
  text-align: center;
  font-family: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Fallback", serif;
  font-size: 2rem;
  line-height: 2.2;
  direction: rtl;
  width: 4rem;
  padding-bottom: 1rem;
}
.alpha-table .name-cell {
  font-weight: 600;
  white-space: nowrap;
}
.alpha-table .example-cell {
  font-size: 0.85rem;
  color: var(--muted);
}
.alpha-table .example-cell .urdu-word {
  font-family: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Fallback", serif;
  font-size: 1.15rem;
  line-height: 2;
  direction: rtl;
  display: inline-block;
  margin-right: 0.3rem;
  padding-bottom: 0.4rem;
}

/* ---- Play button in sound column ---- */
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--accent);
  cursor: pointer;
  vertical-align: middle;
  margin-right: 0.5rem;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.play-btn .material-symbols-rounded {
  font-size: 1.15rem;
}
.play-btn:hover {
  opacity: 1;
}
.play-btn.playing {
  opacity: 1;
}

/* Mobile: stack table into cards */
@media (max-width: 599px) {
  .alpha-table thead { display: none; }
  .alpha-table, .alpha-table tbody, .alpha-table tr, .alpha-table td {
    display: block;
  }
  .alpha-table tbody tr {
    padding: 0.8rem 0;
    display: grid;
    grid-template-columns: 4rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 0.6rem;
    align-items: center;
  }
  .alpha-table .letter-cell {
    grid-row: 1 / 3;
    width: auto;
    padding: 0;
    padding-bottom: 0.8rem;
  }
  .alpha-table .name-cell {
    padding: 0.2rem 0 0;
  }
  .alpha-table .sound-cell {
    font-size: 0.88rem;
    padding: 0;
    color: var(--muted);
  }
  .alpha-table .example-cell {
    grid-column: 1 / -1;
    padding: 0.2rem 0 0;
  }
}

/* ---- Vowel diacritics cards ---- */
.diacritic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.diacritic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.diacritic-card .big-letter {
  font-family: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Fallback", serif;
  font-size: 2.4rem;
  line-height: 2.4;
  direction: rtl;
  color: var(--accent);
  padding-bottom: 0.8rem;
}
.diacritic-card .label {
  font-weight: 600;
  margin: 0.3rem 0 0.15rem;
  font-size: 0.95rem;
}
.diacritic-card .desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Similar letters groups ---- */
.similar-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
}
.similar-group .group-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}
.similar-group .letters-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.similar-group .letter-item {
  text-align: center;
}
.similar-group .letter-big {
  font-family: "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Fallback", serif;
  font-size: 2rem;
  line-height: 2.2;
  direction: rtl;
  display: block;
  padding-bottom: 0.6rem;
}
.similar-group .letter-name {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Callout boxes ---- */
.callout {
  border-left: 3px solid var(--warm);
  background: rgba(198, 169, 95, 0.08);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
}
.callout-accent {
  border-left-color: var(--accent);
  background: rgba(15, 139, 116, 0.06);
}

/* ---- FAQ ---- */
.faq-list { margin: 1rem 0 2rem; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}
.faq-a {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.65;
}

/* ---- CTA ---- */
.cta-box {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.cta-box h2 {
  color: #fff;
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.cta-box p {
  color: rgba(255,255,255,0.7);
  margin: 0 0 1.2rem;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s;
}
.cta-btn:hover { background: #0a7560; }
