/* ========================================================= */
/* TAXONOMY / CATEGORY PAGE */
/* ========================================================= */

.taxonomy-page{
    max-width:1400px;
    margin:auto;
    padding:50px 24px 90px;
}

.taxonomy-header{
    text-align:center;
    margin-bottom:60px;
}

.taxonomy-header h1{
    font-size:64px;
    line-height:1.1;
    margin-bottom:20px;
    color:#111827;
}

.taxonomy-description{
    max-width:860px;
    margin:auto;
    font-size:20px;
    line-height:1.9;
    color:#666666;
}

/* ========================================================= */
/* CATEGORY HERO */
/* ========================================================= */

.category-hero{
    position:relative;
    padding:80px 30px;
    border-radius:32px;
    background:linear-gradient(
        135deg,
        #0f172a,
        #111827
    );
    overflow:hidden;
    margin-bottom:40px;
    color:#ffffff;
    text-align:center;
}

.category-hero-content{
    max-width:850px;
    margin:auto;
    text-align:center;
}

.hero-badge,
.category-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:38px;
    padding:0 18px;
    border-radius:999px;
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.15);
    color:#ffffff;
    font-size:14px;
    font-weight:800;
    margin-bottom:22px;
    backdrop-filter:blur(8px);
}

.category-hero-title,
.category-hero h1{
    font-size:54px;
    line-height:1.1;
    font-weight:900;
    margin-bottom:24px;
    color:#ffffff;
}

.category-hero-description,
.category-description{
    max-width:820px;
    margin:auto;
    font-size:19px;
    line-height:1.8;
    color:rgba(255,255,255,0.8);
}

.category-hero-stats,
.category-stats{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:40px;
    margin-bottom:40px;
}

.hero-stat,
.category-stat{
    min-width:160px;
    padding:22px;
    border-radius:22px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.08);
    color:#ffffff;
    backdrop-filter:blur(10px);
}

.hero-stat strong,
.category-stat strong{
    display:block;
    font-size:28px;
    margin-bottom:8px;
    color:#ffffff;
}

.hero-stat span,
.category-stat span{
    font-size:14px;
    color:rgba(255,255,255,0.7);
}

.hero-cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:58px;
    padding:0 34px;
    border-radius:18px;
    background:#ffffff;
    color:#111827 !important;
    text-decoration:none !important;
    font-weight:800;
    font-size:16px;
    transition:.25s ease;
}

.hero-cta-btn:hover{
    transform:translateY(-3px);
}

/* ========================================================= */
/* CATEGORY SEO CONTENT */
/* ========================================================= */

.taxonomy-intro-content{
    margin:40px 0;
    padding:32px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    box-shadow:0 8px 30px rgba(15,23,42,.04);
}

.taxonomy-intro-content h2{
    margin-bottom:16px;
    font-size:28px;
    font-weight:900;
    color:#111827;
}

.taxonomy-intro-content p{
    font-size:16px;
    line-height:1.8;
    color:#374151;
    margin-bottom:18px;
}

.taxonomy-benefits{
    margin:20px 0;
    padding-left:20px;
}

.taxonomy-benefits li{
    margin-bottom:12px;
    font-size:15px;
    color:#222;
}

/* ========================================================= */
/* FEATURED CATEGORY TOOLS */
/* ========================================================= */

.category-featured-section{
    margin:50px 0;
}

.section-title{
    font-size:30px;
    font-weight:900;
    margin-bottom:24px;
    color:#111827;
}

.featured-tools-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:20px;
}

/* ========================================================= */
/* CATEGORY RANKING INFO */
/* ========================================================= */

.category-ranking-info{
    margin:40px 0;
}

.ranking-box{
    background:#ffffff;
    border-radius:24px;
    padding:36px;
    border:1px solid #e5e7eb;
    box-shadow:0 10px 30px rgba(15,23,42,.04);
}

.ranking-box h2{
    margin-top:0;
    margin-bottom:16px;
    font-size:34px;
    line-height:1.2;
    color:#111827;
}

.ranking-list{
    list-style:none;
    padding:0;
    margin:24px 0;
}

.ranking-list li{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:14px;
    font-size:16px;
    color:#111827;
    font-weight:600;
}

.ranking-note{
    margin-top:20px;
    font-weight:600;
    color:#374151;
}

/* ========================================================= */
/* SMART INTERNAL LINKS */
/* ========================================================= */

.smart-links-box{
    margin-top:50px;
    padding:30px;
    border-radius:24px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.smart-links-box h3{
    margin-bottom:20px;
    font-size:24px;
    color:#111827;
}

.smart-links-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
}

.smart-link-item a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:60px;
    padding:15px;
    border-radius:16px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    text-decoration:none !important;
    color:#111827;
    font-weight:800;
    transition:.2s ease;
}

.smart-link-item a:hover{
    transform:translateY(-3px);
    background:#000000;
    color:#ffffff;
}

/* ========================================================= */
/* PAGINATION */
/* ========================================================= */

.pagination-wrap{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:60px;
}

.pagination-wrap .page-numbers{
    width:50px;
    height:50px;
    border-radius:16px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#111827;
    font-weight:800;
}

.pagination-wrap .current{
    background:#000000;
    color:#ffffff;
}

/* ========================================================= */
/* TAXONOMY FAQ FIX */
/* ========================================================= */

.taxonomy-page .faq-box,
.category-page .faq-box{
    background:#ffffff !important;
}

.taxonomy-page .faq-item,
.category-page .faq-item{
    background:#ffffff !important;
    color:#111827 !important;
}

/* ========================================================= */
/* RESPONSIVE */
/* ========================================================= */

@media(max-width:768px){

    .taxonomy-page{
        padding:34px 14px 70px;
    }

    .category-hero{
        padding:50px 20px;
        border-radius:24px;
    }

    .category-hero-title,
    .category-hero h1,
    .taxonomy-header h1{
        font-size:40px;
    }

    .category-hero-description,
    .category-description,
    .taxonomy-description{
        font-size:16px;
    }

    .hero-stat,
    .category-stat{
        min-width:140px;
    }

    .taxonomy-page .tools-grid,
    .featured-tools-grid{
        grid-template-columns:1fr !important;
    }

    .ranking-box{
        padding:24px;
    }

    .ranking-box h2{
        font-size:26px;
    }
}
/* ========================================================= */
/* TAXONOMY EXTRA SECTIONS */
/* ========================================================= */

.taxonomy-tools-section,
.free-tools-section,
.new-tools-section,
.taxonomy-faq-section,
.related-categories,
.category-seo-section,
.popular-comparisons-section{
    margin-top:56px;
}

.taxonomy-faq-section h2,
.related-categories h2,
.category-seo-section h2,
.popular-comparisons-section h2{
    font-size:34px;
    line-height:1.2;
    color:#111827;
    margin:0 0 24px;
}

.related-categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
}

.related-category-card{
    display:block;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:22px;
    text-decoration:none !important;
    color:#111827 !important;
    box-shadow:0 8px 24px rgba(15,23,42,.05);
    transition:.2s ease;
}

.related-category-card strong{
    display:block;
    font-size:18px;
    line-height:1.35;
    margin-bottom:8px;
}

.related-category-card span{
    color:#6b7280;
    font-size:13px;
    font-weight:800;
}

.related-category-card:hover{
    transform:translateY(-3px);
    border-color:#2563eb;
}

.category-seo-section{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:34px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}

.category-seo-section p{
    color:#374151;
    font-size:16px;
    line-height:1.8;
    margin-bottom:16px;
}

.taxonomy-compare-bar{
    display:none;
}

@media(max-width:768px){

    .taxonomy-faq-section h2,
    .related-categories h2,
    .category-seo-section h2,
    .popular-comparisons-section h2{
        font-size:28px;
    }

    .category-seo-section{
        padding:24px;
        border-radius:22px;
    }

    .related-categories-grid{
        grid-template-columns:1fr;
    }
}
/* ========================================================= */
/* TAXONOMY POLISH AFTER SPLIT */
/* ========================================================= */

.taxonomy-page .taxonomy-header{
    margin-bottom:34px;
}

.taxonomy-page .taxonomy-intro-content{
    text-align:center;
    max-width:980px;
    margin:34px auto;
}

.taxonomy-page .ranking-box{
    text-align:center;
}

.taxonomy-page .ranking-list{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.taxonomy-page .ranking-list li{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:999px;
    padding:10px 14px;
    margin:0;
}

.taxonomy-tools-section .section-head,
.free-tools-section .section-head,
.new-tools-section .section-head{
    margin-bottom:22px;
}

.taxonomy-faq-section .faq-box{
    margin-top:18px;
}

.category-seo-section,
.related-categories,
.popular-comparisons-section{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

.popular-comparisons-section .related-category-card strong{
    font-size:15px;
}

@media(max-width:768px){

    .taxonomy-page .ranking-list{
        align-items:stretch;
        flex-direction:column;
    }

    .taxonomy-page .ranking-list li{
        justify-content:center;
    }
}