/* =========================================================
   INDEX PAGE — hero, about, pillars, contact
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- HERO ---------------- 
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 138, 46, 0.16), rgba(201, 138, 46, 0));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 16px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero p.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
}

.hero-stats div span {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .disc {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.hero-visual .disc img {
  width: 100%;
  border-radius: 50%;
}

.hero-visual .ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 138, 46, 0.45);
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .ring {
    animation: none;
  }
}*/
.hero-banner {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient( 90deg, rgba(20, 15, 10, 0.43) 0%, rgba(20, 15, 10, .68) 45%, rgba(20, 15, 10, .25) 100% )
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 720px;
    padding-top: 150px;

    color: #fff;
}

.hero-eyebrow {
    display: inline-block;

    padding: 2px 16px;
    margin-bottom: 22px;

    border: 1px solid rgba(201, 138, 46, .7);
    border-radius: 50px;

    color: #f1c77a;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 18px;

    font-size: clamp(42px, 4vw, 72px);
    line-height: 1;
    font-weight: 700;
}

.hero-content h1 em {
    display: block;

    color: #d99a3d;
    font-style: normal;
}

.hero-tagline {
    margin-bottom: 8px;
    color: #f1c77a;
    font-size: 23px;
    font-weight: 600;
}

.hero-text {
    max-width: 650px;

    margin-bottom: 30px;

    color: rgba(255,255,255,.9);

    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 14px;
  /*  flex-wrap: wrap;*/
}

.hero-buttons .btn {
    padding: 3px 27px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-primary {
    background: #c98a2e;
    border-color: #c98a2e;
    color: #fff;
}

.btn-light-outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
    background: transparent;
}


/* Arrows */

.hero-prev,
.hero-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    width: 48px;
    height: 48px;

    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;

    background: rgba(0,0,0,.25);

    color: #fff;

    font-size: 22px;

    cursor: pointer;

    transition: .3s;
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

.hero-prev:hover,
.hero-next:hover {
    background: #c98a2e;
    border-color: #c98a2e;
}


/* Dots */

.hero-dots {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10;

    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 30px;
    height: 4px;

    padding: 0;

    border: 0;
    border-radius: 5px;

    background: rgba(255,255,255,.5);

    cursor: pointer;

    transition: .3s;
}

.hero-dots button.active {
    width: 45px;
    background: #c98a2e;
}


/* Mobile */

@media (max-width: 767px) {

    .hero-banner {
        height: 350px;
    }

    .hero-content {
        padding: 50px 20px 60px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-text {
        font-size: 15px;
        display: none;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }
}

/* ---------------- ABOUT ---------------- 
.about {
  padding: 70px 0;
}

.about-grid {
  display: flex;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 126px;
  align-items: start;
}

.about h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 18px;
}

.about p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 60ch;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.about-card .mantra {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.about-card .mantra-sub {
  font-size: 0.88rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: block;
}

.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
}

.legal-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}

.legal-list li span:first-child {
  color: var(--text-muted);
}

.legal-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
*/

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: 80px 20px;
    background: #ece8df;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 70px;
}

/* ==========================================
   ABOUT CONTENT
   ========================================== */

.about-content {
    max-width: 700px;
}
/*
.about-label {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #c98a2e;
}*/

.about-content h2 {
    margin: 0 0 25px;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;

    color: #212529;
}

.about-content h2 span {
    color: #10203e;
}

.about-content p {
    margin-bottom: 15px;

    font-size: 16px;
    line-height: 1.8;

    color: #3a3939;
}

.about-content strong {
    color: #212529;
}


/* ==========================================
   ABOUT CARD
   ========================================== */

.about-card {
    padding: 35px;

    background: #f8f9fa;

    border-radius: 20px;

    border: 1px solid #e9ecef;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}


/* ==========================================
   MANTRA
   ========================================== */

.mantra {
    display: block;

    margin-bottom: 6px;

    font-size: 26px;
    font-weight: 700;

    color: #212529;
}

.mantra-sub {
    display: block;

    margin-bottom: 28px;

    font-size: 14px;
    font-weight: 600;

    color: #10203e;
}


/* ==========================================
   LEGAL INFORMATION
   ========================================== */

.legal-list {
    display: grid;
    gap: 0;
}

.legal-item {
    display: grid;
    grid-template-columns: 110px 1fr;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid #dee2e6;
}

.legal-item:first-child {
    border-top: 1px solid #dee2e6;
}

.legal-item span {
    font-size: 14px;
    font-weight: 600;

    color: #3a3939;
}

.legal-item strong {
    font-size: 14px;
    line-height: 1.6;

    color: #212529;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-content {
        max-width: 100%;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 576px) {

    .about {
        padding: 55px 18px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .mantra {
        font-size: 22px;
    }

    .legal-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

}
/* ---------------- SERVICES / PILLARS ---------------- */
.services {
  padding: 70px 0 80px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.services-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 12px;
}

.services-head p {
  color: var(--text-muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-top: 4px solid var(--pillar-color, var(--gold));
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pillar-color, var(--gold));
  color: #fff;
  margin-bottom: 20px;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.pillar-card .hindi {
  display: block;
  font-size: 0.78rem;
  color: var(--pillar-color, var(--gold));
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pillar-seva { --pillar-color: var(--saffron); }
.pillar-shiksha { --pillar-color: var(--leaf); }
.pillar-swasthya { --pillar-color: var(--rust); }
.pillar-paryavaran { --pillar-color: var(--pine); }

/* ==========================================
   Founder Message Section
   ========================================== */

.founder-message-section {
    padding: 20px 20px;
    background: #f8f9fa;
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 70px;
}

/* Content */

.founder-content {
    max-width: 700px;
}
/*
.founder-label {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color:#c98a2e;
}*/

.founder-content h2 {
    margin: 0 0 25px;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    color: #212529;
}

.founder-content h2 span {
    color: #10203e;
}

.founder-content p {
    /*margin-bottom: 12px;*/
    font-size: 16px;
    line-height: 1.8;
    color: #6c757d;
}

/* Founder Details */

.founder-details {
    margin-top: 28px;
}

.founder-details h5 {
    margin: 0 0 5px;

    font-size: 20px;
    font-weight: 700;
    color: #212529;
}

.founder-details p {
    margin: 0;
    color: #24345a;
    font-weight: 600;
}

/* Image 

.founder-image-wrapper {
    display: flex;
    justify-content: center;
}
*/
.founder-image {
    width: 100%;
    max-width: 450px;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.founder-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.founder-image-wrapper h5 {
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
}

/* ==========================================
   Tablet
   ========================================== */

@media (max-width: 900px) {

    .founder-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .founder-content {
        max-width: 100%;
    }

    .founder-image-wrapper {
        justify-content: center;
    }

}

/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 576px) {

    .founder-message-section {
        padding: 55px 18px;
    }

    .founder-content h2 {
        font-size: 32px;
    }

    .founder-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .founder-image {
        height: 380px;
        border-radius: 15px;
    }

}

/* ============================================================
   CHARITABLE FOUNDATION BENEFITS
============================================================= */

.foundation-benefits {
    width: 100%;
    padding: 80px 0;
    background: #fbf7ef;
    overflow: hidden;
}

.foundation-benefits-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;

    display: grid;
    grid-template-columns: 32% 68%;
    align-items: stretch;
}


/* ============================================================
   LEFT INTRO
============================================================= */

.foundation-intro {
    padding: 15px 45px 30px 0;
}

.foundation-eyebrow {
    display: block;
    margin-bottom: 14px;

    font-size: 20px;
    font-weight: 500;
    font-style: italic;

    color: var(--gold);
}

.foundation-intro h2 {
    margin: 0 0 18px;

    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.3;
    font-weight: 700;

    color: #17202a;
}

.foundation-intro h2 span {
    display: block;
}

.foundation-intro p {
    margin: 0 0 28px;

    font-size: 16px;
    line-height: 1.7;

    color: #333;
}

.foundation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 127px;
    padding: 13px 25px;

    border-radius: 7px;

    background: #c98a2e;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: all 0.3s ease;
}

.foundation-btn:hover {
    background: #5f9d32;
    color: #fff;
    transform: translateY(-2px);
}


/* ============================================================
   BENEFITS GRID
============================================================= */

.foundation-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border: 1px solid #ddd;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.foundation-benefit {
    position: relative;

    min-height: 225px;
    padding: 22px 18px 25px;

    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.foundation-benefit:nth-child(2),
.foundation-benefit:nth-child(4) {
    border-right: none;
}

.foundation-benefit:nth-child(3),
.foundation-benefit:nth-child(4) {
    border-bottom: none;
}


/* ============================================================
   TOP ROW
============================================================= */

.benefit-top {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 5px;
}

.benefit-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
}

.benefit-number {
    font-size: 58px;
    line-height: 1;

    font-weight: 300;

    color: transparent;
    -webkit-text-stroke: 1px #ddd;

    opacity: 0.9;
}


/* ============================================================
   BENEFIT CONTENT
============================================================= */

.foundation-benefit h3 {
    margin: 0 0 8px;

    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;

    color: #252525;
}

.foundation-benefit p {
    margin: 0;

    font-size: 15px;
    line-height: 1.55;

    color: #333;
}


/* ============================================================
   HOVER EFFECT
============================================================= */

.foundation-benefit {
    transition: background 0.3s ease;
}

.foundation-benefit:hover {
    background: #fafdf7;
}


/* ============================================================
   TABLET
============================================================= */

@media (max-width: 991px) {

    .foundation-benefits {
        padding: 60px 0;
    }

    .foundation-benefits-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .foundation-intro {
        padding: 0;
        max-width: 700px;
    }

    .foundation-benefits-grid {
        width: 100%;
    }
}


/* ============================================================
   MOBILE
============================================================= */

@media (max-width: 600px) {

    .foundation-benefits {
        padding: 50px 0;
    }

    .foundation-benefits-inner {
        padding: 0 18px;
    }

    .foundation-benefits-grid {
        grid-template-columns: 1fr;
    }

    .foundation-benefit,
    .foundation-benefit:nth-child(3) {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .foundation-benefit:last-child {
        border-bottom: none;
    }

    .foundation-benefit {
        min-height: auto;
    }

    .benefit-number {
        font-size: 48px;
    }

    .foundation-intro h2 {
        font-size: 30px;
    }
}

/********************* gallery *****/
.gallery-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    margin: 0 0 30px;
}

.marquee-gallery {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #fff;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marquee 25s linear infinite;
}

.gallery-item {
    width: 280px;
    height: 190px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Continuous scrolling */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .gallery-item {
        width: 220px;
        height: 150px;
    }

    .marquee-track {
        gap: 15px;
        animation-duration: 20s;
    }
}

/* ---------------- CONTACT ---------------- */
.contact {
  padding: 76px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: stretch;
}

.contact-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 16px;
}

.contact-copy p {
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 26px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
}

.contact-detail:first-of-type {
  border-top: none;
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.contact-detail span,
.contact-detail a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card .eyebrow {
  color: var(--gold-light);
}

.contact-card .eyebrow::before {
  background: var(--gold-light);
}

.contact-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 14px 0 12px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-card .btn-primary {
  background: var(--gold);
  align-self: flex-start;
}

.contact-card .btn-primary:hover {
  background: var(--gold-light);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual .disc {
    max-width: 260px;
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-stats {
    gap: 22px;
  }

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

  .hero-actions .btn,
  .contact-card .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}