/* ======================================================
   HERO
====================================================== */
.category-hero {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 90px 0 60px;
}

/* ======================================================
   BREADCRUMB
====================================================== */
.breadcrumb {
    margin-bottom: 40px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    transition: opacity .2s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb .separator {
    color: #94a3b8;
}

.breadcrumb .current {
    color: #64748b;
    font-weight: 600;
}

/* ======================================================
   TITLE
====================================================== */
.category-title {
    font-size: 42px;
    font-weight: 800;
    color: #020617;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

/* ======================================================
   DESCRIPTION
====================================================== */

/* ======================================================
   SUBCATEGORIES
====================================================== */
.category-subcats {
    padding: 60px 0 40px;
    background: #ffffff;
}

.category-subcats h2 {
    margin-bottom: 40px;
    font-size: 30px;
}

.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.subcat-card {
    background: #f8fafc;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    color: #020617;
    transition: transform .25s ease, box-shadow .25s ease;
}

.subcat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

/* ======================================================
   GALLERY
====================================================== */
.category-gallery {
    padding: 60px 0 80px;
    background: #f8fafc;
}

.category-gallery h2 {
    margin-bottom: 40px;
    font-size: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
    transition: transform .3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.04);
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 900px) {

    .category-title {
        font-size: 30px;
    }

}

/* ======================================================
   DESCRIPTION (NEW ARTICLE STYLE)
====================================================== */
.category-description {
    column-count: 2;
    column-gap: 100px;

    font-size: 15px;
    line-height: 1.9;
    color: #475569;

    max-width: 1300px;
}

.category-description p {
    margin-bottom: 18px;
    break-inside: avoid;
}

/* MOBILE */
@media (max-width: 900px) {
    .category-description {
        column-count: 1;
        font-size: 13px;
    }
}

.category-description {
    text-align: justify;
}

.image-modal {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;

}

.modal-content {

    max-width: 90%;
    max-height: 90%;

    object-fit: contain;

    border-radius: 6px;

}

.modal-close {

    position: absolute;

    top: 30px;
    right: 40px;

    font-size: 40px;
    color: white;

    cursor: pointer;

}

.modal-nav {

    position: absolute;

    top: 50%;

    font-size: 60px;
    color: white;

    cursor: pointer;

    user-select: none;

}

.modal-prev {

    left: 40px;

}

.modal-next {

    right: 40px;

}

.gallery-img {

    cursor: pointer;
    transition: 0.3s;

}

.gallery-img:hover {

    transform: scale(1.03);

}