/*
Theme Name: Sedantek CarTul Theme
Theme URI: https://cartul.com.ph
Author: Sedantek Inc.
Description: Custom theme for Sedantek CarTul Automotive Aftermarket Solutions.
Version: 1.0.0
Text Domain: sedantek-cartul
*/

/* ==========================================================================
   RESPONSIVE LAYOUT & LOGO GRID STYLES
   ========================================================================== */

/* Network Section Container */
.network-section {
    background: #1a365d;
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.network-header {
    text-align: center;
    margin-bottom: 30px;
}

.network-header h2 {
    color: #ffffff;
    margin-bottom: 8px;
}

.network-header p {
    color: #cbd5e0;
    margin-top: 0;
}

.network-title {
    color: #e53e3e;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Trust Bar Styling */
.trust-bar {
    background: #07172b;
    color: #cbd5e0;
    padding: 12px 15px;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

/* Hero Section Buttons Layout */
.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
}

/* Grid System for Logos */
.logo-grid {
    display: grid;
    gap: 15px;
}

/* Desktop Defaults */
.logo-grid.brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 35px;
}

.logo-grid.dealer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Individual Card Styling */
.brand-logo-card {
    background: #ffffff;
    border-radius: 6px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.brand-logo-card img {
    max-width: 100%;
    max-height: 45px;
    object-fit: contain;
}

.brand-logo-card .fallback-text {
    display: none;
    color: #0c2340;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}

.brand-logo-card.dealer-group {
    height: 70px;
}

/* ==========================================================================
   TABLET RESPONSIVE BREAKPOINT (max-width: 992px)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .network-section {
        padding: 30px 20px;
    }

    .logo-grid.brand-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 logos per row on tablet */
    }

    .logo-grid.dealer-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 logos per row on tablet */
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT (max-width: 600px)
   ========================================================================== */
@media screen and (max-width: 600px) {
    .network-section {
        padding: 25px 15px;
        margin: 25px 0;
    }

    .network-header h2 {
        font-size: 18px;
    }

    .network-header p {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column; /* Stack hero buttons vertically */
    }

    .hero-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
        box-sizing: border-box;
    }

    /* Grid layout for mobile phones: 2 cards per row */
    .logo-grid.brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }

    .logo-grid.dealer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .brand-logo-card {
        height: 55px;
        padding: 6px;
    }

    .brand-logo-card img {
        max-height: 35px;
    }

    .brand-logo-card .fallback-text {
        font-size: 10px;
    }

    .trust-bar {
        font-size: 11px;
    }
}