
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #111827;
    margin-bottom: 1rem;
}

.section-header p {
    color: #6b7280;
    line-height: 1.8;
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;
    margin-bottom: .75rem;
    color: #2563eb;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
}
/* ==========================================
   CATEGORY PAGE
   PrimoWork
========================================== */
/* ==========================================
   CATEGORY HERO
========================================== */

.category-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 1.5rem;
    color: #111827;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero-content p {
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: .9rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
}

.hero-buttons .btn-primary {
    background: #2563eb;
    color: #fff;
}

.hero-buttons .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.hero-buttons .btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.hero-buttons .btn-outline:hover {
    background: #2563eb;
    color: #fff;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    transition: transform .35s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}



/* ---------- Breadcrumb ---------- */

/* ==========================================
   BREADCRUMB
========================================== */

.breadcrumb-section {
    padding: 1rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
}

.breadcrumb li {
    color: #6b7280;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: .5rem;
    color: #9ca3af;
}

.breadcrumb a {
    text-decoration: none;
    color: #2563eb;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ---------- Hero ---------- */


/* ---------- Category Introduction ---------- */


/* ---------- Benefits ---------- */

/* ==========================================
   BENEFITS
========================================== */

.benefits {
    padding: 5rem 0;
    background: #ffffff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(37,99,235,.12);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #111827;
}

.benefit-card p {
    color: #6b7280;
    line-height: 1.7;
}


/* ---------- Featured Guides ---------- */
/* ==========================================
   FEATURED GUIDES
========================================== */

.featured-guides {
    padding: 5rem 0;
    background: #f8fafc;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    transition: .3s;
    border: 1px solid #e5e7eb;
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,.10);
}

.featured-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .9rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

.featured-card.upcoming .featured-badge {
    background: #f59e0b;
}

.featured-card h3 {
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.4;
}

.featured-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.read-more:hover {
    color: #1d4ed8;
}

.read-more i {
    transition: transform .3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}


/* ---------- Dynamic Articles ---------- */
/* ==========================================
   DYNAMIC POSTS
========================================== */

.category-posts {
    padding: 5rem 0;
    background: #ffffff;
}

#postsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    transition: all .3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,.10);
}

.post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    margin-bottom: .75rem;
    padding: .3rem .75rem;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    line-height: 1.45;
}

.post-content h3 a {
    color: #111827;
    text-decoration: none;
}

.post-content h3 a:hover {
    color: #2563eb;
}

.post-content p {
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: .9rem;
    margin-top: auto;
}

.post-meta i {
    margin-right: .35rem;
}


/* ---------- Related Categories ---------- */

/* ==========================================
   RELATED CATEGORIES
========================================== */

.related-categories {
    padding: 5rem 0;
    background: #f8fafc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-link {
    display: block;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    color: #111827;
    font-weight: 700;
    transition: all .3s ease;
}

.category-link:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37,99,235,.18);
}


/* ---------- Responsive ---------- */
@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 420px;
    }

}

@media (max-width: 576px) {

    .category-hero {
        padding: 3.5rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

}