/* =====================================================
   VILLAGE SECTION
===================================================== */

.village-section {
  --village-primary: #063d24;
  --village-secondary: #0b5d35;
  --village-accent: #d9a441;
  --village-bg: #f6f8f5;
  --village-text: #17221c;
  --village-muted: #66736c;
  --village-border: #e3e8e4;

  background: var(--village-bg);
  color: var(--village-text);
  font-family: inherit;
  padding-bottom: 80px;
}

.village-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}


/* ================= HERO ================= */

.village-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(217,164,65,.16), transparent 28%),
    linear-gradient(135deg, #063d24, #0a5130);
  padding: 80px 0;
  overflow: hidden;
}

.village-hero .village-container {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  align-items: center;
  gap: 60px;
}

.village-badge,
.section-heading span {
  display: inline-block;
  color: var(--village-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.village-hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  margin: 14px 0 20px;
  font-weight: 800;
}

.village-hero p {
  max-width: 680px;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.village-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  transition: .3s ease;
}

.village-btn-primary {
  background: #fff;
  color: var(--village-primary);
}

.village-btn-primary:hover {
  transform: translateY(-3px);
}

.village-btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}

.village-btn-outline:hover {
  background: rgba(255,255,255,.1);
}

.village-hero-card {
  padding: 32px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  color: #fff;
}

.hero-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--village-accent);
  color: #fff;
  font-size: 24px;
  margin-bottom: 22px;
}

.village-hero-card h3 {
  font-size: 23px;
  margin: 0 0 10px;
}

.village-hero-card p {
  font-size: 14px;
  line-height: 1.7;
}


/* ================= HEADING ================= */

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  color: var(--village-primary);
}

.section-heading p {
  margin: 0;
  color: var(--village-muted);
  font-size: 15px;
  line-height: 1.7;
}


/* ================= ABOUT ================= */

.village-about {
  padding: 85px 0 35px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--village-border);
  border-radius: 18px;
  transition: .3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6,61,36,.25);
  box-shadow: 0 15px 40px rgba(0,0,0,.07);
}

.about-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eaf3ed;
  color: var(--village-primary);
  font-size: 20px;
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--village-primary);
}

.about-card p {
  margin: 0;
  color: var(--village-muted);
  line-height: 1.7;
  font-size: 14px;
}


/* ================= GALLERY ================= */

.village-gallery-section {
  padding: 65px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--village-border);
  border-radius: 17px;
  cursor: pointer;
  transition: .3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,.09);
}

.gallery-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-card:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,61,36,.5);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: .3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--village-primary);
}

.gallery-info {
  padding: 17px;
}

.gallery-info h3 {
  margin: 0 0 5px;
  color: var(--village-primary);
  font-size: 16px;
}

.gallery-info p {
  margin: 0;
  color: var(--village-muted);
  font-size: 13px;
}


/* ================= VIDEO ================= */

.village-video-section {
  padding: 65px 0;
}

.video-box {
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6,61,36,.78), rgba(6,61,36,.78)),
    url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1600&q=80")
    center / cover;
  display: grid;
  place-items: center;
}

.video-placeholder {
  text-align: center;
  color: #fff;
  padding: 30px;
}

.video-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--village-primary);
  font-size: 22px;
  cursor: pointer;
  transition: .3s ease;
}

.video-icon:hover {
  transform: scale(1.08);
}

.video-placeholder h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.video-placeholder p {
  margin: 0;
  color: rgba(255,255,255,.78);
}


/* ================= DOWNLOADS ================= */

.village-download-section {
  padding: 65px 0 20px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--village-border);
  border-radius: 15px;
  transition: .3s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--village-primary);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.download-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5ef;
  color: var(--village-primary);
  font-size: 19px;
}

.download-content {
  min-width: 0;
  flex: 1;
}

.download-content h3 {
  margin: 0 0 5px;
  color: var(--village-primary);
  font-size: 16px;
}

.download-content p {
  margin: 0;
  color: var(--village-muted);
  font-size: 13px;
}

.download-arrow {
  color: var(--village-primary);
}


/* ================= MODAL ================= */

.village-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .3s ease;
}

.village-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  max-width: min(1000px, 90vw);
  max-height: 88vh;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.modal-caption {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 14px;
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transition: .25s ease;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
  background: rgba(255,255,255,.25);
}

.modal-close {
  top: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 20px;
}

.modal-prev,
.modal-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 18px;
}

.modal-prev {
  left: 25px;
}

.modal-next {
  right: 25px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {

  .village-hero .village-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .village-hero-card {
    max-width: 600px;
  }

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


@media (max-width: 768px) {

  .village-hero {
    padding: 60px 0;
  }

  .village-container {
    width: min(100% - 24px, 1180px);
  }

  .about-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .village-about,
  .village-gallery-section,
  .village-video-section,
  .village-download-section {
    padding-top: 50px;
    padding-bottom: 45px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-image {
    height: 190px;
  }

  .video-box {
    min-height: 270px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
  }
}


@media (max-width: 520px) {

  .village-hero h1 {
    font-size: 40px;
  }

  .village-hero p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .village-btn {
    width: 100%;
  }

  .about-card {
    padding: 20px;
    gap: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    height: 230px;
  }

  .download-card {
    padding: 16px;
  }

  .video-box {
    min-height: 240px;
  }

  .modal-prev,
  .modal-next {
    width: 40px;
    height: 40px;
  }
}


@media (max-width: 360px) {

  .village-hero h1 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .about-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .gallery-image {
    height: 210px;
  }
}