/* Khu bảo tồn thiên nhiên Kon Chư Răng — restored stylesheet */

:root {
  --green: #8dc63f;
  --green-dark: #74a92f;
  --ink: #363636;
  --heading: #303030;
  --muted: #848484;
  --line: #eaeaea;
  --tint: #f7f7f7;
  --tint-2: #f4f4f4;
  --footer-bg: #111709;
  --footer-line: #19220e;
  --dark-pill: #242d0f;
  --dark-pill-line: #404733;
  --wrap: 1170px;
  --radius: 25px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4 { margin: 0; color: var(--heading); line-height: 1.3; font-weight: 700; }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--green-dark); text-decoration: underline; }

:where(a, button):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 15px;
}

.ico { width: 18px; height: 18px; fill: var(--green); flex: none; }

.btn {
  display: inline-block;
  padding: 0 27px;
  line-height: 36px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  transition: background .4s ease, color .4s ease;
}
.btn:hover { background: transparent; color: var(--green); text-decoration: none; }

.section { padding: 70px 0; }
.section-title { margin-bottom: 45px; }
.section-title h2, h2.section-title { font-size: 32px; font-weight: 400; margin: 0; }
.section-title--center { text-align: center; }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 50; }

.top-bar {
  background: var(--tint);
  padding: 6px 0;
  font-size: 14px;
}
.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 25px;
}
.contact-strip { display: flex; flex-wrap: wrap; gap: 6px 25px; }
.contact-strip li { display: flex; align-items: center; gap: 8px; }
.contact-strip a { color: var(--ink); }
.contact-strip a:hover { color: var(--green); }

.nav-bar { background: #fff; border-bottom: 1px solid var(--line); }
.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}
.brand { position: relative; z-index: 60; display: block; flex: none; }

.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
}
.primary-nav a:hover { color: var(--green); text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 46px; height: 40px;
  padding: 0;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  margin-left: -11px;
  background: #fff;
  content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -7px; margin-left: 0; left: 0; }
.nav-toggle__bars::after { top: 7px; margin-left: 0; left: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 660px;
  background: #1a2110;
  overflow: hidden;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slide {
  opacity: 0;
  transition: opacity 1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  content: "";
}

.hero__caption {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: 14%;
  padding: 0 20px;
  text-align: center;
}
.hero h1, .hero__title {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(26px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dots button {
  width: 12px; height: 12px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .3s ease;
}
.hero__dots button[aria-selected="true"] { background: var(--green); border-color: var(--green); }

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about__grid > * { min-width: 0; }
.about__figure { margin: 0; }
.about__figure img { width: 100%; }
.about__text h3 { font-size: 24px; margin-bottom: 18px; }
.about__text p { text-align: justify; }

/* ---------- activities ---------- */

.activities { padding-top: 0; }
.activities__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.activity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 20px;
  border: 1px solid var(--tint-2);
  transition: border-color .4s ease;
}
.activity:hover { border-color: var(--green); }
.activity__icon svg { width: 44px; height: 44px; fill: var(--green); }
.activity h3 { font-size: 20px; font-weight: 400; transition: color .4s ease; }
.activity:hover h3 { color: var(--green); }

/* ---------- shared card ---------- */

.card { background: #fff; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body {
  padding: 18px 15px 24px;
  border: 1px solid var(--tint-2);
  border-top: 0;
  text-align: center;
}
.card__body h3 { font-size: 18px; font-weight: 400; }
.card__body p { margin-top: 4px; font-size: 14px; color: var(--green); }

/* ---------- gallery ---------- */

.gallery {
  background: url("../img/gallery-bg.jpg") center / cover no-repeat #1c230f;
  color: #fff;
}
.gallery .section-title h2 { color: #fff; }
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.gallery__head .section-title { margin-bottom: 25px; }

.gallery__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.gallery__filters button {
  padding: 6px 20px;
  font: inherit;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  background: var(--dark-pill);
  border: 1px solid var(--dark-pill-line);
  border-radius: 18px;
  cursor: pointer;
  transition: background .4s ease, border-color .4s ease;
}
.gallery__filters button:hover,
.gallery__filters button.is-active {
  background: var(--green);
  border-color: var(--green);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.gallery__grid > * { min-width: 0; }
.gallery .card { background: transparent; }
.gallery .card__body { border: 0; padding: 14px 0 0; }
.gallery .card__body h3 { color: #fff; font-size: 20px; }

/* ---------- species ---------- */

.species__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.species__grid > * { min-width: 0; }

/* ---------- news ---------- */

.news { background: var(--tint); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.news__grid > * { min-width: 0; }
.news__item {
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--tint-2);
  border-top: 3px solid var(--green);
}
.news__date { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.news__item h3 { font-size: 17px; font-weight: 700; }

/* ---------- partners ---------- */

.partners__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 50px;
}
.partners__list img {
  width: auto;
  max-height: 90px;
  opacity: .85;
  transition: opacity .4s ease;
}
.partners__list a:hover img { opacity: 1; }

/* ---------- footer ---------- */

.site-footer {
  padding: 55px 0 30px;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-line);
  color: #9e9e9e;
  font-size: 14px;
}
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2.section-title { margin-bottom: 40px; }
.site-footer h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.site-footer a { color: var(--green); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer__grid > * { min-width: 0; }
.footer__info li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer__info .ico { margin-top: 5px; }

.footer__copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 40;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--green);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 26px; height: 26px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .gallery__grid, .species__grid, .news__grid { grid-template-columns: repeat(2, 1fr); }
  .activities__list { grid-template-columns: 1fr; }
  .about__grid, .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 45px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2, h2.section-title { font-size: 26px; }

  .nav-bar__inner { min-height: 66px; flex-wrap: wrap; }
  .nav-toggle { display: block; }

  .primary-nav {
    display: none;
    width: 100%;
    padding-bottom: 10px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid var(--line); }
  .primary-nav a { padding: 12px 4px; }

  .top-bar__inner { justify-content: center; text-align: center; }

  .hero { height: 58vh; min-height: 340px; }
  .hero__caption { bottom: 18%; }
}

@media (max-width: 575px) {
  .gallery__grid, .species__grid, .news__grid { grid-template-columns: 1fr; }
  .partners__list { gap: 24px 30px; }
  .partners__list img { max-height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
