:root {
  --header-height: 80px;
  --green: #0f5633;
  --green-dark: #0b3f26;
  --yellow: #fcd359;
  --text: #1f2a24;
  --muted: #66736b;
  --light: #f7f7f4;
  --white: #ffffff;
  --shadow: 0 0px 13px rgba(15, 86, 51, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: var(--header-height); }

body {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow); }
img { max-width: 100%; display: block; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); }

.hero-content .btn {
  background: var(--white);
  color: var(--green);
}

.hero-content .btn:hover {
  background: var(--white);
  color: var(--green-dark);
  opacity: 0.9;
}

.btn-light {
  background: #fff;
  color: var(--green);
  margin-top: 14px;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.55);
}

.btn-whatsapp:hover {
  background: #fff;
  color: var(--green);
}

.link-more {
  display: inline-block;
  margin-top: 20px;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-more:hover {
  color: var(--yellow);
}

.section-title {
  margin-bottom: 34px;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  color: #253027;
}

/* ── Hero ── */

.hero {
  position: relative;
}

/* ── Hero Swiper ── */

.hero-swiper {
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  position: relative;
  border-bottom: 8px solid var(--yellow);
}

.hero-swiper .swiper-slide {
  position: relative;
  height: 100%;
  color: var(--white);
  display: flex;
  align-items: center;
}

.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0.44));
  z-index: 1;
}

.slide-bg img,
.slide-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper navigation & pagination */

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s;
  z-index: 12;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  opacity: 1;
}

.hero-swiper .swiper-pagination {
  z-index: 12;
}

.hero-swiper .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.6;
  width: 10px;
  height: 10px;
  transition: background 0.2s, opacity 0.2s;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--yellow);
  opacity: 1;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 max(16px, calc((100% - 1120px) / 2));
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  background: transparent;
  backdrop-filter: none;
  color: var(--white);
  border-bottom: 3px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.nav-toggle {
  display: none;
}

.nav--scrolled {
  background: rgba(15, 86, 51, 0.9);
  backdrop-filter: blur(6px);
  border-color: var(--yellow);
}


.nav-menu-social-item {
  display: none !important;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  right: max(16px, calc((100% - 1120px) / 2));
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-social-link:hover {
  opacity: 1;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  position: absolute;
  left: max(16px, calc((100% - 1120px) / 2));
  color: var(--yellow);
  opacity: 0.9;
}

.logo svg {
  width: 100%;
  height: 100%;
}

.nav-brand {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.menu > li { position: relative; }

.menu a {
  display: block;
  padding: 10px 0;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.menu > li:hover > a,
.menu a:focus {
  color: var(--yellow);
  opacity: 1;
}

/* WordPress uses .sub-menu for dropdown lists */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  padding: 18px 20px;
  list-style: none;
  background: rgba(55, 140, 85, 0.95);
  color: var(--white);
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
  text-transform: none;
  font-size: 15px;
  font-weight: 500;
}

.sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(55, 140, 85, 0.95);
}

.menu > li:hover > .sub-menu,
.menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu li + li { margin-top: 0; }

.sub-menu a {
  display: block;
  padding: 3px 0;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sub-menu a:hover,
.sub-menu a:focus {
  color: var(--yellow);
}

/* Nested sub-menu (second level) — always expanded inline */
.sub-menu .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  border-radius: 0;
  min-width: 0;
  padding: 4px 0 2px 12px;
  margin-top: 4px;
  font-size: 13px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.sub-menu .sub-menu::before {
  display: none;
}

/* WordPress uses .menu-item-has-children for items with sub-menus */
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 7px;
  margin-bottom: 6px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.sub-menu .menu-item-has-children > a::after {
  display: none;
}

.submenu-toggle {
  display: none;
}

/* ── Hero content ── */

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 430px;
  text-align: center;
  padding-top: var(--header-height);
  width: 100%;
}

.hero h1 {
  max-width: 920px;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0,0,0,0.38);
  margin-bottom: 32px;
}

.slide-description {
  margin: 0 auto 40px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
}

.hero p {
  margin: 32px auto 40px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
}

/* ── Quick cards ── */

.quick-cards {
  position: relative;
  z-index: 4;
  padding-top: 90px;
  padding-bottom: 80px;
}

.quick-cards::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/silueta-tatry.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 85%);
  pointer-events: none;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  justify-items: center;
}

.quick-card {
  position: relative;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  max-width: 280px;
}

.quick-card-icon {
  position: absolute;
  top: 0;
  right: 2px;
  width: 108px;
  height: 108px;
  z-index: 2;
}

.quick-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-card-frame {
  filter: drop-shadow(var(--shadow));
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quick-card-body {
  flex: 1;
}

.quick-card-body {
  min-height: 188px;
  padding: 70px 24px 58px;
  text-align: center;
  background: var(--white);
  clip-path: polygon(
    0 0,
    calc(100% - 40px) 15px, 100% 60px,
    100% 100%, 0 100%
  )
}

.quick-card h2 {
  margin-top: 20px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--green-dark);
  text-transform: uppercase;
}

.quick-card p {
  margin: 18px auto 28px;
  max-width: 270px;
  font-size: 16px;
  color: var(--muted);
}

/* ── Sections ── */

section { padding: 54px 0; }

/* ── Activities ── */

.activities { background: var(--white); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 54px;
}

.activity-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: stretch;
  position: relative;
  cursor: pointer;
}

.activity-card .link-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.thumb {
  background: linear-gradient(135deg, #293b52, #b48b3a);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card .thumb {
  aspect-ratio: 210 / 297; /* A4 portrait */
  align-self: start;
}

.activity-card > div:last-child {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.activity-card > div:last-child .link-more {
  margin-top: auto;
}

.activity-card h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green-dark);
}

.activity-card p {
  margin-top: 6px;
  font-size: 16px;
  color: #4d5a52;
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

/* ── Sacraments ── */

.sacraments { background: #faf9f7; }

.sacrament-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 48px;
  text-align: center;
}

.sacrament-frame {
  filter: drop-shadow(0 0 10px rgba(15, 86, 51, 0.6));
  transition: filter 0.25s ease;
}

.sacrament:hover .sacrament-frame {
  filter: drop-shadow(0 0 12px rgba(252, 211, 89, 0.8));
}

.sacrament-shape {
  clip-path: polygon(
    0 0,
    calc(100% - 28px) 10px, 100% 28px,
    100% 100%, 0 100%
  );
  overflow: hidden;
  transition: transform 0.25s ease;
}

.sacrament:hover .sacrament-shape {
  transform: perspective(400px) rotateY(10deg);
}

.sacrament img,
.sacrament-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.sacrament-placeholder {
  background: linear-gradient(135deg, var(--green-dark), var(--yellow));
}

.sacrament span {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.sacrament:hover span {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
}

/* ── Communities ── */

.communities { background: var(--white); }

.community-list {
  display: grid;
  gap: 18px;
}

.community-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--white);
  filter: drop-shadow(5px 7px 10px rgba(15, 86, 51, 0.6));
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(7px 10px 14px rgba(15, 86, 51, 0.8));
}

.community-card .link-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-img-wrap {
  position: relative;
  overflow: hidden;
}

.community-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-qr-wrap {
  display: inline-block;
  margin-top: 16px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
}

.footer-qr-wrap img {
  display: block;
  max-height: 170px;
  width: auto;
}

.community-img-placeholder {
  width: 100%;
  height: 100%;
  background: #edf0ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-img-placeholder::after {
  content: '';
  display: block;
  width: 72px;
  height: 72px;
  background: url('../img/logo.svg') center / contain no-repeat;
  opacity: 0.35;
}

.community-body { padding: 22px 28px; }

.community-body h3 {
  color: var(--green-dark);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.1;
}

.community-body p {
  margin-top: 14px;
  font-size: 16px;
  color: #3d4b43;
}

.community-body .link-more {
  margin-top: 18px;
}

.community-body strong { color: #1f2a24; }

/* ── Články a zamyslenia ── */

.zamyslenia { padding: 80px 0; background: var(--white); }

.zamyslenia-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.zamyslenie-card {
  background: #f4f7f5;
  border-left: 4px solid var(--green);
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: drop-shadow(3px 4px 8px rgba(15, 86, 51, 0.12));
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
  cursor: pointer;
}

.zamyslenie-card .link-more::after {
  content: '';
  position: absolute;
  inset: 0;
}

.zamyslenie-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  line-height: 0.2;
  color: var(--green);
  opacity: 0.35;
  display: block;
  margin-top: 8px;
}

.zamyslenie-card:hover {
  transform: translateY(-3px);
  filter: drop-shadow(5px 7px 12px rgba(15, 86, 51, 0.22));
}

.zamyslenie-date {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.03em;
  display: block;
}

.zamyslenie-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.2;
}

.zamyslenie-card h3 a {
  color: inherit;
  text-decoration: none;
}

.zamyslenie-card p {
  font-size: 15px;
  color: #3d4b43;
  flex: 1;
}

/* ── Footer ── */

.footer {
  padding: 56px 0 46px;
  color: var(--white);
  background: var(--green);
  border-top: 8px solid var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}

.footer-grid > div:last-child {
  display: flex;
  flex-direction: column;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
}

.footer-social-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer h2,
.footer h3 {
  font-family: "Playfair Display", serif;
}

.footer-heading {
  margin-bottom: 28px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
}

.footer h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.1;
}

.footer p,
.footer li {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}

.contact-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
  font-weight: 700;
}

.contact-line:first-child {
  margin-top: 0;
}

.contact-line a {
  text-decoration: underline;
}

.contact-line span:first-child {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-dark);
}

.footer-photo {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.footer-map {
  flex: 1;
  min-height: 0;
  border-radius: 4px;
  overflow: hidden;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.footer-links ul {
  list-style: none;
  margin-top: 10px;
}

.footer-links li + li { margin-top: 5px; }

.footer-links a {
  text-decoration: underline;
}

.site-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: var(--green-dark);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-copyright a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.site-copyright a:hover {
  color: var(--yellow);
  text-decoration-color: currentColor;
}

/* ── Inner pages ── */

.page-spacer { height: var(--header-height); }

.page-content { padding: 28px 0 40px; }

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
}

.page-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 780px;
}

.page-body h2,
.page-body h3 {
  font-family: "Playfair Display", serif;
  color: var(--green-dark);
  margin: 28px 0 12px;
}

.page-body p { margin-bottom: 16px; }

.post-meta {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.single-thumb {
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.mt-16 { margin-top: 16px; }

/* ── Community detail info ── */

.community-detail-info {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-top: 32px;
  margin-bottom: 48px;
  padding: 28px 32px;
  background: #f5f5f3;
  border-radius: 6px;
}

.community-detail-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-right: 36px;
  margin-right: 36px;
  border-right: 1px solid rgba(15, 86, 51, 0.15);
}

.community-detail-row:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.community-detail-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  font-size: 18px;
}

.community-detail-icon i {
  color: var(--white);
}

.community-detail-row div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.community-detail-row strong {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.community-detail-row span {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

/* ── Archive pagination ── */

.archive-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.archive-pagination .page-numbers:hover {
  border-color: var(--green);
}

.archive-pagination .page-numbers.current {
  background: var(--green);
  color: var(--white);
}

.archive-pagination .prev,
.archive-pagination .next {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Calendar embed ── */

.calendar-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 48px;
}

.calendar-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Zamyslenie navigation ── */

.zamyslenie-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e0e8e4;
}

.zamyslenie-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 45%;
  position: relative;
  cursor: pointer;
}

.zamyslenie-nav a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.zamyslenie-nav-next {
  text-align: right;
  margin-left: auto;
}

.zamyslenie-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zamyslenie-nav a {
  font-size: 15px;
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
}

.zamyslenie-nav a:hover {
  color: var(--green);
}

/* ── Social links ── */

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-social-links {
  margin-top: 24px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.55);
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.social-link--facebook  { background: #1877f2; }
.social-link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ── Article detail ── */

.article-hero {
  margin-top: var(--header-height);
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-spacer { height: var(--header-height); }

.article-page {
  padding: 40px 0 80px;
  background: var(--white);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.article-breadcrumb a {
  color: var(--green);
  text-decoration: underline;
}

.article-breadcrumb span[aria-hidden] { opacity: 0.5; }

.article-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--green-dark);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.article-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
}

.article-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 36px 0 12px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 8px;
}

.article-content p { margin-bottom: 16px; }
.article-content p:last-child { margin-bottom: 0; }

.article-content a {
  color: var(--green);
  text-decoration: underline;
}

.article-content .wp-block-button__link,
.article-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white) !important;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
  border: none;
}

.article-content .wp-block-button__link:hover,
.article-content .wp-element-button:hover {
  background: var(--green-dark);
  color: var(--white) !important;
}

.article-content a:hover { color: var(--yellow); }

.article-content ol,
.article-content ul {
  margin: 12px 0 16px 24px;
}

.article-content li { margin-bottom: 6px; }

.article-content blockquote {
  border-left: 4px solid var(--yellow);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--muted);
  font-style: italic;
}

.article-content figure { margin: 24px 0; }

.article-content figcaption,
.article-content .wp-caption-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  border-radius: 4px;
}

/* ── Gutenberg image alignment ── */

.article-content .alignleft {
  float: left;
  margin: 4px 24px 16px 0;
  max-width: 50%;
}

.article-content .alignright {
  float: right;
  margin: 4px 0 16px 24px;
  max-width: 50%;
}

.article-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-content .wp-caption {
  max-width: 100%;
}

.article-content::after {
  content: '';
  display: table;
  clear: both;
}

/* ── Responsive tables ── */

.article-content .wp-block-table {
  margin: 20px 0;
}

.article-content table {
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}

.article-content table th,
.article-content table td {
  padding: 10px 14px;
  border: 1px solid #dde4df;
  text-align: left;
  vertical-align: top;
}

.article-content table th {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}

.article-content table tr:nth-child(even) td {
  background: #f4f9f6;
}

/* ── Blog Archive ── */

.blog-archive {
  padding: 48px 0 56px;
}

.blog-archive .article-title {
  margin-bottom: 40px;
}

.archive-header {
  margin-bottom: 48px;
}

.archive-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  display: inline-block;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 10px;
}

.archive-title-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Featured post ── */

.archive-featured {
  margin-bottom: 60px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 36px rgba(15, 86, 51, 0.14);
}

.archive-featured-link {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 400px;
  color: inherit;
}

.archive-featured-img {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 280px;
}

.archive-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 63, 38, 0.5) 0%, transparent 55%);
}

.archive-featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.archive-featured-content {
  padding: 52px 44px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  background: var(--white);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 22px;
  width: fit-content;
}

.archive-featured-label::before {
  content: '★';
  font-size: 9px;
}

.archive-featured-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green-dark);
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.archive-featured-link:hover .archive-featured-title {
  color: var(--green);
}

.archive-featured-excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 28px;
  flex: 1;
}

.archive-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(15, 86, 51, 0.12);
  padding-top: 20px;
  margin-top: auto;
}

.archive-featured-meta time {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.archive-read-more {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  transition: color 0.2s ease;
}

.archive-featured-link:hover .archive-read-more {
  color: var(--green-dark);
}

/* ── Archive grid ── */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@keyframes archiveTileIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.archive-tile { animation: archiveTileIn 0.5s ease both; }
.archive-tile:nth-child(1) { animation-delay: 0.05s; }
.archive-tile:nth-child(2) { animation-delay: 0.10s; }
.archive-tile:nth-child(3) { animation-delay: 0.15s; }
.archive-tile:nth-child(4) { animation-delay: 0.20s; }
.archive-tile:nth-child(5) { animation-delay: 0.25s; }
.archive-tile:nth-child(6) { animation-delay: 0.30s; }
.archive-tile:nth-child(7) { animation-delay: 0.35s; }
.archive-tile:nth-child(8) { animation-delay: 0.40s; }
.archive-tile:nth-child(9) { animation-delay: 0.45s; }

.archive-tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(15, 86, 51, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
}

.archive-tile-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(15, 86, 51, 0.16);
}

.archive-tile-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--light);
  flex-shrink: 0;
}

.archive-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.archive-tile-link:hover .archive-tile-img img {
  transform: scale(1.07);
}

.archive-tile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.archive-tile-body {
  padding: 20px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.archive-tile-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 8px;
}

.archive-tile-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-dark);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.archive-tile-link:hover .archive-tile-title {
  color: var(--green);
}

.archive-tile-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.archive-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-size: 18px;
}

/* ── Mountains footer divider ── */

.mountains-footer {
  pointer-events: none;
  overflow: hidden;
  font-size: 0;
}

.mountains-footer img {
  display: block;
  width: 100%;
  min-width: 100vw;
  height: auto;
  opacity: 0.15;
}

/* ── Gallery (photo folders) ───────────────────────────── */

.gallery-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
}
.gallery-sort-label { font-weight: 600; margin-right: 4px; }
.gallery-sort-btn {
  padding: 6px 14px;
  border: 1px solid #d8d2c4;
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  color: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.gallery-sort-btn:hover { border-color: var(--green); color: var(--green); }
.gallery-sort-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.gallery-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-folder {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .18s, box-shadow .18s;
}
.gallery-folder:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.gallery-folder-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--light);
}
.gallery-folder-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-folder-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
}
/* Empty folders: icon centered as the placeholder */
.gallery-folder.is-empty .gallery-folder-icon {
  position: static;
  margin: auto;
  width: 64px;
  height: 64px;
  font-size: 38px;
  background: transparent;
  color: var(--green);
}
.gallery-folder.is-empty .gallery-folder-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-folder-body { padding: 14px 16px; }
.gallery-folder-title { margin: 0 0 4px; font-size: 1.05rem; }
.gallery-folder-count { color: var(--muted); font-size: .85rem; }

.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.gallery-photo-item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.gallery-photo-item:hover img { transform: scale(1.05); }
