/* ========================================
   Category Page Styles - Modern Design
   ======================================== */

/* Hero: see .mzlat-hero in mzlat-style.css — .category-hero is alias only */
.category-hero.mzlat-hero {
    /* legacy hook */
}

.category-title,
.mzlat-hero.category-hero .mzlat-hero__title {
    /* alias for older selectors */
}

/* ========================================
   Category Content Section
   ======================================== */
.category-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.category-main-wrapper {
    min-width: 0;
}

.category-main {
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Category Description Box */
.category-description-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.category-description-box h2 {
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-description-box p {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Category Content */
.category-content {
    margin-bottom: 2rem;
}

/* Section Title Inner */
.section-title-inner {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ========================================
   Subcategories Section
   ======================================== */
.subcategories-section-inner {
    margin-bottom: 3rem;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.subcat-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eef2f6;
}

.subcat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.subcat-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.subcat-image img,
.subcat-image picture,
.subcat-image picture img {
    aspect-ratio: 4 / 3;
}

.subcat-image img,
.subcat-image picture,
.subcat-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subcat-card:hover .subcat-image img,
.subcat-card:hover .subcat-image picture img {
    transform: scale(1.1);
}

.subcat-content {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.subcat-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.subcat-card:hover .subcat-title {
    color: var(--accent-color);
}

.subcat-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.subcat-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 700;
}

.subcat-card:hover .subcat-more {
    color: var(--accent-color);
}

.subcat-arrow {
    display: none;
}

/* ========================================
   Services/Photos Section
   ======================================== */
.services-section-inner {
    margin-bottom: 3rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.photo-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-card-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.photo-card-image img,
.photo-card-image picture,
.photo-card-image picture img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-image img,
.photo-card:hover .photo-card-image picture img {
    transform: scale(1.1);
}

.photo-card-content {
    padding: 1.5rem;
}

.photo-card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photo-card-title-link {
    text-decoration: none;
}

.photo-card-title-link:hover .photo-card-title {
    color: var(--accent-color);
}

.photo-card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Category Tags Section
   ======================================== */
.category-tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.category-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Related Articles Section
   ======================================== */
.related-articles {
    padding: 4rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eef2f6;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.blog-image img,
.blog-image picture,
.blog-image picture img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img,
.blog-card:hover .blog-image picture img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.blog-content {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.blog-title {
    color: var(--heading-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.blog-icon {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-icon {
    background: var(--primary-color);
    transform: translateX(-5px);
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */
@media (max-width: 991px) {
    .category-main {
        padding: 2rem;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
        gap: 1.25rem;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .subcat-image img,
    .subcat-image picture,
    .subcat-image picture img {
        aspect-ratio: 4 / 3;
    }
    
    .photo-card-image img,
    .photo-card-image picture,
    .photo-card-image picture img {
        aspect-ratio: 4 / 3;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-image img,
    .blog-image picture,
    .blog-image picture img {
        aspect-ratio: 4 / 3;
    }
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */
@media (max-width: 767px) {
    .category-section {
        padding: 2rem 0;
    }
    
    .category-main {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .category-description-box {
        padding: 1.5rem;
    }
    
    .category-description-box h2 {
        font-size: 1.25rem;
    }
    
    .section-title-inner {
        font-size: 1.4rem;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subcat-image img,
    .subcat-image picture,
    .subcat-image picture img {
        aspect-ratio: 4 / 3;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .photo-card-image img,
    .photo-card-image picture,
    .photo-card-image picture img {
        aspect-ratio: 4 / 3;
    }
    
    .related-articles {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-image img,
    .blog-image picture,
    .blog-image picture img {
        aspect-ratio: 4 / 3;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .category-tags-list {
        gap: 0.75rem;
    }
    
    .category-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}
