/* ============================================================
   ADDITIONS.CSS — Dark Mode, Search, Back-to-Top, New Sections
   Загружается ПОСЛЕ style.css — только дополнения, без дублей
   ============================================================ */

/* ============================================================
   1. DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --color-dark:           #f5f0e8;
  --color-dark-2:         #e8ddd0;
  --color-dark-3:         #d5c8b8;
  --color-dark-4:         #c0b0a0;
  --color-mid:            #b09080;
  --color-muted:          #8a7060;
  --color-white:          #1a0a0a;
  --color-off-white:      #120505;
  --color-bg:             #0f0404;
  --color-border:         #3a1a1a;
}

[data-theme="dark"] body {
  background-color: #120505;
  color: #f0e8e0;
}

[data-theme="dark"] .header {
  background-color: #1a0808;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

[data-theme="dark"] .header__logo-title { color: #e2b96a; }
[data-theme="dark"] .header__logo-sub   { color: #8a7060; }
[data-theme="dark"] .nav__link          { color: #f0e8e0; }
[data-theme="dark"] .nav__link:hover,
[data-theme="dark"] .nav__link.active   { color: #c9a84c; }
[data-theme="dark"] .nav__dropdown      { background-color: #1a0808; }
[data-theme="dark"] .nav__dropdown-item {
  color: #e0d0c0;
  border-bottom-color: rgba(201,168,76,0.1);
}
[data-theme="dark"] .nav__dropdown-item:hover {
  background-color: rgba(201,168,76,0.1);
  color: #c9a84c;
}

[data-theme="dark"] .section { background-color: #120505; }
[data-theme="dark"] .section-title { color: #f0e8e0; }
[data-theme="dark"] .section-desc  { color: #a09080; }

[data-theme="dark"] .news-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .program-card,
[data-theme="dark"] .heritage-card,
[data-theme="dark"] .book-card,
[data-theme="dark"] .region-card,
[data-theme="dark"] .village-item,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .process-card,
[data-theme="dark"] .about-v2__stat-box {
  background-color: #1e0a0a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .news-card__title a,
[data-theme="dark"] .blog-card__title a,
[data-theme="dark"] .announcement-item__title,
[data-theme="dark"] .program-card__title,
[data-theme="dark"] .heritage-card__title,
[data-theme="dark"] .process-card__title,
[data-theme="dark"] .section-title { color: #f0e8e0; }

[data-theme="dark"] .news-card__excerpt,
[data-theme="dark"] .blog-card__excerpt,
[data-theme="dark"] .program-card__text,
[data-theme="dark"] .process-card__text,
[data-theme="dark"] .about-v2__desc { color: #907060; }

[data-theme="dark"] .footer { background-color: #0a0303; }
[data-theme="dark"] .footer__bottom { border-color: rgba(201,168,76,0.1); }
[data-theme="dark"] .topbar { background-color: #0a0303; }

[data-theme="dark"] .announcement-item {
  background-color: #1a0808;
  border-left-color: rgba(201,168,76,0.4);
}

[data-theme="dark"] .sidebar-widget__title { color: #f0e8e0; }
[data-theme="dark"] .sidebar-nav__link { color: #d0c0b0; }
[data-theme="dark"] .sidebar-nav__link:hover { color: #c9a84c; }

[data-theme="dark"] .mobile-menu { background-color: #1a0808; }
[data-theme="dark"] .mobile-nav__link { color: #f0e8e0; }
[data-theme="dark"] .mobile-nav__link:hover { color: #c9a84c; }
[data-theme="dark"] .mobile-nav__item { border-color: rgba(201,168,76,0.1); }
[data-theme="dark"] .mobile-nav__sublink { color: #a08070; }
[data-theme="dark"] .mobile-nav__sublink:hover { color: #c9a84c; background: rgba(201,168,76,0.08); }
[data-theme="dark"] .mobile-menu__header { border-color: rgba(201,168,76,0.1); }
[data-theme="dark"] .mobile-menu__close { color: #c9a84c; background: rgba(201,168,76,0.1); }
[data-theme="dark"] .mobile-nav__footer { border-color: rgba(201,168,76,0.1); }

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background-color: #1e0a0a;
  color: #f0e8e0;
  border-color: rgba(201,168,76,0.2);
}

[data-theme="dark"] .page-hero {
  background-image: linear-gradient(135deg, #0a0303 0%, #1a0808 100%);
}

[data-theme="dark"] .news-projects { background-color: #0f0404; }
[data-theme="dark"] .about-section-v2 { background-color: #120505; }
[data-theme="dark"] .about-v2__title { color: #f0e8e0; }
[data-theme="dark"] .process-section { background-color: #0f0404; }

/* ============================================================
   2. BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background-color: #6b0000;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.35s ease;
  box-shadow: 0 4px 16px rgba(107,0,0,0.35);
  border: 2px solid rgba(201,168,76,0.4);
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #c9a84c;
  color: #4a0000;
  border-color: #c9a84c;
  transform: translateY(-3px);
}

/* ============================================================
   3. HEADER UTILITY BUTTONS (search + theme toggle)
   ============================================================ */
.header__utils {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.header__util-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(107,0,0,0.07);
  color: #6b0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(107,0,0,0.12);
  flex-shrink: 0;
}

.header__util-btn:hover {
  background: #6b0000;
  color: #ffffff;
  border-color: #6b0000;
}

[data-theme="dark"] .header__util-btn {
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
  border-color: rgba(201,168,76,0.2);
}

[data-theme="dark"] .header__util-btn:hover {
  background: #c9a84c;
  color: #4a0000;
}

/* ============================================================
   4. SEARCH OVERLAY
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,3,3,0.93);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-overlay__inner {
  width: 100%;
  max-width: 680px;
  position: relative;
}

.search-overlay__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

.search-overlay__form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #c9a84c;
  gap: 14px;
  padding-bottom: 8px;
}

.search-overlay__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  caret-color: #c9a84c;
}

.search-overlay__input::placeholder {
  color: rgba(255,255,255,0.25);
}

.search-overlay__submit {
  background: none;
  border: none;
  color: #c9a84c;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s;
  flex-shrink: 0;
}

.search-overlay__submit:hover { color: #ffffff; }

.search-overlay__close {
  position: absolute;
  top: -56px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-overlay__close:hover { color: #c9a84c; }

.search-overlay__hint {
  margin-top: 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   5. ABOUT SECTION v2 — Cinkes style
   ============================================================ */
.about-section-v2 {
  padding: 90px 0;
  background-color: #ffffff;
}

.about-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-v2__boxes {
  display: grid;
  grid-template-columns: auto;
  gap: 0;
  margin-bottom: 36px;
}

.about-v2__box {
  background-color: #6b0000;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.about-v2__box:hover { background-color: #4a0000; }

.about-v2__box--light { background-color: #4a0000; }
.about-v2__box--light:hover { background-color: #3a0000; }

.about-v2__box-icon {
  font-size: 1.5rem;
  color: #c9a84c;
  flex-shrink: 0;
}

.about-v2__box-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.about-v2__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 14px;
}

.about-v2__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #c9a84c;
}

.about-v2__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: #1a0a0a;
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-v2__desc {
  font-family: 'Noto Serif Armenian', serif;
  font-size: 0.97rem;
  color: #6b5050;
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-v2__stats {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.about-v2__stat-box {
  flex: 1;
  border: 1.5px solid rgba(107,0,0,0.12);
  border-radius: 6px;
  padding: 18px 16px;
  background: #faf6f0;
}

.about-v2__stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #6b0000;
  line-height: 1;
  display: block;
}

.about-v2__stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #b0a090;
  display: block;
  margin-top: 4px;
}

.about-v2__right { position: relative; }

.about-v2__photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-v2__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-v2__photo-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(74,0,0,0.92);
  padding: 16px 22px;
  border-radius: 8px;
  border-left: 3px solid #c9a84c;
}

.about-v2__photo-badge strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #c9a84c;
  display: block;
  line-height: 1;
}

.about-v2__photo-badge span {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-top: 3px;
}

.about-v2__deco-box {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid #c9a84c;
  border-radius: 12px;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}

/* ============================================================
   6. NEWS PROJECTS — Cinkes case studies style
   ============================================================ */
.news-projects {
  padding: 90px 0;
  background-color: #faf6f0;
}

.news-projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 20px;
}

.news-projects__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #6b0000;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: background-color 0.3s;
  text-decoration: none;
  flex-shrink: 0;
}

.news-projects__all:hover { background-color: #4a0000; }

.news-projects__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  border-radius: 12px;
  overflow: visible;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 12px;
  min-height: 420px;
  background-color: var(--color-dark-2);
  background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark-3) 100%);
  background-size: cover;
  background-position: center;
}

/* Fallback for missing images - show gradient background */
.project-card:not(:has(.project-card__img)) {
  background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark-3) 100%);
}

/* Ensure overlay is visible even without image */
.project-card__overlay {
  pointer-events: none;
}

.project-card__img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.7);
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-card:hover .project-card__img {
  transform: scale(1.06);
  filter: brightness(0.55);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,3,3,0.95) 0%, rgba(10,3,3,0.4) 50%, rgba(10,3,3,0.1) 100%);
  z-index: 1;
}

.project-card__body {
  position: relative;
  z-index: 2;
  padding: 28px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  min-height: 140px;
}

.project-card__info {
  flex: 1;
  min-width: 0;
}

.project-card__category {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a84c;
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}

.project-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card--large .project-card__title {
  font-size: 1.5rem;
  -webkit-line-clamp: 4;
}

.project-card__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.4);
  color: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-card:hover .project-card__link {
  background: #c9a84c;
  color: #4a0000;
  border-color: #c9a84c;
  transform: translateX(3px);
}

/* Dark mode adjustments for project cards */
[data-theme="dark"] .project-card {
  background-color: #1a0808;
  background-image: linear-gradient(135deg, #1a0808 0%, #2a1515 100%);
}

[data-theme="dark"] .project-card__overlay {
  background: linear-gradient(to top, rgba(10,3,3,0.98) 0%, rgba(10,3,3,0.5) 50%, rgba(10,3,3,0.15) 100%);
}

/* ============================================================
   7. WORKING PROCESS — 4 cards (Cinkes steps)
   ============================================================ */
.process-section {
  padding: 90px 0;
  background-color: #f5f0f0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.process-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 36px 26px;
  position: relative;
  transition: all 0.35s ease;
  border: 1.5px solid rgba(107,0,0,0.08);
  cursor: pointer;
}

.process-card:hover,
.process-card.active {
  background-color: #6b0000;
  border-color: #6b0000;
}

.process-card__icon {
  margin-bottom: 22px;
}

.process-card__icon i {
  font-size: 2rem;
  color: #6b0000;
  transition: color 0.3s;
}

.process-card:hover .process-card__icon i,
.process-card.active .process-card__icon i { color: #c9a84c; }

.process-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a0a0a;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.process-card:hover .process-card__title,
.process-card.active .process-card__title { color: #ffffff; }

.process-card__text {
  font-family: 'Noto Serif Armenian', serif;
  font-size: 0.87rem;
  color: #6b5050;
  line-height: 1.65;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.process-card:hover .process-card__text,
.process-card.active .process-card__text { color: rgba(255,255,255,0.75); }

.process-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(107,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b0000;
  font-size: 0.82rem;
  transition: all 0.3s;
  text-decoration: none;
}

.process-card:hover .process-card__arrow,
.process-card.active .process-card__arrow {
  background: rgba(201,168,76,0.18);
  border-color: #c9a84c;
  color: #c9a84c;
}

/* ============================================================
   8. RESPONSIVE CRITICAL FIXES
   ============================================================ */
@media (max-width: 1280px) {
  .container { padding: 0 28px; }
}

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .about-v2__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-v2__right { display: none; }
  .news-projects__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .project-card { min-height: 320px; }
  .project-card__img { min-height: 320px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-strip__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
    --section-py-sm: 40px;
  }

  /* Topbar */
  .topbar { height: auto; padding: 8px 0; }
  .topbar__left { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__right { width: 100%; justify-content: center; }

  /* Header */
  .header { height: 64px; }
  .header__logo-text { display: none; }
  .header__logo-img { height: 44px; }
  .header__utils { margin-left: 6px; gap: 5px; }
  .header__util-btn { width: 34px; height: 34px; font-size: 0.82rem; }
  .burger { display: flex; }
  .nav { display: none; }
  .header__cta { display: none; }

  /* Hero */
  .hero { height: 80vh; min-height: 480px; }
  .hero__title { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
  .hero__text { font-size: 0.9rem; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { padding: 11px 18px; font-size: 0.8rem; }
  .hero__stats-inner { flex-wrap: wrap; }
  .hero__stat { min-width: 45%; flex: 1 1 45%; padding: 14px 10px; }
  .hero__stat-number { font-size: 1.8rem; }
  .hero__nav { bottom: 72px; right: 16px; }
  .hero__nav-btn { width: 38px; height: 38px; }

  /* Services */
  .services-strip__inner { grid-template-columns: 1fr 1fr; }
  .service-item { padding: 24px 18px; border-right: none !important; border-bottom: 1px solid rgba(201,168,76,0.15); }
  .service-item:nth-child(odd) { border-right: 1px solid rgba(201,168,76,0.15) !important; }

  /* About v2 */
  .about-v2__boxes { grid-template-columns: 1fr; }
  .about-v2__stats { flex-direction: column; gap: 12px; }
  .about-v2__right { display: none; }

  /* News projects */
  .news-projects__header { flex-direction: column; align-items: flex-start; }
  .news-projects__grid { grid-template-columns: 1fr; gap: 16px; }
  .project-card { min-height: 280px; }
  .project-card__img { min-height: 280px; }
  .project-card__body { padding: 20px 18px; min-height: 120px; }
  .project-card__title { font-size: 1.05rem; -webkit-line-clamp: 2; }
  .project-card--large .project-card__title { font-size: 1.2rem; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Blog/article pages */
  .blog-layout { grid-template-columns: 1fr !important; }
  .sidebar { display: none !important; }
  .bio-grid { grid-template-columns: 1fr !important; }
  .station-grid { grid-template-columns: 1fr !important; }
  .programs-grid { grid-template-columns: 1fr !important; }
  .heritage-grid { grid-template-columns: 1fr !important; }
  .regions-grid { grid-template-columns: 1fr 1fr !important; }
  .villages-list { grid-template-columns: 1fr !important; }
  .book-grid { grid-template-columns: 1fr 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .news-grid { grid-template-columns: 1fr !important; }

  /* CTA */
  .cta-section .container { flex-direction: column; gap: 20px; text-align: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr !important; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 10px; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }

  /* Section titles */
  .section-title { font-size: clamp(1.45rem, 4vw, 2rem); }
  .page-hero { padding: 80px 0 36px; }
  .page-hero__title { font-size: clamp(1.4rem, 4vw, 2rem); }

  /* Announcement grid */
  .announcements-section .container > div { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { height: 88vh; }
  .hero__text { display: none; }
  .hero__label { font-size: 0.7rem; }
  .hero__title { font-size: 1.75rem; }
  .hero__stat-number { font-size: 1.5rem; }
  .hero__stat { padding: 10px 6px; }
  .services-strip__inner { grid-template-columns: 1fr; }
  .service-item:nth-child(odd) { border-right: none !important; }
  .about-v2__boxes { grid-template-columns: 1fr; }
  .btn { padding: 10px 16px; font-size: 0.82rem; }
  .news-projects__grid { gap: 12px; }
  .project-card { min-height: 240px; }
  .project-card__img { min-height: 240px; }
  .regions-grid { grid-template-columns: 1fr !important; }
  .book-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
    9. BLOG LAYOUT — sidebar helper
    ============================================================ */
/* Note: .blog-layout already defined in style.css, keeping only additions */

/* ============================================================
   11. QUICK-NAV STRIP (replaces services-strip)
   ============================================================ */
.qnav {
  background: #1a0505;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  position: relative;
  z-index: 5;
}

.qnav__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.qnav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  text-decoration: none;
  border-right: 1px solid rgba(201,168,76,0.1);
  transition: background 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}

.qnav__item:last-child { border-right: none; }

.qnav__item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: #c9a84c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.qnav__item:hover::after { transform: scaleX(1); }

.qnav__item:hover {
  background: rgba(201,168,76,0.06);
}

.qnav__item:hover .qnav__label { color: #c9a84c; }
.qnav__item:hover .qnav__icon  { background: rgba(201,168,76,0.18); color: #c9a84c; }
.qnav__item:hover .qnav__arrow { opacity: 1; transform: translateX(3px); }

.qnav__icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.25s;
}

.qnav__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  line-height: 1.25;
  flex: 1;
  transition: color 0.25s;
}

.qnav__arrow {
  font-size: 0.65rem;
  color: rgba(201,168,76,0.5);
  opacity: 0;
  transition: all 0.25s;
  flex-shrink: 0;
}

/* Slide dots (replaces inline-styled hero__dots) */
.hero__slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hsd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  flex-shrink: 0;
}

.hsd.active {
  background: #c9a84c;
  width: 22px;
  border-radius: 4px;
}

/* Dark mode for qnav */
[data-theme="dark"] .qnav { background: #0c0202; border-color: rgba(201,168,76,0.1); }
[data-theme="dark"] .qnav__item:hover { background: rgba(201,168,76,0.05); }

/* Responsive qnav */
@media (max-width: 1024px) {
  .qnav__inner { grid-template-columns: repeat(3, 1fr); }
  .qnav__item { border-bottom: 1px solid rgba(201,168,76,0.1); }
}
@media (max-width: 600px) {
  .qnav__inner { grid-template-columns: repeat(2, 1fr); }
  .qnav__label { font-size: 0.72rem; }
  .qnav__arrow { display: none; }
}
@media (max-width: 380px) {
  .qnav__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   12. MOBILE MENU LOGO (replaces inline styles)
   ============================================================ */
.mobile-menu__logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mobile-menu__logo-img {
  height: 38px;
  width: auto;
}

.mobile-menu__logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #6b0000;
}

[data-theme="dark"] .mobile-menu__logo-text { color: #c9a84c; }

/* ============================================================
   13. ANNOUNCEMENTS GRID (replaces inline styles)
   ============================================================ */
.announcements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 768px) {
  .announcements-grid { grid-template-columns: 1fr; }
}

.announcements-btn {
  margin-top: 28px;
}

/* ============================================================
   14. DONATION CTA CARD (replaces inline styles)
   ============================================================ */
.donation-cta {
  background: linear-gradient(135deg, #4a0000 0%, #6b0000 100%);
  border-radius: 16px;
  padding: 44px 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.donation-cta__circle {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(201,168,76,0.08);
  border-radius: 50%;
}

.donation-cta__inner {
  position: relative;
  z-index: 1;
}

.donation-cta__icon {
  width: 64px;
  height: 64px;
  background: rgba(201,168,76,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #e2b96a;
  margin-bottom: 22px;
}

.donation-cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.donation-cta__text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  line-height: 1.75;
}

.donation-cta__btn {
  justify-content: center;
}

/* ============================================================
   15. SHARE BAR (replaces inline styles on single)
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(107,0,0,0.08);
}

.share-bar__label {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b5050;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}

.share-btn--fb {
  background: #1877f2;
  color: #ffffff;
}

.share-btn--fb:hover {
  background: #0d65d9;
}

.share-btn--copy {
  background: rgba(107,0,0,0.06);
  color: #6b0000;
}

.share-btn--copy:hover {
  background: rgba(107,0,0,0.12);
}

[data-theme="dark"] .share-bar { border-color: rgba(201,168,76,0.1); }
[data-theme="dark"] .share-bar__label { color: #a09080; }
[data-theme="dark"] .share-btn--copy { background: rgba(201,168,76,0.1); color: #c9a84c; }

/* ============================================================
   16. ERROR PAGE (404)
   ============================================================ */
.error-social {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ============================================================
   17. SEARCH RESULTS
   ============================================================ */
.search-results-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #6b5050;
  margin-bottom: 24px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #1a0a0a;
  margin-bottom: 12px;
}

.no-results p {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: #6b5050;
  margin-bottom: 24px;
}

[data-theme="dark"] .no-results h2 { color: #f0e8e0; }
[data-theme="dark"] .no-results p { color: #907060; }
[data-theme="dark"] .search-results-count { color: #907060; }

/* ============================================================
   18. SIDEBAR CONTACT INFO
   ============================================================ */
.sidebar-contact-info {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #6b5050;
  line-height: 1.8;
}

.sidebar-contact-info i {
  color: #c9a84c;
  margin-right: 8px;
}

.sidebar-contact-info a {
  color: #6b0000;
  transition: color 0.3s;
}

.sidebar-contact-info a:hover {
  color: #c9a84c;
}

[data-theme="dark"] .sidebar-contact-info { color: #907060; }
[data-theme="dark"] .sidebar-contact-info a { color: #c9a84c; }

/* ============================================================
   19. WORDPRESS GALLERY SHORTCODE STYLES
   ============================================================ */

/* Base gallery container - beautiful clean grid */
.wp-block-gallery,
.gallery {
  display: grid;
  gap: 16px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

/* Column layouts */
.wp-block-gallery.columns-1,
.gallery.columns-1,
.gallery.gallery-columns-1 { grid-template-columns: 1fr; }

.wp-block-gallery.columns-2,
.gallery.columns-2,
.gallery.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }

.wp-block-gallery.columns-3,
.gallery.columns-3,
.gallery.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }

.wp-block-gallery.columns-4,
.gallery.columns-4,
.gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.wp-block-gallery.columns-5,
.gallery.columns-5,
.gallery.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.wp-block-gallery.columns-6,
.gallery.columns-6,
.gallery.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }

.wp-block-gallery.columns-7,
.gallery.columns-7,
.gallery.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }

.wp-block-gallery.columns-8,
.gallery.columns-8,
.gallery.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }

.wp-block-gallery.columns-9,
.gallery.columns-9,
.gallery.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

/* Gallery item - clean bordered style like reference */
.wp-block-gallery .wp-block-image,
.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(107, 0, 0, 0.08);
  background: #faf6f0;
  margin: 0;
}

.wp-block-gallery .wp-block-image:hover,
.gallery .gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107, 0, 0, 0.12);
  border-color: rgba(201, 168, 76, 0.3);
}

/* Image wrapper inside gallery item */
.wp-block-gallery .wp-block-image .gallery-icon,
.gallery .gallery-item .gallery-icon {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.wp-block-gallery .wp-block-image img,
.gallery .gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.wp-block-gallery .wp-block-image:hover img,
.gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Subtle overlay on hover */
.wp-block-gallery .wp-block-image .gallery-icon::after,
.gallery .gallery-item .gallery-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107, 0, 0, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.wp-block-gallery .wp-block-image:hover .gallery-icon::after,
.gallery .gallery-item:hover .gallery-icon::after {
  opacity: 1;
}

/* Zoom icon on hover */
.wp-block-gallery .wp-block-image .gallery-icon::before,
.gallery .gallery-item .gallery-icon::before {
  content: '\f00e';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wp-block-gallery .wp-block-image:hover .gallery-icon::before,
.gallery .gallery-item:hover .gallery-icon::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Caption styling - hidden by default, shown on hover */
.wp-block-gallery .wp-block-image figcaption,
.gallery .gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 10px;
  background: linear-gradient(to top, rgba(10, 3, 3, 0.85), transparent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.wp-block-gallery .wp-block-image:hover figcaption,
.gallery .gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox styles */
.wp-gallery-lightbox {
  z-index: 10000;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .wp-block-gallery.columns-7,
  .gallery.columns-7,
  .gallery.gallery-columns-7,
  .wp-block-gallery.columns-8,
  .gallery.columns-8,
  .gallery.gallery-columns-8,
  .wp-block-gallery.columns-9,
  .gallery.columns-9,
  .gallery.gallery-columns-9 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1024px) {
  .wp-block-gallery.columns-5,
  .gallery.columns-5,
  .gallery.gallery-columns-5,
  .wp-block-gallery.columns-6,
  .gallery.columns-6,
  .gallery.gallery-columns-6,
  .wp-block-gallery.columns-7,
  .gallery.columns-7,
  .gallery.gallery-columns-7,
  .wp-block-gallery.columns-8,
  .gallery.columns-8,
  .gallery.gallery-columns-8,
  .wp-block-gallery.columns-9,
  .gallery.columns-9,
  .gallery.gallery-columns-9 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .wp-block-gallery .wp-block-image img,
  .gallery .gallery-item img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .wp-block-gallery,
  .gallery {
    gap: 10px;
    margin: 24px 0;
  }
  
  .wp-block-gallery.columns-3,
  .gallery.columns-3,
  .gallery.gallery-columns-3,
  .wp-block-gallery.columns-4,
  .gallery.columns-4,
  .gallery.gallery-columns-4,
  .wp-block-gallery.columns-5,
  .gallery.columns-5,
  .gallery.gallery-columns-5,
  .wp-block-gallery.columns-6,
  .gallery.columns-6,
  .gallery.gallery-columns-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wp-block-gallery .wp-block-image img,
  .gallery .gallery-item img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .wp-block-gallery,
  .gallery {
    gap: 8px;
    margin: 20px 0;
  }
  
  .wp-block-gallery.columns-2,
  .gallery.columns-2,
  .gallery.gallery-columns-2,
  .wp-block-gallery.columns-3,
  .gallery.columns-3,
  .gallery.gallery-columns-3,
  .wp-block-gallery.columns-4,
  .gallery.columns-4,
  .gallery.gallery-columns-4,
  .wp-block-gallery.columns-5,
  .gallery.columns-5,
  .gallery.gallery-columns-5,
  .wp-block-gallery.columns-6,
  .gallery.columns-6,
  .gallery.gallery-columns-6 {
    grid-template-columns: 1fr;
  }
  
  .wp-block-gallery .wp-block-image img,
  .gallery .gallery-item img {
    height: 200px;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .wp-block-gallery .wp-block-image,
[data-theme="dark"] .gallery .gallery-item {
  border-color: rgba(201, 168, 76, 0.12);
  background: #1e0a0a;
}

[data-theme="dark"] .wp-block-gallery .wp-block-image:hover,
[data-theme="dark"] .gallery .gallery-item:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .wp-block-gallery .wp-block-image::after,
[data-theme="dark"] .gallery .gallery-item::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 60%);
}

/* ============================================================
   YNTSA PROGRAMS GRID FIXES
   ============================================================ */

/* Program card — reset border-top when image is present */
.program-card:has(.program-card__image) {
  padding: 0;
  border-top: none;
  overflow: hidden;
}

/* Program card image wrapper */
.program-card__image {
  width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.program-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.program-card__thumb {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.program-card:hover .program-card__thumb {
  transform: scale(1.05);
}

/* Card body padding when image is present */
.program-card:has(.program-card__image) .program-card__title,
.program-card:has(.program-card__image) .program-card__text,
.program-card:has(.program-card__image) .program-card__excerpt,
.program-card:has(.program-card__image) .program-card__link {
  padding-left: 26px;
  padding-right: 26px;
}

.program-card:has(.program-card__image) .program-card__title {
  padding-top: 22px;
}

.program-card:has(.program-card__image) .program-card__link {
  padding-bottom: 26px;
}

/* Ensure consistent card heights in grid */
.programs-grid {
  align-items: stretch;
}

.program-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card__title {
  min-height: 2.4em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.program-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 14px;
}

/* Excerpt text styling */
.program-card__excerpt {
  font-family: 'Noto Serif Armenian', serif;
  font-size: 0.88rem;
  color: #6b5050;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark mode adjustments for program cards */
[data-theme="dark"] .program-card__image::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

[data-theme="dark"] .program-card__excerpt {
  color: #907060;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .program-card__image {
    aspect-ratio: 16 / 9;
  }

  .program-card__thumb {
    min-height: 160px;
  }
}

@media (max-width: 768px) {
  .program-card__image {
    aspect-ratio: 16 / 9;
  }

  .program-card__thumb {
    min-height: 140px;
  }

  .program-card:has(.program-card__image) .program-card__title,
  .program-card:has(.program-card__image) .program-card__text,
  .program-card:has(.program-card__image) .program-card__excerpt,
  .program-card:has(.program-card__image) .program-card__link {
    padding-left: 20px;
    padding-right: 20px;
  }

  .program-card:has(.program-card__image) .program-card__title {
    padding-top: 18px;
  }

  .program-card:has(.program-card__image) .program-card__link {
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .program-card__image {
    aspect-ratio: 4 / 3;
  }

  .program-card__thumb {
    min-height: 120px;
  }
}
