/* ── About section grid ─────────────────────────────────────── */
.about-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =============================================================
   UDWDA – Mobile Responsive Stylesheet
   Targets screens up to 768px
   ============================================================= */

/* ── Global fix — prevent horizontal overflow ──────────────── */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

*, *::before, *::after {
  max-width: 100%;
}

/* ── Fix all sections and containers ───────────────────────── */
@media (max-width: 768px) {

  /* Global left/right padding for all sections */
  .container,
  .stats-bar > .container,
  .hero > .container,
  .site-footer > .container,
  .footer__grid,
  .hero__content {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Container full width */
  .container {
    width: 100%;
    overflow-x: hidden;
  }

  /* ── Header ──────────────────────────────────────────────── */
  .topbar { display: none; }

  /* Mobile nav — drops below header, solid background */
  .site-header { position: sticky; top: 0; z-index: 9999; }
  .main-nav {
    background-color: #027a2d !important;
    background: #027a2d !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 9997 !important;
    overflow-y: auto !important;
    max-height: 80vh !important;
    padding-top: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
  }
  .main-nav.open {
    display: block !important;
    background-color: #027a2d !important;
  }

  /* Mobile nav items */
  .main-nav > ul > li > a {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    font-size: .95rem !important;
  }

  /* Mobile submenu — darker so clearly distinct */
  .main-nav .dropdown {
    position: static !important;
    display: none !important;
    background-color: rgba(0,0,0,.2) !important;
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .main-nav .has-dropdown.open .dropdown {
    display: block !important;
  }
  .main-nav .dropdown li a {
    padding: .75rem 1.5rem .75rem 2.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    font-size: .88rem !important;
    color: rgba(255,255,255,.85) !important;
  }
  .main-nav .dropdown li a::before {
    content: '– ';
    opacity: .5;
  }

  .header__inner {
    padding: .75rem 1rem;
    flex-wrap: nowrap;
  }

  .logo__text { max-width: 200px; }
  .logo__abbr { font-size: 1.3rem; }
  .logo__full { font-size: .6rem; max-width: 160px; }

  /* ── Hero ────────────────────────────────────────────────── */
  .hero { min-height: 280px; }
  .hero--static { min-height: 200px; }
  .hero__content { padding: 2rem 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .9rem; }
  .hero__tag { font-size: .68rem; }

  /* ── Stats bar ───────────────────────────────────────────── */
  .stats-bar .container { padding: 0 1.25rem; }
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 .5rem;
  }
  .stat__number { font-size: 1.8rem; }
  .stat__label { font-size: .72rem; }

  /* ── Sections ────────────────────────────────────────────── */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 1.75rem; padding: 0 .5rem; }
  .section-header h2 { font-size: 1.4rem; }

  /* ── Cards ───────────────────────────────────────────────── */
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* ── Services grid ───────────────────────────────────────── */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  .service-card { padding: 1.25rem .75rem; }
  .service-card__icon { width: 48px; height: 48px; }
  .service-card__icon i { font-size: 1.2rem; }
  .service-card h3 { font-size: .88rem; }
  .service-card p { font-size: .78rem; }

  /* ── Page layout (sidebar) ───────────────────────────────── */
  .page-layout {
    grid-template-columns: 1fr !important;
    padding: 1.5rem 0;
    gap: 1.25rem;
  }

  /* ── Footer ──────────────────────────────────────────────── */
  .site-footer {
    width: 100%;
    overflow-x: hidden;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem 1rem;
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .footer__bottom .container {
    padding: 0 1.25rem;
  }

  .footer__heading {
    font-size: .88rem;
    margin-bottom: .6rem;
    padding-bottom: .4rem;
  }

  .footer__links li { margin-bottom: .35rem; }
  .footer__links a { font-size: .82rem; }
  .footer__contact li { font-size: .82rem; margin-bottom: .35rem; }
  .footer__address { font-size: .82rem; margin-top: .5rem; }

  .footer__bottom {
    font-size: .72rem;
    padding: .75rem 1rem;
    text-align: center;
    line-height: 1.5;
  }

  /* ── Breadcrumb ──────────────────────────────────────────── */
  .breadcrumb { padding: .6rem 0; }
  .breadcrumb ol { font-size: .78rem; flex-wrap: wrap; gap: .25rem; }

  /* ── Gallery ─────────────────────────────────────────────── */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .5rem;
  }

  /* ── Events ──────────────────────────────────────────────── */
  .event-card {
    flex-direction: column;
    gap: .75rem;
  }
  .event-card__date {
    width: 100%;
    height: 48px;
    flex-direction: row;
    gap: .5rem;
    border-radius: var(--radius);
  }
  .event-card__day { font-size: 1.2rem; }

  /* ── Documents ───────────────────────────────────────────── */
  .doc-item { flex-wrap: wrap; }

  /* ── Buttons ─────────────────────────────────────────────── */
  .btn { padding: .65rem 1.25rem; font-size: .85rem; }
  .btn-lg { padding: .7rem 1.5rem; font-size: .9rem; }

  /* ── Pagination ──────────────────────────────────────────── */
  .pagination { flex-wrap: wrap; gap: .3rem; }
  .pagination a, .pagination span { width: 34px; height: 34px; font-size: .8rem; }

  /* ── About section two-column fix ────────────────────────── */
  .about-section-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .about-links-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: .75rem !important;
  }
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Extra small screens (under 480px) ─────────────────────── */
@media (max-width: 480px) {

  .logo__abbr { font-size: 1.15rem; }
  .logo__full { font-size: .55rem; max-width: 140px; }

  .hero { min-height: 240px; }
  .hero h1 { font-size: 1.3rem; }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

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

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

  .section-header h2 { font-size: 1.25rem; }

  .card h3 { font-size: .95rem; }
  .card p { font-size: .85rem; }

  .footer__grid { padding: 1.5rem 0 1rem; }
}