﻿:root {
  --primary: #0f4a7d;
  --primary-dark: #093154;
  --accent: #c48a22;
  --light: #f3f7fb;
  --white: #ffffff;
  --text: #1f2937;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7fbff 0%, #edf3f8 100%);
  line-height: 1.5;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.top-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  font-family: 'Merriweather', serif;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: #112a44;
  font-weight: 800;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--white);
  background: var(--primary);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.main-nav {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 12px 0;
  font-size: 1rem;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  color: var(--white);
  text-decoration: none;
  padding: 14px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.menu > li > a:hover,
.menu > li > a.active {
  background: rgba(255, 255, 255, 0.12);
}

.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #dde6f0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s ease;
}

.dropdown li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #1a3450;
  font-weight: 600;
}

.dropdown li a:hover {
  background: var(--light);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slides {
  position: relative;
  min-height: 68vh;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  min-height: 68vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide h1,
.slide h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
  max-width: 780px;
}

.slide p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 760px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #1d3550;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }

.dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.dots button.active {
  background: var(--accent);
}

.content {
  padding: 34px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.about-card,
.whats-new-card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(10, 45, 75, 0.08);
}

.about-card {
  border-left: 5px solid var(--accent);
}

.whats-new-card {
  border-top: 5px solid var(--primary);
}

.about-card h3,
.whats-new-card h3 {
  margin-bottom: 8px;
  color: #123a5a;
  font-family: 'Merriweather', serif;
}

.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  margin-top: 10px;
}

.president-image-wrap {
  text-align: center;
}

.president-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #d9e6f2;
}

.president-name {
  margin-top: 8px;
  font-weight: 700;
  color: #0f3557;
}

.about-text p + p {
  margin-top: 12px;
}

.marquee-box {
  height: 280px;
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px;
}

.news-list {
  list-style: none;
}

.news-list li {
  padding: 10px 6px;
  border-bottom: 1px dashed #c3d4e6;
  color: #15395b;
  font-weight: 600;
}

.pdf-material-section {
  padding: 22px 0 4px;
}

.pdf-material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pdf-panel,
.material-panel {
  background: #fff;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 53, 87, 0.08);
}

.pdf-panel h3,
.material-panel h3 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 10px;
}

.pdf-viewer-wrap {
  width: 100%;
  height: 360px;
  border: 1px solid #cfdcea;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f9fd;
}

.pdf-viewer-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-note {
  margin-top: 10px;
  color: #48627a;
  font-weight: 600;
}

.material-panel ul {
  margin: 10px 0 14px;
  padding-left: 18px;
}

.material-panel li {
  margin-bottom: 6px;
  color: #214562;
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(180deg, #0b2f4e 0%, #081f35 100%);
  color: #d8e7f5;
}

.pro-footer {
  margin-top: 28px;
}

.footer-grid {
  padding: 34px 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-col h4 {
  color: #ffffff;
  font-family: "Merriweather", serif;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.brand-col p {
  margin-top: 10px;
  color: #c3d8ec;
}

.footer-logo .logo-text {
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #d7e8f7;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffc766;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

.footer-social-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.footer-social-icons a:hover {
  background: #c48a22;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  text-align: center;
}

.footer-bottom p {
  color: #c0d5ea;
}

.constitution-section {
  margin-top: 22px;
  background: linear-gradient(90deg, #103a60, #1a557f);
  color: var(--white);
  padding: 30px 0;
}

.constitution-section h3 {
  font-family: 'Merriweather', serif;
  margin-bottom: 10px;
}

.constitution-section p {
  max-width: 1050px;
}

.testimonial-section {
  padding: 30px 0 6px;
}

.home-members-preview {
  padding: 24px 0 4px;
}

.home-member-slider {
  margin-top: 12px;
  overflow: hidden;
  --home-member-visible: 4;
}

.home-member-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
}

.home-member-card {
  flex: 0 0 calc((100% - (var(--home-member-visible) - 1) * 16px) / var(--home-member-visible));
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.1);
}

.home-member-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.home-member-card h4,
.home-member-card p {
  padding-left: 12px;
  padding-right: 12px;
}

.home-member-card h4 {
  margin-top: 10px;
  color: #133b5f;
}

.home-member-card p {
  padding-bottom: 12px;
}

.home-member-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.home-member-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #114067;
  color: #fff;
  cursor: pointer;
}

.home-member-controls button:hover {
  background: #c48a22;
}

.home-contributors-preview {
  padding: 24px 0 4px;
}

.home-contributor-slider {
  margin-top: 12px;
  overflow: hidden;
  --home-contributor-visible: 4;
}

.home-contributor-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
}

.home-contributor-card {
  flex: 0 0 calc((100% - (var(--home-contributor-visible) - 1) * 16px) / var(--home-contributor-visible));
  background: #fff;
  border: 1px solid #dce7f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.1);
}

.home-contributor-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.home-contributor-card h4,
.home-contributor-card p {
  padding-left: 12px;
  padding-right: 12px;
}

.home-contributor-card h4 {
  margin-top: 10px;
  color: #133b5f;
}

.home-contributor-card p {
  padding-bottom: 12px;
}

.home-contributor-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.home-contributor-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #114067;
  color: #fff;
  cursor: pointer;
}

.home-contributor-controls button:hover {
  background: #c48a22;
}

.home-donation-preview {
  padding: 24px 0 4px;
}

.home-donation-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.home-donation-text,
.home-donation-qr {
  background: #fff;
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 53, 87, 0.08);
}

.home-donation-text h3 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 8px;
}

.home-donation-text p {
  margin-bottom: 12px;
}

.home-donation-qr {
  text-align: center;
}

.home-donation-qr img {
  width: min(210px, 100%);
  border: 6px solid #f1f7fe;
  border-radius: 10px;
  margin-bottom: 10px;
}

.testimonial-section h3 {
  font-family: 'Merriweather', serif;
  color: #123a5a;
  margin-bottom: 14px;
}

.testimonial-slider {
  position: relative;
  min-height: 190px;
}

.testimonial-item {
  display: none;
  background: var(--white);
  border: 1px solid #dbe5ef;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 22px;
}

.testimonial-item.active {
  display: block;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d8e5f2;
}

.designation {
  color: #49637c;
  font-weight: 600;
  display: inline-block;
  margin-top: 2px;
}

.testimonial-text {
  font-size: 1.05rem;
  color: #1a3a56;
  margin-bottom: 0;
}

.testimonial-item h4 {
  color: #0c2d4b;
  margin-bottom: 3px;
}

.testimonial-item span {
  color: #49637c;
  font-weight: 600;
}

.testimonial-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.testimonial-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #114067;
  color: var(--white);
}

.testimonial-controls button:hover {
  background: var(--accent);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.open {
    display: flex;
  }

  .menu > li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .menu > li > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .dropdown li a {
    color: #e4eef9;
    padding-left: 28px;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .slide-btn {
    width: 38px;
    height: 38px;
  }

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

  .pdf-material-grid {
    grid-template-columns: 1fr;
  }

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

  .president-image-wrap {
    text-align: left;
  }

  .testimonial-slider {
    min-height: 230px;
  }

  .home-donation-grid {
    grid-template-columns: 1fr;
  }

  .home-member-slider {
    --home-member-visible: 2;
  }

  .home-contributor-slider {
    --home-contributor-visible: 2;
  }

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

  .testimonial-head {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .home-member-slider {
    --home-member-visible: 1;
  }

  .home-contributor-slider {
    --home-contributor-visible: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }
}

@media (max-width: 600px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-icons {
    width: 100%;
    justify-content: flex-start;
  }

  .slides,
  .slide-content {
    min-height: 58vh;
  }
}

.about-hero {
  background:
    linear-gradient(rgba(8, 40, 70, 0.78), rgba(8, 40, 70, 0.78)),
    url("https://ui-avatars.com/api/?name=About+Hero&background=0D8ABC&color=fff&size=1200");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 62px 0;
}

.about-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  margin-bottom: 10px;
}

.about-hero p {
  max-width: 860px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.about-main {
  padding: 34px 0 40px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.08);
  border-top: 4px solid #0f4a7d;
}

.intro-card h2 {
  font-family: "Merriweather", serif;
  font-size: 1.18rem;
  color: #0f3557;
  margin-bottom: 8px;
}

.intro-card p + p {
  margin-top: 10px;
}

.impact-strip {
  margin-top: 22px;
  background: linear-gradient(90deg, #0f3f69, #1c5f91);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  color: #fff;
}

.impact-item {
  text-align: center;
  padding: 8px;
}

.impact-item h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 3px;
  font-family: "Merriweather", serif;
}

.members-section {
  margin-top: 30px;
}

.section-head h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 4px;
}

.section-head p {
  color: #38546d;
}

.member-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.member-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.1);
}

.member-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.member-info {
  padding: 14px;
}

.member-info h3 {
  color: #143c60;
  margin-bottom: 4px;
}

.member-info .role {
  color: #c48a22;
  font-weight: 700;
  margin-bottom: 6px;
}

.join-panel {
  margin-top: 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  padding: 28px 18px;
}

.join-panel h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 6px;
}

.join-panel p {
  max-width: 830px;
  margin: 0 auto 16px;
}

.join-btn {
  text-decoration: none;
  display: inline-block;
  background: #0f4a7d;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.join-btn:hover {
  background: #c48a22;
}

@media (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 700px) {
  .intro-grid,
  .member-grid,
  .impact-strip {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 46px 0;
  }
}

.contact-hero {
  background:
    linear-gradient(rgba(10, 44, 75, 0.8), rgba(10, 44, 75, 0.8)),
    url("https://ui-avatars.com/api/?name=Contact+Hero&background=0D8ABC&color=fff&size=1200");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 0;
}

.contact-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.contact-hero p {
  max-width: 900px;
}

.contact-main {
  padding: 34px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.contact-card,
.contact-info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.08);
  padding: 22px;
}

.contact-card h2,
.contact-info-card h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  color: #193d60;
}

.field input,
.field textarea {
  border: 1px solid #cfdcea;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: #0f4a7d;
  box-shadow: 0 0 0 2px rgba(15, 74, 125, 0.15);
}

.submit-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: #0f4a7d;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:hover {
  background: #c48a22;
}

.info-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-top: 14px;
}

.info-item i {
  color: #0f4a7d;
  font-size: 1.2rem;
  margin-top: 3px;
}

.info-item h3 {
  color: #153f64;
  margin-bottom: 3px;
}

.quick-contact-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-card {
  background: #fff;
  border: 1px solid #d6e3ef;
  border-radius: 10px;
  padding: 16px;
}

.quick-card h3 {
  color: #133b5f;
  margin-bottom: 4px;
}

.quick-card p {
  color: #48647c;
  margin-bottom: 8px;
}

.quick-card a {
  color: #0f4a7d;
  font-weight: 700;
  text-decoration: none;
}

.full-map-section {
  margin-top: 24px;
}

.map-head {
  margin-bottom: 10px;
}

.map-head h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
}

.full-map-section iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .field-row,
  .quick-contact-strip {
    grid-template-columns: 1fr;
  }

  .full-map-section iframe {
    height: 320px;
  }
}

.members-hero {
  background:
    linear-gradient(rgba(9, 45, 76, 0.82), rgba(9, 45, 76, 0.82)),
    url("https://ui-avatars.com/api/?name=Members+Hero&background=0D8ABC&color=fff&size=1200");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 0;
}

.members-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin-bottom: 10px;
}

.members-main {
  padding: 34px 0 40px;
}

.elected-section,
.all-members-section {
  margin-bottom: 24px;
}

.elected-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(10, 45, 75, 0.08);
}

.elected-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #fff;
}

.elected-table th,
.elected-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #d9e5f0;
  text-align: left;
}

.elected-table th {
  background: #0f4a7d;
  color: #fff;
  font-weight: 700;
}

.elected-table tbody tr:nth-child(even) {
  background: #f6fafe;
}

.member-photo-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.member-profile {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.1);
  border: 1px solid #dce7f2;
}

.member-profile img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.member-profile h3,
.member-profile p {
  padding-left: 14px;
  padding-right: 14px;
}

.member-profile h3 {
  margin-top: 12px;
  color: #133c60;
}

.member-profile .designation {
  color: #c48a22;
  font-weight: 700;
  margin-top: 4px;
}

.member-profile p:last-child {
  padding-bottom: 14px;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .member-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .member-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .member-photo-grid {
    grid-template-columns: 1fr;
  }
}

.donation-hero {
  background:
    linear-gradient(rgba(11, 47, 78, 0.84), rgba(11, 47, 78, 0.84)),
    url("https://ui-avatars.com/api/?name=Donation+Hero&background=0D8ABC&color=fff&size=1200");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 0;
}

.donation-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.donation-main {
  padding: 34px 0 40px;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.donate-card,
.scanner-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.08);
  padding: 22px;
}

.donate-card h2,
.scanner-card h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 8px;
}

.donate-points {
  margin-top: 12px;
  padding-left: 18px;
}

.donate-points li {
  margin-bottom: 7px;
  color: #234866;
  font-weight: 600;
}

.bank-box {
  margin-top: 14px;
  background: #f5faff;
  border: 1px solid #d6e5f2;
  border-radius: 10px;
  padding: 14px;
}

.bank-box h3 {
  color: #123a5a;
  margin-bottom: 6px;
}

.qr-image {
  width: min(280px, 100%);
  display: block;
  margin: 14px auto 10px;
  border: 8px solid #f3f8fe;
  border-radius: 10px;
}

.upi-id {
  text-align: center;
  margin-bottom: 10px;
}

.donate-btn {
  width: 100%;
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.officer-support {
  margin-top: 22px;
}

.officer-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.officer-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe7f2;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 53, 87, 0.07);
}

.officer-card i {
  color: #0f4a7d;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.officer-card h3 {
  color: #133b5f;
  margin-bottom: 5px;
}

.donor-section {
  margin-top: 24px;
}

.donor-slider {
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  --donor-visible: 4;
}

.donor-track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
}

.donor-card {
  flex: 0 0 calc((100% - (var(--donor-visible) - 1) * 16px) / var(--donor-visible));
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dce7f2;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 53, 87, 0.1);
}

.donor-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.donor-card h3,
.donor-card p {
  padding-left: 14px;
  padding-right: 14px;
}

.donor-card h3 {
  margin-top: 12px;
  color: #133b5f;
}

.donor-card p:last-child {
  padding-bottom: 14px;
}

.donor-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.donor-controls button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #114067;
  color: #fff;
  cursor: pointer;
}

.donor-controls button:hover {
  background: #c48a22;
}

@media (max-width: 1024px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }

  .donor-slider {
    --donor-visible: 2;
  }
}

@media (max-width: 760px) {
  .officer-grid {
    grid-template-columns: 1fr;
  }

  .donor-slider {
    --donor-visible: 1;
  }
}

.gallery-hero {
  background:
    linear-gradient(rgba(10, 44, 75, 0.84), rgba(10, 44, 75, 0.84)),
    url("https://ui-avatars.com/api/?name=Gallery+Hero&background=0D8ABC&color=fff&size=1200");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 56px 0;
}

.gallery-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.gallery-main {
  padding: 34px 0 40px;
}

.gallery-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-card {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 53, 87, 0.12);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  border-radius: 10px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.gallery-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
}

.gallery-zoom-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.gallery-zoom-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #114067;
  color: #fff;
  cursor: pointer;
}

.gallery-zoom-controls button:hover {
  background: #c48a22;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 200px;
  }
}

.join-hero {
  background: linear-gradient(135deg, #0f4a7d 0%, #165b93 45%, #0d355a 100%);
  color: #fff;
  padding: 56px 0;
}

.join-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.join-main {
  padding: 34px 0 40px;
}

.join-form-card {
  background: #fff;
  border: 1px solid #d6e4f0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 53, 87, 0.08);
  padding: 22px;
}

.membership-form {
  margin-top: 12px;
}

.membership-form h3 {
  margin: 16px 0 10px;
  color: #123a5a;
  font-family: "Merriweather", serif;
  font-size: 1.06rem;
}

.membership-form select,
.membership-form input[type="date"],
.membership-form input[type="file"] {
  border: 1px solid #cfdcea;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  background: #fff;
}

.membership-form select:focus,
.membership-form input[type="date"]:focus,
.membership-form input[type="file"]:focus {
  outline: 0;
  border-color: #0f4a7d;
  box-shadow: 0 0 0 2px rgba(15, 74, 125, 0.15);
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  color: #224766;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 3px;
}

.voting-hero {
  background: linear-gradient(135deg, #114b80 0%, #0f3f69 55%, #0a2f4f 100%);
  color: #fff;
  padding: 56px 0;
}

.voting-hero h1 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.voting-main {
  padding: 34px 0 40px;
}

.voting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.voting-card {
  background: #fff;
  border: 1px solid #d7e5f1;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 53, 87, 0.08);
}

.voting-card h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.voting-card ul,
.voting-card ol {
  padding-left: 18px;
}

.voting-card li {
  margin-bottom: 7px;
  color: #224969;
  font-weight: 600;
}

.voting-highlight {
  margin-top: 24px;
}

.voting-highlight h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 10px;
}

.voting-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rule-box {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 12px;
  padding: 18px;
}

.rule-box i {
  font-size: 1.35rem;
  color: #0f4a7d;
  margin-bottom: 8px;
}

.rule-box h3 {
  color: #143d61;
  margin-bottom: 6px;
}

.helpdesk-panel {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #d7e5f1;
  border-radius: 12px;
  padding: 20px;
}

.helpdesk-panel h2 {
  font-family: "Merriweather", serif;
  color: #123a5a;
  margin-bottom: 8px;
}

.helpdesk-info {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

@media (max-width: 980px) {
  .voting-grid,
  .voting-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .voting-grid,
  .voting-highlight-grid {
    grid-template-columns: 1fr;
  }
}
