/* ========================================
   YAUMINA UI POLISH
   Final visual layer for the static mockup.
   ======================================== */

:root {
  --radius-lg: 8px;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --border-soft: #dde8e1;
  --text-muted: #66746c;
  --shadow-sm: 0 1px 2px rgba(0, 42, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 42, 22, 0.08);
  --shadow-lg: 0 16px 38px rgba(0, 42, 22, 0.12);
  --shadow-xl: 0 24px 52px rgba(0, 42, 22, 0.16);
}

html {
  text-rendering: optimizeLegibility;
}

body {
  background: var(--surface);
  color: #26342d;
}

img {
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: 1180px;
}

.text-center > p,
.section > .container > .text-center p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

.section {
  padding: 72px 0;
}

.section-gray,
.services {
  background: var(--surface-soft);
}

.header-top {
  background: #004f2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-top .container {
  min-height: 36px;
}

.header-social {
  display: flex;
  gap: 6px;
}

.header-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  opacity: 0.9;
}

.header-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-yellow);
  opacity: 1;
}

.header {
  border-bottom: 1px solid rgba(0, 104, 56, 0.08);
  overflow: visible !important;
  z-index: 10000;
}

.navbar {
  padding: 10px 0;
  overflow: visible !important;
}

.navbar .container {
  gap: 22px;
  overflow: visible !important;
}

.navbar-brand {
  min-width: 0;
  gap: 12px;
}

.navbar-logo {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.navbar-title {
  min-width: 0;
}

.navbar-title h1 {
  letter-spacing: 0;
  font-size: 1.35rem;
}

.brand-text {
  color: var(--primary-green);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand-tagline {
  max-width: 290px;
  color: var(--text-muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-title span {
  max-width: 290px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-menu {
  gap: 2px;
  margin-left: auto;
}

.navbar-menu a {
  border-radius: 6px;
  color: #2f3f36;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 10px;
}

.navbar-menu a::after,
.navbar-menu a::before {
  display: none;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: #eef7f2;
  color: var(--primary-green);
}

/* CMS navbar polish: keeps the mockup look while supporting longer dynamic menus. */
.navbar-clean {
  padding: 10px 0;
}

.navbar-clean .container {
  max-width: 1360px;
  gap: 18px;
}

.navbar-brand-clean {
  flex: 0 0 auto;
  max-width: 330px;
  min-width: 250px;
}

.navbar-brand-clean .navbar-logo {
  width: 54px !important;
  height: 54px !important;
}

.navbar-brand-clean .brand-text h1 {
  letter-spacing: 0.5px;
  font-size: 1.35rem;
}

.navbar-brand-clean .brand-text span {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.navbar-menu-clean {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.navbar-menu-clean > li {
  position: relative;
  flex: 0 0 auto;
}

.navbar-menu-clean > li > .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 8px;
  border-radius: 8px;
  color: #2f3f36;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.navbar-menu-clean > li > .menu-link:hover,
.navbar-menu-clean > li > .menu-link.active {
  background: #eef7f2;
  color: var(--primary-green);
}

.navbar-menu-clean > li > .menu-link i {
  font-size: 0.68rem;
  opacity: 0.75;
}

.navbar-menu-clean .dropdown {
  position: relative;
}

.navbar-menu-clean .dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.navbar-menu-clean .dropdown-panel-clean {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 292px;
  max-width: min(680px, calc(100vw - 32px));
  max-height: 72vh;
  overflow: auto;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10050;
}

.navbar-menu-clean .dropdown:hover .dropdown-panel-clean {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-menu-clean .dropdown-panel-clean a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #2f3f36;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.navbar-menu-clean .dropdown-panel-clean a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(215, 223, 35, 0.18);
}

.navbar-menu-clean .dropdown-panel-clean a:hover {
  background: #eef7f2;
  color: var(--primary-green);
}

.navbar-menu-clean .dropdown:nth-child(3) .dropdown-panel-clean,
.navbar-menu-clean .dropdown:nth-child(6) .dropdown-panel-clean,
.navbar-menu-clean .dropdown:nth-child(7) .dropdown-panel-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.navbar-menu-clean > li:nth-last-child(-n + 3) .dropdown-panel-clean {
  left: auto;
  right: 0;
}

.partner-logo-card {
  width: 178px;
  min-height: 96px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.partner-logo-card img {
  max-width: 132px;
  max-height: 56px;
  object-fit: contain;
}

.partner-logo-card span {
  color: var(--primary-green);
  font-weight: 800;
  line-height: 1.25;
}

.partner-logo-card small {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.footer-link-description {
  margin: 2px 0 12px 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.page-detail-intro {
  align-items: start;
}

.page-detail-content {
  color: #3a4b42;
}

.page-detail-content p {
  margin-bottom: 1rem;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-card-modern {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gallery-cover img,
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--primary-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-info {
  padding: 22px;
}

.gallery-info h3 {
  margin-bottom: 8px;
  color: var(--primary-green);
}

.gallery-meta {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.photo-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.photo-tile {
  position: relative;
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photo-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 79, 43, 0.86);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.document-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.document-card-modern {
  display: flex;
  gap: 18px;
  min-height: 220px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.document-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.document-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef7f2;
  color: var(--primary-green);
  font-size: 1.45rem;
}

.document-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--primary-green);
  font-size: 0.74rem;
  font-weight: 800;
}

.document-content h3 {
  margin-bottom: 8px;
  color: var(--primary-green);
}

.document-content p {
  color: var(--text-muted);
}

.document-actions {
  margin-top: 18px;
}

.accountability-link-card .value-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.accountability-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.accountability-faq-list .sidebar-widget {
  margin-bottom: 0;
}

.news-list-section {
  background: #f7faf8;
}

.education-hero .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 32, 18, 0.24);
}

.education-hero .hero-subtitle {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 32, 18, 0.18);
}

.education-hero .unit-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  font-weight: 700;
}

.education-hero .info-item {
  color: #ffffff;
}

.education-hero .info-item i {
  color: var(--accent-yellow);
}

.dakwah-header h1,
.empowerment-header h1,
.partnership-header h1,
.contact-hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 32, 18, 0.24);
}

.dakwah-header p,
.empowerment-header p,
.partnership-header p,
.contact-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 32, 18, 0.18);
}

.contact-hero p {
  margin-left: auto;
  margin-right: auto;
}

.dakwah-header nav,
.empowerment-header nav,
.partnership-header nav {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.dakwah-header nav a,
.empowerment-header nav a,
.partnership-header nav a {
  color: #ffffff !important;
  font-weight: 700;
}

.news-hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.news-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  margin: 0;
}

.news-categories {
  background-color: #f8f9fa;
  padding: 20px 0 10px;
  border-bottom: 2px solid #dee2e6;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 5px 10px;
  padding: 8px 20px;
  border: 2px solid var(--primary-green);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-green);
  color: #ffffff;
}

.news-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.news-main-column,
.news-sidebar-column {
  min-width: 0;
}

.news-featured-clean {
  margin: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-left: 5px solid var(--primary-green);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured-clean:hover,
.news-card-clean:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 15px;
  padding: 5px 15px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--primary-green);
  font-size: 0.82rem;
  font-weight: 800;
}

.featured-news-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: center;
}

.featured-news-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.featured-news-image img,
.news-card-clean > img,
.popular-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-news-content h3 {
  color: var(--primary-green);
  margin-bottom: 10px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.news-meta i {
  color: var(--primary-green);
  margin-right: 4px;
}

.news-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.news-card-clean {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card-clean > img {
  height: 190px;
}

.news-card-body {
  padding: 20px;
}

.news-title {
  min-height: auto;
  color: #25362d;
  margin: 10px 0;
}

.news-excerpt {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-column .sidebar-widget {
  padding: 25px;
  margin-bottom: 24px;
  background: #ffffff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 14px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.tag-cloud a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
}

.news-empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.popular-post {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.popular-post:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-post img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
}

.popular-post-content h6 {
  margin: 0 0 6px;
  line-height: 1.35;
}

.popular-post-content a {
  color: #25362d;
  text-decoration: none;
}

.popular-post-content small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.news-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-category-list li + li {
  margin-top: 8px;
}

.news-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7faf8;
  color: #25362d;
  text-decoration: none;
  font-weight: 700;
}

.news-category-list i {
  color: var(--primary-green);
  margin-right: 6px;
}

.news-category-list strong {
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-green);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .news-page-layout,
  .featured-news-inner {
    grid-template-columns: 1fr;
  }

  .news-sidebar-column {
    order: -1;
  }
}

@media (max-width: 640px) {
  .news-categories {
    overflow-x: auto;
    white-space: nowrap;
  }

  .news-grid-clean {
    grid-template-columns: 1fr;
  }

  .news-featured-clean,
  .news-sidebar-column .sidebar-widget {
    padding: 20px;
  }
}

@media (max-width: 1180px) {
  .navbar-brand-clean {
    min-width: 220px;
    max-width: 260px;
  }

  .navbar-brand-clean .brand-text h1 {
    font-size: 1.2rem;
  }

  .navbar-brand-clean .brand-text span {
    max-width: 200px;
  }

  .navbar-menu-clean > li > .menu-link {
    padding: 9px 6px;
    font-size: 0.76rem;
  }
}

.navbar-toggle {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  margin: 3px 0;
}

.hero,
.page-header,
.education-hero,
.dakwah-hero,
.dakwah-header,
.empowerment-hero,
.empowerment-header,
.partnership-hero,
.partnership-header,
.contact-hero,
.ppdb-hero,
.news-hero {
  background:
    linear-gradient(135deg, rgba(0, 79, 43, 0.96), rgba(0, 104, 56, 0.86)),
    radial-gradient(circle at 88% 18%, rgba(215, 223, 35, 0.24), transparent 28%);
  overflow: hidden;
}

.hero {
  padding: 80px 0 88px;
}

.hero::before {
  right: -20%;
  opacity: 0.18;
}

.hero-content {
  gap: 56px;
}

.hero-text h1 {
  max-width: 660px;
  font-size: clamp(2.25rem, 5vw, 4.25rem) !important;
  line-height: 1.03 !important;
  margin-bottom: 20px;
  text-shadow: none;
}

.hero-text p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 54px rgba(0, 32, 18, 0.28);
}

.page-header {
  padding: 60px 0;
}

.news-hero,
.contact-hero {
  padding: 64px 0 !important;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 10px;
}

.breadcrumb {
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-green,
.btn-outline-primary,
.btn-success {
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  box-shadow: none;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #073d24;
}

.btn-primary:hover {
  background: #e7ef44;
  color: #073d24;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.card,
.service-card,
.news-card,
.stat-card,
.vm-card,
.value-card,
.program-card,
.program-item,
.contact-info-card,
.quick-link-card,
.contact-form,
.form-card,
.registration-form,
.gallery-card,
.achievement-card,
.unit-card,
.facility-card,
.dakwah-card,
.partner-type-card,
.info-card,
.featured-news,
.sidebar-widget,
.faq-item,
.training-item,
.timeline-content {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.card:hover,
.service-card:hover,
.news-card:hover,
.stat-card:hover,
.value-card:hover,
.program-card:hover,
.program-item:hover,
.contact-info-card:hover,
.quick-link-card:hover,
.partner-type-card:hover,
.dakwah-card:hover,
.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon,
.service-icon,
.vm-icon,
.program-icon,
.contact-icon {
  border-radius: 8px;
}

.service-card {
  text-align: left;
}

.service-icon {
  margin-left: 0;
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

.service-card h3,
.card h3,
.news-title {
  letter-spacing: 0;
}

.service-list li {
  align-items: flex-start;
}

.services-grid,
.news-grid,
.program-grid,
.stats-grid,
.values-grid {
  align-items: stretch;
}

.news-card {
  height: 100%;
}

.news-image,
.card-img-top {
  aspect-ratio: 16 / 10;
  height: auto !important;
  object-fit: cover;
  background: #eaf2ed;
}

.dakwah-card img,
.featured-news img,
.popular-post img {
  object-fit: cover;
}

.dakwah-card img {
  aspect-ratio: 16 / 10;
  height: auto !important;
}

.featured-news {
  background: var(--surface-soft);
}

.sidebar-widget h5 {
  color: var(--primary-green);
  font-weight: 800;
}

.partner-type-card i,
.quick-link-card i,
.program-icon i,
.contact-icon i {
  color: inherit;
}

.timeline-content {
  border-radius: 8px !important;
}

.stats-grid {
  gap: 18px;
}

.stat-number,
.stat-card h3 {
  color: var(--primary-green);
}

.footer {
  background: #003f23;
  border-top: 6px solid var(--accent-yellow);
}

.footer-content {
  gap: 36px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.footer-links h4 {
  color: #f0f59a;
}

.footer h5,
.footer h6 {
  color: #f0f59a;
}

.social-link,
.footer-social a {
  border-radius: 8px;
}

.whatsapp-float {
  width: 56px !important;
  height: 56px !important;
  right: 18px !important;
  bottom: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

input,
textarea,
select,
.form-control {
  border-radius: 8px !important;
  border-color: var(--border-soft) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--primary-green) !important;
  box-shadow: 0 0 0 3px rgba(0, 104, 56, 0.12) !important;
  outline: none;
}

@media (max-width: 1120px) {
  .navbar .container {
    gap: 12px;
  }

  .navbar-title span {
    max-width: 220px;
  }

  .navbar-menu a {
    font-size: 0.86rem;
    padding: 10px 7px;
  }
}

@media (max-width: 920px) {
  .navbar-title span {
    max-width: 190px;
  }

  .navbar-menu a {
    font-size: 0.82rem;
    padding-inline: 6px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .header-top .container {
    justify-content: center;
  }

  .header-social {
    display: none;
  }

  .header-contact {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .navbar {
    padding: 8px 0;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-title h1 {
    font-size: 1.18rem;
  }

  .navbar-title span {
    max-width: min(52vw, 280px);
    font-size: 0.68rem;
  }

  .navbar-toggle {
    display: inline-flex !important;
    flex-direction: column;
    flex: 0 0 auto;
  }

  .navbar-menu {
    position: absolute !important;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #ffffff !important;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-height: calc(100dvh - 84px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 10001 !important;
  }

  .navbar-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .navbar-menu.active,
  .navbar-collapse.show .navbar-menu,
  .navbar-collapse.collapsing .navbar-menu {
    display: flex !important;
    height: auto !important;
  }

  .navbar-collapse .navbar-menu {
    position: static;
    width: 100%;
    height: auto !important;
    margin: 10px 0 0;
    border: 0;
    box-shadow: none;
    max-height: none !important;
    overflow: visible !important;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-menu a {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-image {
    max-width: none;
  }

  .page-header {
    padding: 44px 0;
  }

  .services-grid,
  .news-grid,
  .program-grid,
  .values-grid,
  .vm-section,
  .about-intro,
  .footer-content {
    grid-template-columns: 1fr !important;
  }

  .footer-content {
    text-align: left;
    gap: 26px;
    margin-bottom: 24px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer {
    padding: 42px 0 96px;
  }

  .footer-brand h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .footer h5,
  .footer h6 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    text-align: left;
  }

  .footer .row {
    row-gap: 22px;
  }

  .footer-brand p {
    max-width: 34rem;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .footer-links h4 {
    margin-bottom: 10px;
    font-size: 1.05rem;
  }

  .footer-links ul {
    text-align: left !important;
    margin: 0;
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 7px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-links li i {
    width: 20px;
    margin-right: 8px !important;
    text-align: center;
  }

  .footer-bottom {
    padding-top: 18px;
    font-size: 0.85rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .header-contact a {
    font-size: 0.72rem;
  }

  .navbar-logo {
    width: 42px !important;
    height: 42px !important;
  }

  .hero-buttons,
  .btn {
    width: 100%;
  }

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

  .card,
  .service-card,
  .vm-card,
  .value-card,
  .program-card,
  .contact-form {
    padding: 22px;
  }

  .footer {
    padding-top: 34px;
    padding-bottom: 92px;
  }

  .footer-content {
    gap: 22px;
  }

  .footer-social {
    gap: 8px;
  }

  .social-link {
    width: 38px;
    height: 38px;
  }

  .footer-links h4 {
    font-size: 1rem;
  }

  .footer-links li,
  .footer-links a {
    font-size: 0.92rem;
  }
}
