/* ==========================================
   Category Page Styles
   ========================================== */

/* Category Hero Section */
.category-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    overflow: hidden;
}

.category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.category-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.75));
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a:hover {
    color: var(--white-color);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.category-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--white-color);
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Category Content Section */
.category-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.category-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.category-main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.category-main {
    background: var(--white-color);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

/* Category Description Box */
.category-description-box {
    background: linear-gradient(135deg, rgba(4, 176, 178, 0.05), rgba(3, 138, 140, 0.05));
    border-right: 4px solid var(--primary-color);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.category-description-box h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-description-box h2 i {
    color: var(--primary-color);
}

.category-description-box p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* Category Content */
.category-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

.category-content h2,
.category-content h3,
.category-content h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
}

.category-content h2 {
    font-size: clamp(22px, 3vw, 26px);
}

.category-content h3 {
    font-size: clamp(19px, 2.5vw, 22px);
}

.category-content p {
    margin-bottom: 16px;
}

/* Section Title Inner */
.section-title-inner {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-inner i {
    color: var(--primary-color);
}

.subcategories-section-inner,
.services-section-inner {
    margin-bottom: 50px;
}

/* Category Tags Section */
.category-tags-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #E2E8F0;
}

.category-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(4, 176, 178, 0.1), rgba(3, 138, 140, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-tag i {
    color: var(--primary-color);
    font-size: 12px;
}

.category-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 176, 178, 0.3);
}

.category-tag:hover i {
    color: var(--white-color);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.subcat-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.subcat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(4, 176, 178, 0.2);
}

.subcat-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.subcat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subcat-card:hover .subcat-image img {
    transform: scale(1.1);
}

.subcat-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.subcat-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.subcat-desc {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subcat-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 14px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.subcat-card:hover .subcat-arrow {
    transform: translateX(-6px);
    box-shadow: 0 4px 12px rgba(4, 176, 178, 0.4);
}


/* Photos Grid - 2 Columns */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.photo-card {
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(4, 176, 178, 0.15);
}

.photo-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: block;
    cursor: zoom-in;
}

.photo-card-image::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.photo-card:hover .photo-card-image::after {
    opacity: 0.8;
}

.photo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-card:hover .photo-card-image img {
    transform: scale(1.05);
}

.photo-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-card-title-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.photo-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.photo-card-title-link:hover .photo-card-title {
    color: var(--primary-color);
    text-decoration: underline;
}

.photo-card-desc {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
}



/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        height: 350px;
        padding-bottom: 30px;
    }
    
    .category-section {
        padding: 50px 0;
    }
    
    .category-main {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .category-description-box {
        padding: 20px;
    }
    
    .category-description-box h2 {
        font-size: 18px;
    }
    
    .section-title-inner {
        font-size: 20px;
    }
    
    .subcategories-grid,
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .photo-card-image {
        height: 250px;
    }
    
    .photo-card-content {
        padding: 20px;
    }
    
    .photo-card-title {
        font-size: 16px;
    }
    
    .photo-card-desc {
        font-size: 14px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .category-tags-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .category-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}
