/* ================================================================
   SITE-WIDE RESPONSIVE STYLES — Bootstrap 5 Aligned
   Greater Denton County (TX) Chapter - The Links Incorporated

   Bootstrap 5 breakpoints (matches bootstrap.minbb93.css):
     xs  < 576px   phones portrait
     sm  ≥ 576px   phones landscape
     md  ≥ 768px   tablets
     lg  ≥ 992px   desktops
     xl  ≥ 1200px  large desktops
   ================================================================ */

/* ---------------------------------------------------------------
   0. GLOBAL RESETS
   --------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------------
   1. NAVIGATION — desktop overrides & mobile hamburger
   --------------------------------------------------------------- */

/* Tablet landscape (992–1199px): tighten spacing */
@media (max-width: 1199px) {
    .main-menu__left {
        margin-right: 20px !important;
    }
    .main-menu__list > li > a,
    #menu-menu-1 > li > a {
        padding: 10px 9px !important;
        font-size: 12px !important;
    }
}

/* Tablet portrait & mobile (≤ 991px): switch to hamburger layout */
@media (max-width: 991px) {

    /* ---- White header bar with logo left, hamburger far right ---- */
    .main-menu__wrapper {
        background: #fff !important;
    }
    .main-menu__wrapper-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #fff !important;
        min-height: 60px;
        width: 100% !important;
        overflow: visible !important;
        padding-left: 15px !important;
        padding-right: 0 !important;
    }

    /* Logo area — take up remaining space, push hamburger right */
    .main-menu__left {
        flex: 1 1 auto !important;
        width: auto !important;
        margin-right: 0 !important;
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 0 !important;
    }

    .main-menu__logo img {
        width: 160px !important;
        height: auto !important;
    }

    /* Right panel — stays at its natural size, flush right */
    .main-menu__right {
        flex: 0 0 auto !important;
        width: auto !important;
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Hide the top info/social bar */
    .main-menu__right-top {
        display: none !important;
    }

    /* Right-bottom: transparent, no padding */
    .main-menu__right-bottom {
        background: transparent !important;
        width: auto !important;
        padding: 0 !important;
        border-top-left-radius: 0 !important;
        border: none !important;
    }

    /* Show the menu-box wrapper */
    .main-menu__main-menu-box {
        display: flex !important;
        align-items: center !important;
    }

    /* Hide the horizontal desktop nav list — scope to desktop nav only,
       so JS-populated .mobile-nav__content list remains visible */
    .main-menu__right .main-menu__list,
    .main-menu__right #menu-menu-1,
    .main-menu__right .menu-menu-1-container {
        display: none !important;
    }

    /* Show the hamburger toggle button — green icon on white bar */
    a.mobile-nav__toggler {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 56px;
        min-height: 60px;
        color: #009933 !important;
        font-size: 24px;
        cursor: pointer;
        text-decoration: none;
        padding: 0 16px 0 8px;
    }
}

/* ---------------------------------------------------------------
   2. PAGE HEADER BANNER
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .page-header             { padding: 25px 0 !important; }
    .page-header__inner h2   { font-size: 1.5rem !important; }
}

/* ---------------------------------------------------------------
   3. HERO SLIDER  (home page)
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero-slide-content {
        max-width: 100%;
        padding: 25px 15px;
    }
    .hero-slide-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 18px;
    }
    .hero-slide-content .btn-slider {
        padding: 10px 22px !important;
        font-size: 13px !important;
    }
}

/* ---------------------------------------------------------------
   4. ELEMENTOR COLUMNS — Bootstrap 5 responsive stacking
   Elementor-col-* behave like Bootstrap col-12 on mobile,
   col-md-6 on tablets, natural widths on desktop (lg+)
   --------------------------------------------------------------- */

/* md and below (< 992px): two-way splits → 50/50 */
@media (max-width: 991px) {
    .elementor-col-33,
    .elementor-col-40,
    .elementor-col-50,
    .elementor-col-60,
    .elementor-col-66 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    .elementor-col-50 .elementor-widget-image img,
    .elementor-col-40 .elementor-widget-image img,
    .elementor-col-60 .elementor-widget-image img {
        max-width: 100%;
        height: auto;
    }
}

/* sm and below (< 768px): ALL columns → full-width */
@media (max-width: 767px) {
    .elementor-col-10,
    .elementor-col-20,
    .elementor-col-25,
    .elementor-col-33,
    .elementor-col-40,
    .elementor-col-50,
    .elementor-col-60,
    .elementor-col-66,
    .elementor-col-75,
    .elementor-col-80 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .elementor-column + .elementor-column {
        margin-top: 24px;
    }
    .elementor-section.elementor-section-boxed > .elementor-container,
    .elementor-section.elementor-inner-section > .elementor-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .elementor-col-50 .elementor-widget-image img,
    .elementor-col-40 .elementor-widget-image img,
    .elementor-col-60 .elementor-widget-image img,
    .elementor-col-33 .elementor-widget-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .elementor-column .elementor-widget-image {
        margin-bottom: 20px;
    }
}

/* ---------------------------------------------------------------
   5. TYPOGRAPHY — Bootstrap 5 fluid rem scale
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    h1                           { font-size: 1.75rem !important; }
    h2, .elementor-heading-title { font-size: 1.5rem  !important; }
    h3                           { font-size: 1.3rem  !important; }
    h4                           { font-size: 1.1rem  !important; }
    p, li                        { font-size: 0.95rem; line-height: 1.65; }
}
@media (max-width: 575px) {
    h1                           { font-size: 1.5rem  !important; }
    h2, .elementor-heading-title { font-size: 1.3rem  !important; }
    h3                           { font-size: 1.15rem !important; }
}

/* ---------------------------------------------------------------
   6. HOME PAGE — program cards, stats, features, sponsors
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .gallery-card-item   { height: 260px; margin: 8px 0; }
    .stats-bar           { padding: 30px 20px; border-radius: 10px; }
    .stat-box            { margin-bottom: 20px; }
}
@media (max-width: 767px) {
    .gallery-card-item   { height: 220px; }
    .gallery-card-item h4{ font-size: 1rem; }
    .stat-box h3         { font-size: 2.25rem !important; }
    .stat-box p          { font-size: 1.1rem  !important; }
    .feature-one__single { margin-bottom: 20px; }
    .sponsors-section    { padding: 40px 0; }
}

/* ---------------------------------------------------------------
   7. GALLERY PAGES — list cards + individual photo grids
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .gallery-section { padding: 50px 0; }
}
@media (max-width: 767px) {
    .gallery-card            { height: 220px; }
    .section-title h2        { font-size: 1.5rem !important; }
    .gallery-card-overlay h4 { font-size: 1rem; }
    /* Photo grids: 3 cols at md */
    .gallery-one__single     { width: 33.333% !important; }
}
@media (max-width: 575px) {
    .gallery-card        { height: 190px; }
    /* Photo grids: 2 cols at xs/sm */
    .gallery-one__single { width: 50% !important; }
    .gallery-one__img    { height: 130px !important; }
}

/* ---------------------------------------------------------------
   8. CONTACT PAGE
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .contact-form-section                  { padding: 35px 0 25px; }
    .contact-form-section .name-fields     { flex-direction: column; gap: 15px; }
    .contact-info-bar                      { padding: 0 0 40px; }
    .contact-info-bar__inner               { flex-direction: column; padding: 25px 20px; align-items: flex-start; }
    .contact-info-bar__item:first-child::after { display: none; }
}

/* ---------------------------------------------------------------
   9. ANNUAL FUNDRAISER PAGE
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .fundraiser-content-section { padding: 25px 0 20px; }
    .video-placeholder          { padding: 40px 15px; }
    .sponsor-section            { padding: 35px 0; }
    .sponsor-section img        { max-width: 100% !important; }
}

/* ---------------------------------------------------------------
   10. CURRENT MEMBERS PAGE
   Fix hardcoded width="390" HTML attribute on <td> elements
   --------------------------------------------------------------- */
table.chapt {
    table-layout: fixed;
    width: 100%;
}
table.chapt td {
    width: 50% !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* xs phones: stack 2-col table to single column */
@media (max-width: 575px) {
    table.chapt tbody { display: block; width: 100%; }
    table.chapt tr    { display: flex; flex-direction: column; }
    table.chapt td {
        width: 100% !important;
        display: block;
        padding: 6px 8px !important;
        border-bottom: 1px solid #eee;
        font-size: 14px !important;
    }
}

/* Alumnae cards — reduce big horizontal padding */
@media (max-width: 767px) {
    .alumnae-card                  { padding: 15px 20px !important; }
    .member-img                    { max-width: 150px !important; }
    img[style*="max-width: 53%"]   { max-width: 90% !important; }
}
@media (max-width: 575px) {
    .alumnae-card                  { padding: 15px !important; }
    .member-img                    { max-width: 120px !important; margin: 0 auto 12px; }
}

/* ---------------------------------------------------------------
   11. FOOTER — stack 3 columns at Bootstrap md breakpoint
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    section.site-footer__top .elementor-container {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    section.site-footer__top .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 30px;
    }
}
@media (max-width: 767px) {
    .site-footer__bottom-text { text-align: center; font-size: 0.85rem; }
    .site-footer__social      { margin-top: 10px; }
    .site-footer__social a    { width: 36px; height: 36px; font-size: 14px; }
}

/* ---------------------------------------------------------------
   12. STICKY HEADER on scroll
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .stricky-header .main-menu__list,
    .stricky-header #menu-menu-1         { display: none !important; }
    .stricky-header .mobile-nav__toggler { display: flex !important; }
}

/* ---------------------------------------------------------------
   13. PROGRAMS — GEMS, Services-to-Youth, The Arts, Health, etc.
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .gems-content                        { max-width: 100% !important; }
    .gems-content-section,
    .gems-signature-section              { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------------------------------------------------------------
   14. CALENDAR OF EVENTS
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .tribe-events-calendar td,
    .tribe-events-calendar th { padding: 5px !important; font-size: 12px; }
}

/* ---------------------------------------------------------------
   15. BOOTSTRAP 5 CONTAINER — consistent gutters on xs
   --------------------------------------------------------------- */
@media (max-width: 575px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ---------------------------------------------------------------
   16. TOUCH-FRIENDLY TARGETS (WCAG 2.5.5 AA — 44×44px)
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    .btn,
    .submit-btn,
    .btn-slider,
    .btn-gallery,
    a.mobile-nav__toggler,
    .slider-nav-btn {
        min-height: 44px;
    }
}

