/* =========================================================
   Special Persons Department - Dawat-e-Islami
   Main stylesheet (Bootstrap 5 + custom)
   ========================================================= */

:root {
  --sp-primary: #0e998c;
  --sp-primary-dark: #056f75;
  --sp-primary-light: #e6f5f3;
  --sp-dark: #1a1414;
  --sp-footer: #121517;
  --sp-heading: #242335;
  --sp-text: #434648;
  --sp-muted: #6d8093;
  --sp-bg-soft: #f5f8f8;
  --sp-border: #e3eaea;
  --sp-radius: 14px;
  --sp-shadow: 0 6px 24px rgba(18, 21, 23, .08);
  --sp-shadow-hover: 0 14px 36px rgba(5, 111, 117, .18);
  --sp-header-h: 84px;
  --sp-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --sp-font-heading: "Roboto Slab", Georgia, serif;
  --sp-font-urdu: "Mehr Nastaliq", "Jameel Noori Nastaleeq", serif;
  --sp-font-arabic: "Al Mushaf", "Traditional Arabic", serif;
  --bs-primary: var(--sp-primary);
  --bs-link-color: var(--sp-primary-dark);
  --bs-link-hover-color: var(--sp-primary);
}

/* ---------- Urdu font (local file in /font) ---------- */
@font-face {
  font-family: "Mehr Nastaliq";
  src: url("../font/Mehr%20Nastaliq%20Web%203.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Al Mushaf - subset with only the glyphs of the ALHAMD phrase (includes/config.php).
   Full font: font/Al_Mushaf.ttf. Changing the phrase means rebuilding the subset. */
@font-face {
  font-family: "Al Mushaf";
  src: url("../font/al-mushaf-alhamd.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0627, U+062D, U+062F, U+0640, U+0644, U+0645, U+0647, U+064E-U+0652, U+0670;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sp-font);
  color: var(--sp-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--sp-font-heading); color: var(--sp-heading); font-weight: 700; }
a { color: var(--sp-primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sp-primary); }
img { max-width: 100%; height: auto; }
::selection { background: var(--sp-primary); color: #fff; }

.urdu { font-family: var(--sp-font-urdu); direction: rtl; line-height: 2.1; }
.arabic { font-family: var(--sp-font-arabic); font-size: 1.45em; line-height: 1; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 2000;
  background: var(--sp-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid rgba(14, 153, 140, .55); outline-offset: 2px; }

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--sp-bg-soft); }

/* ---------- Buttons ---------- */
.btn-sp {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sp-primary);
  --bs-btn-border-color: var(--sp-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sp-primary-dark);
  --bs-btn-hover-border-color: var(--sp-primary-dark);
  --bs-btn-active-bg: var(--sp-primary-dark);
  --bs-btn-active-border-color: var(--sp-primary-dark);
  --bs-btn-active-color: #fff;
  font-weight: 500; letter-spacing: .3px;
  padding: .7rem 1.8rem; border-radius: 50px;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 6px 16px rgba(14, 153, 140, .28);
  transition: all .25s ease;
}
.btn-sp:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(5, 111, 117, .32); }
.btn-sp svg { width: 16px; height: 16px; transition: transform .25s ease; }
.btn-sp:hover svg { transform: translateX(3px); }
.btn-sp-outline {
  --bs-btn-color: var(--sp-primary-dark);
  --bs-btn-border-color: var(--sp-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--sp-primary);
  --bs-btn-hover-border-color: var(--sp-primary);
  border-radius: 50px; font-weight: 500; padding: .55rem 1.4rem;
  display: inline-flex; align-items: center; gap: .45rem;
}
.btn-sp-outline svg { width: 16px; height: 16px; }

/* ---------- Section headings (divider with text) ---------- */
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .eyebrow {
  display: inline-block; color: var(--sp-primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: 8px;
}
.section-title h2, .section-title h3 {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0;
}
.section-title h2::before, .section-title h2::after,
.section-title h3::before, .section-title h3::after {
  content: ""; flex: 0 1 90px; height: 6px;
  border-top: 3px double var(--sp-primary); border-bottom: 1px solid var(--sp-primary);
  opacity: .7;
}
.section-title p { color: var(--sp-muted); max-width: 640px; margin: 14px auto 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--sp-dark); color: rgba(255,255,255,.8); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; }
.topbar a { color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; fill: var(--sp-primary); }
.topbar .topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.social-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-links a {
  width: 35px; height: 35px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); transition: all .25s ease;
}
.social-links a:hover { background: var(--sp-primary); border-color: var(--sp-primary); }
.social-links svg { width: 13px; height: 13px; fill: #fff; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 1px 0 var(--sp-border);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(18,21,23,.08); }
.site-header .navbar { min-height: var(--sp-header-h); padding: 6px 0; transition: min-height .3s ease; }
.site-header.is-scrolled .navbar { min-height: 68px; }
.navbar-brand img { width: 72px; height: 72px; transition: width .3s ease, height .3s ease; }
.site-header.is-scrolled .navbar-brand img { width: 56px; height: 56px; }

.main-nav .nav-link {
  color: var(--sp-heading); font-weight: 500; font-size: .93rem;
  padding: .6rem .6rem !important; position: relative;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .3rem;
  height: 2px; background: var(--sp-primary); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--sp-primary-dark); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .dropdown-toggle::after { display: none; }
.main-nav .dropdown-toggle .caret { width: 10px; height: 10px; margin-left: 4px; fill: currentColor; transition: transform .2s; }
.main-nav .dropdown.show .caret { transform: rotate(180deg); }
.main-nav .dropdown-menu {
  border: 0; border-radius: 12px; padding: 8px; min-width: 200px;
  box-shadow: 0 14px 40px rgba(18,21,23,.14); border-top: 3px solid var(--sp-primary);
}
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-size: .93rem; }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--sp-primary-light); color: var(--sp-primary-dark); }

@media (min-width: 1200px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

.navbar-toggler { border: 0; padding: 8px; border-radius: 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(14,153,140,.3); }
.hamburger { width: 26px; height: 18px; position: relative; display: block; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--sp-heading); border-radius: 2px; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; width: 70%; }
.hamburger span:nth-child(3) { top: 16px; }

/* Off-canvas (mobile menu) */
.offcanvas.sp-offcanvas { width: min(320px, 86vw); }
.sp-offcanvas .offcanvas-header { border-bottom: 1px solid var(--sp-border); }
.sp-offcanvas .offcanvas-header img { width: 56px; height: 56px; }
.sp-offcanvas .nav-link { color: var(--sp-heading); font-weight: 500; padding: .75rem 0; border-bottom: 1px solid var(--sp-border); display: flex; justify-content: space-between; align-items: center; }
.sp-offcanvas .nav-link.active, .sp-offcanvas .nav-link:hover { color: var(--sp-primary); }
.sp-offcanvas .submenu { list-style: none; padding: 0 0 0 14px; margin: 0; }
.sp-offcanvas .submenu a { display: block; padding: .55rem 0; color: var(--sp-text); border-bottom: 1px dashed var(--sp-border); }
.sp-offcanvas .caret { width: 12px; height: 12px; fill: currentColor; transition: transform .2s; }
.sp-offcanvas [aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ---------- Hero slider (custom, no library) ---------- */
.hero-slider { position: relative; overflow: hidden; background: #eef3f3; }
.hero-slider .slides { display: flex; transition: transform .7s cubic-bezier(.65,.05,.36,1); will-change: transform; touch-action: pan-y; }
.hero-slider .slide { flex: 0 0 100%; position: relative; aspect-ratio: 1200 / 420; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.hero-slider .slide img { transform: scale(1.04); transition: transform 6s ease; }
.hero-slider .slide.is-active img { transform: scale(1); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); box-shadow: 0 6px 18px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all .3s ease; cursor: pointer;
}
.slider-arrow svg { width: 20px; height: 20px; fill: var(--sp-primary-dark); }
.slider-arrow:hover { background: var(--sp-primary); }
.slider-arrow:hover svg { fill: #fff; }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }
.hero-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 12px; border: 2px solid var(--sp-primary-dark);
  background: rgba(255,255,255,.85); padding: 0; transition: all .3s ease;
}
.slider-dots button.is-active { width: 34px; background: var(--sp-primary); border-color: var(--sp-primary); }
.slider-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--sp-primary); width: 0; z-index: 3; }
@media (max-width: 767.98px) {
  .slider-arrow { width: 36px; height: 36px; opacity: 1; }
  .slider-arrow svg { width: 15px; height: 15px; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .slider-dots { bottom: 8px; }
  .slider-dots button { width: 9px; height: 9px; }
  .slider-dots button.is-active { width: 22px; }
}

/* ---------- Introduction ---------- */
.intro-card {
  position: relative; border-radius: 22px; padding: 40px;
  background: linear-gradient(135deg, var(--sp-primary-light), #fff 70%);
  border: 1px solid var(--sp-border); text-align: center;
}
.intro-card img { width: 200px; height: 200px; animation: floaty 6s ease-in-out infinite; }
.intro-card .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.intro-card .stat { background: #fff; border-radius: 12px; padding: 14px 10px; box-shadow: var(--sp-shadow); }
.intro-card .stat strong { display: block; font-family: var(--sp-font-heading); font-size: 1.6rem; color: var(--sp-primary-dark); line-height: 1.2; }
.intro-card .stat span { font-size: .85rem; color: var(--sp-muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.intro-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.intro-text h2 a { color: inherit; }
.intro-text .lead-sub { color: var(--sp-primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .85rem; }

/* ---------- Book cards ---------- */
.book-card {
  background: #fff; border-radius: var(--sp-radius); padding: 22px 18px 24px; height: 100%;
  border: 1px solid var(--sp-border); text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-hover); }
.book-card .book-cover { width: 100%; max-width: 170px; aspect-ratio: 195 / 305; margin-bottom: 18px; perspective: 800px; }
.book-card .book-cover img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.18));
  transition: transform .5s ease;
}
.book-card:hover .book-cover img { transform: rotateY(-12deg) scale(1.03); }
.book-card h3 { font-size: 1.02rem; font-family: var(--sp-font); font-weight: 600; margin-bottom: 16px; flex-grow: 1; line-height: 1.5; }

/* ---------- News cards ---------- */
.news-card {
  display: block; background: #fff; border-radius: var(--sp-radius); overflow: hidden; height: 100%;
  border: 1px solid var(--sp-border); color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-hover); color: inherit; }
.news-card .thumb { position: relative; overflow: hidden; aspect-ratio: 758 / 400; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .thumb img { transform: scale(1.08); }
.news-card .thumb .tag {
  position: absolute; top: 12px; left: 12px; background: var(--sp-primary); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 30px; letter-spacing: .5px;
}
.news-card .body { padding: 16px 18px 18px; }
.news-card h3 { font-size: 1.05rem; margin: 0; color: var(--sp-heading); transition: color .2s ease; }
.news-card:hover h3 { color: var(--sp-primary-dark); }
.news-card .read { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--sp-primary); }
.news-card .read svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Media category cards ---------- */
.media-card {
  position: relative; display: block; border-radius: var(--sp-radius); overflow: hidden; height: 100%;
  background: #fff; border: 1px solid var(--sp-border); color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-hover); color: inherit; }
.media-card .thumb { position: relative; overflow: hidden; aspect-ratio: 320 / 250; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media-card:hover .thumb img { transform: scale(1.07); }
.media-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,111,117,.55));
  opacity: 0; transition: opacity .3s ease;
}
.media-card:hover .thumb::after { opacity: 1; }
.media-card .play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.6);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .3s ease;
}
.media-card .play svg { width: 24px; height: 24px; fill: var(--sp-primary); margin-left: 3px; }
.media-card:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.media-card h3 { font-size: 1.05rem; text-align: center; padding: 18px 16px; margin: 0; transition: color .2s; }
.media-card:hover h3 { color: var(--sp-primary-dark); }

/* ---------- Video cards ---------- */
.video-card {
  display: block; width: 100%; text-align: left; border: 0; padding: 0; background: #fff;
  border-radius: var(--sp-radius); overflow: hidden; height: 100%;
  box-shadow: var(--sp-shadow); cursor: pointer; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-hover); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe9e8; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.video-card:hover .thumb img { transform: scale(1.07); }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; background: rgba(18,21,23,.18); transition: background .3s; }
.video-card:hover .thumb::after { background: rgba(5,111,117,.35); }
.video-card .play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulse 2.2s infinite;
}
.video-card .play svg { width: 22px; height: 22px; fill: var(--sp-primary); margin-left: 3px; }
.video-card .title { padding: 14px 16px; font-weight: 600; color: var(--sp-heading); font-size: .97rem; line-height: 1.45; }
.video-card:hover .title { color: var(--sp-primary-dark); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.video-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; background: #000; }
.video-modal .modal-header { background: var(--sp-dark); border: 0; padding: 12px 18px; }
.video-modal .modal-title { color: #fff; font-size: 1.05rem; font-family: var(--sp-font); font-weight: 600; }
.video-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .8; }
.video-modal video { width: 100%; display: block; max-height: 75vh; background: #000; }

/* ---------- Video toolbar (search) ---------- */
.video-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.video-toolbar .count { color: var(--sp-muted); font-size: .92rem; }
.video-search { position: relative; flex: 0 1 320px; }
.video-search input { border-radius: 50px; padding: .6rem 1rem .6rem 2.6rem; border: 1px solid var(--sp-border); }
.video-search input:focus { border-color: var(--sp-primary); box-shadow: 0 0 0 .2rem rgba(14,153,140,.18); }
.video-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: var(--sp-muted); }
.no-results { display: none; text-align: center; color: var(--sp-muted); padding: 30px 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative; display: block; border: 0; padding: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 765 / 535; background: #dfe9e8; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,111,117,.65));
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item .zoom {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.5);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; opacity: 0;
  display: flex; align-items: center; justify-content: center; transition: all .35s ease;
}
.gallery-item .zoom svg { width: 22px; height: 22px; fill: var(--sp-primary); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .zoom { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox (custom) */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10, 12, 14, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transform: scale(.96); transition: transform .3s ease, opacity .25s ease; }
.lightbox.is-open img { transform: scale(1); }
.lightbox img.is-loading { opacity: .3; }
.lightbox figcaption { color: rgba(255,255,255,.75); margin-top: 12px; font-size: .9rem; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff;
  width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox button:hover { background: var(--sp-primary); }
.lightbox button svg { width: 20px; height: 20px; fill: #fff; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 20px; transform: none; }
  .lightbox .lb-prev { left: calc(50% - 60px); }
  .lightbox .lb-next { right: calc(50% - 60px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 70px 0 64px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--sp-primary-dark), var(--sp-primary));
}
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 40px solid rgba(255,255,255,.06);
}
.page-hero::before { width: 380px; height: 380px; top: -160px; right: -80px; }
.page-hero::after { width: 260px; height: 260px; bottom: -150px; left: 8%; }
.page-hero .diamond {
  position: absolute; right: 12%; top: 50%; width: 110px; height: 110px; transform: translateY(-50%) rotate(45deg);
  border: 2px solid rgba(255,255,255,.2); border-radius: 14px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; position: relative; z-index: 1; }
.page-hero .breadcrumb { margin: 0; position: relative; z-index: 1; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a { color: rgba(255,255,255,.85); font-size: .95rem; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: #fff; font-weight: 500; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); content: "›"; }

/* ---------- About page ---------- */
.about-banner { border-radius: 18px; overflow: hidden; box-shadow: var(--sp-shadow); }
.about-banner img { width: 100%; display: block; }
.about-block { padding: 56px 0; border-bottom: 1px solid var(--sp-border); }
.about-block:last-of-type { border-bottom: 0; }
.poster { position: sticky; top: calc(var(--sp-header-h) + 20px); }
.poster img { border-radius: 16px; box-shadow: var(--sp-shadow); width: 100%; cursor: zoom-in; }
.poster-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.about-content h3 {
  font-size: 1.15rem; margin: 26px 0 8px; padding-left: 14px; position: relative; color: var(--sp-primary-dark);
}
.about-content h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--sp-primary); }
.about-content h3:first-child { margin-top: 0; }
.about-content p { margin-bottom: 10px; }
.about-content ul { padding-left: 0; list-style: none; }
.about-content ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.about-content ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px;
  transform: rotate(45deg); background: var(--sp-primary); border-radius: 2px;
}
.contact-card {
  background: linear-gradient(120deg, var(--sp-primary-dark), var(--sp-primary)); color: #fff;
  border-radius: 18px; padding: 32px; margin-top: 30px;
}
.contact-card h3 { color: #fff; padding: 0; margin: 0 0 16px; }
.contact-card h3::before { display: none; }
.contact-card a { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-card .item > span { min-width: 0; }
.contact-card .item { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.contact-card .item svg { width: 18px; height: 18px; fill: #fff; flex: none; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 30px 16px; max-width: 560px; margin: 0 auto; }
.empty-state .icon {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; background: var(--sp-primary-light);
  display: flex; align-items: center; justify-content: center;
}
.empty-state .icon svg { width: 40px; height: 40px; fill: var(--sp-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sp-footer); color: rgba(255,255,255,.75); position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sp-primary-dark), var(--sp-primary), var(--sp-primary-dark));
}
.footer-main { padding: 64px 0 40px; }
.footer-logo { background: #fff; border-radius: 18px; padding: 10px; display: inline-block; }
.footer-logo img { width: 130px; height: 130px; }
.footer-about { margin-top: 18px; font-size: .92rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1.15rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--sp-primary); border-radius: 3px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 22px; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.footer-contact .ic {
  width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(14,153,140,.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-contact .ic svg { width: 17px; height: 17px; fill: var(--sp-primary); }
.footer-contact small { display: block; color: rgba(255,255,255,.5); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-contact a { color: #fff; word-break: break-word; }
.footer-contact a:hover { color: var(--sp-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.footer-links a::before { content: "›"; color: var(--sp-primary); font-weight: 700; }
.footer-links a:hover { color: #fff; }
/* col-lg-2 is too narrow for two columns of links */
@media (min-width: 992px) { .footer-links { columns: 1; } }
.app-links { display: flex; gap: 14px; flex-wrap: wrap; }
.app-links a {
  display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; /* app icons are round PNGs */
  box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .3s ease;
}
.app-links a:hover { transform: translateY(-5px) rotate(-3deg); }
.app-links img { width: 100%; height: 100%; object-fit: cover; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1020;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--sp-primary); box-shadow: 0 8px 20px rgba(14,153,140,.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--sp-primary-dark); }
.back-to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  :root { --sp-header-h: 74px; }
  .navbar-brand img { width: 60px; height: 60px; }
}
@media (max-width: 991.98px) {
  .section { padding: 60px 0; }
  .poster { position: static; margin-bottom: 24px; }
  .poster-single { max-width: 340px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 575.98px) {
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  .section-title h2::before, .section-title h2::after,
  .section-title h3::before, .section-title h3::after { flex-basis: 30px; }
  .topbar .topbar-contact .hide-xs { display: none; }
  .intro-card { padding: 28px 20px; }
  .intro-card img { width: 150px; height: 150px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .book-card { padding: 16px 12px 18px; }
  .book-card .book-cover { max-width: 110px; margin-bottom: 14px; }
  .book-card h3 { font-size: .92rem; }
  .video-card .title { font-size: .88rem; padding: 10px 12px; }
  .video-card .play { width: 44px; height: 44px; }
  .footer-links { columns: 1; }
  .page-hero { padding: 50px 0 46px; }
  .page-hero .diamond { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .back-to-top, .hero-slider { display: none !important; }
}
