/* ==========================================================================
   Maa Bageshwari Gayatri Dham – custom styles
   Loaded after the theme stylesheet (see functions.php).

   Contents
   1.  Page layout (wide pages & pages with a sidebar)
   2.  Header
       2.1  Sticky header
       2.2  Logo
       2.3  Desktop menu
       2.4  Desktop dropdown (sub-pages)
       2.5  Donate button
       2.6  Language switcher (TranslatePress)
       2.7  ☰ menu: when it is used
       2.8  ☰ menu: full-screen overlay
   3.  Home slider (Smart Slider 3)
   4.  Home sections (Latest Insights, Upcoming Events, Our Trustees)
   5.  Insights (one post at a time) & sidebar widget
   6.  Events (list, cards, single event)
   7.  Donate page
   8.  About Us / Mission & Vision
   9.  Footer
   10. Background music (ॐ button)
   ========================================================================== */


/* ==========================================================================
   1. Page layout (wide pages & pages with a sidebar)
   Pages whose content uses .has-page-sidebar (Insights, Events, Donate) or
   .is-wide-page (About Us, Mission & Vision).
   ========================================================================== */

/* Tighten the gap between the header and the page title */
main.wp-block-group:has(.has-page-sidebar, .is-wide-page) {
    margin-top: 0 !important;
}
main.wp-block-group:has(.has-page-sidebar, .is-wide-page) > .wp-block-group.alignfull:first-child {
    padding-top: var(--wp--preset--spacing--40) !important;
}
main.wp-block-group:has(.has-page-sidebar, .is-wide-page) .wp-block-post-title:first-child,
main.wp-block-group:has(.has-page-sidebar, .is-wide-page) h1.wp-block-post-title {
    margin-top: 0;
}

/* Left-align the page title, spanning the same width as the content */
main.wp-block-group:has(.has-page-sidebar, .is-wide-page) h1.wp-block-post-title {
    max-width: var(--wp--style--global--wide-size);
    text-align: left;
}


/* ==========================================================================
   2. Header
   ========================================================================== */

/* ---------- 2.1 Sticky header (shrinks slightly once scrolled) ---------- */
header.wp-block-template-part {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 100;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--wp--preset--color--accent-2) 15%, var(--wp--preset--color--accent-1) 50%, var(--wp--preset--color--accent-2) 85%, transparent) 1;
    transition: box-shadow 0.25s ease;
}
header.wp-block-template-part.is-scrolled {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
header.wp-block-template-part > .alignfull .alignwide {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: padding 0.25s ease;
}
header.wp-block-template-part.is-scrolled > .alignfull .alignwide {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* ---------- 2.2 Logo (Site Logo block, gold ring, 76px → 52px when scrolled) ---------- */
header .header-logo {
    margin: 0;
    transition: flex-basis 0.25s ease, width 0.25s ease;
}
header .header-logo img {
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 2px 10px rgba(0, 0, 0, 0.35);
}
header.is-scrolled .header-logo {
    flex-basis: 52px !important;
    width: 52px;
}
header .header-logo.wp-block-site-logo {
    flex: 0 0 76px;
    width: 76px;
    transition: flex-basis 0.25s ease, width 0.25s ease;
}
header.is-scrolled .header-logo.wp-block-site-logo {
    flex-basis: 52px;
    width: 52px;
}
header .header-logo.wp-block-site-logo img {
    width: 100%;
    height: auto;
}
header .header-logo.wp-block-site-logo a {
    display: block;
    width: 100%;
}

/* ---------- 2.3 Desktop menu: gold for the current page and on hover, never underlined ---------- */
header .wp-block-navigation-item__content {
    font-weight: 500;
}
/* Keep the menu on one line as it grows */
header .wp-block-navigation .wp-block-navigation__container {
    flex-wrap: nowrap;
    white-space: nowrap;
}
header .wp-block-navigation a.wp-block-navigation-item__content,
header .wp-block-navigation a.wp-block-navigation-item__content:hover,
header .wp-block-navigation a.wp-block-navigation-item__content:focus,
header .wp-block-navigation a.wp-block-navigation-item__content:active {
    text-decoration: none !important;
    transition: color 0.2s ease;
}
header .wp-block-navigation a.wp-block-navigation-item__content:hover,
header .wp-block-navigation a.wp-block-navigation-item__content:focus-visible,
header .wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content,
header .wp-block-navigation .current-menu-ancestor > a.wp-block-navigation-item__content,
header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation__submenu-icon {
    color: var(--wp--preset--color--accent-1) !important;
}

/* ---------- 2.4 Desktop dropdown (sub-pages, e.g. About Us → Mission & Vision) ---------- */
header .wp-block-navigation .wp-block-navigation__submenu-container {
    min-width: 220px !important;
    padding: 6px 0;
    border: 1px solid rgba(254, 209, 52, 0.55) !important;
    border-radius: 8px;
    background-color: var(--wp--preset--color--accent-3) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
header .wp-block-navigation .wp-block-navigation__submenu-container a {
    padding: 0.6em 1.1em !important;
    color: var(--wp--preset--color--surface-white) !important;
}
header .wp-block-navigation .wp-block-navigation__submenu-container a:hover,
header .wp-block-navigation .wp-block-navigation__submenu-container a:focus-visible {
    background-color: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--accent-1) !important;
}
/* Current page inside the dropdown: soft gold highlight (same as the ☰ menu) */
header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .current-menu-item > a {
    background-color: rgba(254, 209, 52, 0.14);
}
/* Open just below the header's gold line instead of over the header.
   Gaps = header bottom − menu item bottom (normal / scrolled header). */
header .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child > .wp-block-navigation__submenu-container {
    top: calc(100% + 41px) !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
header.is-scrolled .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child > .wp-block-navigation__submenu-container {
    top: calc(100% + 26px) !important;
}
/* Invisible bridge over that gap so the dropdown stays open while the pointer moves down to it */
header .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child > .wp-block-navigation__submenu-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 44px;
}

/* ---------- 2.5 Donate button (gold pill; a normal menu item where the button is hidden) ---------- */
header .header-cta {
    margin-left: var(--wp--preset--spacing--30);
}
header .header-cta .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    min-height: 45px; /* same height as the language switcher */
    box-sizing: border-box;
    padding: 0.55em 1.3em;
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
header .header-cta .wp-block-button__link:hover,
header .header-cta .wp-block-button__link:focus-visible {
    background-color: var(--wp--preset--color--accent-2) !important;
    color: var(--wp--preset--color--accent-3) !important;
    transform: translateY(-1px);
}
header .header-cta .wp-block-button__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-1) !important;
    outline-offset: 3px;
}
/* On the Donate page itself: white "you are here" ring */
body.is-donate-page header .header-cta .wp-block-button__link {
    box-shadow: 0 0 0 2px var(--wp--preset--color--surface-white);
}
/* Wide screens: the gold button replaces the "Donate" menu item */
@media (min-width: 1101px) {
    header .wp-block-pages-list__item:has(> a[href$="/donate/"]) {
        display: none;
    }
}
/* Narrower screens: hide the button (Donate is in the menu instead) */
@media (max-width: 1100px) {
    header .header-cta {
        display: none;
    }
}

/* ---------- 2.6 Language switcher (TranslatePress), matched to the menu ---------- */
header .header-language-switcher {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 8px 0 0 var(--wp--preset--spacing--30);
    font-family: inherit;
}
.header-language-switcher .trp-shortcode-switcher__wrapper {
    --bg: var(--wp--preset--color--accent-3) !important;
    --bg-hover: var(--wp--preset--color--primary-dark) !important;
    --text: var(--wp--preset--color--surface-white) !important;
    --text-hover: var(--wp--preset--color--accent-1) !important;
    --border: 1px solid rgba(254, 209, 52, 0.55) !important;
    --border-color: rgba(254, 209, 52, 0.55) !important;
    --border-radius: 8px !important;
    --font-size: var(--wp--preset--font-size--medium) !important;
}
.header-language-switcher .trp-shortcode-switcher {
    padding: 4px 0;
    font-family: inherit;
}
.header-language-switcher .trp-language-item {
    font-family: inherit;
    font-weight: 500;
    color: var(--text);
}
.header-language-switcher .trp-shortcode-overlay.is-open {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
/* Gold on hover / open / keyboard focus */
.header-language-switcher .trp-shortcode-overlay {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header-language-switcher .trp-shortcode-overlay:hover,
.header-language-switcher .trp-shortcode-overlay.is-open,
.header-language-switcher .trp-shortcode-overlay:focus-within {
    border-color: var(--wp--preset--color--accent-1) !important;
    box-shadow: 0 0 0 1px var(--wp--preset--color--accent-1);
}
.header-language-switcher .trp-shortcode-overlay:hover .trp-language-item__current .trp-language-item-name,
.header-language-switcher .trp-shortcode-overlay.is-open .trp-language-item__current .trp-language-item-name,
.header-language-switcher .trp-shortcode-overlay:focus-within .trp-language-item__current .trp-language-item-name {
    color: var(--wp--preset--color--accent-1) !important;
}
.header-language-switcher .trp-shortcode-overlay:hover .trp-shortcode-arrow path,
.header-language-switcher .trp-shortcode-overlay.is-open .trp-shortcode-arrow path,
.header-language-switcher .trp-shortcode-overlay:focus-within .trp-shortcode-arrow path {
    stroke: var(--wp--preset--color--accent-1) !important;
}
.header-language-switcher .trp-language-item,
.header-language-switcher .trp-language-item:hover {
    text-decoration: none !important;
}
.header-language-switcher .trp-language-item-name {
    transition: color 0.2s ease;
}
/* Narrower screens: show only the flag */
@media (max-width: 900px) {
    header .header-language-switcher .trp-language-item-name {
        display: none;
    }
    header .header-language-switcher .trp-language-item {
        padding: 7px 10px;
    }
}

/* ---------- 2.7 ☰ menu: also on tablets (WordPress only uses it below 600px) ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
    header .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex !important;
    }
    header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none !important;
    }
}

/* ---------- 2.8 ☰ menu: full-screen overlay ---------- */
header .wp-block-navigation__responsive-container.is-menu-open {
    padding: 0 !important;
    background: linear-gradient(160deg, var(--wp--preset--color--accent-3) 0%, var(--wp--preset--color--primary-dark) 100%) !important;
    animation: mbgd-menu-in 0.28s ease-out both;
}
/* Faint ॐ watermark */
header .wp-block-navigation__responsive-container.is-menu-open::after {
    content: "ॐ";
    position: absolute;
    right: -0.1em;
    bottom: -0.15em;
    font-size: 16rem;
    line-height: 1;
    color: rgba(254, 209, 52, 0.06);
    pointer-events: none;
}
@keyframes mbgd-menu-in {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: 18px 24px 32px;
}
/* Logo in the top bar */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: url("/wp-content/uploads/2026/10/maa_bageshwari_gayatri_dham_logo_256.png") center / cover no-repeat;
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 4px 12px rgba(0, 0, 0, 0.35);
}
/* Close button: gold-ringed circle */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    top: 24px !important;
    right: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--wp--preset--color--accent-1) !important;
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1);
    transition: background-color 0.2s ease;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
    background: rgba(254, 209, 52, 0.15);
}

/* Items: full-width rows, left aligned, gold › arrow */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 6px !important;
    align-items: stretch !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item {
    align-items: stretch !important;
    border-bottom: 1px solid rgba(254, 209, 52, 0.18);
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > .wp-block-navigation-item__content {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px !important;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--wp--preset--color--surface-white);
    text-align: left;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--wp--preset--color--accent-1);
    opacity: 0.8;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
    color: var(--wp--preset--color--accent-1) !important;
}
/* No underline on links or their › arrows (gold colour shows hover/focus) */
header .wp-block-navigation__responsive-container.is-menu-open a,
header .wp-block-navigation__responsive-container.is-menu-open a:hover,
header .wp-block-navigation__responsive-container.is-menu-open a:focus,
header .wp-block-navigation__responsive-container.is-menu-open a:active {
    text-decoration: none !important;
}
header .wp-block-navigation__responsive-container.is-menu-open a::after {
    display: inline-block;
    text-decoration: none !important;
}
/* Focus ring only for keyboard users */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus:not(:focus-visible) {
    outline: none !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
    outline: 2px solid rgba(254, 209, 52, 0.7) !important;
    outline-offset: -2px;
    border-radius: 8px;
}

/* Current page: gold with a gold bar on the left */
header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
    padding-left: 18px !important;
    color: var(--wp--preset--color--accent-1) !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
    padding-left: 18px !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--wp--preset--color--accent-1);
}
/* Parent of the current sub-page (e.g. About Us while on Mission & Vision) */
header .wp-block-navigation__responsive-container.is-menu-open .current-menu-ancestor > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--accent-1) !important;
}

/* Sub-pages: a nested, indented group with a gold line on the left */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .has-child > .wp-block-navigation-item__content {
    padding-bottom: 10px !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    display: block !important;
    width: 100%;
    min-width: 0 !important;
    margin: 0 0 14px 6px !important;
    padding: 4px 0 !important;
    border: none !important;
    border-left: 2px solid rgba(254, 209, 52, 0.55) !important;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none;
    text-align: left;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before {
    display: none;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
    display: block !important;
    width: 100%;
    background: transparent !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
    display: block !important;
    padding: 4px 0 4px 18px !important;
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    text-align: left !important;
    opacity: 1 !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a.wp-block-navigation-item__content {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 16px !important;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem !important;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88) !important;
}
/* Sub-pages use a › arrow, not the current-page bar */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a.wp-block-navigation-item__content::before {
    content: none !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a.wp-block-navigation-item__content::after {
    content: "›";
    font-size: 1.35rem;
    line-height: 1;
    color: var(--wp--preset--color--accent-1);
    opacity: 0.7;
}
/* Current sub-page: soft gold highlight */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .current-menu-item > a.wp-block-navigation-item__content {
    padding-left: 16px !important;
    background: rgba(254, 209, 52, 0.14);
    color: var(--wp--preset--color--accent-1) !important;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
    display: none !important;
}

/* Donate: gold button at the end of the list (white ring on the Donate page) */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item:has(> a[href$="/donate/"]) {
    margin-top: 22px;
    border-bottom: none;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > a[href$="/donate/"] {
    justify-content: center !important;
    padding: 13px 20px !important;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-1);
    color: var(--wp--preset--color--accent-3) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > a[href$="/donate/"]::after {
    content: "🙏";
    margin-left: 8px;
    font-size: 1rem;
    opacity: 1;
}
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > a[href$="/donate/"]:hover {
    background: var(--wp--preset--color--accent-2);
}
body.is-donate-page header .wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list > .wp-block-navigation-item > a[href$="/donate/"] {
    box-shadow: 0 0 0 2px var(--wp--preset--color--surface-white), 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    header.wp-block-template-part,
    header.wp-block-template-part > .alignfull .alignwide,
    header .header-logo,
    header .header-cta .wp-block-button__link {
        transition: none;
    }
    header .wp-block-navigation__responsive-container.is-menu-open { animation: none; }
}


/* ==========================================================================
   3. Home slider (Smart Slider 3)
   ========================================================================== */

/* Slider container: no gap below the header */
.n2_clear {
    margin-top: 0;
}

/* Arrows: round crimson buttons with a gold ring (shown on hover) */
.n2-ss-slider .nextend-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    background: rgba(77, 0, 2, 0.78);
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 6px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.n2-ss-slider .nextend-arrow img {
    width: 22px !important;
    height: 22px !important;
}
.n2-ss-slider .nextend-arrow:hover,
.n2-ss-slider .nextend-arrow:focus-visible {
    background: var(--wp--preset--color--accent-3);
    transform: scale(1.08);
}

/* Dots: soft white, the active one becomes a gold pill */
.n2-ss-slider .nextend-bullet-bar {
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(48, 0, 1, 0.45);
    backdrop-filter: blur(2px);
}
.n2-ss-slider .nextend-bullet-bar .n2-bullet {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.n2-ss-slider .nextend-bullet-bar .n2-bullet.n2-active {
    width: 26px !important;
    background: var(--wp--preset--color--accent-1) !important;
}

/* Soft shade at the bottom edge so the dots stay visible on bright slides */
.n2-ss-slider .n2-ss-slide-backgrounds::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18%;
    background: linear-gradient(to top, rgba(48, 0, 1, 0.35), transparent);
    pointer-events: none;
    z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
    .n2-ss-slider .nextend-arrow,
    .n2-ss-slider .nextend-bullet-bar .n2-bullet { transition: none; }
}


/* ==========================================================================
   4. Home sections (Latest Insights, Upcoming Events, Our Trustees)
   Event cards themselves are in section 6.
   ========================================================================== */

/* Balanced spacing and a gold accent under the section headings */
.latest-posts-section,
.upcoming-events-section {
    padding-top: var(--wp--preset--spacing--50) !important;
    padding-bottom: var(--wp--preset--spacing--50) !important;
}
.latest-posts-section > .wp-block-heading,
.upcoming-events-section > .wp-block-heading {
    margin-bottom: var(--wp--preset--spacing--40);
}
.latest-posts-section > .wp-block-heading::after,
.upcoming-events-section > .wp-block-heading::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin: 0.6rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--accent-2), var(--wp--preset--color--accent-1));
}
.latest-posts-section .latest-posts-grid,
.upcoming-events-section .mbgd-events {
    margin-top: 0 !important;
}

/* Latest Insights cards */
.latest-posts-section .latest-post-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(77, 0, 2, 0.08);
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.latest-posts-section .latest-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(43, 26, 22, 0.16);
}
.latest-posts-section .latest-post-card .wp-block-post-featured-image {
    margin: 0;
    width: 100%;
}
.latest-posts-section .latest-post-card .wp-block-post-title a {
    color: var(--wp--preset--color--accent-3);
    text-decoration: none;
}
.latest-posts-section .latest-post-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--accent-2);
}
.latest-posts-section .wp-block-post-excerpt__more-link {
    color: var(--wp--preset--color--accent-3);
    font-weight: 600;
    text-decoration: none;
}

/* Fallback thumbnail (site logo on crimson) for posts without a featured image */
.latest-post-thumb--fallback a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--primary-dark));
}
.latest-post-thumb--fallback img {
    width: auto;
    max-width: 40%;
    max-height: 70%;
    object-fit: contain;
}

/* Our Trustees */
.trustees-section {
    padding-top: var(--wp--preset--spacing--50) !important;
    padding-bottom: var(--wp--preset--spacing--50) !important;
}
.trustees-section > .wp-block-heading {
    margin-bottom: 0;
}
.trustees-section > .wp-block-heading::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin: 0.6rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--accent-2), var(--wp--preset--color--accent-1));
}
.trustees-intro {
    margin-top: var(--wp--preset--spacing--20) !important;
    margin-bottom: var(--wp--preset--spacing--40) !important;
    color: var(--wp--preset--color--accent-4);
}
.mbgd-trustees {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (max-width: 1023px) {
    .mbgd-trustees { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .mbgd-trustees { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
}
.mbgd-trustee {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
    background: var(--wp--preset--color--surface-white);
    border: 1px solid rgba(77, 0, 2, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mbgd-trustee:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(43, 26, 22, 0.16);
}
.mbgd-trustee__photo {
    width: 120px;
    max-width: 100%;
    aspect-ratio: 1;
    margin-bottom: var(--wp--preset--spacing--30);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--primary-dark));
    box-shadow: 0 0 0 3px var(--wp--preset--color--accent-1), 0 6px 16px rgba(0, 0, 0, 0.2);
}
.mbgd-trustee__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mbgd-trustee__name {
    margin: 0;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    line-height: 1.3;
    color: var(--wp--preset--color--accent-3);
}
.mbgd-trustee__role {
    margin: 0.4rem 0 0;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-5);
    color: var(--wp--preset--color--accent-4);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .latest-posts-section .latest-post-card { transition: none; }
    .latest-posts-section .latest-post-card:hover { transform: none; }
    .mbgd-trustee { transition: none; }
    .mbgd-trustee:hover { transform: none; }
}


/* ==========================================================================
   5. Insights (one post at a time) & sidebar widget
   ========================================================================== */

/* Previous / Next buttons */
.blog-single-view .wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--50);
    padding-top: var(--wp--preset--spacing--40);
    border-top: 1px solid rgba(77, 0, 2, 0.12);
}
.blog-single-view .wp-block-query-pagination a {
    display: inline-block;
    padding: 0.6em 1.2em;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--surface-white);
    text-decoration: none;
    font-weight: 600;
}
.blog-single-view .wp-block-query-pagination a:hover,
.blog-single-view .wp-block-query-pagination a:focus-visible {
    background: var(--wp--preset--color--primary-dark);
}
.blog-single-view .wp-block-query-pagination-next {
    margin-left: auto;
}

/* Sidebar: "Latest Insights" widget */
.sidebar-latest-posts {
    border: 1px solid rgba(77, 0, 2, 0.08);
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
}
.sidebar-latest-posts .wp-block-heading {
    margin-top: 0;
    padding-bottom: var(--wp--preset--spacing--20);
    border-bottom: 2px solid var(--wp--preset--color--accent-2);
}
.sidebar-latest-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-latest-posts__list > li + li {
    margin-top: var(--wp--preset--spacing--30);
    padding-top: var(--wp--preset--spacing--30);
    border-top: 1px solid rgba(77, 0, 2, 0.08);
}
.sidebar-latest-posts .sidebar-post-thumb {
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}
.sidebar-latest-posts .sidebar-post-thumb img {
    border-radius: 8px;
}
.sidebar-latest-posts .latest-post-thumb--fallback,
.sidebar-latest-posts .latest-post-thumb--fallback a {
    width: 72px;
    height: 72px;
    aspect-ratio: 1;
}
.sidebar-latest-posts .latest-post-thumb--fallback img {
    max-width: 70%;
}
.sidebar-latest-posts .wp-block-post-title a {
    color: var(--wp--preset--color--accent-3);
    text-decoration: none;
}
.sidebar-latest-posts .wp-block-post-title a:hover {
    color: var(--wp--preset--color--accent-2);
}


/* ==========================================================================
   6. Events (list, cards, single event)
   ========================================================================== */

/* Upcoming Events page: list of horizontal cards */
.mbgd-events-intro {
    color: var(--wp--preset--color--accent-4);
}
.mbgd-events {
    list-style: none;
    margin: var(--wp--preset--spacing--50) 0 0;
    padding: 0;
    display: grid;
    gap: var(--wp--preset--spacing--40);
}
.mbgd-event {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    overflow: hidden;
    background: var(--wp--preset--color--surface-white);
    border: 1px solid rgba(77, 0, 2, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mbgd-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(43, 26, 22, 0.16);
}
.mbgd-event__media {
    position: relative;
    display: block;
    min-height: 180px;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--primary-dark));
}
.mbgd-event__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Date badge, e.g. "18 OCT" */
.mbgd-event__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--surface-white);
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    text-align: center;
}
.mbgd-event__day {
    font-size: 1.6rem;
    font-weight: 700;
}
.mbgd-event__month {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent-1);
}
.mbgd-event__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--wp--preset--spacing--40);
}
.mbgd-event__title {
    margin: 0;
    font-size: var(--wp--preset--font-size--large);
}
.mbgd-event__title a {
    color: var(--wp--preset--color--accent-3);
    text-decoration: none;
}
.mbgd-event__title a:hover {
    color: var(--wp--preset--color--accent-2);
}
.mbgd-event__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-4);
}
.mbgd-event__excerpt {
    margin: 0;
    font-size: var(--wp--preset--font-size--small);
}
.mbgd-event__more {
    margin-top: auto;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.4;
    color: var(--wp--preset--color--accent-3);
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 599px) {
    .mbgd-event {
        grid-template-columns: 1fr;
    }
    .mbgd-event__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

/* Home page: events as vertical cards (matches the Latest Insights cards) */
.mbgd-events--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 0;
}
@media (max-width: 899px) {
    .mbgd-events--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .mbgd-events--cards { grid-template-columns: 1fr; }
}
.mbgd-events--cards .mbgd-event {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}
.mbgd-events--cards .mbgd-event__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.mbgd-events--cards .mbgd-event__body {
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.mbgd-events--cards .mbgd-event:hover {
    transform: translateY(-4px);
}

/* Events & Celebrations page: Past Events (same cards as upcoming, plus a "Completed" tag) */
.mbgd-past-events {
    margin-top: var(--wp--preset--spacing--60);
}
.mbgd-past-events .mbgd-events {
    margin-top: 0;
}
.mbgd-event__status {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-5);
    color: var(--wp--preset--color--accent-4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(77, 0, 2, 0.15);
}
.mbgd-past-events__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: var(--wp--preset--spacing--40);
}
.mbgd-past-events__link {
    color: var(--wp--preset--color--accent-3);
    font-weight: 600;
    text-decoration: none;
}
.mbgd-past-events__link:hover,
.mbgd-past-events__link:focus-visible {
    color: var(--wp--preset--color--accent-2);
}
.mbgd-past-events__link--older {
    margin-left: auto;
}

/* Single event: date/time/venue box above the content */
.mbgd-event-details {
    list-style: none;
    margin: 0 0 var(--wp--preset--spacing--40);
    padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
    background: var(--wp--preset--color--accent-5);
    border-left: 4px solid var(--wp--preset--color--accent-2);
    border-radius: 8px;
}
.mbgd-event-details li + li {
    margin-top: 0.3rem;
}
.mbgd-event-details strong {
    color: var(--wp--preset--color--accent-3);
}
/* Single event: hide the blog "Written by … in …" line (events have no author/category) */
body.single-mbgd_event main .wp-block-group.has-small-font-size.is-layout-flex {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .mbgd-event { transition: none; }
    .mbgd-event:hover { transform: none; }
}


/* ==========================================================================
   7. Donate page
   ========================================================================== */

.mbgd-donate-card {
    border: 1px solid rgba(77, 0, 2, 0.08);
    border-top: 4px solid var(--wp--preset--color--accent-1);
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
}
.mbgd-donate-card > .wp-block-heading {
    margin-top: 0;
}
.mbgd-donate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--30);
    text-align: center;
}
.mbgd-donate p {
    margin: 0;
}

/* QR code */
.mbgd-donate__qr {
    margin: 0;
}
.mbgd-donate__qr img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    padding: 10px;
    background: #fff;
    border: 2px solid var(--wp--preset--color--accent-1);
    border-radius: 12px;
}
.mbgd-donate__qr figcaption {
    margin-top: 0.5rem;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-4);
}

/* UPI ID with Copy button */
.mbgd-donate__id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: var(--wp--preset--color--accent-5);
}
.mbgd-donate__label {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-4);
}
.mbgd-donate__vpa {
    font-family: inherit;
    font-weight: 700;
    color: var(--wp--preset--color--accent-3);
    word-break: break-all;
}
.mbgd-donate__copy {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--wp--preset--color--accent-3);
    border-radius: 999px;
    background: transparent;
    color: var(--wp--preset--color--accent-3);
    font: inherit;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    cursor: pointer;
}
.mbgd-donate__copy:hover,
.mbgd-donate__copy:focus-visible {
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--surface-white);
}
.mbgd-donate__name,
.mbgd-donate__hint,
.mbgd-donate__desktop {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-4);
}

/* Tap-to-pay amounts and button */
.mbgd-donate__amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}
.mbgd-donate__amount {
    padding: 0.5rem 1rem;
    border: 2px solid var(--wp--preset--color--accent-1);
    border-radius: 999px;
    color: var(--wp--preset--color--accent-3);
    font-weight: 700;
    text-decoration: none;
}
.mbgd-donate__amount:hover,
.mbgd-donate__amount:focus-visible {
    background: var(--wp--preset--color--accent-1);
}
.mbgd-donate__pay {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-3);
    color: var(--wp--preset--color--surface-white);
    font-weight: 600;
    text-decoration: none;
}
.mbgd-donate__pay:hover,
.mbgd-donate__pay:focus-visible {
    background: var(--wp--preset--color--primary-dark);
    color: var(--wp--preset--color--accent-1);
}
/* Tap-to-pay links only work on phones; show the "scan the QR" hint everywhere else */
.mbgd-donate__tap {
    display: none;
}
@media (hover: none) and (pointer: coarse) {
    .mbgd-donate__tap {
        display: block;
    }
    .mbgd-donate__desktop {
        display: none;
    }
}

/* Admin note (no UPI ID set) and sample/preview mode */
.mbgd-donate--setup {
    padding: 0.8rem 1rem;
    border: 2px dashed var(--wp--preset--color--accent-2);
    border-radius: 10px;
    text-align: left;
}
.mbgd-donate__sample {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-5);
    border: 1px dashed var(--wp--preset--color--accent-2);
    color: var(--wp--preset--color--accent-4);
    font-size: var(--wp--preset--font-size--small);
}
.mbgd-donate--sample [aria-disabled="true"] {
    cursor: not-allowed;
}


/* ==========================================================================
   8. About Us / Mission & Vision
   ========================================================================== */

.mbgd-lead {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.5;
    color: var(--wp--preset--color--accent-3);
}

/* Section headings with a gold underline */
.mbgd-section-title {
    margin-top: var(--wp--preset--spacing--60);
    margin-bottom: var(--wp--preset--spacing--30);
}
.mbgd-section-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    margin-top: 0.6rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--accent-2), var(--wp--preset--color--accent-1));
}
.has-text-align-center.mbgd-section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Info cards grid (What We Do / Our Mission) */
.mbgd-info-grid {
    gap: 1.2rem !important;
}
@media (min-width: 900px) {
    .mbgd-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 600px) and (max-width: 899px) {
    .mbgd-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 599px) {
    .mbgd-info-grid { grid-template-columns: 1fr !important; }
}
.mbgd-info-card {
    padding: var(--wp--preset--spacing--40);
    background: var(--wp--preset--color--surface-white);
    border: 1px solid rgba(77, 0, 2, 0.08);
    border-top: 4px solid var(--wp--preset--color--accent-1);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(43, 26, 22, 0.08);
}
.mbgd-info-card > * {
    margin-top: 0;
    margin-bottom: 0;
}
.mbgd-info-card > * + * {
    margin-top: 0.5rem;
}
.mbgd-info-card .mbgd-info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent-5);
    font-size: 1.6rem;
    line-height: 1;
}
.mbgd-info-card h3 {
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--accent-3);
}
.mbgd-info-card p:not(.mbgd-info-card__icon) {
    font-size: var(--wp--preset--font-size--small);
}
.mbgd-info-card__num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--wp--preset--color--accent-2);
}

/* Vision statement (crimson panel) */
.mbgd-vision {
    position: relative;
    margin: var(--wp--preset--spacing--40) 0 0;
    padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--primary-dark));
    color: var(--wp--preset--color--surface-white);
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1) inset, 0 10px 28px rgba(43, 26, 22, 0.2);
    text-align: center;
}
.mbgd-vision p {
    margin: 0;
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.5;
}
.mbgd-vision cite {
    display: block;
    margin-top: 0.8rem;
    font-style: normal;
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--accent-1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Core values chips */
.mbgd-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mbgd-values li {
    padding: 0.55rem 1.1rem;
    border: 2px solid var(--wp--preset--color--accent-1);
    border-radius: 999px;
    background: var(--wp--preset--color--surface-white);
    color: var(--wp--preset--color--accent-3);
    font-weight: 600;
}
.mbgd-values li span {
    margin-left: 0.3rem;
    font-weight: 400;
    color: var(--wp--preset--color--accent-4);
}
/* Hindi site: the label is already Hindi, so hide the duplicate Hindi word */
html[lang^="hi"] .mbgd-values li span {
    display: none;
}

/* Call-to-action box ("Be part of the change", "Our Mission & Vision") */
.mbgd-cta-band {
    margin-top: var(--wp--preset--spacing--60) !important;
    padding: var(--wp--preset--spacing--50);
    border-radius: 16px;
    background: var(--wp--preset--color--accent-5);
    text-align: center;
}
.mbgd-cta-band > * {
    margin-top: 0;
}
.mbgd-cta-band p {
    font-size: var(--wp--preset--font-size--medium);
    color: var(--wp--preset--color--accent-4);
}
.mbgd-cta-band .wp-block-heading {
    color: var(--wp--preset--color--accent-3);
}
.mbgd-cta-band > .wp-block-heading {
    margin-bottom: 0.4rem;
}
.mbgd-cta-band > p {
    margin-bottom: var(--wp--preset--spacing--30);
}
.mbgd-cta-band > .wp-block-buttons {
    gap: 0.8rem;
    margin-top: 0;
}


/* ==========================================================================
   9. Footer
   ========================================================================== */

footer.wp-block-template-part {
    position: relative;
    background: linear-gradient(180deg, var(--wp--preset--color--accent-3) 0%, var(--wp--preset--color--primary-dark) 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--wp--preset--color--accent-2) 15%, var(--wp--preset--color--accent-1) 50%, var(--wp--preset--color--accent-2) 85%, transparent) 1;
    color: rgba(255, 255, 255, 0.85);
}
.site-footer {
    font-size: var(--wp--preset--font-size--small);
}
.site-footer p {
    margin: 0;
}

/* Brand column: logo, name, description, "Support our seva" */
.footer-logo {
    margin: 0 0 var(--wp--preset--spacing--20);
}
.footer-logo img {
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.footer-logo.wp-block-site-logo {
    width: 84px;
}
.footer-logo.wp-block-site-logo img {
    width: 100%;
    height: auto;
}
.footer-logo.wp-block-site-logo a {
    display: block;
    width: 100%;
}
.footer-site-name {
    margin-bottom: 0.4rem !important;
    color: var(--wp--preset--color--surface-white);
    font-size: var(--wp--preset--font-size--large);
    font-weight: 600;
    line-height: 1.25;
}
.footer-about {
    max-width: 340px;
    line-height: 1.6;
}
.footer-cta {
    margin-top: var(--wp--preset--spacing--30);
}
.footer-cta .wp-block-button__link {
    padding: 0.55em 1.3em;
    border-radius: 999px;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}
.footer-cta .wp-block-button__link:hover,
.footer-cta .wp-block-button__link:focus-visible {
    background-color: var(--wp--preset--color--accent-2) !important;
}

/* Link columns (Explore, Get Involved) */
.footer-col-title {
    margin: 0 0 var(--wp--preset--spacing--30);
    color: var(--wp--preset--color--accent-1) !important;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer-col-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 0.5rem;
    background: var(--wp--preset--color--accent-2);
}
.footer-links {
    gap: 0.7rem !important;
}
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
    color: var(--wp--preset--color--accent-1);
    padding-left: 4px;
}
.site-footer .footer-links .wp-block-navigation-item__content {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 400;
}

/* Contact Us column: address, email, phone */
#contact {
    scroll-margin-top: 110px; /* keep the heading clear of the sticky header when linked to */
}
.footer-address {
    line-height: 1.7;
}
.footer-contact-list {
    margin-top: var(--wp--preset--spacing--20) !important;
    line-height: 2;
}
.footer-contact-item span[aria-hidden="true"] {
    display: inline-block;
    width: 1.3em;
    color: var(--wp--preset--color--accent-1);
}
.site-footer .footer-contact-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}
.site-footer .footer-contact-list a:hover,
.site-footer .footer-contact-list a:focus-visible {
    color: var(--wp--preset--color--accent-1);
}

/* Bottom bar: © line and blessing */
.footer-bottom {
    margin-top: var(--wp--preset--spacing--50) !important;
    padding-top: var(--wp--preset--spacing--30);
    border-top: 1px solid rgba(254, 209, 52, 0.25);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer-blessing {
    color: var(--wp--preset--color--accent-1);
}

@media (max-width: 781px) {
    .footer-columns {
        row-gap: var(--wp--preset--spacing--50);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.4rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-links a {
        transition: none;
    }
}


/* ==========================================================================
   10. Background music (ॐ button and "Tap anywhere to hear…" hint)
   ========================================================================== */

.mbgd-music-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wp--preset--color--accent-3), var(--wp--preset--color--primary-dark));
    color: var(--wp--preset--color--accent-1);
    box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 6px 18px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mbgd-music-toggle:hover,
.mbgd-music-toggle:focus-visible {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px var(--wp--preset--color--accent-1), 0 8px 22px rgba(0, 0, 0, 0.35);
}
.mbgd-music-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-2);
    outline-offset: 4px;
}
.mbgd-music-toggle__om {
    font-size: 1.7rem;
    line-height: 1;
}

/* Playing: soft glow ring + small equaliser bars */
.mbgd-music-toggle.is-playing {
    animation: mbgd-om-glow 2.4s ease-in-out infinite;
}
.mbgd-music-toggle__bars {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
    padding: 3px 4px;
    border-radius: 999px;
    background: var(--wp--preset--color--accent-1);
}
.mbgd-music-toggle.is-playing .mbgd-music-toggle__bars {
    display: flex;
}
.mbgd-music-toggle__bars i {
    width: 2px;
    height: 100%;
    background: var(--wp--preset--color--accent-3);
    animation: mbgd-eq 0.9s ease-in-out infinite;
}
.mbgd-music-toggle__bars i:nth-child(2) { animation-delay: 0.2s; }
.mbgd-music-toggle__bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes mbgd-om-glow {
    0%, 100% { box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 0 0 0 rgba(254, 209, 52, 0.45), 0 6px 18px rgba(0, 0, 0, 0.3); }
    50%      { box-shadow: 0 0 0 2px var(--wp--preset--color--accent-1), 0 0 0 10px rgba(254, 209, 52, 0), 0 6px 18px rgba(0, 0, 0, 0.3); }
}
@keyframes mbgd-eq {
    0%, 100% { transform: scaleY(0.35); }
    50%      { transform: scaleY(1); }
}

/* "Tap anywhere to hear…" hint (only when the browser blocks autoplay) */
.mbgd-music-hint {
    position: fixed;
    left: 88px;
    bottom: 30px;
    z-index: 90;
    margin: 0;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--wp--preset--color--surface-white);
    color: var(--wp--preset--color--accent-3);
    box-shadow: 0 0 0 1px rgba(254, 209, 52, 0.8), 0 6px 18px rgba(0, 0, 0, 0.2);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    animation: mbgd-hint-in 0.4s ease-out both, mbgd-hint-nudge 2.4s ease-in-out 0.4s infinite;
}
.mbgd-music-hint[hidden] {
    display: none;
}
.mbgd-music-hint::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: inherit;
    box-shadow: -1px 1px 0 0 rgba(254, 209, 52, 0.8);
    transform: translateY(-50%) rotate(45deg);
}
@keyframes mbgd-hint-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes mbgd-hint-nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}

@media (max-width: 599px) {
    .mbgd-music-toggle { left: 14px; bottom: 14px; width: 48px; height: 48px; }
    .mbgd-music-toggle__om { font-size: 1.45rem; }
    .mbgd-music-hint { left: 74px; bottom: 24px; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mbgd-music-toggle,
    .mbgd-music-toggle.is-playing,
    .mbgd-music-toggle__bars i { animation: none; transition: none; }
    .mbgd-music-hint { animation: none; }
}
