
/* =========================================
   Responsive Media Queries
   =========================================
   Breakpoints:
   - Desktop  : > 992px
   - Tablet   : 768px - 991.98px
   - Mobile   : < 767.98px
   - Small    : < 575.98px
   ========================================= */

/* ---- GLOBAL IMAGE CONSISTENCY ---- */
img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   TABLETS (768px - 991.98px)
   ========================================= */
@media (max-width: 991.98px) {
    .hero-title, .display-3 {
        font-size: 2.4rem !important;
    }

    /* Board/Management Section Adjustments */
    .management-section .card-img-top {
        height: 280px !important;
    }
    


    .py-5 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
}

/* =========================================
   MOBILE (max-width: 767.98px)
   ========================================= */
@media (max-width: 767.98px) {

    /* ---- HERO ---- */
    .hero-section {
        height: auto !important;
        min-height: 480px !important;
        padding-top: 80px !important;
        padding-bottom: 60px !important;
    }
    .hero-title, .display-3 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    .lead {
        font-size: 1.1rem !important;
    }
    .hero-content .d-flex.gap-3 {
        flex-direction: column !important;
    }
    .hero-content .d-flex.gap-3 .btn {
        width: 100% !important;
        margin-bottom: 8px;
    }

    /* ---- SECTION SPACING ---- */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* ---- MANAGEMENT SECTION (index.php) ---- */
    .management-section .col-lg-3.col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
    .management-section .card-img-top {
        height: 350px !important; /* Larger and clearer on mobile */
        object-fit: cover !important;
        object-position: center 15% !important;
    }
    .management-section .card-body h5 {
        font-size: 1.2rem !important;
    }

    /* ---- BOARD & TEAM SECTIONS ---- */
    .board-section .card, .team-section .card {
        margin-bottom: 1rem;
    }
    /* Chairman always 100% on mobile */
    .board-section .col-lg-5.col-md-8, .team-section .col-lg-5.col-md-8 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .board-section .card-body h5, .team-section .card-body h5 {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    .board-section .badge, .team-section .badge {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* ---- WHATSAPP BUTTON ---- */
    .whatsapp-btn {
        width: 55px !important;
        height: 55px !important;
        line-height: 55px !important;
        font-size: 28px !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    /* ---- TOPBAR ---- */
    .topbar { display: none !important; }
}

/* =========================================
   SMALL DEVICES (max-width: 575.98px)
   ========================================= */
@media (max-width: 575.98px) {
    .hero-title, .display-3 {
        font-size: 1.6rem !important;
    }
    
    .management-section .card-img-top {
        height: 300px !important;
    }

    /* Board & Team Typography Adjustments */
    .board-section .card-body h5, .team-section .card-body h5 {
        font-size: 0.9rem !important;
    }
    .board-section .badge, .team-section .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }
}
