/* =========================================================
   ग्रामपंचायत सावळी (बु.) — Complete Responsive Stylesheet
   Save as: index.css
   ========================================================= */

/* ---------- Base / reset ---------- */
:root {
  --primary: #5268d9;
  --primary-dark: #3548ad;
  --secondary: #764ba2;
  --accent: #f2a900;
  --green: #188653;
  --ink: #243047;
  --muted: #667085;
  --surface: #ffffff;
  --soft: #f4f6fb;
  --border: #e3e7f0;
  --shadow: 0 10px 30px rgba(30, 45, 90, .10);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8fc;
  font-family: "Noto Sans Devanagari", "Mukta", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin-top: 0;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

/* ---------- Header ---------- */
#btnHome > .container-fluid {
  background: linear-gradient(135deg, #5268d9 0%, #764ba2 100%) !important;
  border-color: rgba(255,255,255,.35) !important;
}

#btnHome .container-xxl {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

#btnHome .d-flex.justify-content-between {
  align-items: center;
  gap: 24px;
}

#btnHome img {
  display: inline-block;
  max-width: 100%;
}

#btnHome p {
  margin: 0;
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.55;
}

#btnHome .h4 {
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.6;
}

/* ---------- Marquee / navigation ---------- */
.marquee-container {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.marquee-container marquee {
  padding: 7px 0;
  color: #b42318;
  font-weight: 600;
}

.marquee-container .marathi-text {
  margin: 0;
  font-size: 16px;
}

.button-section {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 18px;
  background: #263b8f;
  box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.button-section button {
  padding: 8px 17px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  transition: .25s ease;
}

.button-section button a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.button-section button:hover,
.button-section button:focus {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.button-section button:hover a,
.button-section button:focus a {
  color: var(--primary-dark);
}

.button-section.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.marquee-container1 {
  padding: 11px 0;
  background: linear-gradient(90deg, #fff8e5, #eaf8ef, #fff8e5);
  border-bottom: 1px solid #e9e4d5;
}

.slogan-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #176b45;
  font-weight: 700;
  letter-spacing: .3px;
}

.slogan-box span {
  padding: 3px 14px;
  font-size: 20px;
}

/* ---------- Common section headings ---------- */
.container > h2,
.section-title h2 {
  text-align: center;
  color: var(--primary-dark);
  font-weight: 700;
}

.container > h2 {
  margin: 34px 0 22px;
}

.section-title {
  text-align: center;
}

.section-title h2 {
  margin: 0 0 25px;
}

/* ---------- Hero carousel ---------- */
#myCarousel {
  overflow: hidden;
  margin: 0 auto 42px;
  border-radius: 18px;
  background: #17213f;
  box-shadow: var(--shadow);
}

#myCarousel .carousel-inner > .item {
  height: clamp(260px, 43vw, 560px);
  position: relative;
  background: #17213f;
}

#myCarousel .carousel-inner > .item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
}

#myCarousel .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,18,45,.62), rgba(9,18,45,.05));
  pointer-events: none;
}

#myCarousel .slide-caption {
  position: absolute;
  z-index: 2;
  left: 8%;
  bottom: 17%;
  max-width: 650px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

#myCarousel .slide-caption h2 {
  color: #fff;
  font-size: clamp(25px, 4vw, 48px);
  font-weight: 700;
  margin: 0 0 10px;
}

#myCarousel .slide-caption p {
  font-size: clamp(16px, 2vw, 23px);
  margin: 0;
}

#myCarousel .carousel-indicators {
  z-index: 5;
}

#myCarousel .carousel-control {
  z-index: 4;
  width: 8%;
  background: transparent;
}

#myCarousel .glyphicon-chevron-left,
#myCarousel .glyphicon-chevron-right {
  color: #fff;
}

/* ---------- History / main content ---------- */
#btnAbout {
  padding-top: 22px;
  padding-bottom: 45px;
}

#btnAbout > h2 {
  margin-bottom: 20px;
}

.history-text {
  padding: 22px 25px;
  margin: 0 0 28px;
  border-left: 5px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: #fff;
  box-shadow: 0 5px 18px rgba(35,49,90,.06);
  text-align: justify;
  line-height: 1.95;
  white-space: normal;
}

.main-content {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 2fr);
  gap: 25px;
  align-items: start;
}

.sidebar,
.main-area {
  min-width: 0;
}

.card {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.card-header h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

.card-header h3 i {
  margin-right: 8px;
}

.card-body {
  padding: 22px;
}

.person-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 33px 0;
  border-bottom: 1px solid var(--border);
}

.person-item:last-child {
  border-bottom: 0;
}

.person-avatar {
  display: block;
  width: 392px;
  height: 192px;
  flex: 0 0 92px;
  object-fit: cover;
  border: 4px solid #edf0ff;
  border-radius: 20%;
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.person-item strong {
  color: #263b8f;
  font-size: 18px;
}

.person-item b {
  color: var(--muted);
  font-size: 13px;
}

.mission .card-body {
  text-align: center;
  color: #176b45;
  font-size: 16px;
}

.mission .card-body p {
  margin-bottom: 8px;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 5px;
}

.objective-item {
  padding: 15px 17px;
  border: 1px solid #e7eaf3;
  border-left: 4px solid #37a477;
  border-radius: 9px;
  background: #f9fbff;
  line-height: 1.85;
}

.objective-description b {
  color: #263b8f;
}

.achievements .objectives-list {
  max-height: 400px;
}

/* ---------- Committee / employees ---------- */
.committee-section {
  padding: 45px 0 55px;
  background: linear-gradient(135deg, #5268d9 0%, #764ba2 100%);
}

.committee-section .section-title h2 {
  color: #fff !important;
  margin: 0;
}

.committee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.committee-member {
  padding: 25px 18px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15,25,70,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.committee-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(15,25,70,.25);
}

.person-avatar1 {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 15px;
  object-fit: cover;
  border: 4px solid #e5e9ff !important;
  border-radius: 50%;
}

.committee-member h4 {
  margin: 10px 0 8px;
  color: #263b8f;
  font-size: 17px;
}

.committee-member p {
  margin: 5px 0;
  color: #596579;
}

/* ---------- Statistics ---------- */
.stats-section {
  padding: 55px 0;
  background: #f1f4fb;
}

.stats-section .section-title h2 {
  margin-bottom: 28px;
}

.stats-section .table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stats-section table {
  width: 100%;
  margin: 0;
  background: #fff;
  border-color: #dce2ef;
}

.stats-section table th {
  padding: 15px;
  text-align: center;
  background: #4058c5 !important;
  color: #fff !important;
  font-size: 16px;
}

.stats-section table td {
  padding: 13px 16px;
  vertical-align: middle;
}

.stats-section table tbody tr:nth-child(even) {
  background: #f5f7ff;
}

.stats-section table tbody tr:hover {
  background: #e9edff;
}

.stats-section .text-muted {
  display: inline-block;
  margin-top: 12px;
}

/* ---------- Tax / payment section ---------- */
.tax-payment-section {
  padding: 55px 20px;
  background: linear-gradient(180deg, #f7f8fc 0%, #edf1ff 100%);
}

.tax-container {
  max-width: 1180px;
  margin: 0 auto;
}

.tax-container > .section-title {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 32px;
  font-weight: 700;
}

.section-subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

.payment-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, .85fr)) minmax(280px, 1.3fr);
  gap: 22px;
  align-items: stretch;
}

.qr-box,
.payment-details {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-box h3,
.payment-details h3 {
  margin: 0 0 18px;
  color: #263b8f;
  font-size: 18px;
}

.qr-box img {
  display: block;
  width: min(100%, 210px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 12px;
  padding: 8px;
  border: 1px solid #e6e9f1;
  border-radius: 10px;
  background: #fff;
}

.qr-box .note {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.payment-details {
  text-align: left;
}

.payment-details h3 {
  text-align: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  text-align: right;
  color: var(--ink);
}

.warning {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 8px;
  color: #8a4b00;
  background: #fff4dc;
  font-size: 14px;
}

/* ---------- Namuna 8 section ---------- */
.page-container-n8 {
  max-width: 1180px;
  margin: 45px auto 0;
}

.container-n8 {
  padding: 0;
}

.header-n8 {
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5268d9, #764ba2);
  box-shadow: var(--shadow);
}

.header-box-n8 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
  color: #fff;
}

.header-icon-n8 {
  font-size: 42px;
}

.header-title-n8 {
  font-size: 28px;
  font-weight: 700;
}

.header-subtitle-n8 {
  margin: 3px 0 14px;
  font-size: 16px;
}

.btn-nanuma8 {
  padding: 10px 25px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  transition: .2s ease;
}

.btn-nanuma8 a {
  color: inherit;
}

.btn-nanuma8:hover {
  background: #fff1cc;
  transform: translateY(-2px);
}

/* ---------- PDF modal ---------- */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 45px 18px 18px;
  background: rgba(0,0,0,.94);
}

.pdf-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.pdf-modal .close-btn {
  position: absolute;
  top: 5px;
  right: 22px;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Gallery ---------- */
.gallery-section {
  padding: 60px 0;
  background: #fff;
}

.gallery-section h1 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  text-align: center;
  font-size: 34px;
  font-weight: 700;
}

.gallery-section h2 {
  margin: 0 0 28px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 28px;
}

.filters button {
  padding: 9px 18px;
  border: 1px solid #dce2f2;
  border-radius: 30px;
  color: #344054;
  background: #f6f7fb;
  font-size: 14px;
  transition: .2s ease;
  cursor: pointer;
}

.filters button:hover,
.filters button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 5px 14px rgba(82,104,217,.22);
}

.gallery-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  position: relative;
  padding-bottom: 60px;
}

.gallery-card > .item {
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #e9edf5;
  box-shadow: 0 5px 16px rgba(20,35,75,.12);
}

.gallery-card > .item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .35s ease;
}

.gallery-card > .item:hover img {
  transform: scale(1.07);
}

/* Image lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  inset: 0;
  justify-content: center;
  align-items: center;
  padding: 35px;
  background: rgba(0,0,0,.94);
}

.lightbox #lightbox-img {
  display: block;
  max-width: 92%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 35px rgba(0,0,0,.5);
}

.lightbox .close {
  position: absolute;
  top: 15px;
  right: 28px;
  color: #fff;
  font-size: 42px;
  font-weight: 300;
  cursor: pointer;
}

/* ---------- Contact / map ---------- */
#btnContact {
  padding: 55px 0 !important;
  color: #fff;
  background: linear-gradient(135deg, #5268d9 0%, #764ba2 100%) !important;
  text-align: center;
}

#btnContact > iframe {
  display: block;
  width: min(90%, 1050px) !important;
  height: 350px !important;
  margin: 0 auto 45px;
  border: 0;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}

#btnContact .section-title h2 {
  color: #fff !important;
  margin-bottom: 25px;
}

#btnContact .container > div[style*="grid-template-columns"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin-top: 25px !important;
}

#btnContact .container > div[style*="grid-template-columns"] > div {
  padding: 28px 22px !important;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px !important;
  background: rgba(255,255,255,.13) !important;
  box-shadow: 0 10px 25px rgba(15,25,70,.12);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease;
}

#btnContact .container > div[style*="grid-template-columns"] > div:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.2) !important;
}

#btnContact .container > div[style*="grid-template-columns"] h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 21px;
}

#btnContact .container > div[style*="grid-template-columns"] p {
  margin: 0 0 10px;
  color: rgba(255,255,255,.94);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
.footer {
  padding: 35px 0 28px;
  color: #e8eaf5;
  background: #1c2858;
  text-align: center;
}

.footer p {
  margin-bottom: 12px;
}

.footer a {
  display: inline-block;
  color: #d7ddff !important;
  transition: color .2s ease, transform .2s ease;
}

.footer a:hover {
  color: #fff !important;
  transform: translateY(-3px);
}

/* ---------- Gallery modal from HTML ---------- */
#galleryModal {
  display: none;
  position: fixed;
  z-index: 4000;
  inset: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 25px;
  background: rgba(0,0,0,.94);
}

#galleryModal img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

#galleryModal span {
  position: absolute;
  top: 15px;
  right: 28px;
  color: #fff !important;
  font-size: 42px !important;
  cursor: pointer;
}

#galleryModalCaption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
}

/* ---------- Generic form controls / records table (Namuna 8 page) ---------- */
input,
select,
textarea {
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(82,104,217,.13) !important;
}

#propertyForm {
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

#propertyForm label {
  display: block;
  margin-bottom: 6px;
  color: #344054;
  font-weight: 600;
}

#propertyForm input,
#propertyForm select,
#propertyForm textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fff;
}

#propertyForm button,
#cancelBtn,
#recordsTable button {
  margin: 5px 4px 5px 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}

#propertyForm button:hover,
#cancelBtn:hover,
#recordsTable button:hover {
  background: var(--primary-dark);
}

#recordsTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

#recordsTable th,
#recordsTable td {
  padding: 11px;
  border: 1px solid var(--border);
  text-align: left;
}

#recordsTable th {
  color: #fff;
  background: var(--primary-dark);
}

#recordsTable tr:nth-child(even) {
  background: #f6f7fc;
}

/* ---------- Print ---------- */
@media print {
  body * {
    visibility: hidden;
  }

  #propertyForm,
  #propertyForm * {
    visibility: visible;
  }

  #propertyForm {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  #propertyForm button,
  #cancelBtn {
    display: none !important;
  }

  @page {
    size: A4;
    margin: 12mm;
  }
}

/* ---------- Responsive: tablets ---------- */
@media (max-width: 1100px) {
  .committee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payment-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  #btnHome .d-flex.justify-content-between {
    flex-direction: column;
    justify-content: center;
  }

  #btnHome .d-flex.justify-content-center.align-items-center.gap-3 {
    justify-content: center;
    text-align: center;
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .sidebar .card {
    margin-bottom: 0;
  }

  #btnContact .container > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #btnContact .container > div[style*="grid-template-columns"] > div:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 650px) {
  html {
    scroll-padding-top: 0;
  }

  #btnHome .container-xxl {
    padding: 0 12px;
  }

  #btnHome .d-flex.justify-content-center.align-items-center.gap-3 {
    flex-wrap: wrap;
    gap: 10px !important;
  }

  #btnHome img[alt="National Emblem"] {
    height: 72px !important;
  }

  #btnHome img[alt="75year"],
  #btnHome img[alt="tukdojimaharaj"],
  #btnHome img[alt="Gadgebaba"] {
    width: 58px;
    height: 58px !important;
  }

  #btnHome p {
    text-align: center;
  }

  .button-section {
    position: relative;
    gap: 7px;
    padding: 10px;
  }

  .button-section.sticky {
    position: relative;
  }

  .button-section button {
    padding: 7px 10px;
  }

  .button-section button a {
    font-size: 12px;
  }

  .slogan-box {
    justify-content: center;
    gap: 5px 10px;
    font-size: 13px;
  }

  .container > h2 {
    font-size: 23px;
  }

  #myCarousel {
    border-radius: 10px;
  }

  #myCarousel .carousel-inner > .item {
    height: 260px;
  }

  #myCarousel .slide-caption {
    left: 7%;
    right: 7%;
    bottom: 15%;
  }

  #myCarousel .slide-caption h2 {
    font-size: 25px;
  }

  #myCarousel .slide-caption p {
    font-size: 15px;
  }

  #btnAbout {
    padding-bottom: 30px;
  }

  .history-text {
    padding: 16px;
    font-size: 14px;
    text-align: left;
  }

  .sidebar {
    display: block;
  }

  .sidebar .card {
    margin-bottom: 18px;
  }

  .card-body {
    padding: 17px;
  }

  .person-item {
    gap: 12px;
  }

  .person-avatar {
    width: 75px;
    height: 75px;
    flex-basis: 75px;
  }

  .committee-section,
  .stats-section,
  .gallery-section {
    padding: 38px 0;
  }

  .committee-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .committee-member {
    padding: 20px 15px;
  }

  .stats-section table {
    min-width: 560px;
    font-size: 13px;
  }

  .stats-section table th,
  .stats-section table td {
    padding: 10px;
  }

  .tax-payment-section {
    padding: 38px 12px;
  }

  .payment-box {
    grid-template-columns: 1fr;
  }

  .payment-details {
    grid-column: auto;
  }

  .detail-row {
    flex-direction: column;
    gap: 3px;
  }

  .detail-row strong {
    text-align: left;
  }

  .header-n8 {
    padding: 20px 12px;
  }

  .header-box-n8 {
    flex-direction: column;
    gap: 5px;
  }

  .header-title-n8 {
    font-size: 24px;
  }

  .gallery-section h1 {
    font-size: 28px;
  }

  .gallery-section h2 {
    font-size: 14px;
    line-height: 1.6;
  }

  .filters {
    gap: 7px;
  }

  .filters button {
    padding: 7px 12px;
    font-size: 12px;
  }

  .gallery-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-card > .item {
    border-radius: 8px;
  }

  #btnContact {
    padding: 38px 0 !important;
  }

  #btnContact > iframe {
    width: 92% !important;
    height: 270px !important;
    margin-bottom: 32px;
  }

  #btnContact .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  #btnContact .container > div[style*="grid-template-columns"] > div:last-child {
    grid-column: auto;
  }

  .footer {
    padding: 28px 12px;
    font-size: 13px;
  }

  .lightbox {
    padding: 15px;
  }

  .lightbox #lightbox-img {
    max-width: 100%;
    max-height: 82vh;
  }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
  #btnHome img[alt="75year"],
  #btnHome img[alt="tukdojimaharaj"],
  #btnHome img[alt="Gadgebaba"] {
    width: 48px;
    height: 48px !important;
  }

  .button-section button {
    padding: 6px 8px;
  }

  .button-section button a {
    font-size: 11px;
  }

  .gallery-card {
    gap: 7px;
  }

  .person-item {
    align-items: flex-start;
  }
}

/* ---------- Accessibility / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
