/* TikTok icon (Font Awesome 4 does not include it) */
.fa-tiktok:before {
    content: "";
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    vertical-align: -0.1em;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M448 209.91a210.06 210.06 0 0 1 -122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121.18 121.18 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M448 209.91a210.06 210.06 0 0 1 -122.77-39.25v178.72A162.55 162.55 0 1 1 185 188.31v89.89a74.62 74.62 0 1 0 52.23 71.18V0h88a121.18 121.18 0 0 0 1.86 22.17A122.18 122.18 0 0 0 381 102.39a121.43 121.43 0 0 0 67 20.14z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* Header CTA button (Member Portal / Join Us) — brand brown */
.gc_right_menu ul > li .gc_btn {
    background-color: #703e22 !important;
    border-color: #703e22 !important;
    color: #ffffff !important;
}

.gc_right_menu > ul > li .gc_btn:hover {
    background-color: #ffffff !important;
    border-color: #703e22 !important;
    color: #703e22 !important;
}

/* Homepage hero slideshow — hide prev/next arrows */
.gc_slider_img_section .owl-theme .owl-nav {
    display: none !important;
}

/* Event listing cards — match template image column (285px) */
.gc_upcom_slider_wrapper .gc_com_slider_img_wrapper {
    width: 285px;
    max-width: 100%;
}

.gc_upcom_slider_wrapper .gc_com_slider_img_wrapper img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* Footer column headings — keep underline accents below the title when text wraps */
.gc_footer_news h3 {
    padding-bottom: 22px;
}

.gc_footer_news h3::after,
.gc_footer_news h3::before {
    top: auto;
    bottom: auto;
    left: 0;
    height: 0;
    border: none;
    border-bottom: 1px solid #703e22;
}

.gc_footer_news h3::after {
    top: calc(100% - 14px);
    width: 40px;
}

.gc_footer_news h3::before {
    top: calc(100% - 6px);
    width: 80px;
}

/* YouTube background videos (hero, footer, member login) */
.bamac-youtube-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bamac-youtube-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    border: 0;
}

.bamac-youtube-bg--dim iframe {
    opacity: 0.35;
}

.gc_hero_slide--video,
.bamac-media-bg--video {
    overflow: hidden;
}

.gc_hero_slide--video .bamac-youtube-bg,
.bamac-media-bg--video .bamac-youtube-bg {
    z-index: 0;
}

.gc_hero_slide--video .gc_slider_overlay,
.bamac-media-bg--video .gc_footer_img_overlay {
    z-index: 1;
}

.gc_hero_slide--video .gc_slider_cont1_wrapper {
    position: relative;
    z-index: 2;
}

.bamac-media-bg--video > .container {
    position: relative;
    z-index: 2;
}

/* Choir leadership page */
.bamac-leadership-page {
    float: left;
    width: 100%;
    padding: 60px 0 100px;
}

.bamac-leadership-page__intro {
    margin-bottom: 10px;
}

/* Choir leadership grid */
.bamac-leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 50px;
    width: 100%;
}

.bamac-leader-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e1e1e1;
    text-align: center;
    height: 100%;
}

.bamac-leader-card__photo {
    overflow: hidden;
    background: #f5f5f5;
}

.bamac-leader-card__photo img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.bamac-leader-card__body {
    flex: 1 1 auto;
    padding: 22px 16px 28px;
}

.bamac-leader-card__role {
    margin: 0 0 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #333;
    line-height: 1.4;
}

.bamac-leader-card__name {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
    color: #703e22;
    font-weight: 600;
    word-wrap: break-word;
}

.bamac-leader-card__name::after {
    content: '';
    display: block;
    width: 70px;
    height: 0;
    border-bottom: 1px solid #703e22;
    margin: 14px auto 0;
}

@media (max-width: 1199px) {
    .bamac-leaders-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .bamac-leaders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .bamac-leader-card__photo img {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .bamac-leaders-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Map / contact block — gap between info panel, map, and footer */
.gc_map_main_wrapper {
    padding-top: 40px;
    padding-bottom: 100px;
    margin-bottom: 60px;
}

.gc_map_main_wrapper .gc_get_box_wrapper {
    top: 0;
    width: 48%;
}

.gc_map_main_wrapper .gc_right_map_main_wrapper {
    top: 0;
    width: 48%;
    float: right;
}

@media (max-width: 991px) {
    .gc_map_main_wrapper .gc_get_box_wrapper,
    .gc_map_main_wrapper .gc_right_map_main_wrapper {
        width: 100%;
        float: left;
    }

    .gc_map_main_wrapper .gc_right_map_main_wrapper {
        margin-top: 30px;
    }
}

/* Homepage featured video actions */
.bamac-featured-video-actions ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.bamac-featured-video-actions li {
    float: none;
    margin: 0;
}

.bamac-featured-video-actions li a {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 150px;
    height: 50px;
    padding: 0 24px;
    line-height: 1;
}

/* Choir videos page */
.bamac-video-show {
    float: left;
    width: 100%;
    padding: 50px 0 30px;
    background: #f8f8f8;
}

.bamac-video-show__embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.bamac-video-show__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.bamac-video-show__details {
    margin-top: 30px;
}

.bamac-youtube-engagement {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.bamac-youtube-engagement__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: #703e22;
    border: 2px solid #703e22;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.bamac-youtube-engagement__btn:hover {
    background: #5a321b;
    border-color: #5a321b;
    color: #fff;
}

.bamac-youtube-engagement__btn--outline {
    background: #fff;
    color: #703e22;
}

.bamac-youtube-engagement__btn--outline:hover {
    background: #703e22;
    color: #fff;
}

.bamac-youtube-engagement__btn--subscribe {
    background: #c4302b;
    border-color: #c4302b;
}

.bamac-youtube-engagement__btn--subscribe:hover {
    background: #a32824;
    border-color: #a32824;
    color: #fff;
}

/* Videos listing grid */
.bamac-videos-grid {
    margin-bottom: 20px;
}

.bamac-videos-grid > [class*="col-"] {
    margin-bottom: 30px;
}

.bamac-video-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bamac-video-card:hover {
    box-shadow: 0 10px 28px rgba(112, 62, 34, 0.14);
    transform: translateY(-2px);
}

.bamac-video-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.bamac-video-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    float: none !important;
}

.bamac-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(112, 62, 34, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    pointer-events: none;
    z-index: 2;
}

.bamac-video-card__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bamac-video-card__date {
    margin: 0 0 8px;
    font-size: 14px;
    font-style: italic;
    color: #00468c;
}

.bamac-video-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.35;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.bamac-video-card__title a {
    color: #222;
    text-decoration: none;
}

.bamac-video-card__title a:hover {
    color: #703e22;
}

.bamac-video-card__excerpt {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.bamac-video-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.bamac-video-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    background: #703e22;
    border: 2px solid #703e22;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.bamac-video-card__btn:hover {
    background: #5a321b;
    border-color: #5a321b;
    color: #fff !important;
}

.bamac-video-card__btn--outline {
    background: transparent;
    color: #703e22 !important;
}

.bamac-video-card__btn--outline:hover {
    background: #703e22;
    color: #fff !important;
}

/* Mobile header — stay visible while scrolling (logo + hamburger) */
@media (max-width: 991px) {
    body {
        padding-top: 65px;
    }

    .gc_main_menu_wrapper > .container-fluid > .row {
        display: none;
    }

    .gc_main_menu_wrapper .header-area .mainmenu {
        display: none;
    }

    .mobail_menu {
        position: relative;
        z-index: 1100;
        background: #fff;
        width: 100%;
    }

    .gc_main_menu_wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding-top: 0;
        padding-bottom: 0;
        background: #fff;
        box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
        overflow: visible;
    }

    .gc_main_menu_wrapper .header-area,
    .mobail_menu,
    .mobail_menu .cd-dropdown-wrapper {
        overflow: visible;
    }

    .gc_main_menu_wrapper.menu_fixed {
        padding-top: 0 !important;
    }

    /* Never animate the fixed header on mobile — transform breaks full-screen sidebar */
    .gc_main_menu_wrapper.animated,
    .gc_main_menu_wrapper.fadeInDown,
    .gc_main_menu_wrapper.fadeIn {
        animation: none !important;
        transform: none !important;
    }
}

/* Mobile sidebar — full height even when page is scrolled (homepage fixed header) */
@media (max-width: 990px) {
    .cd-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(300px, 85vw) !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 12000 !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(-100%);
    }

    .cd-dropdown.dropdown-is-active {
        transform: translateX(0) !important;
    }

    .cd-dropdown h2 {
        flex: 0 0 auto;
        height: auto !important;
        line-height: 1.35 !important;
        padding: 14px 50px 12px 20px !important;
        white-space: normal;
    }

    .cd-dropdown h2:after {
        position: relative;
        display: block;
        bottom: auto;
        left: 0;
        margin-top: 8px;
        width: 80px;
    }

    .cd-dropdown .cd-dropdown-content,
    .cd-dropdown .cd-dropdown-content ul {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-top: 0 !important;
    }
}
