
/* =========================================================
   DirectoryFire final polish: hero cleanup + category cards
========================================================= */

/* Keep the restored premium hero clean and stop the giant flame/logo
   from taking its own oversized row on the homepage. */
.df-live-hero .df-live-flame,
.df-live-hero .df-live-flame-fallback {
    display: none !important;
}

.df-live-hero .df-live-hero-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) !important;
    gap: 34px !important;
}

.df-live-hero .df-live-visual {
    min-height: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.df-live-hero .df-live-card {
    margin-left: auto !important;
}

/* Hide any duplicate legacy hero block removed by JS before paint fallback */
.df-legacy-hero-duplicate {
    display: none !important;
}

/* Category/subcategory card grid for category pages */
.df-subcategory-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 18px 0 26px;
}

.df-subcategory-grid h4.df-subcategory-card {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}

.df-subcategory-grid h4.df-subcategory-card a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 76px;
    width: 100%;
    padding: 18px 18px 18px 54px;
    border-radius: 16px;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.df-subcategory-grid h4.df-subcategory-card a::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 22px;
    height: 22px;
    border-radius: 9px;
    background: linear-gradient(135deg, #fff6df, #ffd28a);
    box-shadow: 0 8px 22px rgba(255, 153, 0, .22);
}

.df-subcategory-grid h4.df-subcategory-card a::after {
    content: "→";
    position: absolute;
    right: 18px;
    top: 20px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
}

.df-subcategory-grid h4.df-subcategory-card a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 0, .34);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

@media (max-width: 1020px) {
    .df-subcategory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .df-live-hero .df-live-hero-wrap {
        grid-template-columns: 1fr !important;
    }

    .df-live-hero .df-live-visual {
        justify-content: flex-start !important;
    }

    .df-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .df-subcategory-grid {
        grid-template-columns: 1fr;
    }
}
