/* =========================
           ZOTAC HERO SECTION
        ========================= */

.zotac-logo img {
    max-width: 100%;
    height: auto;
}


.zotac-category {
    background: #ffffff;
}

/* TITLE */

.zotac-heading {
    font-size: 58px;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 0;
    font-family: "Tomorrow", sans-serif;
}

/* CARD */

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    background: #efefef;
    height: 100%;
}

/* HOVER EFFECT */

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-card:hover .category-image::before {
    background: rgba(0, 0, 0, 0.15);
}

/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 1400px) {
    .zotac-heading {
        font-size: 48px;
    }

   
}


/* =========================
           BRAND HISTORY SECTION
        ========================= */

.brand-history {
    background: #ffffff;
}

.history-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
}



.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Desktop 5 items */
    gap:10px;
}

/* Mobile: first 3 then 2 */
@media (max-width: 767px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid > *:nth-child(4),
    .category-grid > *:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 767px) {
    .zotac-page section.py-3 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

.category-image {
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.category-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 6px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

.category-card:hover .category-image::after {
    opacity: 1;
}
