/* ============================================================
   home.css — Nakyl Homepage v2 (hv2-*)
   Colors: primary #1A6B4A | gold #C4932A | cream #FAF8F3 | dark #1C1C1A
   Fonts: Playfair Display, IBM Plex Sans, Amiri
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.home-v2 {
  font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  background: #fff;
  color: #2D3228;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.home-v2 a { text-decoration: none; color: inherit; }
body.home-v2 ul { list-style: none; }

/* ============================================================
   CONTAINER utility
============================================================ */
.hv2-prayer-inner,
.hv2-nav-inner,
.hv2-hero-inner,
.hv2-stats-inner,
.hv2-cat-nav-inner,
.hv2-main-inner,
.hv2-media-inner,
.hv2-fatwa-inner,
.hv2-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   1. PRAYER BAR
============================================================ */
.hv2-prayer-bar {
  background: #1A6B4A;
  color: #fff;
  font-size: 11.5px;
  position: relative;
  z-index: 100;
}

.hv2-prayer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.hv2-prayer-city {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
  flex-shrink: 0;
}

.hv2-city-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.hv2-city-select option { color: #1C1C1A; background: #fff; }

.hv2-prayer-times {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.hv2-pt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  transition: background .2s;
  min-width: 62px;
}

.hv2-pt.cur {
  background: rgba(255,255,255,.15);
  font-weight: 600;
}

.hv2-pt-name {
  font-size: 9.5px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hv2-pt-time {
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 1px;
}

.hv2-prayer-next {
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   2. NAVIGATION
============================================================ */
.hv2-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e8e2d8;
  transition: box-shadow .25s;
}

.hv2-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

.hv2-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
}

.hv2-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.hv2-logo-ar {
  font-family: 'Amiri', 'El Messiri', serif;
  font-size: 22px;
  color: #1A6B4A;
  line-height: 1;
}

.hv2-logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1C1C1A;
  letter-spacing: -.01em;
}

.hv2-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.hv2-nav-links li a {
  display: block;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3a3a38;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.hv2-nav-links li a:hover {
  background: #f0ebe1;
  color: #1A6B4A;
}

.hv2-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hv2-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f5f1eb;
  color: #555;
  transition: background .15s, color .15s;
}

.hv2-search-btn:hover { background: #1A6B4A; color: #fff; }

.hv2-lang-btn {
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  background: none;
  border: 1.5px solid #d1c9b8;
  border-radius: 6px;
  padding: 4px 10px;
  color: #666;
  cursor: pointer;
  letter-spacing: .05em;
  transition: border-color .15s, color .15s;
}

.hv2-lang-btn:hover { border-color: #1A6B4A; color: #1A6B4A; }

.hv2-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  border-radius: 6px;
  padding: 0;
}

.hv2-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.hv2-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hv2-burger.open span:nth-child(2) { opacity: 0; }
.hv2-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hv2-mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 20px 20px;
}

.hv2-mobile-menu.open { display: flex; }

.hv2-mobile-menu a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #2D3228;
  border-bottom: 1px solid #f0ebe1;
}

.hv2-mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   3. HERO
============================================================ */
.hv2-hero {
  background: linear-gradient(160deg, #0d3d28 0%, #1A6B4A 50%, #145d3f 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 20px 72px;
}

.hv2-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(196,147,42,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(255,255,255,.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Geometric pattern */
.hv2-hero-deco::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px,
    transparent 0, transparent 50%
  );
  background-size: 30px 30px;
}

.hv2-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hv2-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196,147,42,.18);
  border: 1px solid rgba(196,147,42,.35);
  color: #e8c76a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hv2-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.hv2-hero-arabic {
  display: block;
  font-family: 'Amiri', 'El Messiri', serif;
  font-size: 18px;
  color: rgba(255,255,255,.5);
  direction: rtl;
  margin-bottom: 18px;
}

.hv2-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.hv2-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hv2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C4932A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(196,147,42,.35);
  text-decoration: none;
}

.hv2-btn-primary:hover {
  background: #b5841f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196,147,42,.4);
}

.hv2-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  text-decoration: none;
}

.hv2-btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}

/* Quran Widget */
.hv2-quran-widget {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hv2-qw-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #e8c76a;
}

.hv2-qw-ayat {
  font-family: 'Amiri', serif;
  font-size: 26px;
  line-height: 1.7;
  color: #fff;
  direction: rtl;
  text-align: right;
}

.hv2-qw-trans {
  font-size: 13.5px;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  font-style: italic;
}

.hv2-qw-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.hv2-qw-ref-name {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

.hv2-qw-read {
  font-size: 12px;
  color: #e8c76a;
  font-weight: 500;
  transition: opacity .15s;
}

.hv2-qw-read:hover { opacity: .8; }

.hv2-qw-audio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv2-qw-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C4932A;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}

.hv2-qw-play:hover { background: #b5841f; transform: scale(1.08); }

.hv2-qw-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 2px;
  overflow: hidden;
}

.hv2-qw-fill {
  height: 100%;
  background: #C4932A;
  border-radius: 2px;
  width: 0;
  transition: width .1s linear;
}

.hv2-qw-time {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}

/* ============================================================
   4. STATS BAR
============================================================ */
.hv2-stats {
  background: #1C1C1A;
  padding: 0;
}

.hv2-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.hv2-stat {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}

.hv2-stat:last-child { border-right: none; }

.hv2-stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #C4932A;
  line-height: 1;
  margin-bottom: 6px;
}

.hv2-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   5. CATEGORY NAV
============================================================ */
.hv2-cat-nav {
  background: #FAF8F3;
  border-bottom: 1px solid #e8e2d8;
  padding: 16px 0;
}

.hv2-cat-nav-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.hv2-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e4ddd0;
  border-radius: 12px;
  padding: 10px 16px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
}

.hv2-cat-item:hover {
  border-color: #1A6B4A;
  box-shadow: 0 2px 12px rgba(26,107,74,.1);
  transform: translateY(-1px);
}

.hv2-cat-icon {
  width: 36px;
  height: 36px;
  background: #f0ebe1;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A6B4A;
  flex-shrink: 0;
}

.hv2-cat-item:hover .hv2-cat-icon {
  background: #e0f0e9;
}

.hv2-cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hv2-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1A;
  white-space: nowrap;
}

.hv2-cat-sub {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* ============================================================
   6. MAIN CONTENT (2-col)
============================================================ */
.hv2-main {
  background: #fff;
  padding: 48px 0;
}

.hv2-main-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.hv2-content-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hv2-section { }

.hv2-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1A6B4A;
}

.hv2-sec-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1C1C1A;
}

.hv2-see-all {
  font-size: 12.5px;
  color: #1A6B4A;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: opacity .15s;
}

.hv2-see-all:hover { opacity: .7; }

/* News 2x2 grid */
.hv2-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hv2-news-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ede8e0;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
}

.hv2-news-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.hv2-nc-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0ddd8;
}

.hv2-nc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.hv2-news-card:hover .hv2-nc-img img { transform: scale(1.04); }

.hv2-nc-gradient {
  position: absolute;
  inset: 0;
}

.hv2-nc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4) 0%, transparent 60%);
}

.hv2-nc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26,107,74,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.hv2-nc-body {
  padding: 14px 16px;
  flex: 1;
}

.hv2-nc-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.hv2-nc-title {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Articles list */
.hv2-art-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ebe1;
  text-decoration: none;
  transition: background .15s;
}

.hv2-art-item:last-child { border-bottom: none; }
.hv2-art-item:hover .hv2-art-title { color: #1A6B4A; }

.hv2-art-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #e4ddd0;
  line-height: 1;
  min-width: 36px;
  padding-top: 2px;
}

.hv2-art-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.45;
  margin-bottom: 4px;
  transition: color .15s;
}

.hv2-art-meta {
  font-size: 12px;
  color: #999;
}

/* ============================================================
   7. SIDEBAR
============================================================ */
.hv2-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 72px;
}

/* Prayer widget */
.hv2-prayer-widget {
  background: #1A6B4A;
  border-radius: 14px;
  padding: 18px;
  color: #fff;
}

.hv2-pw-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}

.hv2-pw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.hv2-pw-item {
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  transition: background .15s;
}

.hv2-pw-item.cur {
  background: rgba(196,147,42,.3);
  border: 1px solid rgba(196,147,42,.4);
}

.hv2-pw-name {
  font-size: 9.5px;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.hv2-pw-time {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hv2-pw-next {
  font-size: 11.5px;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.1);
}

/* Fatwa box */
.hv2-fatwa-box {
  background: #FAF8F3;
  border: 1px solid #e4ddd0;
  border-radius: 14px;
  padding: 18px;
}

.hv2-fb-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin-bottom: 12px;
}

.hv2-fb-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #ede8e0;
  text-decoration: none;
}

.hv2-fb-item:last-of-type { border-bottom: none; }
.hv2-fb-item:hover .hv2-fb-text { color: #1A6B4A; }

.hv2-fb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C4932A;
  margin-top: 7px;
  flex-shrink: 0;
}

.hv2-fb-text {
  font-size: 13px;
  color: #2D3228;
  line-height: 1.4;
  transition: color .15s;
}

.hv2-fb-more {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #1A6B4A;
  padding-top: 12px;
  text-decoration: none;
  transition: opacity .15s;
}

.hv2-fb-more:hover { opacity: .7; }

/* Zakat calculator */
.hv2-zakat {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 14px;
  padding: 18px;
}

.hv2-zakat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: 14px;
}

.hv2-zakat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hv2-zakat-row span {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.hv2-zakat-input {
  width: 120px;
  padding: 6px 10px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  text-align: right;
  outline: none;
  transition: border-color .15s;
}

.hv2-zakat-input:focus { border-color: #1A6B4A; }

.hv2-zakat-result {
  background: linear-gradient(135deg, #1A6B4A, #145d3f);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin-top: 12px;
}

.hv2-zakat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.hv2-zakat-note {
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

/* ============================================================
   8. MEDIA SECTION
============================================================ */
.hv2-media-sec {
  background: #FAF8F3;
  padding: 48px 0;
  border-top: 1px solid #e8e2d8;
}

.hv2-media-inner .hv2-sec-head {
  margin-bottom: 24px;
}

.hv2-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hv2-media-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ede8e0;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
}

.hv2-media-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.hv2-mc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #2d3228;
}

.hv2-mc-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.hv2-media-card:hover .hv2-mc-thumb img { transform: scale(1.04); }

.hv2-mc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  transition: background .2s;
}

.hv2-media-card:hover .hv2-mc-overlay { background: rgba(0,0,0,.2); }

.hv2-mc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv2-mc-play > div,
.hv2-mc-play {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hv2-mc-play > svg,
.hv2-mc-play svg {
  background: rgba(255,255,255,.9);
  color: #1A6B4A;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .15s;
}

.hv2-media-card:hover .hv2-mc-play svg { transform: scale(1.1); }

.hv2-mc-info {
  padding: 12px 14px;
}

.hv2-mc-title {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv2-mc-date {
  font-size: 11px;
  color: #999;
}

/* ============================================================
   9. FATWA DARK SECTION
============================================================ */
.hv2-fatwa-sec {
  background: #1C1C1A;
  padding: 56px 0;
}

.hv2-fatwa-inner { }

.hv2-fatwa-head {
  text-align: center;
  margin-bottom: 36px;
}

.hv2-fatwa-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.hv2-fatwa-sub {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

.hv2-fatwa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hv2-fatwa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}

.hv2-fatwa-item:hover {
  background: rgba(196,147,42,.12);
  border-color: rgba(196,147,42,.25);
  transform: translateY(-1px);
}

.hv2-fatwa-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.hv2-fatwa-q {
  flex: 1;
  font-size: 13.5px;
  color: rgba(255,255,255,.8);
  line-height: 1.4;
}

.hv2-fatwa-arr {
  color: #C4932A;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .15s;
}

.hv2-fatwa-item:hover .hv2-fatwa-arr { transform: translateX(3px); }

/* ============================================================
   10. FOOTER
============================================================ */
.hv2-footer {
  background: #111110;
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
}

.hv2-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.hv2-footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.hv2-footer-logo span {
  font-family: 'Amiri', serif;
  color: #C4932A;
}

.hv2-footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
  max-width: 300px;
}

.hv2-footer-socials {
  display: flex;
  gap: 8px;
}

.hv2-soc {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background .15s, color .15s;
}

.hv2-soc:hover { background: #C4932A; color: #fff; }

.hv2-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.hv2-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv2-footer-links li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .15s;
}

.hv2-footer-links li a:hover { color: #C4932A; }

.hv2-footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 960px) {
  .hv2-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hv2-quran-widget {
    max-width: 500px;
  }

  .hv2-main-inner {
    grid-template-columns: 1fr;
  }

  .hv2-sidebar {
    position: static;
  }

  .hv2-media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv2-fatwa-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hv2-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .hv2-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv2-stat:nth-child(2) { border-right: none; }
  .hv2-stat:nth-child(1),
  .hv2-stat:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hv2-nav-links { display: none; }
  .hv2-lang-btn { display: none; }
  .hv2-burger { display: flex; }

  .hv2-prayer-times {
    gap: 2px;
  }

  .hv2-pt {
    padding: 2px 6px;
    min-width: 48px;
  }

  .hv2-pt-name { font-size: 8.5px; }
  .hv2-pt-time { font-size: 11px; }

  .hv2-prayer-next { display: none; }

  .hv2-hero {
    padding: 36px 16px 44px;
  }

  .hv2-hero-title { font-size: 30px; }

  .hv2-hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .hv2-news-grid {
    grid-template-columns: 1fr;
  }

  .hv2-media-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hv2-fatwa-grid {
    grid-template-columns: 1fr;
  }

  .hv2-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hv2-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hv2-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv2-pw-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hv2-zakat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hv2-zakat-input { width: 100%; }

  .hv2-main { padding: 28px 0; }
  .hv2-media-sec { padding: 28px 0; }
  .hv2-fatwa-sec { padding: 36px 0; }
}

/* ============================================================
   INNER PAGES — shared components
============================================================ */

body.inner-v2 { background: #f7f4ef; }

/* Active nav link */
.hv2-nav-links li a.active {
  color: #1A6B4A;
  background: #e8f5ee;
}

/* Page Hero Banner */
.ip-hero {
  background: linear-gradient(160deg, #0d3d28 0%, #1A6B4A 60%, #145d3f 100%);
  padding: 40px 0 44px;
  position: relative;
  overflow: hidden;
}

.ip-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px,
    transparent 0, transparent 50%
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.ip-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.ip-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ip-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .15s; }
.ip-breadcrumb a:hover { color: #C4932A; }
.ip-breadcrumb-sep { color: rgba(255,255,255,.3); }

.ip-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.ip-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  line-height: 1.6;
}

.ip-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ip-hero-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(196,147,42,.2);
  border: 1px solid rgba(196,147,42,.35);
  color: #e8c76a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.ip-hero-date {
  font-size: 12px;
  color: rgba(255,255,255,.5);
}

/* Main content wrapper */
.ip-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Two-column layout */
.ip-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.ip-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 72px;
}

/* Sidebar card */
.ip-sb-card {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 14px;
  padding: 18px;
}

.ip-sb-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #999;
  margin-bottom: 14px;
}

.ip-sb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ip-sb-list li {
  padding: 9px 0;
  border-bottom: 1px solid #f0ebe1;
}

.ip-sb-list li:last-child { border-bottom: none; }

.ip-sb-list a {
  font-size: 13px;
  color: #2D3228;
  text-decoration: none;
  line-height: 1.4;
  transition: color .15s;
  display: block;
  margin-bottom: 2px;
}

.ip-sb-list a:hover { color: #1A6B4A; }

.ip-sb-list .ip-sb-date {
  font-size: 11px;
  color: #aaa;
}

/* Filter tabs */
.ip-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ip-filter-tab {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid #e4ddd0;
  border-radius: 8px;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.ip-filter-tab:hover,
.ip-filter-tab.active {
  background: #1A6B4A;
  border-color: #1A6B4A;
  color: #fff;
}

/* ============================================================
   NEWS PAGE
============================================================ */

.ip-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ip-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
}

.ip-news-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.ip-nc-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}

.ip-nc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.ip-news-card:hover .ip-nc-img img { transform: scale(1.04); }

.ip-nc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
}

.ip-nc-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26,107,74,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.ip-nc-placeholder {
  position: absolute;
  inset: 0;
}

.ip-nc-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ip-nc-date { font-size: 11px; color: #aaa; }

.ip-nc-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ip-nc-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ip-nc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0ebe1;
}

.ip-nc-views { font-size: 11.5px; color: #aaa; }

/* ============================================================
   NEWS SINGLE / ARTICLE SINGLE
============================================================ */

.ip-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.ip-article {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 16px;
  overflow: hidden;
}

.ip-article-cover {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

.ip-article-body {
  padding: 32px;
}

.ip-article-body .content-block,
.ip-article-body .article-content {
  font-size: 16px;
  line-height: 1.85;
  color: #2D3228;
}

.ip-article-body .content-block p,
.ip-article-body .article-content p {
  margin-bottom: 1.2em;
}

.ip-article-body .content-block h2,
.ip-article-body .article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin: 1.6em 0 .6em;
  color: #1C1C1A;
}

.ip-article-body .content-block h3,
.ip-article-body .article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin: 1.4em 0 .5em;
  color: #1C1C1A;
}

.ip-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 10px 18px;
  background: #f5f1eb;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: background .15s;
}

.ip-back-link:hover { background: #ede8e0; color: #1A6B4A; }

/* ============================================================
   BOOKS PAGE
============================================================ */

.ip-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-book-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 14px;
  padding: 16px;
  transition: box-shadow .2s, transform .15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ip-book-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateX(2px);
}

.ip-book-cover {
  width: 52px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: 'Playfair Display', serif;
}

.ip-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ip-book-info { flex: 1; min-width: 0; }

.ip-book-title {
  font-size: 15px;
  font-weight: 600;
  color: #1C1C1A;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-book-meta {
  font-size: 12.5px;
  color: #888;
  margin-bottom: 6px;
}

.ip-book-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0ebe1;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.ip-book-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #C4932A;
}

.ip-book-actions { flex-shrink: 0; display: flex; gap: 8px; }

.ip-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: #1A6B4A;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.ip-pdf-btn:hover { background: #145d3f; }

.ip-read-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #f5f1eb;
  color: #444;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.ip-read-btn:hover { background: #ede8e0; }

/* ============================================================
   MEDIA PAGE
============================================================ */

.ip-video-platform {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.ip-video-main { }

.ip-video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ip-video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ip-video-info { }

.ip-video-info-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ip-video-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  background: #e8f5ee;
  color: #1A6B4A;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ip-video-date { font-size: 12px; color: #aaa; }

.ip-video-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1A;
  line-height: 1.35;
  margin-bottom: 6px;
}

.ip-video-source { font-size: 13px; color: #888; }

.ip-video-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0ddd8 transparent;
}

.ip-video-list::-webkit-scrollbar { width: 4px; }
.ip-video-list::-webkit-scrollbar-track { background: transparent; }
.ip-video-list::-webkit-scrollbar-thumb { background: #e0ddd8; border-radius: 2px; }

.ip-video-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s;
}

.ip-video-item:hover { background: #f5f1eb; }

.ip-video-item.active {
  background: #e8f5ee;
  border-color: #1A6B4A;
}

.ip-video-thumb {
  position: relative;
  width: 96px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  background: #222;
  flex-shrink: 0;
}

.ip-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ip-video-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d6a4f;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.ip-vt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  background: rgba(0,0,0,.25);
}

.ip-video-item-info { flex: 1; min-width: 0; }

.ip-video-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.ip-video-item-meta { font-size: 11px; color: #aaa; }

/* ============================================================
   FATWA PAGE
============================================================ */

.ip-fatwa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ip-fatwa-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s, border-color .2s;
}

.ip-fatwa-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #1A6B4A;
  transform: translateY(-1px);
}

.ip-fatwa-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.ip-fatwa-q {
  font-size: 14.5px;
  font-weight: 600;
  color: #1C1C1A;
  line-height: 1.4;
  margin-bottom: 4px;
}

.ip-fatwa-arr {
  font-size: 18px;
  color: #1A6B4A;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform .15s;
}

.ip-fatwa-card:hover .ip-fatwa-arr { transform: translateX(3px); }

/* Content block for static pages */
.ip-content-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 16px;
  padding: 32px;
}

.ip-content-card p { margin-bottom: 1em; line-height: 1.8; font-size: 15px; color: #444; }
.ip-content-card h2 { font-family: 'Playfair Display', serif; font-size: 22px; margin: 1.5em 0 .5em; color: #1C1C1A; }

/* ============================================================
   SEARCH PAGE
============================================================ */

.ip-search-hero {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.ip-search-form {
  display: flex;
  gap: 10px;
}

.ip-search-wrap {
  position: relative;
  flex: 1;
}

.ip-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

.ip-search-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1.5px solid #e4ddd0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.ip-search-input:focus { border-color: #1A6B4A; }

.ip-search-btn-submit {
  padding: 12px 24px;
  background: #1A6B4A;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

.ip-search-btn-submit:hover { background: #145d3f; }

.ip-search-filters {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.ip-search-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ip-result-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}

.ip-result-card:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
  border-color: #1A6B4A;
}

.ip-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ip-result-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
}

.ip-result-tag-news     { background: #1A6B4A; }
.ip-result-tag-articles { background: #7c3aed; }
.ip-result-tag-books    { background: #d97706; }
.ip-result-tag-fatwa    { background: #dc2626; }

.ip-result-cat  { font-size: 11.5px; color: #aaa; }
.ip-result-date { font-size: 11.5px; color: #bbb; }

.ip-result-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1C1C1A;
  margin-bottom: 5px;
  line-height: 1.4;
}

.ip-result-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.ip-search-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e2d8;
}

.ip-search-meta strong { color: #1C1C1A; }

.ip-search-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.ip-search-empty-icon { font-size: 48px; margin-bottom: 16px; }
.ip-search-empty p { font-size: 15px; }

.ip-search-sugg { }
.ip-search-sugg-label { font-size: 13px; color: #888; margin-bottom: 12px; }

.ip-search-sugg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-search-sugg-tag {
  padding: 7px 16px;
  background: #fff;
  border: 1.5px solid #e4ddd0;
  border-radius: 20px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.ip-search-sugg-tag:hover {
  background: #1A6B4A;
  border-color: #1A6B4A;
  color: #fff;
}

/* ============================================================
   RESPONSIVE — inner pages
============================================================ */

@media (max-width: 860px) {
  .ip-layout,
  .ip-single-layout,
  .ip-video-platform {
    grid-template-columns: 1fr;
  }

  .ip-sidebar { position: static; }

  .ip-video-list {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .ip-fatwa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ip-hero { padding: 28px 0 32px; }
  .ip-hero-title { font-size: 24px; }

  .ip-news-grid { grid-template-columns: 1fr; }

  .ip-book-card { flex-wrap: wrap; }
  .ip-book-actions { width: 100%; }

  .ip-video-list { grid-template-columns: 1fr; }

  .ip-article-body { padding: 20px; }

  .ip-search-form { flex-direction: column; }

  .ip-video-item { flex-direction: column; align-items: flex-start; }
  .ip-video-thumb { width: 100%; height: 140px; }
}

/* Category nav active state */
.hv2-cat-item.hv2-cat-active {
  border-color: #1A6B4A;
  background: #f0f8f4;
}

.hv2-cat-item.hv2-cat-active .hv2-cat-icon {
  background: #e0f0e9;
}

.hv2-cat-item.hv2-cat-active .hv2-cat-name {
  color: #1A6B4A;
}

/* Logo image */
.hv2-logo-img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-right: -12px;
}

/* ============================================================
   RESPONSIVE FIXES — v2
============================================================ */

/* --- 860px tablet mid --- */
@media (max-width: 860px) {
  /* Nav inner container gap reduce */
  .hv2-nav-inner { gap: 16px; }

  /* Inner page news grid 2 col on tablet */
  .ip-news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- 768px tablet --- */
@media (max-width: 768px) {
  /* Hero 2-col → 1 col */
  .hv2-hero-inner { grid-template-columns: 1fr; }
  .hv2-quran-widget { max-width: 100%; }

  /* Main content 2-col → 1 col */
  .hv2-main-inner { grid-template-columns: 1fr; }
  .hv2-sidebar { position: static; }

  /* Media 4 → 2 */
  .hv2-media-grid { grid-template-columns: repeat(2, 1fr); }

  /* Fatwa 3 → 2 */
  .hv2-fatwa-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer 4 → 2 */
  .hv2-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  /* Stats 4 → 2 */
  .hv2-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hv2-stat:nth-child(1),
  .hv2-stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .hv2-stat:nth-child(2) { border-right: none; }

  /* Cat nav items — reduce padding */
  .hv2-cat-nav-inner { grid-template-columns: repeat(3, 1fr); }
  .hv2-cat-item { padding: 8px 12px; gap: 8px; }
  .hv2-cat-icon { width: 32px; height: 32px; }
  .hv2-cat-name { font-size: 12px; }
  .hv2-cat-sub { font-size: 10px; }

  /* Inner layout: video, single */
  .ip-layout,
  .ip-single-layout,
  .ip-video-platform { grid-template-columns: 1fr; }
  .ip-sidebar { position: static; }

  /* Books list actions */
  .ip-book-card { flex-wrap: wrap; }
  .ip-book-actions { margin-top: 4px; }

  /* Fatwa grid inner */
  .ip-fatwa-grid { grid-template-columns: 1fr; }

  /* Video list 2-col */
  .ip-video-list { max-height: none; display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* --- 640px mobile --- */
@media (max-width: 640px) {
  /* Nav */
  .hv2-nav-links, .hv2-lang-btn { display: none; }
  .hv2-burger { display: flex; }
  .hv2-nav-inner { gap: 8px; }
  .hv2-logo { order: -1; }
  .hv2-nav-right { order: 1; margin-left: auto; }

  /* Logo */
  .hv2-logo-img { height: 90px; }

  /* Prayer bar — compact */
  .hv2-prayer-inner { padding-top: 5px; padding-bottom: 5px; gap: 8px; }
  .hv2-prayer-times { gap: 2px; }
  .hv2-pt { padding: 2px 6px; min-width: 44px; }
  .hv2-pt-name { font-size: 8.5px; }
  .hv2-pt-time { font-size: 11px; }
  .hv2-prayer-next { display: none; }

  /* Hero */
  .hv2-hero { padding: 32px 16px 40px; }
  .hv2-hero-title { font-size: 28px; }
  .hv2-hero-btns { flex-direction: column; align-items: flex-start; }
  .hv2-hero-desc { font-size: 14px; }

  /* Cat nav */
  .hv2-cat-nav { padding: 10px 0; }
  .hv2-cat-nav-inner { grid-template-columns: repeat(2, 1fr); }
  .hv2-cat-item { padding: 7px 10px; gap: 7px; }
  .hv2-cat-icon { width: 28px; height: 28px; border-radius: 7px; }
  .hv2-cat-icon svg { width: 16px; height: 16px; }
  .hv2-cat-name { font-size: 11.5px; }
  .hv2-cat-sub { display: none; }

  /* Stats 2 col */
  .hv2-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hv2-stat-num { font-size: 22px; }

  /* Media grid 1 col */
  .hv2-media-grid { grid-template-columns: 1fr; }

  /* Fatwa grid 1 col */
  .hv2-fatwa-grid { grid-template-columns: 1fr; }

  /* Footer */
  .hv2-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hv2-footer-bottom { flex-direction: column; text-align: center; }

  /* Prayer widget 2 col */
  .hv2-pw-grid { grid-template-columns: repeat(2, 1fr); }

  /* Zakat */
  .hv2-zakat-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hv2-zakat-input { width: 100%; }

  /* Section paddings */
  .hv2-main { padding: 24px 0; }
  .hv2-media-sec { padding: 24px 0; }
  .hv2-fatwa-sec { padding: 32px 0; }
  .hv2-fatwa-title { font-size: 24px; }

  /* Inner pages */
  .ip-hero { padding: 24px 0 28px; }
  .ip-hero-title { font-size: 22px; }
  .ip-body { padding: 24px 16px 40px; }
  .ip-news-grid { grid-template-columns: 1fr; }
  .ip-video-list { grid-template-columns: 1fr; }
  .ip-article-body { padding: 18px; }
  .ip-search-form { flex-direction: column; }

  /* Fatwa page */
  .ip-fatwa-card { padding: 14px; }
}

/* --- 480px small mobile --- */
@media (max-width: 480px) {
  .hv2-prayer-times { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .hv2-pt { min-width: 48px; flex-shrink: 0; }

  .hv2-hero-title { font-size: 24px; }

  .hv2-cat-nav-inner { gap: 6px; }
  .hv2-cat-item { padding: 6px 9px; }

  .hv2-fatwa-item { padding: 12px 14px; gap: 10px; }
  .hv2-fatwa-icon { font-size: 18px; }

  .hv2-footer { padding-top: 36px; }

  /* Inner pages */
  .ip-single-layout, .ip-layout { gap: 20px; }
  .ip-book-title { font-size: 14px; }
  .ip-search-hero { padding: 18px; }

  /* Stats single col on very small */
  .hv2-stat { padding: 18px 12px; }
  .hv2-stat-num { font-size: 20px; }
  .hv2-stat-lbl { font-size: 10px; }
}

/* --- 360px ultra-small --- */
@media (max-width: 360px) {
  .hv2-logo-img { height: 44px; }
  .hv2-search-btn { width: 30px; height: 30px; }
  .hv2-burger { width: 30px; height: 30px; }

  .hv2-stats-inner { grid-template-columns: 1fr 1fr; }
  .hv2-stat-num { font-size: 18px; }

  .ip-hero-title { font-size: 20px; }
  .ip-body { padding: 16px 12px 32px; }

  .hv2-footer-grid { gap: 16px; }
}

/* ========== BOOK SINGLE — PDF READER ========== */
.bk-meta-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0ebe1;
}
.bk-cover {
  width: 88px;
  height: 116px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.bk-cover img { width: 100%; height: 100%; object-fit: cover; }
.bk-meta-info { flex: 1; }
.bk-meta-line { font-size: 13.5px; color: #555; margin: 0 0 6px; }
.bk-meta-label { font-weight: 600; color: #333; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.bk-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1A6B4A;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.bk-btn-read:hover { background: #155a3d; }

.bk-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #1A6B4A;
  border: 1.5px solid #1A6B4A;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.bk-btn-download:hover { background: #1A6B4A; color: #fff; }

/* PDF Reader */
.bk-reader {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #d4e8dc;
  box-shadow: 0 4px 24px rgba(26,107,74,.1);
}
.bk-reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1A6B4A;
  color: #fff;
  padding: 10px 16px;
  gap: 12px;
}
.bk-reader-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.bk-reader-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bk-reader-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.bk-reader-btn:hover { background: rgba(255,255,255,.28); }
.bk-reader-close { background: rgba(255,80,80,.25); }
.bk-reader-close:hover { background: rgba(255,80,80,.5); }

.bk-reader-frame {
  width: 100%;
  height: 78vh;
  min-height: 500px;
  border: none;
  display: block;
  background: #f5f5f5;
}

@media (max-width: 640px) {
  .bk-meta-row { flex-direction: column; }
  .bk-cover { width: 72px; height: 96px; }
  .bk-reader-frame { height: 60vh; }
}

/* PDF Reader fullscreen */
.bk-reader:-webkit-full-screen { border-radius: 0; border: none; }
.bk-reader:fullscreen { border-radius: 0; border: none; }
.bk-reader:fullscreen .bk-reader-frame,
.bk-reader:-webkit-full-screen .bk-reader-frame {
  height: calc(100vh - 48px);
}
