/* =========================================
   TRUST PAGE — INDEPENDENT STYLESHEET
   Does not modify the homepage stylesheet
========================================= */

.trust-hero,
.trust-about,
.trust-founder,
.trust-yajna-gallery,
.trust-videos {
    position: relative;
}

.trust-hero {
    padding: 88px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(190, 133, 45, 0.16), transparent 38%),
        linear-gradient(135deg, #fff8eb 0%, #f8ead4 52%, #fffaf2 100%);
    border-bottom: 1px solid rgba(126, 43, 43, 0.12);
}

.trust-hero .container,
.trust-about .container,
.trust-founder .container,
.trust-yajna-gallery .container,
.trust-videos .container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.trust-hero .eyebrow,
.trust-founder .eyebrow,
.trust-yajna-gallery .eyebrow,
.trust-videos .eyebrow {
    color: #a36b22;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trust-hero h1 {
    max-width: 850px;
    margin: 18px 0;
    color: #6d2029;
    font-family: Georgia, "Noto Serif Devanagari", serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.35;
}

.trust-hero h2 {
    margin: 0 0 22px;
    color: #8b4b31;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.5;
}

.trust-intro {
    max-width: 760px;
    color: #51443a;
    font-size: 1.08rem;
    line-height: 1.9;
}

.trust-about {
    padding: 76px 0;
    background: #fffdf8;
}

.trust-founder {
    padding: 78px 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 5% 85%, rgba(189, 139, 60, 0.12), transparent 35%),
        #f7efe2;
}

.trust-yajna-gallery {
    padding: 82px 0;
    background: #fffdf8;
}

.trust-videos {
    padding: 82px 0;
    background: #f7efe2;
}

.trust-founder .section-heading,
.trust-yajna-gallery .section-heading,
.trust-videos .section-heading {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.trust-founder .section-title,
.trust-yajna-gallery .section-title,
.trust-videos .section-title {
    margin: 10px 0 12px;
    color: #6d2029;
    font-family: Georgia, "Noto Serif Devanagari", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.65rem);
    line-height: 1.45;
}

.trust-founder .section-heading h3,
.trust-yajna-gallery .section-heading h3,
.trust-videos .section-heading h3 {
    margin: 0 0 14px;
    color: #8b4b31;
    font-size: 1.12rem;
    font-weight: 500;
}

.trust-founder .section-heading > p:last-child,
.trust-yajna-gallery .section-heading > p:last-child,
.trust-videos .section-heading > p:last-child {
    color: #68584b;
    font-size: 1rem;
    line-height: 1.85;
}

.trust-activities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.trust-activity {
    position: relative;
    padding: 28px 25px;
    overflow: hidden;
    background: #fffaf1;
    border: 1px solid rgba(142, 91, 43, 0.17);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(80, 43, 25, 0.045);
}

.trust-activity::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(#b78232, #7b2730);
    content: "";
}

.trust-activity h3 {
    margin: 0 0 8px;
    color: #762630;
    font-size: 1.15rem;
    line-height: 1.6;
}

.trust-activity h4 {
    margin: 0 0 12px;
    color: #9b6b2b;
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1.6;
}

.trust-activity p,
.trust-founder-content > p {
    margin: 0;
    color: #5f5147;
    font-size: 0.96rem;
    line-height: 1.85;
}

.trust-founder-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 42px;
    max-width: 980px;
    margin: 0 auto;
}

.trust-founder-content > p:last-child {
    grid-column: 1 / -1;
}

.trust-highlight {
    padding: 34px;
    text-align: center;
    background: linear-gradient(145deg, #70232d, #4f1821);
    border: 1px solid rgba(206, 165, 91, 0.6);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(79, 24, 33, 0.15);
}

.trust-highlight-number {
    display: block;
    color: #f3cf85;
    font-family: Georgia, serif;
    font-size: clamp(3.4rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
}

.trust-highlight h3 {
    margin: 12px 0;
    color: #fff8e9;
    font-size: 1.25rem;
}

.trust-highlight p {
    margin: 0;
    color: #f3e4ce;
    font-size: 0.94rem;
    line-height: 1.8;
}

.trust-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.trust-gallery-card {
    grid-column: span 2;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(126, 43, 43, 0.13);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(67, 37, 25, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.trust-gallery-card:first-child {
    grid-column: span 3;
}

.trust-gallery-card:nth-child(2) {
    grid-column: span 3;
}

.trust-image-placeholder {
    display: flex;
    min-height: 245px;
    padding: 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(207, 158, 72, 0.2), transparent 60%),
        linear-gradient(135deg, #f8ead3, #f2dfc1);
    border-bottom: 1px solid rgba(126, 43, 43, 0.12);
}

.trust-image-placeholder span {
    display: inline-block;
    margin-bottom: 12px;
    color: #7b2730;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.trust-image-placeholder p {
    max-width: 240px;
    margin: 0;
    color: #80664a;
    font-size: 0.95rem;
    line-height: 1.7;
}

.trust-gallery-caption {
    padding: 22px 24px 25px;
}

.trust-gallery-caption h3 {
    margin: 0 0 8px;
    color: #70232d;
    font-size: 1.13rem;
}

.trust-gallery-caption p {
    margin: 0;
    color: #6b5b4d;
    font-size: 0.92rem;
    line-height: 1.7;
}

.trust-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(67, 37, 25, 0.12);
}

.trust-video-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid rgba(126, 43, 43, 0.13);
    border-radius: 18px;
    box-shadow: 0 15px 38px rgba(67, 37, 25, 0.08);
}

.trust-video-placeholder {
    display: flex;
    min-height: 320px;
    padding: 28px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(204, 155, 74, 0.2), transparent 55%),
        linear-gradient(135deg, #f2dfc1, #f9eedc);
}

.trust-play-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    place-items: center;
    color: #fffaf0;
    background: #792832;
    border: 2px solid #d4ae65;
    border-radius: 50%;
    font-size: 1.35rem;
    padding-left: 4px;
}

.trust-video-placeholder p {
    margin: 0 0 8px;
    color: #70232d;
    font-size: 1.2rem;
    font-weight: 700;
}

.trust-video-placeholder small {
    color: #80664a;
    line-height: 1.6;
}

.trust-video-feature-copy {
    display: flex;
    padding: 34px;
    flex-direction: column;
    justify-content: center;
}

.trust-video-feature-copy .eyebrow {
    margin: 0 0 12px;
}

.trust-video-feature-copy h3 {
    margin: 0 0 14px;
    color: #70232d;
    font-size: 1.45rem;
    line-height: 1.5;
}

.trust-video-feature-copy > p:last-child {
    margin: 0;
    color: #5f5147;
    font-size: 0.97rem;
    line-height: 1.9;
}

.trust-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.trust-video-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 18px;
    background: #fffdf8;
    border: 1px solid rgba(126, 43, 43, 0.13);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(67, 37, 25, 0.05);
}

.trust-video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(204, 155, 74, 0.2), transparent 60%),
        linear-gradient(135deg, #f8ead3, #f2dfc1);
    border-radius: 10px;
}

.trust-video-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-video-thumbnail span {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    width: 52px;
    height: 52px;
    padding-left: 3px;
    place-items: center;
    color: #fffaf0;
    background: #792832;
    border: 2px solid #d4ae65;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.trust-video-card h3 {
    margin: 0 0 8px;
    color: #70232d;
    font-size: 1.08rem;
}

.trust-video-card p {
    margin: 0;
    color: #6b5b4d;
    font-size: 0.92rem;
    line-height: 1.75;
}


.trust-video-action {
    display: flex;
    margin-top: 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

.trust-video-action > p {
    width: 100%;
    text-align: center;
}

.trust-video-action .btn {
    align-self: center;
}


.trust-video-action > p {
    margin: 0 0 18px;
    color: #68584b;
    line-height: 1.7;
}

.trust-video-action .btn {
    display: inline-flex;
    min-height: 46px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    color: #fffaf0;
    background: #762630;
    border: 1px solid #762630;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease;
}

.trust-video-action .btn:hover {
    background: #571a23;
    transform: translateY(-2px);
}

/* Tablet layout */
@media (max-width: 900px) {
    .trust-activities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-gallery-card,
    .trust-gallery-card:first-child,
    .trust-gallery-card:nth-child(2) {
        grid-column: auto;
    }

    .trust-founder-content {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
        gap: 28px;
    }

    .trust-video-feature {
        grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    .trust-hero {
        padding: 58px 0 48px;
    }

    .trust-hero .container,
    .trust-about .container,
    .trust-founder .container,
    .trust-yajna-gallery .container,
    .trust-videos .container {
        width: calc(100% - 32px);
    }

    .trust-about,
    .trust-founder,
    .trust-yajna-gallery,
    .trust-videos {
        padding: 54px 0;
    }

    .trust-intro {
        font-size: 1rem;
        line-height: 1.8;
    }

    .trust-founder .section-heading,
    .trust-yajna-gallery .section-heading,
    .trust-videos .section-heading {
        margin-bottom: 30px;
    }

    .trust-activities,
    .trust-gallery-grid,
    .trust-founder-content,
    .trust-video-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .trust-founder-content > p:last-child {
        grid-column: auto;
    }

    .trust-activity {
        padding: 24px 22px;
    }

    .trust-highlight {
        padding: 28px 22px;
    }

    .trust-gallery-card,
    .trust-gallery-card:first-child,
    .trust-gallery-card:nth-child(2) {
        grid-column: auto;
    }

    .trust-image-placeholder {
        min-height: 215px;
    }

    .trust-gallery-caption {
        padding: 19px 20px 22px;
    }

    .trust-video-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-video-placeholder {
        min-height: 220px;
    }

    .trust-video-feature-copy {
        padding: 26px 23px;
    }

    .trust-video-thumbnail {
        min-height: 180px;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .trust-gallery-card,
    .trust-video-action .btn {
        transition: none;
    }
}



/* Featured YouTube video sizing */
.trust-video-feature .trust-video-placeholder {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1f1715;
}

.trust-video-feature .trust-video-placeholder iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
}

/* Center and enlarge only trust-main2.jpg */
.trust-image-placeholder img[src*="trust-main2.jpg"] {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}


/* Give only the trust-main2 image more room */
.trust-image-placeholder:has(img[src*="trust-main2.jpg"]) {
    padding: 16px;
}

.trust-image-placeholder img[src*="trust-main2.jpg"] {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}
/* Make only the third Trust gallery card wider */
.trust-gallery-card:has(img[src*="trust-main2.jpg"]) {
    grid-column: 2 / span 4;
}

/* Keep the Grand Yajna gallery card visible on mobile */
@media (max-width: 600px) {
    .trust-gallery-card:has(img[src*="trust-main2.jpg"]) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }
}

/* Prominent Donate section */
.trust-donate {
    padding: 64px 0;
    background: linear-gradient(135deg, #fff8eb 0%, #f3e1c3 100%);
}

.trust-donate-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: #fffdf8;
    border: 2px solid #d4ae65;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(79, 24, 33, 0.12);
}

.trust-donate-card .eyebrow {
    margin: 0 0 12px;
    color: #9b6b2b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.trust-donate-card h2 {
    margin: 0 0 16px;
    color: #70232d;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.25;
}

.trust-donate-card > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #5f5147;
    font-size: 1.08rem;
    line-height: 1.8;
}

.trust-donate-button {
    display: inline-flex;
    min-width: 220px;
    min-height: 58px;
    padding: 16px 32px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: #fffaf0;
    background: #762630;
    border: 2px solid #762630;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(118, 38, 48, 0.22);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, transform 180ms ease,
                box-shadow 180ms ease;
}

.trust-donate-button:hover {
    color: #fffaf0;
    background: #571a23;
    border-color: #571a23;
    box-shadow: 0 12px 24px rgba(87, 26, 35, 0.25);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .trust-donate {
        padding: 42px 0;
    }

    .trust-donate-card {
        padding: 34px 22px;
        border-radius: 16px;
    }

    .trust-donate-button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trust-donate-button {
        transition: none;
    }
}

/* Centre the Yajna card on tablet screens */
@media (min-width: 601px) and (max-width: 1024px) {
    .trust-gallery-card:has(img[src*="trust-main2.jpg"]) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 760px;
        justify-self: center;
    }
}
