/* ============================================================
   Praise Baptist Church — site-wide mobile revamp (page bodies)
   Scoped to viewports < 992px. The desktop theme is untouched.
   Complements mobile-header.css (header + drawer).
   ============================================================ */

@media (max-width: 991px) {

    /* -------------------------------------------------- Global rhythm */
    .container,
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Tame the large desktop section paddings */
    .gc_about_sec_story_wrapper,
    .gc_about_story_main_wrapper,
    .gc_com_event_main_wrapper,
    .gc_fliter_main_wrapper,
    .gc_ceremony_main_wrapper,
    .gc_about_counter_category_main_wrapper,
    .gc_about_team_slider_wrapper,
    .gc_client_main_wrapper,
    .gc_sermons_main_wrapper {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    /* Any block that still relies on inline margin-top:40px */
    .gc_about_sec_heading_wrapper,
    .gc_causes_category_heading_wrapper,
    .gc_event_index_heading_wrapper,
    .gc_serm_heading_wrapper,
    .gc_blog_heading_wrapper {
        margin-top: 0 !important;
    }

    /* -------------------------------------------------- Page title banner */
    .gc_tittle_main_wrapper {
        float: none;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 30px 0 26px;
        background-size: cover;
        background-position: center center;
        text-align: center;
        /* The banner's children are floated Bootstrap columns and the parent has
           no clearfix; without a BFC the banner collapses and the title/breadcrumb
           spill out over the page content. flow-root keeps them contained. */
        display: flow-root;
        overflow: hidden;
    }

    .gc_main_tittle_heading h2 {
        font-size: 24px;
        line-height: 1.3;
        padding-left: 0;
        margin: 0 0 12px;
    }

    .gc_main_tittle_side_nav ul {
        float: none;
        display: inline-block;
        margin: 0;
        padding: 8px 18px;
        border-radius: 999px;
        background: rgba(0, 0, 0, .4);
    }

    .gc_main_tittle_side_nav ul li {
        float: none;
        display: inline-block;
        margin-left: 0;
        font-size: 13.5px;
    }

    .gc_main_tittle_side_nav ul li a {
        color: rgba(255, 255, 255, .85);
    }

    .gc_main_tittle_side_nav ul li:last-child {
        margin-left: 6px;
        color: #9bb6e0;
    }

    /* -------------------------------------------------- Legacy section headings */
    .gc_about_sec_heading_wrapper,
    .gc_causes_category_heading_wrapper,
    .gc_event_index_heading_wrapper,
    .gc_serm_heading_wrapper,
    .gc_blog_heading_wrapper {
        text-align: center;
        margin-bottom: 22px;
    }

    .gc_about_sec_heading h2,
    .gc_causes_category_heading h2,
    .gc_event_index_heading h2,
    .gc_serm_heading h2,
    .gc_blog_heading h2 {
        font-size: 13px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #3e4095;
        margin-bottom: 6px;
    }

    .gc_about_sec_heading h1,
    .gc_causes_category_heading h1,
    .gc_event_index_heading h1,
    .gc_serm_heading h1,
    .gc_blog_heading h1 {
        font-size: 24px;
        line-height: 1.3;
        margin: 0;
    }

    /* -------------------------------------------------- Buttons & tap targets */
    .gc_btn,
    .pbc-ministry-button,
    .pbc-donation-submit {
        min-height: 46px;
        line-height: 46px;
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 999px;
    }

    .pbc-ministry-button i,
    .gc_btn i {
        vertical-align: middle;
    }

    /* -------------------------------------------------- Forms */
    .gc_causes_single_forms input,
    .gc_causes_single_teatarea textarea,
    .gc_causes_search_box input {
        width: 100%;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .gc_causes_single_forms,
    .gc_causes_single_teatarea {
        margin-bottom: 16px;
    }

    /* -------------------------------------------------- Footer */
    .gc_footer_main_wrapper {
        padding-top: 46px;
        padding-bottom: 34px;
    }

    .gc_footer_logo img {
        max-width: 168px;
    }

    .gc_footer_social_icon ul {
        margin-top: 22px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .gc_footer_social_icon li {
        float: none;
        width: auto;
        margin: 0;
    }

    .gc_footer_social_icon li a {
        float: none;
        width: auto;
        height: auto;
        line-height: 1;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .gc_footer_news_wrapper,
    .gc_footer_letestnews_wrapper,
    .gc_footer_ul_wrapper,
    .gc_footer_insta_wrapper {
        margin-top: 34px;
    }

    .gc_footer_news h3 {
        font-size: 18px;
    }

    /* Newsletter + footer lists breathing room */
    .gc_footer_ul_main_wrapper ul li {
        padding: 6px 0;
    }

    .gc_footer_insta_wrapper .col-xs-4 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .gc_bottom_footer_main_wrapper {
        padding-top: 26px;
        padding-bottom: 26px;
        text-align: center;
    }

    .gc_bottom_footer_right_wrapper ul {
        margin-top: 14px !important;
    }

    .gc_bottom_footer_right_wrapper li {
        margin-left: 0 !important;
        margin-right: 18px;
    }

    /* -------------------------------------------------- About page */
    .gc_counter_main_wrapper {
        display: flex;
        flex-wrap: wrap;
        padding: 26px 12px;
    }

    .gc_counter_main_wrapper > [class*="gc_counter_cont_wrapper"] {
        width: 50%;
        box-sizing: border-box;
        padding: 14px 8px;
        text-align: center;
    }

    .gc_counter_main_wrapper .timer {
        font-size: 30px;
    }

    .gc_counter_main_wrapper .count-description h5 {
        font-size: 13px;
    }

    .gc_about_counter_category_main_wrapper .gc_about_cont_wrapper,
    .gc_about_bottom_cont_wrapper {
        margin-bottom: 22px;
        text-align: center;
    }

    .gc_about_sec_cont_main_wrapper {
        margin-top: 28px;
    }

    .gc_about_sec_slider_wrapper,
    .gc_about_team_slider_wrapper .item {
        margin-bottom: 22px;
    }

    /* -------------------------------------------------- Event / Sermon cards */
    .gc_event_index_content_sec,
    .pbc-event-card,
    .gc_upcom_slider_wrapper,
    .pbc-sermon-card {
        margin-bottom: 24px;
    }

    .pbc-sermon-grid .pbc-sermon-column,
    .pbc-events-grid .gc_event_index_content_sec {
        margin-bottom: 24px;
    }

    /* -------------------------------------------------- Leaders */
    .pbc-leaders-grid .pbc-leader-card {
        margin-bottom: 26px;
    }

    /* -------------------------------------------------- Contact page */
    .gc_map_main_wrapper {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .gc_get_box_wrapper {
        padding: 24px 18px;
    }

    .gc_get_heading h1 {
        font-size: 24px;
    }

    .gc_right_map_main_wrapper iframe {
        height: 300px;
        border-radius: 12px;
    }

    .gc_map_add_wrapper {
        text-align: left;
    }

    /* -------------------------------------------------- Home page */
    .gc_event_main_wrapper,
    .gc_player_main_wrapper,
    .gc_recent_main_wrapper,
    .gc_about_story_main_wrapper {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .gc_serm_slider_section {
        padding-bottom: 40px;
    }

    .gc_serm_cont_main_wrapper {
        margin-bottom: 22px;
    }

    /* Falls back gracefully on very narrow phones */
    .pbc-ministry-values-grid,
    .pbc-org-grid,
    .pbc-sermon-grid,
    .pbc-events-grid {
        row-gap: 18px;
    }
}
