/**
 * SEO Enhancements CSS
 * Phase 2: Breadcrumbs, FAQ, และ Internal Links
 */

/* ===== Breadcrumbs ===== */
.seo-breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.seo-breadcrumb .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 10px 20px;
    font-size: 14px;
}

.seo-breadcrumb .breadcrumb-item {
    color: #6c757d;
}

.seo-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.seo-breadcrumb .breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.seo-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

.seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 8px;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-section .section-header {
    margin-bottom: 50px;
}

.faq-section .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.faq-section .section-header p {
    font-size: 18px;
    color: #6c757d;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    font-size: 16px;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.faq-question[aria-expanded="true"] i,
.faq-question:not(.collapsed) i {
    transform: rotate(180deg) !important;
}

.faq-question[aria-expanded="false"] i,
.faq-question.collapsed i {
    transform: rotate(0deg) !important;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: white;
}

.faq-answer.show {
    padding: 25px 30px;
    max-height: 1000px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer div {
    color: #495057;
    font-size: 16px;
    line-height: 1.8;
}

/* ===== Related Services ===== */
.related-services {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-services h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    text-decoration: none;
}

.related-service-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.related-service-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.related-service-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .seo-breadcrumb .breadcrumb {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .faq-section {
        padding: 50px 0;
    }
    
    .faq-section .section-header h2 {
        font-size: 28px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer.show {
        padding: 20px;
    }
    
    .related-services-grid {
        grid-template-columns: 1fr;
    }
}
