.category-page {
    min-height: 100vh;
}

.category-hero {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 60px 0;
    border-bottom: 1px solid #e5e7eb;
}

.category-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.breadcrumb span {
    color: #9ca3af;
}

.category-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.category-hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 700px;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.category-stats {
    margin-bottom: 32px;
    color: #6b7280;
    font-size: 0.95rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #7A9D96;
}

.category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 28px;
}

.category-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.category-card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.category-card-stats {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Subcategories Section */
.subcategories-section {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 40px 0;
    margin-bottom: 40px;
}

.subcategories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.subcategories-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.subcategories-toggle {
    display: none;
    background: #7A9D96;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    align-items: center;
    gap: 8px;
}

.subcategories-toggle:hover {
    background: #5f7c75;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.subcategories-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subcategory-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #7A9D96;
}

.subcategory-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.subcategory-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

.subcategory-count {
    font-size: 0.8rem;
    color: #7A9D96;
    font-weight: 500;
    background: #f0f4f3;
    padding: 4px 12px;
    border-radius: 12px;
}

/* SEO Content Section */
.category-seo-section {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e5e7eb;
}

.category-seo-content {
    max-width: 100%;
    padding: 0 20px;
    color: #4b5563;
    line-height: 1.8;
}

.category-seo-content h2 {
    color: #1a1a1a;
    margin-bottom: 30px;
}

.category-seo-content h3 {
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.category-seo-content p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Dark mode for category SEO section */
.dark-mode .category-seo-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

@media (max-width: 768px) {
    .category-hero {
        padding: 40px 0;
    }

    .category-hero-title {
        font-size: 2rem;
    }

    .category-hero-description {
        font-size: 1.1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .subcategories-section {
        padding: 30px 0;
    }

    .subcategories-header {
        margin-bottom: 16px;
    }

    .subcategories-title {
        font-size: 1.5rem;
        margin: 0;
    }

    .subcategories-toggle {
        display: flex;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .subcategories-grid.collapsed {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
        margin-bottom: 0;
        visibility: hidden;
    }

    .subcategories-grid:not(.collapsed) {
        max-height: none;
        opacity: 1;
        visibility: visible;
    }

    .subcategory-card {
        padding: 16px;
    }


    .category-seo-content h2 {
        font-size: 28px;
    }

    .category-seo-content h3 {
        font-size: 22px;
    }

    .category-seo-content div[style*="padding: 40px"] {
        padding: 20px !important;
    }

    .category-seo-content div[style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}