/* 
    Olimpiyat Otomasyon - Global Mobile Rescue Styles v1.1
    Targeting specific overrides for the Sungo theme.
*/

/* 1. Reset & Global Layout */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

.container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
}

/* 2. Header & Navigation Fixes */
@media (max-width: 991px) {
    /* Hide Desktop Elements */
    .mean__menu-wrapper, 
    .header-button,
    .main-menu,
    nav#mobile-menu {
        display: none !important;
    }

    /* Header Main Layout */
    .header-main {
        padding: 10px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Logo Scaling */
    .logo img, .header-logo img {
        max-height: 45px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Hamburger Position */
    .header__hamburger {
        display: block !important;
        margin-left: auto !important;
    }

    .sidebar__toggle i {
        font-size: 26px !important;
        color: #1b8a3e !important; /* Theme Green */
    }

    /* Space out Search & Hamburger */
    .header-right {
        gap: 15px !important;
    }
}

/* 3. Grid & Column Fixes */
@media (max-width: 767px) {
    .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px;
    }

    /* Exception for small grids */
    .row-cols-2 > [class*="col-"],
    .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* 4. Typography Adjustments */
@media (max-width: 575px) {
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    
    .section-title h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }
}

/* 5. Component Specifics */
img {
    max-width: 100% !important;
    height: auto !important;
}

.table-responsive {
    border: none !important;
    margin-bottom: 20px;
}

/* 6. Footer Specific Fixes */
@media (max-width: 767px) {
    .contact-info-area {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 30px 15px !important;
    }

    .contact-info-items {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
        justify-content: flex-start !important;
    }

    .contact-info-items:last-child {
        border-bottom: none !important;
    }

    .contact-info-items .content h3 {
        font-size: 16px !important;
        word-break: break-all !important;
        line-height: 1.4 !important;
    }

    .contact-info-items .content p {
        margin-bottom: 5px !important;
        font-size: 13px !important;
    }
    
    .footer-widgets-wrapper {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}
