/* =====================================================================
   ADDED SECTIONS — Hero Banner Slider, Mission, Footer
   Built to match existing design tokens defined in style.css (:root)
   ===================================================================== */

/* ---------------------------------------------------------------------
   HERO BANNER SLIDER
--------------------------------------------------------------------- */
.am-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Do NOT force display:block on .owl-carousel here — owl.carousel.min.css
   already hides it (display:none) until JS adds .owl-loaded, then shows it
   as a proper carousel. Overriding that with display:block made every raw
   slide <div> render full-height, stacked one under another, any time init
   was slow/blocked — that's the "broken slider" wall of images. Instead we
   hide all slides except the first by default, so if JS is ever delayed
   or fails outright, visitors still see one clean hero, not four stacked. */
.am-hero-slider:not(.owl-loaded) .am-hero-slide {
    display: none;
}

.am-hero-slider:not(.owl-loaded) .am-hero-slide:first-child {
    display: block;
}

.am-hero-slide {
    position: relative;
    width: 100%;
    height: 640px;
}

.am-hero-slide img {
    transition: transform 6s ease;
}

.am-hero-slider.owl-loaded .owl-item.active .am-hero-slide img {
    animation: am-hero-kenburns 6s ease-out forwards;
}

@keyframes am-hero-kenburns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

.am-hero-caption > * {
    opacity: 0;
    transform: translateY(18px);
    animation: am-hero-fade-up 0.7s ease forwards;
}
.am-hero-caption .am-hero-tag   { animation-delay: 0.15s; }
.am-hero-caption h1             { animation-delay: 0.3s; }
.am-hero-caption p              { animation-delay: 0.45s; }
.am-hero-caption .am-hero-actions { animation-delay: 0.6s; }

@keyframes am-hero-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* Autoplay progress bar */
.am-hero-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.18);
    z-index: 5;
}
.am-hero-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--brand-primary);
}
.am-hero-slider.owl-loaded.owl-autoplay-active ~ .am-hero-progress span,
.am-hero .am-hero-progress span.running {
    animation: am-hero-progress-run 6s linear forwards;
}
@keyframes am-hero-progress-run {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Slide counter */
.am-hero-counter {
    position: absolute;
    right: 28px;
    bottom: 26px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.am-hero-counter .am-hero-counter-current {
    color: var(--text-white);
    font-size: 15px;
}

.am-hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.am-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.50) 55%, rgba(17, 17, 17, 0.22) 100%),
        linear-gradient(0deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0) 22%);
}

.am-hero-slide > .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.am-hero-caption {
    max-width: 620px;
    color: var(--text-white);
}

.am-hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--brand-primary);
    border-radius: 999px;
    color: var(--brand-primary);
    background: rgba(176, 141, 60, 0.12);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.am-hero-caption h1 {
    font-family: var(--font-primary);
    font-size: 46px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.am-hero-caption p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 520px;
}

.am-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.am-hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1.5px solid var(--color-white);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: var(--font-size-button, 14px);
    font-weight: 600;
    transition: var(--transition-fast, 0.2s ease);
}

.am-hero-btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Owl Carousel nav/dots override to match brand */
.am-hero .owl-nav button.owl-prev,
.am-hero .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-white) !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast, 0.2s ease);
}

.am-hero .owl-nav button.owl-prev { left: 24px; }
.am-hero .owl-nav button.owl-next { right: 24px; }

.am-hero .owl-nav button.owl-prev:hover,
.am-hero .owl-nav button.owl-next:hover {
    background: var(--brand-primary) !important;
}

.am-hero .owl-dots {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.am-hero .owl-dots .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: var(--transition-fast, 0.2s ease);
}

.am-hero .owl-dots .owl-dot.active span {
    background: var(--brand-primary);
    width: 24px;
    border-radius: 5px;
}

/* ---------------------------------------------------------------------
   MISSION SECTION
--------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   IMPACT STATS STRIP — overlaps the hero's bottom edge, sits on top of
   the fold. Reuses the existing gold/charcoal system, not a new palette.
--------------------------------------------------------------------- */
.am-stats-section {
    position: relative;
    z-index: 5;
    margin-top: -60px;
}

.am-stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-header);
    overflow: hidden;
}

.am-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    text-align: left;
}

.am-stat + .am-stat {
    border-left: 1px solid var(--border-light);
}

.am-stat-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    background: var(--bg-gold-light);
    color: var(--brand-primary);
    font-size: 22px;
}

.am-stat-number {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
}

.am-stat-suffix {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary);
}

.am-stat-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
}

@media (max-width: 991px) {
    .am-stats-section { margin-top: -40px; }
    .am-stats-card { grid-template-columns: repeat(2, 1fr); }
    .am-stat + .am-stat { border-left: none; border-top: 1px solid var(--border-light); }
    .am-stat:nth-child(2) { border-left: 1px solid var(--border-light); }
}

@media (max-width: 575px) {
    .am-stats-section { margin-top: 24px; }
    .am-stats-card { grid-template-columns: 1fr; }
    .am-stat:nth-child(2) { border-left: none; border-top: 1px solid var(--border-light); }
    .am-stat { padding: 22px 20px; }
}

.mission-section {
    padding: 90px 0;
    background: var(--bg-light);
    scroll-margin-top: 100px;
}

.mission-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.mission-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 36px 26px;
    text-align: center;
    transition: var(--transition-fast, 0.25s ease);
}

.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold);
}

.mission-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: var(--radius-round);
    background: var(--bg-gold-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mission-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.mission-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   FOOTER
--------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-black);
    color: rgba(255, 255, 255, 0.65);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-brand img,
.footer-brand .footer-logo {
    display: block;
    width: 120px;
    height: auto;
    max-width: 100%;
}
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 22px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-round);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast, 0.2s ease);
}

.footer-social a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.footer-col h3 {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    transition: var(--transition-fast, 0.2s ease);
}

.footer-col ul li a:hover {
    color: var(--brand-primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--brand-primary);
    margin-top: 3px;
}

.footer-bottom {
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------------
   SCROLL REVEAL (paired with custom.js IntersectionObserver)
--------------------------------------------------------------------- */
.am-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.am-reveal-in {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .am-reveal, .am-hero-caption > *, .am-hero-slide img {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ---------------------------------------------------------------------
   EVENTS GALLERY PREVIEW
--------------------------------------------------------------------- */
.am-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.am-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

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

.am-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 17, 17, 0.65) 0%, rgba(17, 17, 17, 0) 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.am-gallery-item span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.am-gallery-item:hover img { transform: scale(1.08); }
.am-gallery-item:hover::after { opacity: 1; }
.am-gallery-item:hover span { opacity: 1; transform: translateY(0); }

/* =====================================================================
   ABOUT PAGE
   ===================================================================== */

/* ---------------------------------------------------------------------
   PAGE HERO (About / other inner pages)
--------------------------------------------------------------------- */
.page-hero {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.page-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.55) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    color: var(--text-white);
}

.page-hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 700;
    margin: 14px 0 14px;
}

.page-hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 20px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast, 0.2s ease);
}
.page-breadcrumb a:hover { color: var(--brand-primary); }
.page-breadcrumb span[aria-current] { color: var(--brand-primary); }

/* ---------------------------------------------------------------------
   MISSION & VISION
--------------------------------------------------------------------- */
.mv-section {
    padding: 90px 0 40px;
    background: var(--bg-light);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 980px;
    margin: 0 auto;
}

.mv-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 42px 34px;
    transition: var(--transition-fast, 0.25s ease);
}

.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold);
}

.mv-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: var(--radius-round);
    background: var(--bg-gold-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.mv-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   VALUES (reuses .mission-grid / .mission-card, alt background)
--------------------------------------------------------------------- */
.values-section {
    padding: 40px 0 90px;
    background: var(--bg-white);
}

/* ---------------------------------------------------------------------
   TIMELINE
--------------------------------------------------------------------- */
.timeline-section {
    padding: 90px 0;
    background: var(--bg-light);
}

.am-timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.am-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 27px;
    width: 2px;
    background: var(--border-color);
}

.am-timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 44px;
}

.am-timeline-item:last-child { margin-bottom: 0; }

.am-timeline-dot {
    position: absolute;
    left: 15px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-round);
    background: var(--bg-white);
    border: 3px solid var(--brand-primary);
    box-shadow: 0 0 0 4px var(--bg-light);
}

.am-timeline-year {
    display: inline-block;
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.am-timeline-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.am-timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
}

@media screen and (min-width: 900px) {
    .am-timeline::before { left: 50%; transform: translateX(-50%); }

    .am-timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
        margin-bottom: 56px;
    }

    .am-timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
    }

    .am-timeline-item:nth-child(odd) { text-align: right; }
    .am-timeline-item:nth-child(odd) .am-timeline-content p { margin-left: auto; }

    .am-timeline-dot {
        left: auto;
        right: -13px;
        top: 4px;
    }

    .am-timeline-item:nth-child(even) .am-timeline-dot {
        right: auto;
        left: -13px;
    }
}

/* ---------------------------------------------------------------------
   IMPACT STATS
--------------------------------------------------------------------- */
.stats-section {
    padding: 70px 0;
    background: var(--bg-black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-card { color: var(--text-white); }

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: var(--radius-round);
    background: rgba(176, 141, 60, 0.16);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-number {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-suffix {
    font-family: "Playfair Display", serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--brand-primary);
}

.stat-card p {
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------
   TRUSTEES / TEAM
--------------------------------------------------------------------- */
.team-section {
    padding: 90px 0;
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.team-card {
    text-align: center;
    padding: 34px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast, 0.25s ease);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
    border-color: var(--border-gold);
}

.team-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    border-radius: var(--radius-round);
    background: var(--bg-gold-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.team-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--brand-primary);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-profile {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin-top: 10px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------
   ABOUT CTA BANNER
--------------------------------------------------------------------- */
.about-cta {
    padding: 60px 0;
    background: var(--bg-gold-light);
}

.about-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.about-cta-inner h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-cta-inner p {
    color: var(--text-muted);
    font-size: 15px;
}

.about-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.about-cta-actions .am-hero-btn-outline {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.about-cta-actions .am-hero-btn-outline:hover {
    background: var(--text-primary);
    color: var(--color-white);
}

@media screen and (max-width: 991px) {
    .mv-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 767px) {
    .page-hero { height: 300px; }
    .about-cta-inner { text-align: center; justify-content: center; }
}

@media screen and (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */

/* ---------------------------------------------------------------------
   QUICK CONTACT INFO STRIP
--------------------------------------------------------------------- */
.contact-info-section {
    padding: 70px 0 20px;
}

.contact-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -110px;
    position: relative;
    z-index: 2;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 34px rgba(17, 17, 17, 0.10);
    transition: var(--transition-fast, 0.25s ease);
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold);
}

.contact-info-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: var(--radius-round);
    background: var(--bg-gold-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-word;
}

.contact-info-card p a {
    color: var(--text-muted);
    transition: var(--transition-fast, 0.2s ease);
}
.contact-info-card p a:hover { color: var(--brand-primary); }

/* ---------------------------------------------------------------------
   FORM + MAP
--------------------------------------------------------------------- */
.contact-main-section {
    padding: 40px 0 100px;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 34px;
    align-items: start;
}

.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.contact-form-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.contact-form-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.contact-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-alert i { margin-top: 2px; }

.contact-alert-success {
    background: #EAF6EC;
    color: #1E6B33;
    border: 1px solid #BFE4C7;
}

.contact-alert-error {
    background: #FBEAEA;
    color: #A32424;
    border: 1px solid #F1C4C4;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #C0392B;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    transition: var(--transition-fast, 0.2s ease);
}

.form-control::placeholder {
    color: #9A9A96;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(176, 141, 60, 0.15);
}

.form-control.is-invalid {
    border-color: #C0392B;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    display: block;
    color: #C0392B;
    font-size: 12.5px;
    margin-top: 6px;
}

.contact-submit {
    border: none;
    cursor: pointer;
}

/* ---------------------------------------------------------------------
   SIDE: MAP + SOCIAL
--------------------------------------------------------------------- */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.contact-social-card {
    background: var(--bg-black);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--text-white);
}

.contact-social-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-social-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

.contact-social-links a {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}
.contact-social-links a:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

@media screen and (max-width: 991px) {
    .contact-info-strip { grid-template-columns: repeat(2, 1fr); margin-top: -60px; }
    .contact-main-grid { grid-template-columns: 1fr; }
    .contact-form-card { padding: 32px 24px; }
}

@media screen and (max-width: 600px) {
    .contact-info-strip { grid-template-columns: 1fr; margin-top: 20px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media screen and (max-width: 1199px) {
    .am-hero-slide { height: 560px; }
    .am-hero-caption h1 { font-size: 38px; }
    .mission-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .am-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 767px) {
    .am-hero-slide { height: 480px; }
    .am-hero-caption h1 { font-size: 30px; }
    .am-hero-caption p { font-size: 14px; }
    .am-hero .owl-nav { display: none; }
    .am-hero-counter { display: none; }
    .mission-section { padding: 60px 0; }
    .mission-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer { padding-top: 50px; }
    .am-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media screen and (max-width: 480px) {
    .am-hero-slide { height: 420px; }
    .am-hero-caption h1 { font-size: 24px; }
    .am-hero-actions { flex-direction: column; align-items: stretch; }
    .am-hero-actions .btn-primary,
    .am-hero-actions .am-hero-btn-outline { justify-content: center; }
}
/* =====================================================================
   SADH ANOPDASJI MAHARAJ PAGE
   ===================================================================== */
.founder-hero-hindi {
    margin: 6px 0 10px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold-300);
}

.founder-portrait-frame {
    position: relative;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg, 18px);
    background: var(--bg-gold-light);
    overflow: hidden;
}

.founder-portrait-img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg, 18px);
}

.founder-portrait-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 380px;
}

.founder-portrait-placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--green-800);
    color: var(--gold-400);
    font-family: var(--font-display);
    font-size: 64px;
    box-shadow: var(--shadow-gold);
}

/* Shown only if the real photograph fails to load (see onerror handler) */
.founder-portrait-fallback .founder-portrait-placeholder {
    display: flex;
}

.founder-note {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.founder-message-quote {
    max-width: 820px;
    margin: 0 auto 28px;
    border-left: 2px solid var(--gold-500);
    padding-left: 25px;
}

.founder-works-table-wrap {
    overflow-x: auto;
    margin-top: 8px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 14px);
    background: var(--ivory-100);
}

.founder-works-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.founder-works-table th,
.founder-works-table td {
    padding: 16px 18px;
    text-align: left;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.founder-works-table th {
    background: var(--bg-gold-light);
    color: var(--green-800);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 12.5px;
}

.founder-works-table tbody tr:last-child td {
    border-bottom: none;
}

.founder-works-footnote {
    margin-top: 16px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.founder-granth-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.founder-granth-chip {
    padding: 8px 18px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    background: var(--bg-gold-light);
    color: var(--accent-ink);
    font-size: 13.5px;
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .founder-works-table th,
    .founder-works-table td { padding: 12px 14px; font-size: 13.5px; }
    .founder-hero-hindi { font-size: 18px; }
}

/* ---- Trust Deed AJAX reader (sadh-anopdasji-maharaj page only) ----
   Custom component, not shared with anything else on the site. Every
   Prev/Next/page-jump swaps only #tdr-stage's contents via fetch() (see
   the inline script pushed from sadh-anopdasji-maharaj.blade.php) — this
   CSS never needs a "hide below Xpx" escape hatch because it's a plain
   <img>, not a PDF embed, and works the same on any screen size. */
.trust-deed-reader {
    max-width: 620px;
    margin: 8px auto 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    background: var(--ivory-100);
    box-shadow: var(--shadow-card);
}

.tdr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.tdr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: #fff;
    color: var(--text-primary, #222);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.tdr-btn:hover:not(:disabled) {
    background: var(--accent-ink);
    color: #fff;
    border-color: var(--accent-ink);
}

.tdr-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.tdr-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tdr-page-input {
    width: 56px;
    text-align: center;
    padding: 6px 4px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 14px;
    -moz-appearance: textfield;
}

.tdr-page-input::-webkit-outer-spin-button,
.tdr-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tdr-stage {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    background: #f3f1ec;
    overflow: auto;
}

.tdr-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-ink);
}

.tdr-page-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    background: #fff;
    user-select: none;
    -webkit-user-drag: none;
}

.tdr-error {
    margin: 0;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.tdr-retry-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

@media screen and (max-width: 640px) {
    .tdr-toolbar { flex-wrap: wrap; gap: 10px; }
    .tdr-btn { font-size: 13px; padding: 7px 12px; }
    .tdr-stage { min-height: 300px; padding: 10px; }
}

/* =====================================================================
   NGO CONTENT PAGES  (Policies accordion, long-text bodies, footer links)
   Added 2026-09-24. Uses only the tokens defined in style.css :root.
   ===================================================================== */

/* long-form text blocks entered in the admin (policies, aims & objects, project details) */
.am-content-body {
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Policies — one collapsible panel per policy */
.am-policy {
    background: var(--ivory-100);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.am-policy > summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--heading-ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.am-policy > summary::-webkit-details-marker { display: none; }
.am-policy > summary::after {
    content: "+";
    font-size: 1.4rem;
    line-height: 1;
    color: var(--accent-ink);
    flex-shrink: 0;
}
.am-policy[open] > summary::after { content: "\2212"; }
.am-policy > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.am-policy-body {
    padding: 4px 22px 22px;
    color: var(--text-primary);
    line-height: 1.75;
}
.am-policy-date {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

/* footer: transparency / policy links row above the copyright line */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 12px;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}
.footer-legal a:hover { color: var(--gold-300); }
