/* ===========================
   1. Base / Reset / Layout
   =========================== */

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f5efe4;
  padding-top: 120px;
}

/* Գլխավոր hero բլոկ */
.hero--with-bg {
  position: relative;
  padding: 3.6rem 2rem;
  min-height: 520px;
  border-radius: 12px;
  margin: 1.2rem 1.2rem 1.2rem;
  color: #ffffff;
  overflow: hidden;
  font-weight: 600;      /* կամ 500, եթե շատ հաստ լինի */
}

/* Ֆոնային նկար + թափանցիկ շերտ */
.hero--with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/static/img/home-hero.jpg.png") center/cover no-repeat;
  opacity: 0.5;
  z-index: -1;
}

/* Վերնագրերն ու տեքստերը՝ նկարի վրա */
.hero--with-bg h2,
.hero--with-bg p {
  position: relative;
  z-index: 1;
}

main.container {
  min-height: 70vh;
  padding-bottom: 2rem;
  padding-top: 120px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   3. Header & Navigation
   =========================== */

/* Լեզվի քուիչ */
.lang-switch {
  font-size: 1rem;
  margin-top: -0.2rem;
}
.lang-switch a {
  color: #f0f0f0;
  text-decoration: none;
}
.lang-switch a:hover {
  text-decoration: underline;
}

/* Վերնախագիր */
.site-header {
  background: #071f33;
  color: #111f31;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);

  position: fixed;
  top: 0;
  left: 0;
  right: 0;              /* սա ավելացրու, որ full-width հաստատ լինի */
  z-index: 1000;
   
  transition: transform 0.2s ease-out;
  height: 120px;
  overflow: visible;  /* որ լույսերը/գլխարկը դուրս գան */
}

/* scroll-down → թաքցնենք header-ը վերև */
.site-header.header--hidden {
  transform: translateY(-100%);
}

/* scroll-up կամ սկզբնական վիճակ → երևա նորմալ */
.site-header.header--visible {
  transform: translateY(0);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
  display: flex;
  justify-content: space-between;
  height: 120px;
  align-items: flex-end;
  position: relative;  /* որ z-index աշխատի */
  z-index: 10;         /* բովանդակությունը՝ լույսից ՎԵՐև */
}


.header-left {
  display: flex;
  align-items: flex-end;
  gap: 0rem;
}

/* Logo + մարդուկ */

.logo {
  margin: 0.3rem 0 0 -2rem; /* վերև, աջ, ներքև, ձախ */
  display: inline-flex;
  align-items: flex-start;
  transform-origin: left bottom;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
}

.logo-image {
  height: 4rem;
  width: auto;
  display: block;
}

.logo-person {
  height: 3rem;
  width: auto;
  display: block;
  margin-top: 0rem;
  margin-left: -3rem;
}

/* Menu */

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  padding-bottom: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: #f5f5ff;
  font-size: 1rem;
}

.nav a:hover {
  color: #FFB74D;
}

/* Աջ բլոկ */

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 0.9rem;
}

.nav-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #eaf4ff;
  font-size: 0.9rem;
  text-decoration: none;
  align-self: flex-end;
  margin-bottom: 0.1rem;
}

.nav-tg-link:hover {
  text-decoration: underline;
}

.tg-icon-svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #26A5E4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.3rem;
}

.tg-svg {
  width: 13px;
  height: 13px;
  fill: #ffffff;
}

.tg-text-script {
  font-family: "Caveat", "Segoe Script", system-ui, sans-serif;
}
.tg-text {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Մոբայլ header layout */
@media (max-width: 768px) {
  .site-header {
    height: 290px;          /* մի քիչ բարձր, որ logo + menu + lights տեղավորվեն */
  }

  .header-inner {
    height: 290px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0 2rem 0.4rem;
  }

  .header-left {
    flex-direction: row;
    align-items: flex-end;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0rem 0.75rem;
    padding-bottom: 0;
  }
}

/* ===========================
   Home hero / dashboard
   =========================== */

.home-hero {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: stretch;
  padding: 0.5rem 0 1.5rem;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.6fr);
  gap: 2rem;
  width: 100%;
}

/* Ձախ՝ 4 քարտ */
.home-hero__left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: 1.5rem;
}

.home-card {
  background: none;
  border-radius: 12px;
  padding: 0.3rem 0;
  box-shadow: none;
}

.home-card__inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.home-card__thumb {
  background: rgb(17 31 49 / 73%);
  border-radius: 12px;
  padding: 0.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.home-card__thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.home-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #570101;
}

.home-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.home-card__snippet {
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-card__link {
  font-size: 0.9rem;
  color: #ffeb9c;
  text-decoration: none;
}
.home-card__link:hover {
  text-decoration: underline;
}

/* Աջ սյուն */
.home-hero__right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  background: none;
  box-shadow: none;
  color: #570101;
}

.home-hero__header h2 {
  font-size: 2.2rem;
  margin: 0 0 0.6rem;
}

.home-hero__header p {
  margin: 0 0 0.4rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
}

.home-hero__history h3 {
  margin: 0 0 0.6rem;
}

.home-hero__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #570101;
}

.home-hero__timeline li + li {
  margin-top: 0.4rem;
}

/* Մոբայլ hero */
@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__right {
    padding-left: 0.9rem;
    margin-top: 1rem;
  }

  .home-card__inner {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

/* ===========================
   Churches page
   =========================== */

.section-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.church-section {
  padding: 2rem 2rem;
}

.church-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.church-block--reverse {
  flex-direction: row-reverse;
}

.church-image {
  flex: 1 1 260px;
}

.church-text {
  flex: 1 1 260px;
}

.church-image--column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.church-image--column img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
  margin: 0 auto;
}

/* Divider between church blocks */
.sights-divider {
  margin: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.25);
}

/* Եկեղեցիների ենթամենյու */
.subnav {
  margin: 1rem 2rem;
  display: inline-flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.subnav-link {
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  border-radius: 999px 999px 0 0;
}

.subnav-link.active {
  background: #3f5fae;
  color: #fff;
}

/* Church hidden */
.church-section--hidden {
  display: none;
}

@media (max-width: 768px) {
  .sights-divider {
    margin: 1.25rem 0 2rem;
    font-size: 0.75rem;
  }
}

/* ===========================
   Sights page
   =========================== */

.sights-hero {
  padding-top: 1rem;
}

.sights-hero h1 {
  text-align: center;
  margin: 0 0 1.5rem;
}

.sights-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* reverse row -> պատկերն աջ, տեքստը ձախ */
.sights-row.sights-row--reverse {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
}

.sights-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* default: image left, text right */
.sights-col--image {
  order: 1;
}
.sights-col--text {
  order: 2;
}

/* reverse row: text left, image right */
.sights-row.sights-row--reverse .sights-col--image {
  order: 2;
}
.sights-row.sights-row--reverse .sights-col--text {
  order: 1;
}

/* rest stays the same... */

.sights-image--column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.sights-image--column img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
}

.sights-col--text h2 { /* ... */ }
.sights-col--text h3 { /* ... */ }
.sights-col--text p  { /* ... */ }

/* Մոբայլ */
@media (max-width: 768px) {
  .sights-row,
  .sights-row.sights-row--reverse {
    grid-template-columns: 1fr;
  }

  /* որ mobile‑ում էլի լինի վերևում նկար, ներքևում տեքստ */
  .sights-col--image,
  .sights-col--text {
    order: initial;
  }
}

/* ===========================
   Ժամանցի վայրեր
   =========================== */

.places {
  padding: 2rem 2rem;
}

.place-section {
  padding: 2rem;              /* ցանկության դեպքում կարող ես տալ 2rem 0 */
  margin-bottom: 3rem;
}

.place-block {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.place-block--reverse {
  flex-direction: row-reverse;
}

/* Նկարների սյուն */
.place-image {
  flex: 1 1 260px;
}

.place-image--column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.place-image--column img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
  margin: 0 auto;
}

/* Տեքստի սյուն */
.place-text {
  flex: 1 1 260px;
}

/* Մոբայլ */
@media (max-width: 768px) {
  .place-block,
  .place-block--reverse {
    flex-direction: column;
  }
}

/* News Section */
.news-section {
    padding: 2rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card__body {
    padding: 1rem 1.2rem;
}

.news-card__title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: #333;
}

.news-card__snippet {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0.8rem;
}

.news-card__date {
    font-size: 0.8rem;
    color: #999;
}

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

/* Սա արդեն օգտագործվում է news_hy.html-ում */
.news-container {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

/* Քարտերը՝ առանց image zoom-ի */
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 04px 12px rgba(0,0,0,0.12);
}

/* ՆԿԱՐ — ֆիքսված բարձրություն, առանց zoom */
.news-card-image {
  position: relative;
  width: 100%;
  height: 180px;  /* կարիք լինի՝ 150/140 կիջեցնես */
  background: linear-gradient(135deg, #2B7A8D, #1f5a6b);
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;   /* zoom transition հանված */
}

/* Հերիքի համար լրացուցիչ ապահովություն */
.news-card:hover .news-card-image img {
  transform: none !important;
}

/* Placeholder emoji */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.2rem;
  color: #2B7A8D;
  background: rgba(255,255,255,0.2);
}

/* CATEGORY BADGE */
.category-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.9);
  color: #2B7A8D;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* CONTENT */
.news-card-content {
  padding: 1rem;
}

.event-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: #1a1a1a;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.event-item { color: #666; }

.event-item.price {
  color: #059669;
  font-weight: 600;
}

/* EMPTY STATE (եթե պետք է) */
.news-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.news-empty h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

/* Mobile */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-card-image {
    height: 140px;
  }
}

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

.detail-container {
  max-width: 900px;
  margin: 0 auto 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}

.detail-hero {
  height: 320px;
  overflow: hidden;
  background: #f5f5f5;
}
.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;  /* որ user-ին պարզ լինի, որ սեղմվող է */
}

.detail-content-wrapper {
  padding: 2rem;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

/* Հետ կոճակ */
.back-wrapper {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.back-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: #2B7A8D;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-btn:hover {
  background: #1f5a6b;
}

/* Image modal for news detail */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;              /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border-radius: 8px;
}

.image-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* 4 ԳԻԾ LAYOUT */
.event-details {
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  overflow: hidden;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.value {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 500;
}

.detail-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-top: 1rem;
}

/* Mobile detail */
@media (max-width: 768px) {
  .detail-container {
    margin: 1rem;
  }
  .detail-hero {
    height: 220px;
  }
  .detail-content-wrapper {
    padding: 1.5rem;
  }
  .detail-title {
    font-size: 1.5rem;
  }
  .detail-row {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .label,
  .value {
    text-align: left;
  }
}

/* ===========================
   About էջ
   =========================== */
main {
  max-width: 1200px;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

main h2,
main h3 {
  margin-top: 1.5rem;
}

main p {
  line-height: 1.6;
  margin: 0.6rem 0;
}

/* ===========================
   8. Footer
   =========================== */

.site-footer {
  background: url("/static/img/logo/rug-texture.jpg") center/cover no-repeat;
  color: #fff;
  font-size: 0.85rem;
}

.site-footer .container {
  padding: 0.5rem 1rem;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===========================
   9. Utilities / Helpers
   =========================== */
/* Այստեղ կարող ես ավելացնել .text-center, .mt-*, .hidden

/* ===========================
   10. Place/Sight/Church Meta Info
   =========================== */

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
  align-items: center;
}

.place-address {
  font-weight: 500;
  color: #333;
}

.place-map-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.place-map-link:hover {
  text-decoration: underline;
}

.place-rating {
  color: #ff9500;
  font-weight: 600;
}

.place-price {
  font-size: 1.1rem;
  color: #2d7a2d;
}

/* Mobile */
@media (max-width: 768px) {
  .place-meta {
    font-size: 0.9rem;
    gap: 0.75rem;
  }
}

