/*
Theme Name: Karnataka State Haj Committee
Theme URI: https://karhaj.in
Author: Karnataka State Haj Committee
Author URI: https://karhaj.in
Description: Official website theme for the Karnataka State Haj Committee — a Government of Karnataka autonomous body under the Minorities Welfare, Haj & Waqf Department. Includes home, about, Haj cycle info, circulars, gallery, pilgrim portal and contact pages, ported from the original design with all content, placeholders and interactive functions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karhaj
*/

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============ THEME VARIABLES ============ */
:root {
  --navy: #1a6b3c;
  --navy-dark: #0e4327;
  --cream: #faf8f3;
  --cream-dark: #f3ede0;
  --gold: #c9971f;
  --ink: #26241d;
  --muted: #9a9587;
  --muted2: #8a8578;
  --border: rgba(26,107,60,.1);
  --nav-maroon: #14532b;
  --nav-maroon-dark: #0a3319;
}
.serif { font-family: 'Source Serif 4', Georgia, serif; }

/* ============ GOV TOPBAR ============ */
.gov-topbar { background: #fff; color: var(--navy-dark); font-size: 12px; border-bottom: 1px solid var(--border); }
.gov-topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 6px 24px; gap: 16px; flex-wrap: wrap; }
.gov-topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gov-topbar-link { display: flex; align-items: center; gap: 5px; background: none; border: none; color: var(--navy-dark); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; padding: 0; }
.gov-topbar-icon { font-size: 12px; }
.gov-topbar-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; background: var(--cream-dark); border-radius: 6px; padding: 2px; }
.lang-switch button { border: none; background: transparent; color: var(--navy-dark); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 4px; cursor: pointer; }
.lang-switch button.active { background: var(--navy); color: #fff; }
.gov-search { display: flex; align-items: center; background: var(--cream-dark); border-radius: 6px; overflow: hidden; }
.gov-search input { background: transparent; border: none; color: var(--navy-dark); font-size: 12px; padding: 6px 10px; width: 130px; }
.gov-search input::placeholder { color: var(--muted); }
.gov-search button { background: none; border: none; color: var(--navy-dark); padding: 6px 10px; cursor: pointer; }
.gov-font-controls { display: flex; gap: 2px; }
.gov-font-controls button { background: var(--cream-dark); border: none; color: var(--navy-dark); font-size: 11px; font-weight: 700; padding: 5px 8px; border-radius: 4px; cursor: pointer; }
body.karhaj-visually-challenged { font-size: 112.5%; }
body.karhaj-visually-challenged * { line-height: 1.7 !important; }

/* ============ GOV HEADER BAND ============ */
.gov-header-band { background: #fff; border-bottom: 1px solid var(--border); }
.gov-header-band-inner { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.official-block { display: flex; align-items: center; gap: 12px; min-width: 0; }
.official-block.reverse { flex-direction: row-reverse; text-align: right; }
.official-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream-dark); flex-shrink: 0; }
.official-name { font-weight: 700; font-size: 13.5px; color: var(--navy-dark); white-space: nowrap; }
.official-title { font-size: 11px; color: var(--muted2); max-width: 220px; line-height: 1.4; }
.gov-header-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; flex-direction: row; flex-shrink: 0; }
.gov-header-brand .brand-mark { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.gov-header-brand .brand-name { font-family: 'Source Serif 4',serif; font-weight: 700; font-size: 17px; color: var(--navy-dark); }
.gov-header-brand .brand-sub { font-size: 11px; color: var(--muted2); }

/* ============ HEADER (fallback, gov band switched off) ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.site-header .wrap { padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand-mark { width: 52px; height: 52px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.brand-name { font-family: 'Source Serif 4',serif; font-weight: 700; font-size: 19px; color: var(--navy-dark); line-height: 1.25; }
.brand-sub { font-size: 11.5px; color: var(--muted2); letter-spacing: 0.02em; }
.btn-cta { background: var(--gold); color: #fff; border: none; padding: 11px 20px; border-radius: 7px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 3px 10px rgba(184,134,46,0.3); }
.btn-cta.disabled { background: #9a9587; cursor: default; }
.hamburger { background: none; border: 1.5px solid var(--navy); width: 42px; height: 42px; border-radius: 8px; font-size: 19px; color: var(--navy); cursor: pointer; display: none; }
.gov-header-band .hamburger { border-color: rgba(15,76,129,0.3); }

/* ============ NAV (green, gov-style) ============ */
.main-nav { background: var(--nav-maroon); position: sticky; top: 0; z-index: 39; }
.main-nav .wrap { padding: 0 24px; display: flex; align-items: stretch; gap: 2px; }
.main-nav ul { display: flex; align-items: stretch; gap: 2px; flex: 1; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav > .wrap > ul > li > a,
.main-nav .nav-link { background: transparent; border: none; color: #fff; font-size: 13.5px; font-weight: 600; padding: 13px 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-nav li.current > a, .main-nav .nav-link.active { background: rgba(255,255,255,0.16); }
.main-nav li:hover > a { background: rgba(255,255,255,0.1); }
.main-nav .caret { font-size: 9px; opacity: 0.7; }
.main-nav li.has-dropdown { position: relative; }
.main-nav .dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--nav-maroon-dark); box-shadow: 0 14px 28px rgba(0,0,0,.22); display: none; flex-direction: column; z-index: 80; padding: 6px 0; }
.main-nav li.has-dropdown.open .dropdown-menu,
.main-nav li.has-dropdown:hover .dropdown-menu { display: flex; }
.main-nav .dropdown-menu a { color: #fff; padding: 11px 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.main-nav .dropdown-menu a:hover { background: rgba(255,255,255,.14); }

/* ===== MEGA MENU (Haj 2027) ===== */
.main-nav li.mega { position: static; }
.main-nav .mega-menu { position: absolute; top: 100%; left: 24px; right: 24px; background: #fff; box-shadow: 0 18px 36px rgba(0,0,0,.22); display: none; z-index: 90; padding: 26px 28px; gap: 28px; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; border-top: 3px solid var(--gold); }
.main-nav li.mega.open .mega-menu,
.main-nav li.mega:hover .mega-menu { display: grid; }
.mega-col-title { font-family: 'Source Serif 4',serif; font-weight: 700; font-size: 14px; color: var(--navy-dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--cream-dark); }
.mega-doc-caption { font-size: 11.5px; color: var(--muted2); line-height: 1.5; }
.mega-link { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #2c2a24; font-weight: 600; padding: 7px 0; }
.mega-link:hover { color: var(--navy); text-decoration: underline; }
.mega-link-icon { font-size: 13px; flex-shrink: 0; width: 16px; text-align: center; }
.mega-new-badge { background: #c0392b; color: #fff; font-size: 8.5px; font-weight: 800; padding: 2px 5px; border-radius: 3px; letter-spacing: .02em; margin-left: 4px; }
.mega-dl-icon { margin-left: auto; font-size: 11px; opacity: .55; flex-shrink: 0; }

.pilgrim-login-link { background: rgba(255,255,255,0.14); border: none; color: #fff; font-size: 13px; font-weight: 700; padding: 13px 16px; cursor: pointer; white-space: nowrap; }

/* ============ MOBILE NAV ============ */
.mobile-nav { background: var(--nav-maroon); padding: 6px 0; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button { width: 100%; text-align: left; background: none; border: none; color: #fff; font-size: 15px; font-weight: 600; padding: 13px 22px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.08); display: block; }
.mobile-nav .pilgrim-login-link { background: rgba(255,255,255,0.1); color: var(--gold); border-bottom: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .btn-cta.header-cta { display: none; }
  .gov-header-band-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .official-block, .official-block.reverse { flex-direction: column; text-align: center; }
  .quick-grid, .about-functions, .committee-grid, .gallery-grid, .videos-grid, .contact-grid, .home-contact-band, .home-feed-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .gov-topbar-right { width: 100%; justify-content: space-between; }
}

/* ============ HERO (clean full-bleed slideshow) ============ */
.hero { position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-playpause { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(10,15,25,0.55); border: none; color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-dots { position: absolute; left: 24px; bottom: 24px; z-index: 3; display: flex; gap: 7px; }
.hero-dots button { height: 7px; border-radius: 4px; border: none; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; width: 8px; }
.hero-dots button.active { background: #fff; width: 22px; }

/* ============ CTA STRIP (below hero) ============ */
.cta-strip { background: var(--navy-dark); }
.cta-strip-inner { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip-headline { color: #fff; font-size: 15px; font-weight: 600; }
.cta-strip-dates { display: flex; gap: 26px; flex-wrap: wrap; }
.cta-strip-date { display: flex; align-items: center; gap: 8px; }
.cta-strip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cta-strip-date-label { font-size: 12.5px; color: rgba(255,255,255,0.55); }
.cta-strip-date-value { font-size: 13px; color: #fff; font-weight: 600; }
@media (max-width: 800px) { .cta-strip-inner { flex-direction: column; align-items: flex-start; } }

/* ============ QUICK ACCESS ============ */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; position: relative; z-index: 2; }
.quick-card { background: #fff; border-radius: 12px; padding: 22px 20px; box-shadow: 0 10px 26px rgba(15,25,43,0.1); cursor: pointer; border-top: 3px solid var(--gold); transition: transform .15s ease, box-shadow .15s ease; display: block; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(15,25,43,0.15); }
.quick-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.quick-title { font-weight: 700; font-size: 14.5px; color: var(--navy-dark); margin-bottom: 4px; }
.quick-sub { font-size: 12.5px; color: var(--muted2); line-height: 1.4; }

/* ============ QUOTES CAROUSEL ============ */
.quotes-section { background: var(--navy-dark); background: linear-gradient(135deg,var(--navy-dark),#123c22); padding: 52px 24px; position: relative; overflow: hidden; }
.quotes-inner { max-width: 840px; margin: 0 auto; text-align: center; position: relative; min-height: 150px; }
.quotes-mark { font-family: 'Source Serif 4',serif; font-size: 46px; color: var(--gold); line-height: 1; margin-bottom: 6px; opacity: .85; }
.quote-slide { position: absolute; top: 34px; left: 0; right: 0; opacity: 0; transform: translateY(8px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.quote-slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.quote-text { font-family: 'Source Serif 4',serif; font-size: 22px; line-height: 1.6; color: #fff; font-style: italic; margin-bottom: 14px; }
.quote-source { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.quotes-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.quotes-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.quotes-dots button.active { background: var(--gold); width: 22px; border-radius: 5px; }

/* ============ GALLERY SCROLLER ============ */
.gallery-section { max-width: 1240px; margin: 0 auto; padding: 48px 24px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.gallery-head h2 { font-family: 'Source Serif 4',serif; font-size: 24px; font-weight: 700; color: var(--navy-dark); margin: 0; }
.gallery-head a { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.gallery-head a:hover { text-decoration: underline; }
.gallery-scroller { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.gallery-scroller::-webkit-scrollbar { height: 8px; }
.gallery-scroller::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.gallery-scroller::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 4px; }
.gallery-scroller .gallery-item { flex: 0 0 260px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 8px 20px rgba(15,25,15,.12); border: 1px solid var(--border); }
.gallery-scroller .gallery-item img { display: block; width: 100%; height: 180px; object-fit: cover; }
.gallery-scroller .gallery-caption { padding: 10px 12px; background: #fff; font-size: 12.5px; font-weight: 600; color: #3d3a32; }

/* ============ SECTIONS ============ */
.section { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-family: 'Source Serif 4',serif; font-size: 24px; color: var(--navy-dark); margin: 0; font-weight: 600; }
.section-head a.view-all { color: var(--navy); font-weight: 700; font-size: 13.5px; cursor: pointer; }

.home-feed-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.circular-list { background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.circular-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-bottom: 1px solid #f0ede5; cursor: pointer; }
.circular-row:last-child { border-bottom: none; }
.circular-row:hover { background: #faf8f3; }
.circular-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--navy); flex-shrink: 0; }
.circular-title { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.circular-title span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-new { background: #dc4a3f; color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.circular-date { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chairman-card { background: #fff; border-radius: 12px; border: 1px solid var(--border); padding: 26px; }
.chairman-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 9px; margin-bottom: 16px; }
.chairman-quote { font-size: 14px; line-height: 1.7; color: #4a463d; font-style: italic; margin: 0 0 14px; }
.chairman-name { font-size: 13.5px; font-weight: 700; color: var(--navy-dark); }
.chairman-org { font-size: 12px; color: var(--muted); }

.stats-band { background: var(--cream-dark); padding: 44px 24px; }
.stats-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat-value { font-family: 'Source Serif 4',serif; font-size: 32px; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13.5px; color: #6b675c; margin-top: 4px; }

.gallery-preview-grid, .gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-tile { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; left: 12px; bottom: 12px; background: rgba(10,25,45,0.65); color: #fff; font-size: 11.5px; padding: 4px 9px; border-radius: 5px; font-weight: 600; pointer-events: none; }

.home-contact-band { background: var(--navy-dark); padding: 52px 24px; }
.home-contact-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.home-contact-inner h2 { font-family: 'Source Serif 4',serif; font-size: 24px; color: #fff; margin: 0 0 16px; font-weight: 600; }
.home-contact-inner .info { color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.8; }
.map-box { height: 180px; border-radius: 12px; overflow: hidden; }
.map-box img { width: 100%; height: 100%; object-fit: cover; }

/* ============ PAGE HEADER BAND ============ */
.page-band { background: var(--navy-dark); padding: 38px 24px; }
.page-band h1 { font-family: 'Source Serif 4',serif; color: #fff; font-size: 30px; margin: 0; font-weight: 600; }
.page-band p { color: rgba(255,255,255,0.7); font-size: 14px; margin: 8px 0 0; }
.page-body { max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 10px; border-bottom: 1px solid #e7e2d6; margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 12px 6px; margin-right: 22px; font-size: 14.5px; font-weight: 700; cursor: pointer; color: #9a9587; border-bottom: 3px solid transparent; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============ ABOUT ============ */
.intro-block { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 26px 28px; margin-bottom: 32px; max-width: 900px; }
.intro-block p { font-size: 15px; line-height: 1.85; color: #3d3a32; margin: 0 0 14px; }
.intro-block p:last-child { margin-bottom: 0; }
.intro-address { background: var(--cream-dark); border-radius: 8px; padding: 14px 18px; font-size: 13.5px; line-height: 1.8; color: #4a463d; margin: 0 0 14px; }
.intro-address a { color: var(--navy); font-weight: 600; }
.about-history p { font-size: 15.5px; line-height: 1.85; color: #3d3a32; max-width: 760px; }
.about-functions { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; max-width: 820px; }
.function-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; display: flex; gap: 12px; }
.function-icon { font-size: 18px; }
.function-text { font-size: 14px; line-height: 1.55; color: #3d3a32; }
.committee-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.committee-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.committee-card img { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; }
.committee-role { font-weight: 700; font-size: 13.5px; color: var(--navy-dark); }
.committee-name { font-size: 11.5px; color: #a29b87; margin-top: 3px; }

/* ============ HAJ 2027 / DOCUMENTS ============ */
.doc-list { max-width: 680px; display: flex; flex-direction: column; gap: 12px; }
.doc-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.doc-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--navy); flex-shrink: 0; }
.doc-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.doc-meta { font-size: 12px; color: var(--muted); }
.btn-navy-sm { background: var(--navy); color: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.btn-outline-navy-sm { background: none; border: 1px solid var(--navy); color: var(--navy); padding: 7px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* ============ TIMELINE ============ */
.timeline { max-width: 680px; }
.timeline-note { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.timeline-item { display: flex; gap: 16px; }
.timeline-track { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.timeline-line { width: 2px; flex: 1; background: #e7e2d6; }
.timeline-content { padding-bottom: 26px; }
.timeline-label { font-size: 14.5px; font-weight: 700; color: var(--navy-dark); }
.timeline-date { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid #e7e2d6; }
.faq-q { padding: 16px 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: none; border: none; width: 100%; text-align: left; }
.faq-q span.q-text { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.faq-q span.sym { font-size: 16px; color: var(--navy); }
.faq-a { padding: 0 4px 18px; font-size: 14px; line-height: 1.7; color: #5a564a; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .sym::before { content: '−'; }
.faq-q .sym::before { content: '+'; }

/* ============ CIRCULARS ============ */
.circulars-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.year-pills { display: flex; gap: 8px; }
.year-pills button { background: #fff; color: var(--navy); border: 1px solid #e7e2d6; padding: 9px 18px; border-radius: 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.year-pills button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.search-input, input[type=text], input[type=search] { border: 1px solid #e7e2d6; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; width: 240px; background: #fff; }
.circular-full-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #f0ede5; }
.no-circulars { padding: 40px; text-align: center; color: #a29b87; font-size: 14px; }
.circular-year-group[data-year] { display: none; }
.circular-year-group[data-year].active { display: block; }

/* ============ GALLERY VIDEOS / LIGHTBOX ============ */
.videos-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.video-tile { aspect-ratio: 16/9; border-radius: 10px; background: repeating-linear-gradient(45deg,#1a3b5c,#1a3b5c 10px,#204568 10px,#204568 20px); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; }
.video-play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--navy); }
.video-caption { position: absolute; bottom: 10px; left: 12px; background: rgba(10,25,45,0.65); color: #fff; font-size: 11.5px; padding: 4px 9px; border-radius: 5px; font-weight: 600; }
.gallery-tab-panel { display: none; }
.gallery-tab-panel.active { display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(10,15,25,0.85); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-inner { width: 70%; max-width: 720px; }
.lightbox-img { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; }
.lightbox-img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-actions { display: flex; justify-content: space-between; margin-top: 16px; }
.lightbox-actions button { background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer; font-weight: 700; }

/* ============ FORMS: LOGIN / STATUS / CONTACT ============ */
.form-card { background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 28px; }
.form-card.narrow { max-width: 520px; margin: 0 auto; }
.form-tabs { display: flex; background: #f0ede5; border-radius: 10px; padding: 4px; margin-bottom: 26px; max-width: 520px; }
.form-tabs button { flex: 1; background: transparent; color: #9a9587; border: none; padding: 10px; border-radius: 8px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.form-tabs button.active { background: #fff; color: var(--navy); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field-input, select.field-input, textarea.field-input { width: 100%; border: 1px solid #e7e2d6; padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; background: #fff; }
.captcha-box { background: var(--cream-dark); border-radius: 8px; padding: 12px; text-align: center; font: 600 12px monospace; color: #9a9587; margin-bottom: 18px; }
.btn-block-navy { width: 100%; background: var(--navy); color: #fff; border: none; padding: 13px; border-radius: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.btn-block-gold { width: 100%; background: var(--gold); color: #fff; border: none; padding: 13px; border-radius: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.form-msg { margin-top: 14px; font-size: 13px; color: var(--navy); text-align: center; display: none; }
.form-msg.show { display: block; }
.status-result { margin-top: 24px; display: none; }
.status-result.show { display: block; }
.status-cover-label { font-size: 13px; color: #9a9587; margin-bottom: 14px; }
.status-step { display: flex; gap: 14px; }
.status-step-icon { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.status-step-label { font-size: 14px; font-weight: 700; color: var(--navy-dark); }
.status-step-date { font-size: 12.5px; color: #9a9587; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-office-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.contact-office-title { font-weight: 700; font-size: 15px; color: var(--navy-dark); margin-bottom: 10px; }
.contact-office-body { font-size: 13.5px; color: #5a564a; line-height: 1.8; }
.contact-form-title { font-weight: 700; font-size: 16px; color: var(--navy-dark); margin-bottom: 16px; }
.form-success { margin-top: 14px; font-size: 13px; color: #1b7a4a; text-align: center; }

/* ============ FOOTER ============ */
:root {
  --footer-bg: #0b2417; --footer-bg-2: #0e2f1d;
  --text-dim: #b7c9bd; --text-faint: #7f9689;
}
.site-footer { background: var(--footer-bg); margin-top: auto; padding: 56px 24px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 40px; }

.footer-col h3 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 26px; color: #fff; margin: 0 0 14px; }
.footer-col .rule { width: 64px; height: 2px; background: var(--gold); margin-bottom: 22px; }

.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.footer-contact-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--gold); }

.footer-branch-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; margin: 26px 0 16px; }

.footer-links a { display: block; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-bottom: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.footer-bottom { max-width: 1200px; margin: 44px auto 0; padding: 22px 24px 26px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 13px; color: var(--text-faint); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 15px; }
.footer-social a:hover { background: var(--gold); }

.back-to-top { position: fixed; right: 28px; bottom: 28px; width: 46px; height: 46px; border-radius: 8px; background: var(--navy); color: #fff; border: none; font-size: 18px; cursor: pointer; box-shadow: 0 8px 18px rgba(0,0,0,.25); z-index: 60; display: none; }
.back-to-top.show { display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  .hero-copy h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============ UMRAH OPERATOR: ENROLLMENT FORM ============ */
.operator-form-wrap { max-width: 800px; }
.operator-alert { padding: 14px 18px; border-radius: 8px; font-size: 13.5px; margin-bottom: 20px; }
.operator-alert.success { background: #e9f7ef; color: #1b7a4a; border: 1px solid #b9e6cb; }
.operator-alert.error { background: #fdeceb; color: #a8352c; border: 1px solid #f3bdb7; }
.operator-form { padding: 28px; }
.operator-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.operator-form-grid .field-label { margin-bottom: 4px; }
.operator-note { background: var(--cream-dark); border-radius: 8px; padding: 12px 16px; font-size: 12.5px; color: #6b675c; line-height: 1.6; margin: 6px 0 20px; }
@media (max-width: 700px) { .operator-form-grid { grid-template-columns: 1fr; } }

/* ============ UMRAH OPERATOR: DIRECTORY ============ */
.operator-search-row { margin-bottom: 22px; }
.operator-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.operator-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: block; transition: box-shadow .15s ease, transform .15s ease; }
.operator-card:hover { box-shadow: 0 10px 26px rgba(15,25,43,0.1); transform: translateY(-2px); }
.operator-card-top { margin-bottom: 10px; }
.operator-card-name { font-weight: 700; font-size: 15px; color: var(--navy-dark); margin-bottom: 4px; }
.operator-card-meta { font-size: 12.5px; color: #8a8578; margin-bottom: 8px; }
.operator-card-code { font-size: 11.5px; color: #a29b87; font-family: monospace; }
@media (max-width: 900px) { .operator-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .operator-grid { grid-template-columns: 1fr; } }

.operator-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.operator-badge.ok { background: #e9f7ef; color: #1b7a4a; }
.operator-badge.bad { background: #fdeceb; color: #a8352c; }
.operator-badge.warn { background: #fff6e0; color: #9a6b00; }
.operator-badge.lg { font-size: 13px; padding: 7px 16px; }

/* ============ UMRAH OPERATOR: VERIFICATION PAGE ============ */
.operator-verify-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 34px; text-align: center; }
.operator-verify-note { font-size: 13.5px; line-height: 1.6; padding: 12px 16px; border-radius: 8px; margin: 0 auto 24px; max-width: 520px; }
.operator-verify-note.ok { background: #e9f7ef; color: #1b7a4a; }
.operator-verify-note.bad { background: #fdeceb; color: #a8352c; }
.operator-verify-note.warn { background: #fff6e0; color: #9a6b00; }
.operator-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; text-align: left; max-width: 560px; margin: 0 auto 30px; }
.operator-detail-grid .dt { display: block; font-size: 11.5px; font-weight: 700; color: #a29b87; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.operator-detail-grid .dd { display: block; font-size: 14px; color: var(--ink); }
.operator-qr-block { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; border-top: 1px dashed #e7e2d6; border-bottom: 1px dashed #e7e2d6; margin-bottom: 24px; }
.operator-qr-caption { font-size: 12px; color: #9a9587; text-align: center; }
.operator-verify-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.operator-verify-actions button { width: auto; padding: 10px 20px; }
@media (max-width: 600px) { .operator-detail-grid { grid-template-columns: 1fr; } }

@media print {
  .util-bar, .site-header, .main-nav, .mobile-nav, .page-band, .site-footer, .operator-verify-actions { display: none !important; }
  .operator-verify-card { border: none; box-shadow: none; padding: 0; }
}
