body {
  min-height: 100vh;
  height: auto;
  background: #f7faf8;
  color: #17231d;
}

.hero {
  height: 360px !important;
  min-height: 280px;
  background: #123f28;
}

.hero video {
  display: block;
  filter: saturate(1.04) contrast(1.04);
}

.home-section,
.stats-section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #173828;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading img {
  max-width: 78px;
  margin-top: 8px;
  opacity: 0.65;
}

.section-link {
  display: inline-block;
  margin-top: 10px;
  color: #1f7a4c !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.section-link:hover {
  color: #155f3a !important;
}

.stats-section {
  margin-top: -64px;
  position: relative;
  z-index: 3;
  padding-bottom: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

.stats-card {
  min-height: 138px;
  border: 1px solid rgba(23, 56, 40, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 42, 26, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 122, 76, 0.25);
  box-shadow: 0 18px 42px rgba(11, 42, 26, 0.18);
}

.stats-card a {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #1c4f35;
}

.stats-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 50%;
  font-size: 1rem;
}

.stats-icon-orange {
  color: #d95d12;
  background: #fff0e6;
}

.stats-icon-yellow {
  color: #b58b00;
  background: #fff8d9;
}

.stats-icon-blue {
  color: #1769d6;
  background: #eaf2ff;
}

.stats-icon-green {
  color: #198754;
  background: #e7f6ee;
}

.stats-card h1 {
  margin: 0;
  color: #0969da;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 700;
}

.stats-card h4 {
  margin: 6px 0 0;
  color: #416150;
  font-size: 0.95rem;
  font-weight: 600;
}

.council-section {
  padding: 44px 0;
  background: #fff;
}

.council-grid-wrap {
  max-width: 1240px;
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.council-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 235px;
  border-radius: 8px;
  background: #edf2ef;
  box-shadow: 0 12px 26px rgba(21, 55, 35, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.council-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(21, 55, 35, 0.16);
}

.council-card img {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.25s ease;
}

.council-card:hover img {
  transform: scale(1.035);
}

.council-card-info {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  text-align: center;
}

.council-card-info strong {
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 800;
}

.council-card-info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 700;
}

.news-section {
  background: #fff;
}

.news-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 55, 35, 0.08);
}

.news-card .card-img-top {
  width: 100%;
  object-fit: cover;
  background: #e8eee9;
}

.news-card-featured .card-img-top {
  height: 280px;
}

.news-card-compact .card-img-top {
  height: 145px;
}

.news-card .card-body {
  padding: 14px 16px 16px;
}

.news-card .card-title {
  min-height: 2.75em;
  margin: 0 0 8px;
  color: #17231d;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

.news-card .card-text {
  margin: 0;
  color: #7d8c84;
  font-size: 0.82rem;
}

.audio-card {
  max-width: 980px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(35, 100, 67, 0.14);
  box-shadow: 0 14px 32px rgba(11, 42, 26, 0.14);
  overflow: hidden;
}

.audio-card-content {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-top: 4px solid #236443;
}

.audio-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #236443;
  background: #e7f6ee;
  font-size: 1.55rem;
}

.audio-card-copy h4 {
  margin: 0;
  color: #173828;
  font-size: 1.15rem;
  font-weight: 700;
}

.audio-card-copy p {
  margin: 4px 0 0;
  color: #617267;
  font-size: 0.92rem;
}

.audio-player-shell {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 118px;
  padding: 10px;
  border-radius: 6px;
  background: #f6f9f7;
  border: 1px solid #e0ebe4;
}

.audio-player-frame {
  display: block;
  width: 100%;
  height: 118px;
  border: 0;
  background: transparent;
}

.gallery-section {
  background: #f4f8f6;
}

#owl-demo {
  margin-top: 18px !important;
}

#owl-demo .item {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(21, 55, 35, 0.1);
}

#owl-demo .item img {
  height: 190px;
  object-fit: cover;
}

#owl-demo .item p {
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  background: #176d3c;
  font-size: 0.78rem;
  line-height: 1.2;
}

.gallery-item {
  border-radius: 8px !important;
  box-shadow: 0 10px 24px rgba(21, 55, 35, 0.1) !important;
}

.gallery-item img {
  height: 210px !important;
  border-radius: 8px !important;
}

.overlay {
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68)) !important;
  align-items: flex-end !important;
  padding: 16px;
}

.overlay span {
  width: 100%;
  font-size: 0.95rem !important;
  line-height: 1.25;
}

.titulo-transparencia {
  height: auto !important;
  margin: 0 0 22px !important;
}

.titulo-transparencia h5 {
  color: #173828;
  font-weight: 700;
}

.transparency-anchor {
  display: block;
  position: relative;
  top: -90px;
  visibility: hidden;
}

.custum-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 20px !important;
}

.container-card {
  width: auto !important;
  min-height: 170px !important;
  height: auto !important;
  margin: 0 !important;
  border: 1px solid #e2e8e4;
  border-radius: 8px;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(21, 55, 35, 0.08) !important;
  transform: none !important;
  overflow: hidden;
  position: relative;
}

.container-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a9d8f, #01456c);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.container-card:hover {
  border: 1px solid rgba(31, 122, 76, 0.28) !important;
  box-shadow: 0 12px 26px rgba(21, 55, 35, 0.14) !important;
  transform: translateY(-3px) !important;
}

.container-card:hover::before {
  opacity: 1;
}

.container-card .title,
.container-card .title-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.container-card img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.container-card .card-body {
  justify-content: center;
  width: 100%;
  min-height: 170px;
  padding: 22px 18px 18px;
}

.container-card .card-title {
  margin: 14px 0 0;
  color: #01456c;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.container-card .card-text {
  color: #617267;
  font-size: 0.82rem;
  line-height: 1.25;
  margin: 6px auto 0;
  max-width: 190px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.useful-links-heading {
  background: #fff;
  padding-top: 44px;
}

#titulo-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 12px;
  border-bottom: 3px solid #37c75d;
  color: #173828;
  background: transparent;
  font-size: 1.65rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
}

#titulo-links i {
  color: #37c75d;
  font-size: 1.35rem;
}

.useful-links-section {
  margin: 0 !important;
  padding: 30px 0 52px !important;
  background: #fff !important;
}

.link-card {
  border-radius: 8px !important;
  border-color: #e2e8e4 !important;
  box-shadow: 0 10px 24px rgba(21, 55, 35, 0.08) !important;
}

.link-card:hover {
  transform: translateY(-4px) !important;
}

.go-top {
  width: 40px;
  height: 40px;
}

.go-top::after {
  font-size: 24px;
}

@media (max-width: 991px) {
  .hero {
    height: 300px !important;
  }

  .stats-section {
    margin-top: -40px;
  }

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

  .news-card-featured .card-img-top {
    height: 220px;
  }

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

  .custum-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .home-section,
  .stats-section {
    padding: 30px 0;
  }

  .hero {
    height: 230px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-card,
  .stats-card a {
    min-height: 116px;
  }

  .section-heading h1,
  .section-heading h2 {
    font-size: 1.45rem;
  }

  .news-card-featured .card-img-top,
  .news-card-compact .card-img-top,
  .gallery-item img,
  #owl-demo .item img {
    height: 190px !important;
  }

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

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

  .council-card,
  .council-card img {
    min-height: 210px;
    height: 210px;
  }

  .council-card-info strong {
    font-size: 0.9rem;
  }

  .council-card-info span {
    font-size: 0.78rem;
  }

  .container-card {
    min-height: 150px !important;
  }

  .container-card .card-body {
    min-height: 140px;
    padding: 12px 8px;
  }

  .container-card .card-title {
    font-size: 0.88rem;
  }

  .container-card .card-text {
    font-size: 0.76rem;
  }

  #titulo-links {
    font-size: 1.35rem;
  }

  .audio-card-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 22px 18px;
  }

  .audio-player-shell,
  .audio-player-frame {
    min-height: 132px;
    height: 132px;
  }
}
