:root {
  --ajsf-blue: #0f4c81;
  --ajsf-green: #28a745;
  --ajsf-orange: #ff9800;
  --ajsf-ink: #18212c;
  --ajsf-muted: #607084;
  --ajsf-soft: #f4f8fb;
  --ajsf-line: #dfe8ef;
  --ajsf-white: #ffffff;
}

.ajsf-page {
  color: var(--ajsf-ink);
  font-family: inherit;
  overflow: hidden;
}

.ajsf-hero,
.ajsf-page-hero {
  background:
    linear-gradient(90deg, rgba(15, 76, 129, 0.94), rgba(15, 76, 129, 0.62)),
    radial-gradient(circle at 85% 25%, rgba(255, 152, 0, 0.42), transparent 28%),
    linear-gradient(135deg, #0f4c81, #28a745);
  color: var(--ajsf-white);
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
}

.ajsf-page-hero {
  min-height: 360px;
  display: block;
  padding-top: 108px;
  padding-bottom: 88px;
}

.ajsf-hero__content,
.ajsf-page-hero > * {
  max-width: 760px;
}

.ajsf-hero-logo {
  background: var(--ajsf-white);
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  display: block;
  height: 132px;
  margin: 0 0 24px;
  object-fit: cover;
  width: 132px;
}

.ajsf-hero h1,
.ajsf-page-hero h1 {
  color: inherit;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.ajsf-page-hero h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.ajsf-hero p,
.ajsf-page-hero p {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.ajsf-kicker {
  color: var(--ajsf-orange);
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px !important;
  text-transform: uppercase;
}

.ajsf-section {
  padding: 76px max(20px, calc((100vw - 1180px) / 2));
}

.ajsf-section:nth-of-type(even) {
  background: var(--ajsf-soft);
}

.ajsf-section h2 {
  color: var(--ajsf-blue);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  margin: 0 0 18px;
}

.ajsf-section h3 {
  color: var(--ajsf-ink);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.ajsf-section p {
  color: var(--ajsf-muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.ajsf-two {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.ajsf-actions,
.ajsf-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ajsf-section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.ajsf-section-head a,
.ajsf-card a,
.ajsf-activity-card a {
  color: var(--ajsf-blue);
  font-weight: 800;
  text-decoration: none;
}

.ajsf-btn {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none !important;
}

.ajsf-btn--primary {
  background: var(--ajsf-blue);
  color: var(--ajsf-white) !important;
}

.ajsf-btn--accent {
  background: var(--ajsf-orange);
  color: #1a1406 !important;
}

.ajsf-btn--light {
  background: var(--ajsf-white);
  color: var(--ajsf-blue) !important;
}

.ajsf-impact {
  background: var(--ajsf-blue) !important;
  color: var(--ajsf-white);
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ajsf-impact div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 28px;
}

.ajsf-impact strong {
  color: var(--ajsf-white);
  display: block;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.ajsf-impact span {
  color: rgba(255, 255, 255, 0.86);
  display: block;
  margin-top: 8px;
}

.ajsf-card-grid {
  display: grid;
  gap: 22px;
}

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

.ajsf-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ajsf-card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ajsf-card,
.ajsf-activity-card,
.ajsf-team {
  background: var(--ajsf-white);
  border: 1px solid var(--ajsf-line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 76, 129, 0.08);
  overflow: hidden;
  padding: 26px;
}

.ajsf-card blockquote,
blockquote.ajsf-card {
  font-size: 18px;
  line-height: 1.55;
}

blockquote.ajsf-card cite {
  color: var(--ajsf-muted);
  display: block;
  font-size: 14px;
  font-style: normal;
  margin-top: 18px;
}

.ajsf-activity-card {
  padding: 0;
}

.ajsf-activity-card__body {
  padding: 22px;
}

.ajsf-activity-card__body span {
  color: var(--ajsf-green);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ajsf-image-placeholder {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(15, 76, 129, 0.86), rgba(40, 167, 69, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 12px, transparent 12px 24px);
  border-radius: 6px;
  min-height: 180px;
}

.ajsf-activity-card .ajsf-image-placeholder,
.ajsf-gallery-item .ajsf-image-placeholder,
.ajsf-post-image {
  border-radius: 0;
  width: 100%;
}

.ajsf-image-placeholder--2 {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.92), rgba(15, 76, 129, 0.78));
}

.ajsf-image-placeholder--3 {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(255, 152, 0, 0.74));
}

.ajsf-image-placeholder--4 {
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.78), rgba(24, 33, 44, 0.9));
}

.ajsf-image-placeholder--5 {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.88), rgba(15, 76, 129, 0.9));
}

.ajsf-gallery-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
}

.ajsf-gallery-preview .ajsf-image-placeholder:first-child {
  grid-row: span 2;
  min-height: 380px;
}

.ajsf-cta,
.ajsf-donate-panel {
  align-items: center;
  background: var(--ajsf-blue) !important;
  color: var(--ajsf-white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ajsf-cta h2,
.ajsf-cta p,
.ajsf-donate-panel h2,
.ajsf-donate-panel p {
  color: var(--ajsf-white);
}

.ajsf-cta--donate,
.ajsf-donate-panel {
  grid-template-columns: minmax(0, 1fr) 180px auto;
}

.ajsf-qr {
  align-items: center;
  background: var(--ajsf-white);
  border: 8px solid rgba(255, 255, 255, 0.25);
  color: var(--ajsf-blue);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 170px;
  padding: 18px;
  text-align: center;
  width: 170px;
}

.ajsf-upi {
  color: var(--ajsf-blue) !important;
  font-size: 20px;
}

.ajsf-team {
  text-align: center;
}

.ajsf-avatar {
  background: linear-gradient(135deg, var(--ajsf-blue), var(--ajsf-green));
  border-radius: 999px;
  height: 104px;
  margin: 0 auto 18px;
  width: 104px;
}

.ajsf-team-photo {
  aspect-ratio: 1 / 1;
  border: 5px solid var(--ajsf-white);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(15, 76, 129, 0.16);
  display: block;
  height: 132px;
  margin: 0 auto 18px;
  object-fit: cover;
  object-position: center 28%;
  width: 132px;
}

.ajsf-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.ajsf-filters button {
  background: var(--ajsf-white);
  border: 1px solid var(--ajsf-line);
  border-radius: 999px;
  color: var(--ajsf-blue);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 18px;
  white-space: nowrap;
}

.ajsf-filters button.is-active,
.ajsf-filters button:hover {
  background: var(--ajsf-blue);
  color: var(--ajsf-white);
}

.ajsf-masonry {
  column-count: 3;
  column-gap: 22px;
}

.ajsf-gallery-item {
  background: var(--ajsf-white);
  border: 1px solid var(--ajsf-line);
  border-radius: 8px;
  break-inside: avoid;
  margin: 0 0 22px;
  overflow: hidden;
}

.ajsf-gallery-item h3,
.ajsf-gallery-item p {
  padding-left: 18px;
  padding-right: 18px;
}

.ajsf-gallery-item h3 {
  margin-top: 18px;
}

.ajsf-form-wrap {
  max-width: 820px;
}

.ajsf-form {
  display: grid;
  gap: 16px;
}

.ajsf-form label {
  color: var(--ajsf-ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.ajsf-form input,
.ajsf-form textarea {
  border: 1px solid var(--ajsf-line);
  border-radius: 8px;
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.ajsf-notice {
  background: #e9f8ee;
  border: 1px solid #bce5c8;
  border-radius: 8px;
  color: #155c2b;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.ajsf-contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 0.85fr 1.15fr;
}

.ajsf-map {
  align-items: center;
  background: var(--ajsf-soft);
  border: 1px solid var(--ajsf-line);
  border-radius: 8px;
  color: var(--ajsf-blue);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 240px;
  margin-top: 18px;
  overflow: hidden;
}

.ajsf-map iframe {
  border: 0;
  display: block;
  height: 300px;
  width: 100%;
}

@media (max-width: 980px) {
  .ajsf-two,
  .ajsf-card-grid--two,
  .ajsf-card-grid--three,
  .ajsf-card-grid--four,
  .ajsf-contact-grid,
  .ajsf-cta,
  .ajsf-cta--donate,
  .ajsf-donate-panel {
    grid-template-columns: 1fr;
  }

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

  .ajsf-masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .ajsf-hero,
  .ajsf-page-hero {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 64px;
  }

  .ajsf-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .ajsf-hero p,
  .ajsf-page-hero p {
    font-size: 17px;
  }

  .ajsf-hero-logo {
    height: 104px;
    width: 104px;
  }

  .ajsf-actions,
  .ajsf-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ajsf-btn {
    width: 100%;
  }

  .ajsf-impact {
    grid-template-columns: 1fr;
  }

  .ajsf-gallery-preview {
    grid-template-columns: 1fr;
  }

  .ajsf-gallery-preview .ajsf-image-placeholder:first-child {
    min-height: 220px;
  }

  .ajsf-masonry {
    column-count: 1;
  }

  .ajsf-qr {
    width: 100%;
  }
}
