/* Inner pages — matches home-redesign theme */
body:not(.page-home) {
  padding-top: 92px;
}
body.page-home {
  padding-top: 0;
}

.site-main {
  min-height: calc(100vh - 76px);
}

.nav-link--active {
  color: var(--maroon) !important;
}
.nav-link--active::after {
  left: 14px !important;
  right: 14px !important;
}

.page-hero {
  background: linear-gradient(160deg, #FFF7E6 0%, #fde8c8 50%, #f5d4a0 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
}
.page-hero .mandala {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  border: 1px solid var(--gold);
  width: 320px;
  height: 320px;
  right: -80px;
  top: -60px;
  animation: spin-slow 60s linear infinite;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 64px 0 100px;
  background: var(--cream);
}

.page-content--white {
  background: var(--white);
}

/* About page (dedicated layout) */
.about-page-wrap {
  padding: 38px 0 64px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 50vh;
}
.about-hero {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 34px 32px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  margin-bottom: 22px;
}
.about-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.about-hero-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.about-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.about-hero h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.about-hero p {
  margin: 12px 0 0;
  color: #cbd5e1;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.8;
}
.about-content {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}
.about-content img {
  max-width: 100%;
  height: auto;
}
.about-content h1,
.about-content h2,
.about-content h3 {
  margin-top: 1.2em;
}
.about-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.about-info-card {
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}
.about-info-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
}
.about-info-card p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}
.about-impact {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  padding: 24px;
}
.about-impact h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.about-stat {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.about-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 6px;
}
.about-stat span {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}
.about-gallery {
  margin-top: 22px;
}
.about-gallery h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 700;
}
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.about-gallery-item {
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  text-align: center;
}
.about-gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.about-gallery-item p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}
.about-members-wrap {
  margin-top: 28px;
  position: relative;
}
.about-members-wrap::before {
  content: "";
  position: absolute;
  inset: -18px -12px auto -12px;
  height: 220px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.08) 55%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
}
.about-members-title {
  margin: 0 0 18px;
  color: #0f172a;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.about-members-title::before {
  content: "";
  width: 10px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}
.about-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.about-member-card {
  background: linear-gradient(155deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe6f3;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  animation: aboutMemberCardIn 0.6s ease both;
}
.about-member-card::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -75px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.about-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  border-color: #c7dbf7;
}
.about-member-photo {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #dbeafe;
  margin-bottom: 14px;
  display: block;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-member-card:hover .about-member-photo {
  transform: scale(1.04) rotate(1.5deg);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}
.about-member-name {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
}
.about-member-designation {
  margin: 6px 0 10px;
  color: #1d4ed8;
  font-weight: 700;
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.about-member-dob {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
}
.about-member-info {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  font-size: 14px;
}
.about-member-list-wrap {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #dbe6f3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  animation: aboutListFade 0.7s ease both;
}
.about-member-list-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
}
.about-member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-member-list li {
  display: grid;
  grid-template-columns: 60px 1.5fr 1.2fr 1fr;
  gap: 10px;
  padding: 12px 10px;
  border-top: 1px solid #e6edf5;
  color: #334155;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.about-member-list li:first-child {
  border-top: 0;
}
.about-member-list .head {
  color: #0f172a;
  font-weight: 700;
  background: #f8fafc;
  border-radius: 8px;
  border-top: 0;
}
.about-member-list li:not(.head):hover {
  background: #f8fbff;
  transform: translateX(3px);
}
.about-member-empty {
  margin: 0;
  color: #64748b;
}
@keyframes aboutMemberCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes aboutListFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-help {
  margin-top: 26px;
  background: linear-gradient(130deg, #ff545a 0%, #ff6b70 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(255, 84, 90, 0.28);
}
.about-help h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.about-help p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.8;
}
.about-help-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.about-help-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.about-help-btn.primary {
  background: #fff;
  color: #ff545a;
}
.about-help-btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}
.about-help-btn,
.about-help-btn:hover,
.about-help-btn:focus,
.about-help-btn:active {
  text-decoration: none;
  transition: none;
  transform: none;
}
.about-help-btn.primary:hover,
.about-help-btn.primary:focus,
.about-help-btn.primary:active {
  background: #fff;
  color: #ff545a;
}
.about-help-btn.secondary:hover,
.about-help-btn.secondary:focus,
.about-help-btn.secondary:active {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 575px) {
  .about-content {
    padding: 24px 18px;
  }
  .about-hero {
    padding: 26px 18px;
  }
  .about-hero-brand {
    gap: 10px;
  }
  .about-hero-logo {
    width: 54px;
    height: 54px;
  }
  .about-hero h1 {
    font-size: 28px;
  }
  .about-impact h2,
  .about-gallery h2,
  .about-help h2,
  .about-members-title {
    font-size: 24px;
  }
  .about-member-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .about-member-list .head {
    display: none;
  }
}

.how-intro-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
  max-width: 900px;
  line-height: 1.85;
  color: var(--dark-muted);
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}

.how-guide {
  max-width: 920px;
  margin: 40px auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.how-guide-text {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 2;
  color: var(--dark);
  margin: 0 0 32px;
  font-weight: 500;
}
.how-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .pstep-icon {
    width: 110px;
    height: 110px;
  }
  .pstep-icon img {
    width: 82px;
    height: 82px;
  }
  .process-line { top: 98px; }
}
@media (max-width: 600px) {
  .pstep-icon {
    width: 100px;
    height: 100px;
  }
  .pstep-icon img {
    width: 76px;
    height: 76px;
  }
  .process-line { display: none; }
}

.home-about {
  background: var(--white);
  border-top: 1px solid rgba(212, 160, 23, 0.12);
}
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 48px;
  align-items: center;
}
.home-about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, #FFF7E6 0%, #fde8c8 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 160, 23, 0.25);
  box-shadow: var(--shadow-sm);
}
.home-about-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}
.home-about-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--dark-muted);
  margin: 0 0 28px;
  max-width: 640px;
}
@media (max-width: 768px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .home-about-desc { margin-left: auto; margin-right: auto; }
  .home-about-text .btn-primary { margin: 0 auto; }
}

/* List pages — uniform card grid */
.page-content .news-grid,
.page-content .vigat-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.page-content .ncard-featured {
  grid-column: span 1;
}
.page-content .ncard-featured .ncard-img {
  height: 200px;
}
.page-content .vcard-large,
.page-content .vcard-wide {
  grid-column: span 1;
}
.ncard-img-link {
  display: block;
  color: inherit;
}

@media (max-width: 600px) {
  body:not(.page-home) { padding-top: 68px; }
  .page-hero { padding: 40px 0 32px; }
}

/* Nirmal Gyan Yojna — application guide */
.page-hero--ngy {
  background: linear-gradient(160deg, #fff7e6 0%, #fde8c8 45%, #f5d4a0 100%);
}
.ngy-hero-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: center;
}
.ngy-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(196, 30, 58, 0.15);
  box-shadow: var(--shadow-md);
}
.ngy-hero-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
}
.ngy-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #c41e3a;
  margin: 0 0 12px;
}
.ngy-guide {
  background: var(--cream);
  padding-bottom: 80px;
}
.ngy-intro-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-left: 4px solid var(--gold);
}
.ngy-card-title {
  font-size: 1.5rem;
  color: var(--maroon);
  margin: 0 0 14px;
}
.ngy-intro-card p {
  color: var(--dark-muted);
  line-height: 1.85;
  margin: 0 0 16px;
}
.ngy-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ngy-checklist li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--dark-muted);
  border-bottom: 1px solid rgba(212, 160, 23, 0.12);
}
.ngy-checklist li:last-child { border-bottom: 0; }
.ngy-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 800;
}
.ngy-steps-header {
  text-align: center;
  margin-bottom: 40px;
}
.ngy-steps-header .section-sub {
  max-width: 640px;
  margin: 0 auto;
}
.ngy-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.ngy-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(196, 30, 58, 0.1);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ngy-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ngy-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c41e3a 0%, #991b1b 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}
.ngy-step-body h3 {
  font-size: 1.25rem;
  color: #1e3a8a;
  margin: 0 0 10px;
}
.ngy-step-body p {
  color: var(--dark-muted);
  line-height: 1.8;
  margin: 0 0 16px;
}
.ngy-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ngy-menu-hint {
  margin-top: 4px;
}
.ngy-menu-path {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(90deg, #eff6ff 0%, #fef3c7 100%);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3a8a;
}
.ngy-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.ngy-info-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow: var(--shadow-sm);
}
.ngy-info-box h4 {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 1.05rem;
}
.ngy-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ngy-info-box li {
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.ngy-info-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}
.ngy-info-box a {
  color: #1e3a8a;
  font-weight: 600;
  text-decoration: underline;
}
.ngy-notes {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  border: 1px solid rgba(212, 160, 23, 0.25);
  box-shadow: var(--shadow-sm);
}
.ngy-notes-title {
  font-size: 1.15rem;
  color: var(--maroon);
  margin: 0 0 8px;
  text-align: center;
}
.ngy-notes-sub {
  text-align: center;
  color: var(--dark-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}
.ngy-alert {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 2px solid #c41e3a;
  border-radius: var(--radius-md);
}
.ngy-alert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #c41e3a;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ngy-alert-text p {
  margin: 0 0 8px;
  color: var(--dark);
  line-height: 1.75;
}
.ngy-alert-text p:last-child { margin-bottom: 0; }
.ngy-cta {
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: var(--radius-xl);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.ngy-cta p {
  font-size: 1.15rem;
  margin: 0 0 24px;
  opacity: 0.95;
}
.ngy-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.ngy-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.ngy-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}
@media (max-width: 768px) {
  .ngy-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .ngy-hero-logo-wrap { max-width: 260px; margin: 0 auto; }
  .ngy-step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .ngy-step-num { margin: 0 auto; }
  .ngy-step-actions { justify-content: center; }
  .ngy-alert { flex-direction: column; text-align: center; }
  .ngy-alert-icon { margin: 0 auto; }
}
