:root {
  --bg: #f7faf7;
  --surface: #ffffff;
  --surface-soft: #eef6f0;
  --text: #10231b;
  --muted: #64746b;
  --line: #dce7df;

  --green: #0f5f3d;
  --green-dark: #063b28;
  --green-light: #e8f5ec;
  --teal: #0f766e;
  --blue: #143d63;
  --orange: #e88a2c;

  --shadow: 0 12px 30px rgba(6, 59, 40, 0.07);
  --shadow-hover: 0 18px 48px rgba(6, 59, 40, 0.12);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 95, 61, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--teal);
}

.container {
  width: min(var(--container), calc(100% - 36px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 231, 223, 0.8);
}

.header-grid {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--green-dark);
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  padding: 7px;
  background: var(--green-light);
}

.brand strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 4px;
}

nav,
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav a,
.main-nav a {
  color: var(--green-dark);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
}

nav a:hover,
.main-nav a:hover {
  background: var(--green-light);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin: 34px 0 22px;
  padding: clamp(36px, 7vw, 76px);
  border-radius: var(--radius-lg);
  color: white;
  background:
    linear-gradient(135deg, rgba(6, 59, 40, 0.96), rgba(15, 118, 110, 0.88)),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 28%);
  box-shadow: 0 24px 70px rgba(6, 59, 40, 0.2);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 900px;
  margin: 16px 0 14px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 780px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Buttons */

.btn,
button,
.btn-small {
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: white !important;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 10px 24px rgba(15, 95, 61, 0.18);
  transition: 0.2s ease;
}

.btn:hover,
button:hover,
.btn-small:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 95, 61, 0.22);
}

.btn.secondary {
  background: white;
  color: var(--green-dark) !important;
}

.btn.secondary:hover {
  background: #f4fbf6;
}

.btn-small {
  padding: 8px 14px;
  font-size: 0.88rem;
}

/* Layout */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */

.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2,
.card h3 {
  color: var(--green-dark);
  margin-top: 0;
  line-height: 1.2;
}

.card p:last-child {
  margin-bottom: 0;
}

.kpi {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.page-title {
  margin: 36px 0 18px;
  color: var(--green-dark);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Program sessions */

.session {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  border-left: 6px solid var(--green);
  margin-bottom: 16px;
}

.session-time {
  align-self: start;
  padding: 14px;
  border-radius: 16px;
  background: var(--green-light);
  color: var(--blue);
  font-weight: 900;
  text-align: center;
}

.session-time span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 3px 0;
}

/* Gallery */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid figure {
  margin: 0;
}

.photo-grid img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: var(--surface-soft);
}

figcaption {
  margin-top: 12px;
}

figcaption small {
  color: var(--muted);
}

/* Forms */

form label {
  display: block;
  margin: 13px 0 7px;
  color: var(--green-dark);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd9d0;
  border-radius: 14px;
  background: white;
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 95, 61, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

input[type="file"] {
  background: #fbfdfb;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: white;
  border-radius: 18px;
  overflow: hidden;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.9rem;
}

tr:hover td {
  background: #fbfdfb;
}

/* Alerts */

.alert {
  padding: 13px 16px;
  margin: 16px 0;
  border-radius: 15px;
  background: var(--green-light);
  border: 1px solid #b9ddc5;
  color: var(--green-dark);
  font-weight: 800;
}

.alert.error {
  background: #fff0ee;
  border-color: #fac1b8;
  color: #8a2a1d;
}

/* Admin */

.admin-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 98px;
}

.sidebar strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
}

.sidebar a {
  display: block;
  padding: 11px 13px;
  border-radius: 13px;
  color: var(--green-dark);
  margin: 4px 0;
}

.sidebar a:hover {
  background: var(--green-light);
}

/* Footer */

.site-footer {
  margin-top: 70px;
  padding: 38px 0;
  color: white;
  background: linear-gradient(135deg, var(--green-dark), #082c20);
}

.site-footer p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

/* Utilities */

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

code {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 7px;
  border-radius: 8px;
  font-weight: 800;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

/* Responsive */

@media (max-width: 1020px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-grid,
  .footer-grid {
    display: block;
  }

  .brand {
    margin: 12px 0;
  }

  nav,
  .main-nav {
    justify-content: flex-start;
    margin: 12px 0 14px;
  }

  nav a,
  .main-nav a {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  .hero {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .session {
    grid-template-columns: 1fr;
  }

  .session-time {
    text-align: left;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 2.0rem;
  }

  .brand small {
    font-size: 0.92rem;
  }
}
/* BIOME Historical Timeline */

.biome-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.biome-history-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
  border-left: 6px solid var(--green);
}

.biome-history-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: 18px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
}

.biome-history-content h2 {
  margin: 12px 0;
}

@media (max-width: 780px) {
  .biome-history-card {
    grid-template-columns: 1fr;
  }

  .biome-history-number {
    justify-content: flex-start;
    min-height: auto;
    padding: 16px;
  }
}
/* Front Homepage Image */

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 34px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Homepage front image adjustment */

.hero-image {
  margin-top: 38px;
  width: 100%;
  max-width: 980px;
  position: relative;
  z-index: 3;
}

.hero-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

/* Keep buttons above the image with proper spacing */
.hero-actions {
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

/* Mobile adjustment */
@media (max-width: 780px) {
  .hero-image {
    margin-top: 28px;
  }

  .hero-image img {
    max-height: 320px;
    padding: 16px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .hero-image img {
    height: 200px;
    border-radius: 20px;
  }
}