/* =========================================================
   PREMIUM SEO PRODUCT CATEGORY
   Pondy Fire & Safety
   ========================================================= */

.seo-cat {
    --seo-navy: #071a2f;
    --seo-navy-2: #0c2947;
    --seo-blue: #1266a8;
    --seo-red: #e53935;
    --seo-red-dark: #b91c1c;
    --seo-text: #172334;
    --seo-muted: #68778a;
    --seo-border: #e5eaf0;
    --seo-bg: #f6f8fb;
    --seo-white: #ffffff;

    position: relative;
    padding: 55px 20px 80px;
    background:
        radial-gradient(circle at 8% 5%, rgba(18, 102, 168, 0.08), transparent 28%),
        radial-gradient(circle at 95% 15%, rgba(229, 57, 53, 0.06), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: var(--seo-text);
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

/* Subtle top decorative line */
.seo-cat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(
        90deg,
        var(--seo-blue),
        #1c8ed1,
        var(--seo-red)
    );
}

/* Main container */
.seo-cat-wrap {
    width: min(1280px, 100%);
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.seo-cat nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 42px;
    padding: 13px 18px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(15, 35, 60, 0.05);
    font-size: 13px;
}

.seo-cat nav a {
    color: var(--seo-blue);
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.seo-cat nav a:hover {
    color: var(--seo-red);
}

.seo-cat nav i {
    color: #9aa7b5;
    font-size: 11px;
}

.seo-cat nav span {
    color: #667487;
    font-weight: 500;
}


/* =========================================================
   CATEGORY HEADER
   ========================================================= */

.seo-cat header {
    position: relative;
    max-width: 920px;
    margin-bottom: 48px;
}

.seo-cat header > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--seo-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.seo-cat header > span::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 10px;
    background: var(--seo-red);
}

.seo-cat header h1 {
    margin: 0 0 17px;
    color: var(--seo-navy);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.4px;
}

.seo-cat header p {
    max-width: 850px;
    margin: 0 0 20px;
    color: var(--seo-muted);
    font-size: 15px;
    line-height: 1.85;
    font-weight: 400;
}

.seo-cat header strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 7px;
    background: #eef5fb;
    border: 1px solid #d9e9f5;
    color: var(--seo-blue);
    font-size: 12px;
    font-weight: 600;
}

.seo-cat header strong::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--seo-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.seo-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.seo-cat-card {
    position: relative;
    min-width: 0;
}

.seo-cat-card a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 390px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--seo-border);
    border-radius: 16px;
    box-shadow:
        0 5px 18px rgba(15, 35, 60, 0.045),
        0 1px 2px rgba(15, 35, 60, 0.03);
    transition:
        transform 0.35s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Top red accent */
.seo-cat-card a::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--seo-blue),
        var(--seo-red)
    );
    transition: width 0.4s ease;
}

.seo-cat-card a:hover {
    transform: translateY(-8px);
    border-color: #d7e0e9;
    box-shadow:
        0 20px 45px rgba(12, 41, 71, 0.11),
        0 5px 15px rgba(229, 57, 53, 0.06);
}

.seo-cat-card a:hover::before {
    width: 100%;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.seo-cat-card img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: contain;
    padding: 28px;
    background:
        radial-gradient(
            circle at center,
            rgba(18, 102, 168, 0.055),
            transparent 62%
        ),
        #f9fbfd;
    border-bottom: 1px solid #edf1f5;
    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        background 0.35s ease;
}

.seo-cat-card a:hover img {
    transform: scale(1.045);
    background:
        radial-gradient(
            circle at center,
            rgba(18, 102, 168, 0.09),
            transparent 65%
        ),
        #f8fafc;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.seo-cat-card span {
    display: block;
    padding: 21px 20px 6px;
    color: var(--seo-navy);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 650;
    transition: color 0.25s ease;
}

.seo-cat-card a:hover span {
    color: var(--seo-blue);
}


/* =========================================================
   VIEW DETAILS
   ========================================================= */

.seo-cat-card small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 13px 20px 19px;
    color: #8491a0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25px;
    text-transform: uppercase;
}

.seo-cat-card small i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f4f8;
    color: var(--seo-blue);
    font-size: 12px;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.seo-cat-card a:hover small i {
    background: var(--seo-red);
    color: #fff;
    transform: translateX(3px);
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.seo-cat-back {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.seo-cat-back a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    color: var(--seo-navy);
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 9px;
    box-shadow: 0 5px 18px rgba(15, 35, 60, 0.05);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.seo-cat-back a i {
    color: var(--seo-blue);
    font-size: 15px;
}

.seo-cat-back a:hover {
    transform: translateY(-3px);
    color: #fff;
    background: var(--seo-navy);
    border-color: var(--seo-navy);
    box-shadow: 0 12px 28px rgba(7, 26, 47, 0.16);
}

.seo-cat-back a:hover i {
    color: #fff;
}


/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .seo-cat {
        padding: 48px 20px 70px;
    }

    .seo-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .seo-cat-card a {
        min-height: 375px;
    }

    .seo-cat-card img {
        height: 225px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .seo-cat {
        padding: 42px 18px 60px;
    }

    .seo-cat nav {
        margin-bottom: 34px;
        padding: 11px 14px;
        font-size: 12px;
    }

    .seo-cat header {
        margin-bottom: 38px;
    }

    .seo-cat header h1 {
        font-size: clamp(30px, 6vw, 40px);
    }

    .seo-cat header p {
        font-size: 14px;
        line-height: 1.75;
    }

    .seo-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .seo-cat-card a {
        min-height: 365px;
        border-radius: 14px;
    }

    .seo-cat-card img {
        height: 220px;
        padding: 24px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .seo-cat {
        padding: 35px 14px 50px;
    }

    .seo-cat::before {
        width: 75px;
    }

    .seo-cat nav {
        width: 100%;
        margin-bottom: 30px;
        gap: 7px;
        padding: 10px 12px;
        line-height: 1.6;
        border-radius: 8px;
    }

    .seo-cat header {
        margin-bottom: 30px;
    }

    .seo-cat header > span {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .seo-cat header > span::before {
        width: 20px;
    }

    .seo-cat header h1 {
        margin-bottom: 14px;
        font-size: 29px;
        line-height: 1.2;
        letter-spacing: -0.7px;
    }

    .seo-cat header p {
        font-size: 13px;
        line-height: 1.75;
    }

    .seo-cat header strong {
        display: flex;
        width: 100%;
        font-size: 10px;
        line-height: 1.5;
    }

    .seo-cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .seo-cat-card a {
        min-height: auto;
        border-radius: 13px;
    }

    .seo-cat-card img {
        height: 235px;
        padding: 30px;
    }

    .seo-cat-card span {
        padding: 18px 18px 5px;
        font-size: 15px;
    }

    .seo-cat-card small {
        padding: 11px 18px 17px;
        font-size: 10px;
    }

    .seo-cat-back {
        margin-top: 35px;
    }

    .seo-cat-back a {
        width: 100%;
        justify-content: center;
        padding: 13px 16px;
        font-size: 12px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .seo-cat-card a,
    .seo-cat-card img,
    .seo-cat-card small i,
    .seo-cat-back a {
        transition: none;
    }
}





/* =========================================================
   PRODUCT CARD - FINAL SPACING & ALIGNMENT FIX
   ========================================================= */

.seo-cat-grid {
    align-items: stretch;
}

.seo-cat-card {
    height: 100%;
}

.seo-cat-card a {
    min-height: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Product image section */
.seo-cat-card img {
    width: 100%;
    height: 245px !important;
    min-height: 245px;
    object-fit: contain;
    padding: 25px;
    flex-shrink: 0;
}

/* Product name */
.seo-cat-card span {
    display: flex;
    align-items: flex-start;
    /* min-height: 68px; */
    padding: 18px 20px 5px !important;
    margin: 0 !important;

    color: #071a2f;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 650;

    /* Prevent unnecessary spacing */
    flex-shrink: 0;
}

/* CTA area */
.seo-cat-card small {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0 !important;
    padding: 8px 20px 18px !important;

    color: #718096;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .3px;

    /* IMPORTANT */
    margin-top: 0 !important;
    flex-shrink: 0;
}

/* Arrow button */
.seo-cat-card small i {
    width: 38px;
    height: 38px;
    min-width: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f0f5fa;
    color: #1266a8;

    font-size: 14px;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease;
}

.seo-cat-card a:hover small i {
    background: #e53935;
    color: #fff;
    transform: translateX(4px);
}


/* =========================================================
   BETTER CARD HEIGHT
   ========================================================= */

@media (min-width: 801px) {

    /* .seo-cat-card a {
        min-height: 375px !important;
    } */

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .seo-cat-card img {
        height: 220px !important;
        min-height: 220px;
        padding: 22px;
    }

    .seo-cat-card span {
        min-height: 65px;
        padding: 16px 18px 5px !important;
        font-size: 15px;
    }

    .seo-cat-card small {
        padding: 7px 18px 16px !important;
    }

    .seo-cat-card small i {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .seo-cat-card a {
        min-height: 0 !important;
    }

    .seo-cat-card img {
        height: 225px !important;
        min-height: 225px;
        padding: 28px;
    }

    .seo-cat-card span {
        min-height: 60px;
        padding: 16px 17px 4px !important;
        font-size: 15px;
        line-height: 1.4;
    }

    .seo-cat-card small {
        padding: 6px 17px 15px !important;
    }
}