/* ==========================================
   CATEGORY PAGE TEMPLATE
   ========================================== */

/* Breadcrumb Section */
.breadcrumb-section {
    background: var(--light-color);
    padding: 1.5rem 0;
    margin-top: 80px;
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--dark-color);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #999;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Category Hero */
.category-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.category-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.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(
        135deg,
        rgba(89, 50, 2, 0.85) 0%,
        rgba(115, 55, 2, 0.75) 100%
    );
    z-index: 2;
}

.category-hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.category-hero-content h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.category-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.category-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Category Intro Section */
.category-intro-section {
    padding: 6rem 0;
    background: white;
}

.category-intro-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
}

.intro-lead {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.intro-highlight-box {
    background: var(--light-color);
    padding: 2.5rem;
    position: sticky;
    top: 100px;
}

.intro-highlight-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.intro-highlight-box h3 i {
    color: var(--secondary-color);
}

.highlight-list {
    list-style: none;
    margin-bottom: 2rem;
}

.highlight-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-color);
    font-size: 1rem;
}

.highlight-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

/* Category Services Section */
.category-services-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-pretitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-grid-card {
    background: white;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-grid-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-grid-card > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
    font-size: 0.95rem;
}

.service-card-features i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.btn-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-card-link:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

/* Process Timeline */
.category-process-section {
    padding: 6rem 0;
    background: white;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light-color);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(89, 50, 2, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.step-content p {
    color: #666;
    line-height: 1.7;
}

/* CTA Section */
.category-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

/* FAQ Section */
.category-faq-section {
    padding: 6rem 0;
    background: var(--light-color);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem;
    color: #666;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-highlight-box {
        position: static;
    }
    
    .process-timeline::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 1rem 0;
    }
    
    .category-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .category-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-intro-section,
    .category-services-section,
    .category-process-section,
    .category-cta-section,
    .category-faq-section {
        padding: 4rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .intro-highlight-box {
        padding: 1.5rem;
    }
    
    .service-grid-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1rem;
    }
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.125rem);
}
