/* ===== USE Advance Dictionary — Master Portal Stylesheet (Design 2 System) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Naskh+Arabic:wght@400;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&family=Caveat:wght@600;700&family=Seaweed+Script&display=swap');

:root {
  --primary:        #00897b;
  --primary-dark:   #00695c;
  --primary-light:  #26a69a;
  --primary-glow:   rgba(0, 137, 123, 0.22);
  --accent:         #0284c7;
  --accent-dark:    #0369a1;
  --accent-light:   #38bdf8;
  --accent-glow:    rgba(2, 132, 199, 0.20);
  --emerald:        #10b981;
  --purple:         #7c3aed;
  --purple-light:   #8b5cf6;
  --amber:          #f59e0b;
  --orange:         #ea580c;
  --rose:           #f43f5e;
  --gold:           #eab308;

  --bg:             #f5f9fa;
  --bg-gradient:    linear-gradient(180deg, #ecfdf5 0%, #f0f9ff 250px, #f8fafc 600px, #f8fafc 100%);
  --surface:        #ffffff;
  --surface-alt:    #f1f5f9;
  --surface-hover:  #e6f4f3;

  --text:           #0f172a;
  --text-muted:     #475569;
  --text-dim:       #94a3b8;

  --border:         rgba(0, 137, 123, 0.12);
  --border-md:      rgba(0, 137, 123, 0.22);
  --border-strong:  rgba(0, 137, 123, 0.40);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  --sindhi-font:    'Noto Naskh Arabic', Tahoma, sans-serif;
  --urdu-font:      'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', Tahoma, serif;
  --hand-font:      'Caveat', cursive, sans-serif;

  --grad-primary:   linear-gradient(135deg, #0284c7 0%, #00897b 60%, #10b981 100%);
  --grad-teal:      linear-gradient(135deg, #00897b 0%, #10b981 100%);
  --grad-blue:      linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-purple:    linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  --grad-hero:      linear-gradient(145deg, #dcfce7 0%, #e0f2fe 35%, #ecfeff 70%, #ffffff 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient glow accents */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.12) 0%, rgba(2, 132, 199, 0.08) 55%, transparent 70%);
  top: -120px; left: -100px;
}
body::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, rgba(124, 58, 237, 0.06) 60%, transparent 70%);
  bottom: 50px; right: -100px;
}

/* ── Modern Header (Design 2) ── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 137, 123, 0.05);
}
.header-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.brand-group:hover { transform: translateY(-1px); }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-name span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
nav a:hover {
  color: var(--primary-dark);
  background: var(--surface-hover);
}
nav a.active {
  color: #ffffff;
  background: #00897b;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 137, 123, 0.25);
  border-radius: 50px;
}
.btn-search-trigger {
  background: rgba(0, 137, 123, 0.08);
  border: 1px solid var(--border-md);
  color: var(--primary-dark);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-search-trigger:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
nav a.btn-app {
  background: var(--grad-primary);
  color: #fff !important;
  font-weight: 700;
  padding: 0.52rem 1.25rem;
  box-shadow: 0 4px 16px var(--primary-glow);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  transition: all 0.25s ease;
}
nav a.btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-md);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.container {
  max-width: 1260px;
  margin: 2.25rem auto 3.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Hero Section (Design 2: 2-Column Grid with Realistic Device Showcase) ── */
.hero-section {
  background: #f0fbf9 url('../images/hero_bg_waves.png') center/cover no-repeat;
  border: 1px solid rgba(0, 137, 123, 0.18);
  border-radius: 28px;
  padding: 3.25rem 3.25rem;
  margin-bottom: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 137, 123, 0.08);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 137, 123, 0.08);
  border: 1px solid rgba(0, 137, 123, 0.22);
  color: #00695c;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1.15rem;
  border-radius: 50px;
  margin: 0 auto 1.15rem;
  text-align: center;
}
.hero-title {
  font-size: clamp(1.8rem, 2.5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #000000;
  margin: 0 0 1rem;
  white-space: nowrap;
  text-align: center;
}
.hero-title .text-master { color: #000000; }
.hero-title .text-eng { color: #1e3a8a; } /* dark blue */
.hero-title .text-sin { color: #047857; } /* dark green */
.hero-title .text-urd { color: #2563eb; } /* blue */

.hero-subtitle {
  color: #475569;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.45; /* decreased line spacing */
  margin: 0 auto 1.6rem;
  max-width: 680px;
  text-align: center; /* aligned center */
}
.hero-actions-one-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}
.btn-hero-primary {
  background: var(--grad-primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.72rem 1.15rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.25);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 137, 123, 0.35);
}
.btn-hero-pill {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  padding: 0.72rem 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.84rem;
  border: 1.5px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  white-space: nowrap;
}
.btn-hero-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 137, 123, 0.15);
}

/* Hero Showcase Image & Callout */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-script-callout {
  position: absolute;
  top: -12px;
  right: -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  animation: floatSlight 4s ease-in-out infinite;
}
@keyframes floatSlight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.script-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.script-words span {
  font-family: 'Seaweed Script', cursive;
  font-size: 2.2rem;
  color: #1d4ed8;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: block;
}
.script-arrow {
  margin-top: 0.25rem;
  width: 46px;
  height: 42px;
}

.mockup-img-container {
  width: 100%;
  max-width: 410px; /* decreased size */
  background: transparent; /* removed extra white card */
  border: none; /* removed extra white border */
  box-shadow: none; /* removed container card shadow */
  padding: 0; /* removed extra padding */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.4s ease;
}
.mockup-img-container:hover {
  transform: translateY(-3px);
}
.hero-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.16));
}

/* ── Key Statistics Row (Design 2: 5 Horizontal Pill Cards) ── */
.stats-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.25rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.04);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 137, 123, 0.12);
  border-color: var(--border-strong);
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon { transform: scale(1.1); }
.stat-card.sindhi {
  background: linear-gradient(145deg, #f0fdf9 0%, #ffffff 55%, #e6f7f5 100%);
  border: 1.5px solid rgba(0, 137, 123, 0.22);
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.06);
}
.stat-card.sindhi .stat-icon   { background: rgba(0, 137, 123, 0.14); color: #00897b; }
.stat-card.urdu {
  background: linear-gradient(145deg, #f0f9ff 0%, #ffffff 55%, #e0f2fe 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.22);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.06);
}
.stat-card.urdu .stat-icon     { background: rgba(2, 132, 199, 0.14); color: #0284c7; }
.stat-card.exam {
  background: linear-gradient(145deg, #faf5ff 0%, #ffffff 55%, #f3e8ff 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.22);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}
.stat-card.exam .stat-icon     { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.stat-card.sentences {
  background: linear-gradient(145deg, #fff7ed 0%, #ffffff 55%, #ffedd5 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.22);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
}
.stat-card.sentences .stat-icon{ background: rgba(234, 88, 12, 0.14); color: #ea580c; }
.stat-card.languages {
  background: linear-gradient(145deg, #fefce8 0%, #ffffff 55%, #fef9c3 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.25);
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.06);
}
.stat-card.languages .stat-icon{ background: rgba(234, 179, 8, 0.16); color: #ca8a04; }

.stat-number {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat-card.sindhi .stat-number   { color: #00897b; }
.stat-card.urdu .stat-number     { color: #0284c7; }
.stat-card.exam .stat-number     { color: #7c3aed; }
.stat-card.sentences .stat-number{ color: #ea580c; }
.stat-card.languages .stat-number{ color: #ca8a04; }

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Featured Banner: Word of the Day (Design 2 with Rich Graphics) ── */
.wotd-banner {
  background: #f0fdf9 url('../images/wotd_banner_bg_mint.png') center/cover no-repeat;
  border: 1.5px solid rgba(16, 185, 129, 0.32);
  border-radius: 22px;
  padding: 1.6rem 2.5rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 12px 36px rgba(0, 137, 123, 0.10), 0 4px 14px rgba(16, 185, 129, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  gap: 1.75rem;
}
.wotd-bulb-wrap {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.85) 0%, rgba(254, 240, 138, 0.35) 55%, rgba(255, 255, 255, 0) 75%);
}
.wotd-bulb-img {
  width: 58px;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.55));
  transition: transform 0.3s ease;
}
.wotd-banner:hover .wotd-bulb-img {
  transform: scale(1.08);
}
.wotd-word-col {
  flex: 1;
  min-width: 250px;
}
.wotd-header-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.wotd-word-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.wotd-main-word {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.btn-speaker {
  background: rgba(0, 137, 123, 0.10);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #00897b;
  transition: all 0.2s ease;
}
.btn-speaker:hover {
  background: #00897b;
  color: #ffffff;
  transform: scale(1.1);
}
.wotd-pos-tag {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}
.wotd-trans {
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
  padding-right: 0.5rem;
}
.wotd-trans .sin-word { font-family: var(--sindhi-font); color: #00796b; font-size: 1.45rem; }
.wotd-trans .urd-word { font-family: var(--urdu-font); color: #0284c7; font-size: 1.45rem; }
.wotd-trans .sep { color: #94a3b8; font-weight: 400; font-size: 1.2rem; }
.wotd-example {
  color: #475569;
  font-size: 0.96rem;
  margin: 0.4rem 0 0;
  line-height: 1.5;
  font-style: italic;
}

.wotd-divider {
  width: 1px;
  height: 56px;
  background: rgba(148, 163, 184, 0.35);
  margin: 0 1rem;
  flex-shrink: 0;
}
.wotd-checklist-col {
  flex: 1;
}
.wotd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.wotd-checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #334155;
  font-weight: 600;
}
.wotd-checklist .check-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.wotd-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.btn-wotd-cta {
  background: var(--grad-teal);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.82rem 1.65rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.30);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.btn-wotd-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 137, 123, 0.40);
}
.wotd-books-wrap {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wotd-books-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.14));
  transition: transform 0.3s ease;
}
.wotd-books-wrap:hover .wotd-books-img {
  transform: scale(1.08);
}

/* ── Curated Learning Hub: 3 Cultural Landmark Cards ── */
.section-center-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-pill-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #00897b 0%, #0284c7 50%, #7c3aed 100%);
  background-size: 200% 200%;
  animation: pillShimmer 4s ease infinite;
  border: none;
  padding: 0.38rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 137, 123, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.section-pill-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 137, 123, 0.3);
}
@keyframes pillShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.section-main-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-educational-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 2.75rem;
}
.edu-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 385px;
}
.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: height 0.25s ease;
  z-index: 10;
}
.edu-card.card-sindhi::before { background: #00897b; }
.edu-card.card-urdu::before   { background: #0284c7; }
.edu-card.card-english::before{ background: #7c3aed; }

/* Soft Light Gradient Background Matching Button Color */
.edu-card.card-sindhi {
  background: linear-gradient(155deg, #e6fcf5 0%, #ffffff 42%, #dcfce7 100%);
  border: 1.5px solid rgba(0, 137, 123, 0.26);
  box-shadow: 0 6px 24px rgba(0, 137, 123, 0.08);
}
.edu-card.card-sindhi:hover {
  box-shadow: 0 18px 42px rgba(0, 137, 123, 0.16);
  border-color: rgba(0, 137, 123, 0.45);
}

.edu-card.card-urdu {
  background: linear-gradient(155deg, #e0f2fe 0%, #ffffff 42%, #dbeafe 100%);
  border: 1.5px solid rgba(2, 132, 199, 0.26);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.08);
}
.edu-card.card-urdu:hover {
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.16);
  border-color: rgba(2, 132, 199, 0.45);
}

.edu-card.card-english {
  background: linear-gradient(155deg, #f3e8ff 0%, #ffffff 42%, #ede9fe 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.26);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
}
.edu-card.card-english:hover {
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.16);
  border-color: rgba(124, 58, 237, 0.45);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(203, 213, 225, 0.9);
}
.edu-card:hover::before { height: 5px; }

.edu-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  position: relative;
  z-index: 3;
}
.edu-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.edu-card:hover .edu-card-icon { transform: scale(1.08); }
.edu-card.card-sindhi .edu-card-icon   { background: #e6f7f5; color: #00897b; }
.edu-card.card-urdu .edu-card-icon     { background: #e0f2fe; color: #0284c7; }
.edu-card.card-english .edu-card-icon  { background: #f3e8ff; color: #7c3aed; }

.edu-card-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}
.edu-card.card-sindhi .edu-card-badge   { background: #e0f2f1; color: #00695c; }
.edu-card.card-urdu .edu-card-badge     { background: #e0f2fe; color: #0369a1; }
.edu-card.card-english .edu-card-badge  { background: #f3e8ff; color: #6d28d9; }

.edu-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sindhi-title {
  direction: rtl;
  justify-content: flex-start;
}
.sindhi-head {
  font-family: var(--sindhi-font);
  font-size: 1.45rem;
  font-weight: 800;
  color: #00796b;
}
.urdu-title {
  direction: rtl;
  justify-content: flex-start;
}
.urdu-nastaliq-head {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.5;
  margin-left: 0.25rem;
  color: #0369a1;
}
.card-title-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.01em;
}
.english-title {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  text-align: left;
  font-size: 1.35rem;
  font-weight: 800;
  color: #5b21b6;
}

.sindhi-desc {
  font-family: var(--sindhi-font);
  direction: rtl;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #64748b;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 3;
}
.urdu-desc {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  direction: rtl;
  text-align: right;
  font-size: 0.92rem;
  line-height: 2.0;
  color: #475569;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 3;
}
.english-desc {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 3;
}

/* Bottom Action Row & Left-aligned Button */
.edu-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 5;
  padding-top: 0.5rem;
}

.btn-card-action {
  width: fit-content;
  text-align: center;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  color: #ffffff !important;
  white-space: nowrap;
  position: relative;
  z-index: 6;
}
.edu-card.card-sindhi .btn-card-action {
  background: #00897b;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.25);
}
.edu-card.card-sindhi .btn-card-action:hover {
  background: #00796b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.35);
}
.edu-card.card-urdu .btn-card-action {
  background: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.edu-card.card-urdu .btn-card-action:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}
.edu-card.card-english .btn-card-action {
  background: #7c3aed;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}
.edu-card.card-english .btn-card-action:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

/* Corner Landmark Images (Untitled-3, Untitled-2, Untitled-7) */
.card-corner-monument {
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  line-height: 0;
}
.card-corner-monument img {
  display: block;
  object-fit: contain;
  object-position: right bottom;
  transition: transform 0.35s ease;
}
.edu-card:hover .card-corner-monument img {
  transform: scale(1.05);
}

/* Specific sizing to match the reference design corner monuments */
.card-sindhi .card-corner-monument img {
  height: 115px;
  max-width: 135px;
}
.card-urdu .card-corner-monument img {
  height: 105px;
  max-width: 145px;
}
.card-english .card-corner-monument img {
  height: 135px;
  max-width: 125px;
}

/* ── Additional Features: 6 Bottom Row Cards ── */
.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.75rem;
}
.feature-pill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.feature-pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 137, 123, 0.12);
  background: #ffffff;
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  transition: transform 0.25s ease;
}
.feature-pill-card:hover .feature-icon-wrap { transform: scale(1.12); }
.feature-pill-card.f-exam    { background: linear-gradient(150deg, #faf5ff 0%, #ffffff 65%, #f3e8ff 100%); border: 1.5px solid rgba(124, 58, 237, 0.22); }
.feature-pill-card.f-daily   { background: linear-gradient(150deg, #f0fdf9 0%, #ffffff 65%, #e6f7f5 100%); border: 1.5px solid rgba(0, 137, 123, 0.22); }
.feature-pill-card.f-vocab   { background: linear-gradient(150deg, #fff7ed 0%, #ffffff 65%, #ffedd5 100%); border: 1.5px solid rgba(234, 88, 12, 0.22); }
.feature-pill-card.f-search  { background: linear-gradient(150deg, #f0f9ff 0%, #ffffff 65%, #e0f2fe 100%); border: 1.5px solid rgba(2, 132, 199, 0.22); }
.feature-pill-card.f-fav     { background: linear-gradient(150deg, #fff1f2 0%, #ffffff 65%, #ffe4e6 100%); border: 1.5px solid rgba(244, 63, 94, 0.22); }
.feature-pill-card.f-offline { background: linear-gradient(150deg, #ecfdf5 0%, #ffffff 65%, #d1fae5 100%); border: 1.5px solid rgba(16, 185, 129, 0.22); }

.feature-pill-card.f-exam:hover    { border-color: rgba(124, 58, 237, 0.45); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14); }
.feature-pill-card.f-daily:hover   { border-color: rgba(0, 137, 123, 0.45); box-shadow: 0 10px 24px rgba(0, 137, 123, 0.14); }
.feature-pill-card.f-vocab:hover   { border-color: rgba(234, 88, 12, 0.45); box-shadow: 0 10px 24px rgba(234, 88, 12, 0.14); }
.feature-pill-card.f-search:hover  { border-color: rgba(2, 132, 199, 0.45); box-shadow: 0 10px 24px rgba(2, 132, 199, 0.14); }
.feature-pill-card.f-fav:hover     { border-color: rgba(244, 63, 94, 0.45); box-shadow: 0 10px 24px rgba(244, 63, 94, 0.14); }
.feature-pill-card.f-offline:hover { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.14); }

.feature-pill-card.f-exam .feature-icon-wrap   { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.feature-pill-card.f-daily .feature-icon-wrap  { background: rgba(0, 137, 123, 0.14); color: #00897b; }
.feature-pill-card.f-vocab .feature-icon-wrap  { background: rgba(234, 88, 12, 0.14); color: #ea580c; }
.feature-pill-card.f-search .feature-icon-wrap { background: rgba(2, 132, 199, 0.14); color: #0284c7; }
.feature-pill-card.f-fav .feature-icon-wrap    { background: rgba(244, 63, 94, 0.14); color: #e11d48; }
.feature-pill-card.f-offline .feature-icon-wrap{ background: rgba(16, 185, 129, 0.14); color: #059669; }

.feature-title {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.feature-sub {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.ad-container {
  margin: 2.25rem 0;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px dashed var(--border-md);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL UI DESIGN SYSTEM FOR ALL INTERNAL PAGES (DESIGN 2)
   ══════════════════════════════════════════════════════════════════ */

/* ── Universal Container ── */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3rem;
  width: 100%;
}

/* ── Universal Page Hero Header ── */
.page-hero-header {
  text-align: center;
  margin: 0 auto 2.75rem;
  max-width: 100%;
  padding: 2.75rem 2rem 2.5rem;
  background: linear-gradient(160deg, #ecfdf5 0%, #e0f2fe 30%, #f0f9ff 60%, #faf5ff 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 137, 123, 0.14);
  box-shadow: 0 10px 32px rgba(0, 137, 123, 0.06);
  position: relative;
  overflow: hidden;
}
.page-hero-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-header .section-pill-tag {
  display: inline-block;
  margin-bottom: 1.65rem;
}
.page-hero-header h1 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 900;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 45%, #00897b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  position: relative;
  z-index: 1;
}
.page-hero-header h1.urdu-text,
.urdu-title-hero {
  font-family: var(--urdu-font) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 2 !important;
  color: #0369a1 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #0369a1 !important;
  background-clip: unset !important;
  text-align: center !important;
  margin: 0.65rem auto 0.85rem !important;
  font-size: clamp(2rem, 3.4vw, 2.75rem) !important;
  direction: rtl !important;
  text-shadow: 0 2px 10px rgba(2, 132, 199, 0.12) !important;
}
.page-hero-header h1.sindhi-text,
.sindhi-title-hero {
  font-family: var(--sindhi-font) !important;
  font-weight: 800 !important;
  letter-spacing: normal !important;
  line-height: 1.65 !important;
  color: #00796b !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #00796b !important;
  background-clip: unset !important;
  text-align: center !important;
  margin: 0 auto 0.85rem !important;
  font-size: clamp(2rem, 3.2vw, 2.6rem) !important;
  direction: rtl !important;
  text-shadow: 0 2px 10px rgba(0, 137, 123, 0.12) !important;
}
.page-hero-header p {
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 740px;
  position: relative;
  z-index: 1;
}
.page-hero-header p.urdu-text,
.urdu-subtitle-hero {
  font-family: var(--urdu-font) !important;
  text-align: center !important;
  line-height: 2.2 !important;
  font-size: 1.15rem !important;
  color: #334155 !important;
  margin: 0 auto !important;
  max-width: 820px !important;
  direction: rtl !important;
}
.page-hero-header p.sindhi-text,
.sindhi-subtitle-hero {
  font-family: var(--sindhi-font) !important;
  text-align: center !important;
  line-height: 2.0 !important;
  font-size: 1.15rem !important;
  color: #334155 !important;
  margin: 0 auto !important;
  max-width: 820px !important;
  direction: rtl !important;
}

/* ── Modern Segmented Pill Tabs Navigation ── */
.tabs-nav {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 0.45rem;
  border-radius: 50px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.02);
  width: fit-content;
  max-width: 100%;
}
.tab-btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-family: inherit;
  position: relative;
}
.tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.75);
}
.tab-btn.active {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.18), 0 1px 3px rgba(0, 0, 0, 0.06);
  font-weight: 800;
  transform: translateY(-1px);
  border: 1px solid rgba(0, 137, 123, 0.15);
}

/* ── Modern Search Filter Bar ── */
.search-container {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
}
.search-container::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300897b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.search-container:focus-within::before {
  opacity: 1;
}
[dir="rtl"] .search-container::before {
  left: auto;
  right: 1.25rem;
}
.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 3.1rem;
  font-size: 0.98rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  outline: none;
  transition: all 0.25s ease;
  font-family: inherit;
  color: #0f172a;
  box-sizing: border-box;
}
[dir="rtl"] .search-input {
  padding: 0.85rem 3.1rem 0.85rem 1.25rem;
  text-align: right;
}
.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.12), 0 8px 24px rgba(0, 0, 0, 0.05);
}
.search-input::placeholder {
  color: #94a3b8;
}

/* ── Content Cards ── */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00897b 0%, #0284c7 50%, #7c3aed 100%);
  opacity: 0.7;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.card p {
  color: #475569;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── Modern Premium Data Tables ── */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}
.data-table-wrap:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.data-table-wrap::-webkit-scrollbar { height: 6px; }
.data-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
table.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.95rem;
}
table.custom-table th {
  background: linear-gradient(180deg, #f0fdfa 0%, #e6f7f5 100%);
  color: #0f172a;
  font-weight: 800;
  padding: 1.15rem 1.35rem;
  border-bottom: 2.5px solid #00897b;
  white-space: nowrap;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 137, 123, 0.04);
}
table.custom-table thead tr th:first-child {
  border-top-left-radius: 16px;
  color: #00897b;
  width: 60px;
  text-align: center;
}
table.custom-table thead tr th:last-child {
  border-top-right-radius: 16px;
}

/* Prominent Sindhi & Urdu Column Headers in Daily Sentences */
table.custom-table th:nth-child(4) {
  font-family: var(--sindhi-font);
  font-size: 1.25rem;
  font-weight: 800;
  color: #00796b;
  text-transform: none;
  letter-spacing: normal;
  text-align: right;
  line-height: 1.4;
}
table.custom-table th:nth-child(5) {
  font-family: var(--urdu-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: none;
  letter-spacing: normal;
  text-align: right;
  line-height: 1.5;
}
/* Multi-column filterable tables in Exam Prep reset text styling */
.filterable-table th {
  font-family: inherit !important;
  font-size: 0.82rem !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-align: left !important;
  line-height: 1.4 !important;
}

table.custom-table td {
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  line-height: 1.65;
  transition: background 0.15s ease;
}
table.custom-table tr:last-child td {
  border-bottom: none;
}
table.custom-table tr:hover td {
  background: linear-gradient(90deg, rgba(0, 137, 123, 0.03) 0%, rgba(2, 132, 199, 0.02) 100%);
}
table.custom-table tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.5);
}
table.custom-table tr:nth-child(even):hover td {
  background: linear-gradient(90deg, rgba(0, 137, 123, 0.04) 0%, rgba(2, 132, 199, 0.03) 100%);
}

/* Row Numbering Pill */
table.custom-table td:first-child {
  font-weight: 800;
  color: var(--primary);
  width: 60px;
  font-size: 0.88rem;
  text-align: center;
}

/* English Sentence / Idiom Column */
table.custom-table td:nth-child(2) {
  font-weight: 700;
  color: #0f172a;
}
/* English Meaning Column */
table.custom-table td:nth-child(3) {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Urdu & Sindhi cell typography in tables — balanced, readable, and perfectly proportioned */
table.custom-table td.urdu-text {
  font-family: var(--urdu-font);
  font-size: 1.04rem;
  line-height: 1.95;
  padding: 0.95rem 1.3rem;
  direction: rtl;
  text-align: right;
  color: #0f172a;
  font-weight: 600;
}
table.custom-table td.sindhi-text {
  font-family: var(--sindhi-font);
  font-size: 1.06rem;
  line-height: 1.85;
  padding: 0.95rem 1.3rem;
  direction: rtl;
  text-align: right;
  color: #0f172a;
  font-weight: 600;
}

/* Table Column Enhancements for Exam Vocabulary */
.filterable-table td:nth-child(2) {
  font-weight: 700;
  color: #0284c7;
}
.filterable-table td:nth-child(3) {
  font-weight: 600;
  color: #059669;
}
.filterable-table td:nth-child(4) {
  font-size: 0.86rem;
  color: #64748b;
  font-weight: 600;
}
.filterable-table td:nth-child(5) {
  font-weight: 700;
  color: #be123c;
  font-size: 0.83rem;
}

/* ── Reader Layout & Sidebar (Grammar & Study Portals) ── */
.reader-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.25rem;
  align-items: start;
  margin-bottom: 4rem;
}
.sidebar-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
  border: 1px solid rgba(0, 137, 123, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 137, 123, 0.04);
  transition: box-shadow 0.3s ease;
}
.sidebar-nav:hover {
  box-shadow: 0 6px 28px rgba(0, 137, 123, 0.08);
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(0, 137, 123, 0.2); border-radius: 4px; }
.sidebar-nav h3 {
  margin: 0 0 1.15rem;
  font-size: 1.02rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border-bottom: 2px solid rgba(0, 137, 123, 0.18);
  padding-bottom: 0.85rem;
}
.sidebar-nav h3.urdu-text {
  font-family: var(--urdu-font) !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.6 !important;
}
.sidebar-nav h3.sindhi-text {
  font-family: var(--sindhi-font) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #00796b !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
}
.sidebar-nav .search-input {
  border-radius: 12px;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
[dir="rtl"] .sidebar-nav .search-input {
  padding: 0.65rem 2.5rem 0.65rem 1rem;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 0.3rem;
}
.toc-list a {
  display: block;
  padding: 0.6rem 0.85rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}
.toc-list a:hover {
  background: linear-gradient(90deg, rgba(0, 137, 123, 0.06) 0%, rgba(0, 137, 123, 0.02) 100%);
  color: var(--primary);
  padding-left: 1.15rem;
  border-left-color: var(--primary);
}
[dir="rtl"] .toc-list a {
  border-left: none;
  border-right: 3px solid transparent;
}
[dir="rtl"] .toc-list a:hover {
  padding-left: 0.85rem;
  padding-right: 1.15rem;
  border-left-color: transparent;
  border-right-color: var(--primary);
}

/* Urdu & Sindhi TOC sidebar links — prominent and legible */
.toc-list a.urdu-text {
  font-family: var(--urdu-font) !important;
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: normal !important;
  padding: 0.55rem 0.85rem !important;
}
.toc-list a.urdu-text:hover {
  color: #0284c7 !important;
}
.toc-list a.sindhi-text {
  font-family: var(--sindhi-font) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: normal !important;
  padding: 0.55rem 0.85rem !important;
}
.toc-list a.sindhi-text:hover {
  color: #00796b !important;
}

/* Reader body Urdu & Sindhi paragraphs — improved readability */
.reader-content .urdu-text {
  font-family: var(--urdu-font) !important;
  font-size: 1.18rem !important;
  line-height: 2.2 !important;
  color: #1e293b !important;
  direction: rtl !important;
  text-align: right !important;
  letter-spacing: normal !important;
}
.reader-content .sindhi-text {
  font-family: var(--sindhi-font) !important;
  font-size: 1.18rem !important;
  line-height: 1.95 !important;
  color: #1e293b !important;
  direction: rtl !important;
  text-align: right !important;
  letter-spacing: normal !important;
}

/* Chapter title overrides remain more prominent than body */
.reader-content .chapter-title.urdu-text {
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  line-height: 1.85 !important;
  color: #0284c7 !important;
}
.reader-content .chapter-title.sindhi-text {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  color: #00796b !important;
}

.reader-content {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 2.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  position: relative;
}
.reader-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00897b 0%, #0284c7 50%, #7c3aed 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.65;
}
.chapter-box {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 137, 123, 0.08);
}
.chapter-box:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.chapter-title {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #00897b 0%, #0284c7 60%, rgba(2, 132, 199, 0.1) 100%) 1;
  letter-spacing: -0.01em;
  position: relative;
}
.chapter-title.urdu-text {
  font-family: var(--urdu-font) !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  line-height: 1.85 !important;
  color: #0284c7 !important;
  letter-spacing: normal !important;
  border-image: linear-gradient(270deg, #0284c7 0%, #00897b 60%, rgba(0, 137, 123, 0.1) 100%) 1 !important;
}
.chapter-title.sindhi-text {
  font-family: var(--sindhi-font) !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  color: #00796b !important;
  letter-spacing: normal !important;
  border-image: linear-gradient(270deg, #00796b 0%, #0284c7 60%, rgba(2, 132, 199, 0.1) 100%) 1 !important;
}

/* ── Form Controls & Action Buttons (Contact, Feedback) ── */
form label {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: block;
}
form .search-input,
form select.search-input,
form textarea.search-input {
  border-radius: 12px !important;
  padding: 0.85rem 1.15rem !important;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
form select.search-input {
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #00897b, #00796b);
  color: #ffffff !important;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 137, 123, 0.35);
  background: linear-gradient(135deg, #00796b, #00695c);
}

.sindhi-text { font-family: var(--sindhi-font); direction: rtl; text-align: right; line-height: 2.1; font-size: 1.15rem; color: #1e293b; }
.urdu-text   { font-family: var(--urdu-font);   direction: rtl; text-align: right; line-height: 2.3; font-size: 1.15rem; color: #1e293b; }

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.search-modal-backdrop.open { display: flex; }
.search-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-md);
  overflow: hidden;
  animation: modalSlide 0.25s ease;
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-modal-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-modal-input {
  width: 100%;
  border: none;
  font-size: 1.1rem;
  outline: none;
  font-family: inherit;
  color: var(--text);
}
.search-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.search-modal-body {
  padding: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
}
.search-quick-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.search-quick-pill {
  background: var(--surface-alt);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  transition: all 0.2s;
}
.search-quick-pill:hover { background: var(--primary); color: #fff; }

footer {
  background: linear-gradient(180deg, #0c2240 0%, #071529 100%);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
  border-top: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00897b 0%, #0284c7 40%, #7c3aed 80%, #f43f5e 100%);
}
footer::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.footer-container {
  max-width: 1260px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand h4 { color: #ffffff; font-size: 1.15rem; margin: 0 0 0.75rem; font-weight: 700; }
.footer-brand p { line-height: 1.65; margin: 0; max-width: 440px; font-size: 0.88rem; }
.footer-col h5 {
  color: #ffffff; font-size: 0.82rem; margin: 0 0 1.1rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: all 0.25s ease; font-size: 0.88rem; }
.footer-col a:hover { color: #38bdf8; padding-left: 4px; }
.footer-bottom {
  max-width: 1260px; margin: 0 auto; padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .floating-callout { display: none; }
  .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .wotd-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .wotd-bulb-wrap { margin: 0 auto 0.5rem; }
  .wotd-header-badge { margin: 0 auto 0.4rem; }
  .wotd-word-row { justify-content: center; flex-wrap: wrap; }
  .wotd-divider { display: none; }
  .wotd-checklist { align-items: center; }
  .wotd-action-col { flex-direction: row; justify-content: center; }
  .cards-educational-3 { grid-template-columns: 1fr; }
  .features-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 1rem 0.85rem 2.5rem; }
  .hero-section { padding: 2rem 1.15rem 1.75rem; border-radius: 22px; margin-bottom: 1.5rem; }
  .hero-badge { font-size: 0.68rem; padding: 0.35rem 0.85rem; letter-spacing: 0.05em; }
  .hero-title { font-size: clamp(1.75rem, 6.5vw, 2.3rem) !important; line-height: 1.22 !important; white-space: normal !important; margin-bottom: 0.85rem !important; }
  .hero-subtitle { font-size: 0.92rem; line-height: 1.55; margin: 0 auto 1.4rem; padding: 0 0.25rem; }

  /* Hero Mockup Mobile: Cleanly Centered & Scaled with Desktop Handwriting Callout */
  .hero-mockup-wrapper {
    position: relative !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 1.5rem auto 0.5rem !important;
    width: 100% !important;
    max-width: 320px !important;
  }
  .mockup-img-container {
    max-width: 250px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .hero-mockup-img {
    width: 100% !important;
    height: auto !important;
    max-height: 195px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 24px rgba(0, 137, 123, 0.16)) !important;
  }
  .hero-script-callout {
    display: flex !important;
    position: absolute !important;
    top: -8px !important;
    right: -12px !important;
    transform: scale(0.72) rotate(3deg) !important;
    transform-origin: top right !important;
    pointer-events: none !important;
    z-index: 10 !important;
  }

  /* Hero Actions: Horizontal Row Flow Matching Desktop */
  .hero-actions-one-line {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .btn-hero-primary {
    padding: 0.72rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
  }
  .hero-actions-one-line .btn-hero-pill {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    border-radius: 50px !important;
  }

  /* Key Statistics: Desktop Horizontal Row Alignment on Mobile (Swipeable Track) */
  .stats-grid-5 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.7rem !important;
    margin-bottom: 2rem !important;
    padding: 0.35rem 0.25rem 0.75rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }
  .stats-grid-5::-webkit-scrollbar {
    height: 4px;
  }
  .stats-grid-5::-webkit-scrollbar-thumb {
    background: rgba(0, 137, 123, 0.28);
    border-radius: 4px;
  }
  .stat-card {
    flex: 0 0 170px !important;
    scroll-snap-align: start !important;
    padding: 0.8rem 0.9rem !important;
    border-radius: 16px !important;
    gap: 0.65rem !important;
    white-space: nowrap !important;
  }
  .stat-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .stat-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .stat-number {
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
  }
  .stat-label {
    font-size: 0.7rem !important;
  }

  /* Word of the Day Banner: Horizontal Layout with Side-by-Side Bulb */
  .wotd-banner {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.4rem 1.15rem !important;
    gap: 1.1rem !important;
    border-radius: 20px !important;
    margin-bottom: 2.25rem !important;
  }
  .wotd-top-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }
  .wotd-bulb-wrap {
    width: 58px !important;
    height: 58px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    background: radial-gradient(circle, rgba(254, 243, 199, 0.95) 0%, rgba(254, 240, 138, 0.4) 60%, transparent 80%) !important;
  }
  .wotd-bulb-img {
    width: 40px !important;
    height: auto !important;
  }
  .wotd-word-col {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }
  .wotd-header-badge {
    font-size: 0.72rem !important;
    margin-bottom: 0.2rem !important;
    display: inline-block !important;
    letter-spacing: 0.08em !important;
  }
  .wotd-word-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.4rem 0.6rem !important;
    white-space: normal !important;
  }
  .wotd-main-word {
    font-size: 1.7rem !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
  }
  .wotd-pos-tag {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.5rem !important;
  }
  .wotd-trans {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin-left: 0.25rem !important;
    font-size: 1.2rem !important;
    padding-right: 0 !important;
  }
  .wotd-trans .sin-word { font-size: 1.35rem !important; }
  .wotd-trans .urd-word { font-size: 1.35rem !important; }
  .wotd-example {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0.4rem 0 0 !important;
    text-align: left !important;
  }
  .wotd-divider { display: none !important; }
  .wotd-checklist-col { width: 100% !important; }
  .wotd-checklist {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }
  .wotd-checklist li {
    font-size: 0.82rem !important;
  }
  .wotd-action-col {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(16, 185, 129, 0.18) !important;
  }
  .wotd-books-wrap {
    width: 54px !important;
    height: 54px !important;
    flex-shrink: 0 !important;
  }
  .btn-wotd-cta {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  /* Educational Grammar Cards: Desktop Horizontal Row Alignment on Mobile (Swipeable Cards) */
  .cards-educational-3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    margin-bottom: 2.25rem !important;
    padding: 0.35rem 0.25rem 1rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }
  .cards-educational-3::-webkit-scrollbar {
    height: 4px;
  }
  .cards-educational-3::-webkit-scrollbar-thumb {
    background: rgba(0, 137, 123, 0.28);
    border-radius: 4px;
  }
  .edu-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start !important;
    padding: 1.4rem 1.25rem 1.3rem !important;
    border-radius: 18px !important;
    min-height: 380px !important;
  }
  .card-corner-monument img {
    height: 85px !important;
    max-width: 105px !important;
    opacity: 0.85 !important;
  }
  .btn-card-action {
    font-size: 0.85rem !important;
    padding: 0.6rem 1.15rem !important;
  }

  /* Quick Interactive Features Grid: Horizontal Row Alignment on Mobile (Swipeable Track) */
  .features-grid-6 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.75rem !important;
    margin-bottom: 2.25rem !important;
    padding: 0.35rem 0.25rem 0.85rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }
  .features-grid-6::-webkit-scrollbar {
    height: 3px;
  }
  .features-grid-6::-webkit-scrollbar-thumb {
    background: rgba(0, 137, 123, 0.28);
    border-radius: 4px;
  }
  .feature-pill-card {
    flex: 0 0 145px !important;
    scroll-snap-align: start !important;
    padding: 0.85rem 0.65rem !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
  }
  .feature-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 0.45rem !important;
  }
  .feature-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
  }
  .feature-title {
    font-size: 0.82rem !important;
  }
  .feature-sub {
    font-size: 0.68rem !important;
  }

  /* Mobile Navigation Drawer */
  .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }
  nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem 0 0.5rem;
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.65rem;
  }
  nav.open { display: flex !important; }
  nav a {
    padding: 0.65rem 1rem !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
  }
  nav a.btn-app {
    margin-left: 0 !important;
    margin-top: 0.35rem !important;
    justify-content: center !important;
    padding: 0.7rem 1.25rem !important;
  }
  .header-container { flex-wrap: wrap !important; padding: 0.65rem 1rem !important; }
  .brand-name { font-size: 1.1rem !important; }
  .brand-logo { width: 38px !important; height: 38px !important; }

  /* Footer Mobile */
  .footer-container { grid-template-columns: 1fr !important; gap: 2rem !important; margin-bottom: 2rem !important; }
  footer { padding: 3rem 1.25rem 1.75rem !important; margin-top: 3.5rem !important; }
  .footer-bottom { flex-direction: column !important; text-align: center !important; gap: 0.65rem !important; }
  .reader-layout { grid-template-columns: 1fr !important; }
}
