/* ============================================================
   KosherQuest — Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:       #002B5B;
  --navy-dark:  #001a38;
  --navy-light: #1a4a7a;
  --gold:       #C4922A;
  --gold-light: #e8b84b;
  --cream:      #faf8f4;
  --red:        #c0392b;
  --green:      #2d8a4e;
  --blue:       #2563eb;
  --purple:     #7c3aed;
  --teal:       #0891b2;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --radius:     10px;
  --radius-lg:  16px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', system-ui, sans-serif;
  --transition: .2s ease;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Alert Bar ─────────────────────────────────────────────── */
.alert-bar { padding: .6rem 0; font-size: .875rem; font-weight: 600; }
.alert-bar--info     { background: #dbeafe; color: #1e40af; }
.alert-bar--warning  { background: #fef3c7; color: #92400e; }
.alert-bar--critical { background: #fee2e2; color: #991b1b; }
.alert-bar__inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: .75rem; }
.alert-bar__text { flex: 1; }
.alert-bar__link { text-decoration: underline; white-space: nowrap; }
.alert-bar__close { background: none; border: none; font-size: 1rem; opacity: .6; padding: 0 .25rem; }
.alert-bar__close:hover { opacity: 1; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background var(--transition);
}
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
  height: 70px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.site-logo__mark { font-size: 1.6rem; color: var(--gold); line-height: 1; }
.site-logo__text { display: flex; flex-direction: column; }
.site-logo__name { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.site-logo__tagline { font-size: .65rem; color: rgba(255,255,255,.55); letter-spacing: .08em; text-transform: uppercase; }

/* Desktop Nav */
.site-nav { flex: 1; }
.nav-list { display: flex; align-items: center; gap: .125rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .85rem;
  color: rgba(255,255,255,.88);
  font-size: .875rem; font-weight: 600;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-item--has-dropdown:hover > .nav-link {
  background: rgba(255,255,255,.12); color: #fff;
}
.nav-arrow { font-size: .6rem; opacity: .7; }

/* Dropdown */
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow-lg); padding: 8px 0; margin-top: 0;
  border: 1px solid var(--border);
  z-index: 200;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0;
  height: 12px; /* invisible bridge so mouse can travel from link to dropdown */
}
.nav-item--has-dropdown:hover .nav-dropdown { display: block; }
.nav-dropdown li a {
  display: block; padding: .55rem 1.25rem;
  color: var(--text); font-size: .875rem; font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown li a:hover { background: var(--cream); color: var(--navy); }

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-search { display: flex; align-items: center; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.header-search input {
  border: none; background: transparent; padding: .4rem .75rem;
  color: #fff; font-size: .82rem; width: 180px;
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button { background: none; border: none; color: rgba(255,255,255,.7); padding: .4rem .6rem; font-size: .9rem; }
.header-search button:hover { color: #fff; }
.btn-donate {
  background: var(--gold); color: #fff; font-weight: 700;
  padding: .4rem 1rem; border-radius: 6px; font-size: .82rem;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-donate:hover { background: var(--gold-light); color: #fff; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; padding: .4rem; width: 36px;
}
.mobile-menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s; }

/* ── Mobile Menu ───────────────────────────────────────────── */
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150;
}
.mobile-menu {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: var(--navy); z-index: 160;
  transition: right .3s ease; overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-overlay.open { display: block; }
.mobile-menu__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-menu__header .site-logo__name { color: #fff; font-family: var(--font-serif); font-size: 1.1rem; }
.mobile-menu-close { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.3rem; }
.mobile-nav ul { padding: .75rem 0; }
.mobile-nav li a { display: flex; justify-content: space-between; padding: .7rem 1.5rem; color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav li a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sub-toggle { font-size: .7rem; opacity: .6; }
.mobile-sub { background: rgba(0,0,0,.2); }
.mobile-sub li a { padding-left: 2.5rem; font-weight: 400; font-size: .875rem; }
.mobile-sub { display: none; }
.mobile-sub.open { display: block; }
.mobile-donate { color: var(--gold) !important; font-weight: 700 !important; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 580px;
  display: flex; align-items: center;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: 
    linear-gradient(135deg, #001a38 0%, #002B5B 40%, #1a3a6b 70%, #8B4513 100%);
}
.hero__pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,27,56,.95) 0%, rgba(0,27,56,.7) 60%, rgba(0,27,56,.3) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem;
  max-width: 700px; margin-left: max(1.5rem, calc(50vw - 600px));
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(196,146,42,.2); border: 1px solid rgba(196,146,42,.4);
  color: var(--gold-light); padding: .35rem .85rem; border-radius: 20px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff; line-height: 1.15; margin-bottom: 1.25rem; font-weight: 700;
}
.hero__title-accent { color: var(--gold-light); font-style: italic; }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 2rem; max-width: 540px; }

/* Hero search */
.hero-search-form {
  display: flex; background: #fff; border-radius: 10px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.3);
  margin-bottom: .85rem;
}
.hero-search-form input {
  flex: 1; border: none; padding: .9rem 1.25rem; font-size: 1rem;
  color: var(--text); outline: none;
}
.hero-search-form button {
  background: var(--gold); color: #fff; border: none;
  padding: .9rem 1.5rem; font-weight: 700; font-size: .95rem;
  white-space: nowrap; transition: background var(--transition);
}
.hero-search-form button:hover { background: var(--gold-light); }
.hero__search-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hero__search-tags span { color: rgba(255,255,255,.5); font-size: .82rem; }
.hero__search-tags a {
  color: rgba(255,255,255,.75); font-size: .82rem;
  background: rgba(255,255,255,.1); border-radius: 20px;
  padding: .2rem .65rem; transition: background var(--transition);
}
.hero__search-tags a:hover { background: rgba(255,255,255,.2); color: #fff; }

.hero__scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  text-align: center; color: rgba(255,255,255,.4); font-size: .75rem; z-index: 2;
}
.hero__scroll-arrow { animation: bounce 2s infinite; font-size: 1rem; margin-top: .25rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar { background: var(--navy); padding: 1.25rem 0; }
.stats-bar__grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { text-align: center; padding: .5rem 2.5rem; }
.stat-number { display: block; font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--gold-light); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ── Feature Cards ─────────────────────────────────────────── */
.features-section { padding: 4rem 0; background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.feature-card--blue   { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.feature-card--red    { background: linear-gradient(135deg, #991b1b, #ef4444); }
.feature-card--gold   { background: linear-gradient(135deg, #92400e, #f59e0b); }
.feature-card--green  { background: linear-gradient(135deg, #065f46, #10b981); }
.feature-card--purple { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.feature-card--teal   { background: linear-gradient(135deg, #155e75, #06b6d4); }
.feature-card__icon { font-size: 2.25rem; margin-bottom: .75rem; }
.feature-card h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; opacity: .88; line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.feature-card__cta { font-size: .82rem; font-weight: 700; opacity: .9; }

/* ── News Section ──────────────────────────────────────────── */
.news-section { padding: 4rem 0; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.news-column {}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); padding-bottom: 1rem; }
.section-header__left { display: flex; flex-direction: column; gap: .4rem; }
.section-header h2 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy); }
.section-badge { font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.section-badge--red  { background: #fee2e2; color: #991b1b; }
.section-badge--blue { background: #dbeafe; color: #1e40af; }
.see-all { font-size: .82rem; color: var(--gold); font-weight: 700; white-space: nowrap; }
.see-all:hover { color: var(--navy); }

/* Alert posts */
.alert-post-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background var(--transition);
}
.alert-post-item:last-child { border-bottom: none; }
.alert-post-item:hover { color: var(--navy); }
.alert-post-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 6px; }
.alert-post-item__body h4 { font-size: .95rem; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: .2rem; }
.alert-post-item__body time { font-size: .75rem; color: var(--text-muted); }

/* Updates list */
.update-item {
  display: flex; gap: 1rem; padding: .85rem 0;
  border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
}
.update-item:last-child { border-bottom: none; }
.update-item:hover h4 { color: var(--gold); }
.update-item__date {
  flex-shrink: 0; width: 46px; text-align: center;
  background: var(--navy); color: #fff; border-radius: 8px;
  padding: .4rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.update-item__date span { font-size: .6rem; text-transform: uppercase; opacity: .7; }
.update-item__date strong { font-size: 1.1rem; line-height: 1; }
.update-item__body h4 { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: .2rem; line-height: 1.4; }
.update-item__body p { font-size: .8rem; color: var(--text-muted); }

/* ── Pesach Banner ─────────────────────────────────────────── */
.pesach-banner {
  position: relative; padding: 3rem 0;
  background: linear-gradient(135deg, #1a0533, #3b0764, #5b21b6);
  overflow: hidden;
}
.pesach-banner__inner {
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.pesach-banner__left { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.pesach-banner__icon { font-size: 4rem; }
.pesach-banner h2 { font-family: var(--font-serif); font-size: 2rem; color: #fff; margin-bottom: .4rem; }
.pesach-banner p { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.btn-pesach {
  display: inline-block; background: var(--gold); color: #fff;
  padding: .6rem 1.25rem; border-radius: 8px; font-weight: 700;
  font-size: .9rem; transition: background var(--transition);
}
.btn-pesach:hover { background: var(--gold-light); color: #fff; }
.pesach-banner__posts { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pesach-post-item {
  background: rgba(255,255,255,.1); border-radius: 8px; padding: .85rem 1rem;
  text-decoration: none; display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.pesach-post-item:hover { background: rgba(255,255,255,.18); }
.pesach-post-item h4 { font-size: .875rem; color: #fff; font-weight: 600; }
.pesach-post-item time { font-size: .75rem; color: rgba(255,255,255,.55); white-space: nowrap; margin-left: .75rem; }

/* ── About / Donate / Newsletter ───────────────────────────── */
.about-donate-section { padding: 4rem 0; background: var(--cream); }
.about-donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-card, .donate-card, .newsletter-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.about-card { display: flex; flex-direction: column; gap: 1rem; }
.about-card__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.about-card__body h3 { font-family: var(--font-serif); color: var(--navy); font-size: 1.15rem; margin-bottom: .5rem; }
.about-card__body p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.btn-text { color: var(--gold); font-weight: 700; font-size: .875rem; }
.donate-card, .newsletter-card { text-align: center; }
.donate-card__icon, .newsletter-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.donate-card h3, .newsletter-card h3 { font-family: var(--font-serif); color: var(--navy); font-size: 1.25rem; margin-bottom: .75rem; }
.donate-card p, .newsletter-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.btn-donate-large {
  display: inline-block; background: var(--gold); color: #fff;
  padding: .75rem 2rem; border-radius: 8px; font-weight: 700; font-size: 1rem;
  transition: background var(--transition);
}
.btn-donate-large:hover { background: var(--gold-light); color: #fff; }
.donate-card__note, .newsletter-card__note { font-size: .75rem; color: var(--text-muted); margin-top: .75rem; margin-bottom: 0; }
.newsletter-inline-form { display: flex; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); }
.newsletter-inline-form input { flex: 1; border: none; padding: .65rem 1rem; font-size: .875rem; outline: none; min-width: 0; }
.newsletter-inline-form button { background: var(--navy); color: #fff; border: none; padding: .65rem 1rem; font-weight: 700; font-size: .82rem; white-space: nowrap; transition: background var(--transition); }
.newsletter-inline-form button:hover { background: var(--navy-light); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-newsletter { background: rgba(255,255,255,.05); border-radius: var(--radius); padding: 1.25rem; }
.footer-newsletter p { font-size: .82rem; margin-bottom: .75rem; color: rgba(255,255,255,.55); }
.footer-newsletter-form { display: flex; gap: .5rem; }
.footer-newsletter-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: .5rem .75rem; color: #fff; font-size: .82rem; min-width: 0; }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.footer-newsletter-form button { background: var(--gold); color: #fff; border: none; border-radius: 6px; padding: .5rem .85rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ── General Page Styles ───────────────────────────────────── */
.site-main { min-height: 60vh; }
.page-content { max-width: 860px; margin: 0 auto; padding: 3rem 0; }
.page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.page-header h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); }
.entry-content { line-height: 1.8; }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5 { font-family: var(--font-serif); color: var(--navy); margin: 1.75rem 0 .75rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 1rem 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content a { color: var(--navy); text-decoration: underline; }
.entry-content img { border-radius: 8px; margin: 1.5rem 0; }

/* Posts grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); border: 1px solid var(--border); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img-wrap img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.25rem; }
.post-card-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: .5rem; }
.post-card-body h2 { font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: .5rem; }
.post-card-body h2 a { color: var(--navy); }
.post-card-body h2 a:hover { color: var(--gold); }
.post-card-excerpt { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.read-more { font-size: .82rem; color: var(--gold); font-weight: 700; }

/* Breadcrumb */
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; padding: 2rem 0 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }

/* Archive */
.archive-header { margin-bottom: 2rem; }
.archive-header h1 { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); }
.archive-description { color: var(--text-muted); margin-top: .5rem; }
.archive-count { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.archive-label { font-size: .75rem; text-transform: uppercase; color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.subcategory-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.subcategory-chip { background: var(--cream); border: 1.5px solid var(--border); border-radius: 20px; padding: .3rem .85rem; font-size: .82rem; color: var(--navy); font-weight: 600; }
.subcategory-chip:hover { border-color: var(--gold); color: var(--gold); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: 2.5rem 0; flex-wrap: wrap; }
.page-num, .page-prev, .page-next { padding: .45rem .85rem; border-radius: 6px; border: 1.5px solid var(--border); font-size: .875rem; color: var(--navy); font-weight: 600; transition: all var(--transition); }
.page-num:hover, .page-prev:hover, .page-next:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-current { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.page-dots { padding: .45rem .4rem; color: var(--text-muted); }

/* Buttons */
.btn { display: inline-block; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .9rem; transition: all var(--transition); cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--navy); font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .65rem 1rem; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .95rem; font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
}
.required { color: var(--red); }

/* Empty state */
.empty-results { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-notice { color: var(--text-muted); font-style: italic; padding: 1rem 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-donate-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .about-donate-grid { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-bar__grid { flex-wrap: wrap; gap: 0; }
  .stat-item { flex: 1; min-width: 120px; }
  .hero { min-height: 500px; }
  .hero__content { padding: 3rem 1.5rem; margin-left: 0; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .pesach-banner__inner { flex-direction: column; }
  .pesach-banner__posts { width: 100%; }
}
@media (max-width: 480px) {
  .hero-search-form { flex-direction: column; }
  .hero-search-form button { border-radius: 0 0 8px 8px; }
  .hero-search-form input { border-radius: 8px 8px 0 0; }
}

/* ── Popup Engine ─────────────────────────────────────── */
.kq-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
  animation: kqFadeIn .25s ease;
}
@keyframes kqFadeIn { from { opacity:0; } to { opacity:1; } }

.kq-popup {
  position: relative; border-radius: 12px;
  max-width: 560px; width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: kqSlideUp .3s ease;
}
@keyframes kqSlideUp { from { transform:translateY(24px); opacity:0; } to { transform:translateY(0); opacity:1; } }

.kq-popup__image img {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: 12px 12px 0 0; display: block;
}

.kq-popup__body {
  padding: 28px 32px 24px;
  position: relative;
}

.kq-popup__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: #94a3b8;
  padding: 4px 8px; border-radius: 4px;
  transition: color .15s, background .15s;
}
.kq-popup__close:hover { color: #334155; background: #f1f5f9; }

.kq-popup__title {
  font-size: 1.3rem; font-weight: 700; margin: 0 0 12px;
  padding-right: 32px; line-height: 1.3;
}

.kq-popup__content {
  font-size: .95rem; line-height: 1.7; margin-bottom: 20px;
}

.kq-popup__cta {
  display: inline-block; padding: 11px 24px;
  border-radius: 8px; font-weight: 700; font-size: .95rem;
  text-decoration: none; margin-right: 10px; margin-bottom: 8px;
  transition: opacity .15s;
}
.kq-popup__cta:hover { opacity: .88; }

.kq-popup__dismiss {
  display: inline-block; padding: 11px 16px;
  background: none; border: 1.5px solid #e2e8f0;
  border-radius: 8px; font-size: .875rem; cursor: pointer;
  color: #64748b; font-weight: 600; margin-bottom: 8px;
  transition: border-color .15s, color .15s;
}
.kq-popup__dismiss:hover { border-color: #94a3b8; color: #334155; }

@media (max-width: 480px) {
  .kq-popup__body { padding: 20px 20px 18px; }
  .kq-popup__title { font-size: 1.1rem; }
}
