* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1f2937;
  background: #d6edf7;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.main-nav a {
  color: #111827;
  text-decoration: none;
  font-size: 15px;
}

.main-nav a:hover {
  text-decoration: underline;
}

.main-nav a.active {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.hero {
  min-height: 300px;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-logo {
  position: static;
  width: 264px;
  height: 264px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.hero-overlay {
  width: 100%;
  max-width: 960px;
}

.hero h1 {
  margin: 0 0 12px;
  color: #ff69b4;
  font-size: 52px;
  font-weight: 400;
}

.hero p {
  margin: 0;
  line-height: 1.6;
  color: #dbeafe;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.section-title {
  margin-top: 0;
}

.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  min-height: 160px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.13);
}

.card-title {
  display: block;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.25;
  color: #1e3a8a;
}

.impact-card {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.9), rgba(219, 234, 254, 0.62));
  border-color: rgba(96, 165, 250, 0.4);
}

.impact-note {
  margin: 0;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.6;
  max-width: 36ch;
}

.event-image-link {
  display: block;
  margin-top: 2px;
}

.event-image {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-image-link:hover .event-image {
  opacity: 0.94;
  transform: scale(1.01);
}

.event-note {
  margin: 4px 0 0;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.55;
}

.events-card {
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.9), rgba(224, 242, 254, 0.65));
  border-color: rgba(56, 189, 248, 0.35);
}

.donation-card {
  background: linear-gradient(180deg, rgba(250, 245, 255, 0.9), rgba(238, 242, 255, 0.66));
  border-color: rgba(199, 210, 254, 0.6);
}

.page-banner {
  min-height: 220px;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background-size: cover;
  background-position: center;
}

.page-banner h1 {
  margin: 0;
  color: #ff69b4;
  font-size: 44px;
  font-weight: 400;
}

.panel {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 18px;
}

.home-youtube-panel {
  margin-top: 14px;
}

.contribute-donation-panel {
  margin-top: 16px;
}

.donation-card {
  min-height: 220px;
}

.donation-details {
  margin-top: 4px;
  display: grid;
  gap: 6px;
}

.donation-details p {
  margin: 0;
  line-height: 1.45;
}

.donation-details p strong {
  color: #1e3a8a;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1d4ed8;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  background: linear-gradient(135deg, #2563eb, #ec4899);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 2px solid #ec4899;
  outline-offset: 2px;
}

.site-footer {
  background: #eef2f7;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

.footer-copy {
  margin: 0;
}

.footer-nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #1d4ed8;
  text-decoration: underline;
  font-size: 12px;
}

.footer-nav a:hover {
  color: #1e40af;
}

.about-history-panel,
.member-carousel-panel {
  margin-top: 16px;
}

.member-carousel {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.member-slides {
  position: relative;
  min-height: 340px;
}

.member-slide {
  display: none;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.member-slide.is-active {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.member-slide img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.member-info {
  padding: 18px;
}

.member-info h3 {
  margin: 0;
}

.member-role {
  margin: 6px 0 10px;
  font-weight: 700;
  color: #1d4ed8;
}

.carousel-control {
  width: 38px;
  height: 38px;
  border: 1px solid #93c5fd;
  border-radius: 50%;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.carousel-control:hover {
  background: #e0f2fe;
}

.carousel-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #60a5fa;
  background: #dbeafe;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #2563eb;
  border-color: #2563eb;
}

.activities-intro-panel {
  margin-bottom: 16px;
}

.activities-list {
  margin: 0 0 14px;
  padding-left: 22px;
}

.activities-list li {
  margin-bottom: 4px;
}

.activities-matrix {
  margin-top: 0;
}

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

.activity-tile {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(219, 234, 254, 0.45));
  border: 1px solid rgba(147, 197, 253, 0.55);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.activity-tile:nth-child(1) {
  background: linear-gradient(160deg, rgba(219, 234, 254, 0.6), rgba(191, 219, 254, 0.45));
  border-color: rgba(96, 165, 250, 0.55);
}

.activity-tile:nth-child(2) {
  background: linear-gradient(160deg, rgba(224, 242, 254, 0.6), rgba(186, 230, 253, 0.45));
  border-color: rgba(56, 189, 248, 0.45);
}

.activity-tile:nth-child(3) {
  background: linear-gradient(160deg, rgba(254, 242, 248, 0.55), rgba(224, 231, 255, 0.45));
  border-color: rgba(236, 72, 153, 0.35);
}

.activity-tile h3 {
  margin: 0 0 8px;
  color: #1e3a8a;
}

.activity-tile p {
  margin-top: 0;
}

.pathashala-tile address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 12px;
}

.pathashala-tile {
  overflow: hidden;
}

.pathashala-photo-wrap {
  margin: 0 0 12px;
  width: 100%;
}

.pathashala-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.pathashala-tile .pathashala-photo {
  width: 100% !important;
  height: 220px !important;
  max-width: 100% !important;
  max-height: 220px !important;
}

.map-embed-wrap {
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
}

@media (max-width: 1200px) {
  .hero-logo {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 900px) {
  .hero-logo {
    width: 132px;
    height: 132px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-banner h1 {
    font-size: 34px;
  }

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

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

  .card-title {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
  }

  .brand {
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 16px;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 10px 14px;
    justify-content: flex-start;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 24px 16px 32px;
  }

  .hero-logo {
    position: static;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    display: block;
  }

  .hero-overlay {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 19px;
    line-height: 1.55;
  }

  .content {
    padding: 22px 16px 32px;
  }

  .content > .section-title,
  .content > p,
  .content > .panel,
  .content > .cards {
    width: 100%;
  }

  .cards {
    width: 100%;
    gap: 14px;
  }

  .card {
    width: 100%;
    min-height: 0;
  }

  .event-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .page-banner {
    min-height: 170px;
    padding: 30px 16px;
  }

  .page-banner h1 {
    font-size: 28px;
  }

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

  .cta-button {
    width: 100%;
  }

  .member-carousel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-slides {
    min-height: 0;
  }

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

  .member-slide img {
    min-height: 220px;
    max-height: 260px;
  }

  .member-info {
    padding: 14px;
  }

  .carousel-control {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

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

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 12px;
  }

  .nav-toggle {
    right: 12px;
  }

  .brand {
    font-size: 16px;
    gap: 8px;
  }

  .brand img {
    width: 24px;
    height: 24px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero {
    padding: 20px 12px 28px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero p {
    font-size: 16px;
  }

  .content,
  .panel,
  .cards,
  .card {
    max-width: 100%;
  }

  .content > .section-title,
  .content > p,
  .content > .panel,
  .content > .cards {
    width: 100%;
  }

  .card-title {
    font-size: 22px;
  }

  .panel,
  .card {
    padding: 14px;
  }

  .footer-nav {
    gap: 10px;
  }
}