:root {
  --brand: #17663c;
  --bg: #f5f7fb;
  --text: #1f2933;
  --muted: #6b7280;
  --card: #ffffff;
  --border-soft: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== HEADER ===== */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #4b5563;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--brand);
}

nav a.active {
  color: var(--brand);
  border-color: var(--brand);
}

/* ===== COMMON SECTION ===== */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
}

.section h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.section h2 {
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

.section p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

/* Giữ lại rule cũ cho các template khác dùng .section đầu tiên */
.section:first-of-type {
  text-align: center;
}

.section:first-of-type h1 {
  margin-bottom: 0.75rem;
}

.section:first-of-type p {
  margin: 0 auto 0.85rem;
  color: var(--muted);
  max-width: 900px;
}

.section:first-of-type > img {
  margin: 1.4rem auto 0;
  width: 100%;
  max-width: 640px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* ===== HERO (FIRST BLOCK ON INDEX.HTML) ===== */

.c41e515e7fc {
  background: var(--bg);
}

.hero-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.c41e515e7fc h1 {
  font-size: 2.3rem;
  margin: 0 0 0.8rem;
}

.c41e515e7fc .c904d810822 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.c41e515e7fc p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.c41e515e7fc img {
  width: 100%;
  max-width: 520px;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  justify-self: center;
}

/* ===== HOME FOCUS LAYOUT ===== */

.focus-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.75rem;
  align-items: flex-start;
}

.focus-photo {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.focus-photo img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.focus-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.focus-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.focus-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

/* ===== IMPACT METRICS ===== */

.metrics {
  max-width: 720px;
  margin: 1.4rem auto 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.metric {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.metric:last-child {
  border-bottom: none;
}

.metric .num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand);
}

/* ===== GENERIC CARDS ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.c4768643bcc {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

/* ===== ZIGZAG (ABOUT / GOV) ===== */

.zig {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 1.6rem;
  align-items: center;
  margin-top: 1.2rem;
}

.zig img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.gallery img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ===== GOVERNANCE BLOCKS ===== */

.gov-block {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
}

/* ===== CONTACT ===== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.7rem;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.3rem;
}

.contact-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* form */

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

input,
textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.c4a5f1c0987 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
  background: var(--brand);
  color: #ffffff;
}

.c4a5f1c0987:hover {
  filter: brightness(1.05);
}

/* ===== FOOTER ===== */

footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  margin-top: 1.5rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.3rem 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 2fr;
  gap: 1.2rem;
  align-items: flex-start;
}

.small {
  font-size: 0.82rem;
  color: #4b5563;
}

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

@media (max-width: 992px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .c41e515e7fc img {
    max-width: 100%;
    max-height: 320px;
  }

  .focus-layout {
    grid-template-columns: 1.2fr 1fr;
  }

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

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

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

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

  .focus-photo img {
    max-height: 360px;
  }

  .focus-card img,
  .zig img {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  nav {
    gap: 0.8rem;
  }

  .section {
    padding: 1.7rem 1.1rem;
  }

  .section h1 {
    font-size: 1.6rem;
  }

  .section h2 {
    font-size: 1.35rem;
  }

  .hero-wrap {
    padding: 1.8rem 1.1rem 2.2rem;
  }

  .c41e515e7fc h1 {
    font-size: 1.9rem;
  }

  .focus-layout {
    grid-template-columns: 1fr;
  }

  .focus-photo img {
    max-height: 280px;
  }

  .focus-card img {
    max-height: 240px;
  }

  .zig img {
    max-height: 240px;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section:first-of-type > img {
    max-height: 260px;
  }
}

@media (max-width: 480px) {
  .focus-photo img {
    max-height: 230px;
  }

  .focus-card img,
  .zig img,
  .contact-card img {
    max-height: 210px;
  }
}
