/* ==================== FAQ Section ==================== */

.faq-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
    min-height: 60vh;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: 'Sebenta', sans-serif;
}

.faq-header p {
    font-size: 20px;
    color: #666666;
    margin-top: 0;
    line-height: 1.6;
}

/* FAQ Items */
.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.faq-item:hover {
    border-color: #333333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.faq-item[open] {
    border-color: #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    font-size: 17px;
    font-weight: 600;
    color: #111111;
    list-style: none;
    transition: background-color 0.2s ease;
    position: relative;
    line-height: 1.5;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background-color: #f5f5f5;
    color: #111111;
}

.faq-item[open] .faq-question {
    background-color: #f5f5f5;
    color: #111111;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: 24px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f0f0f0;
    line-height: 1;
    padding-bottom: 2px;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(0deg);
    background: #333333;
    color: #ffffff;
}

.faq-answer {
    padding: 0 28px 28px 28px;
    color: #444444;
    font-size: 16px;
    line-height: 1.75;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.faq-answer p {
    margin: 0 0 18px 0;
    color: #444444;
    line-height: 1.75;
}

.faq-answer p:first-child {
    margin-top: 4px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #111111;
    font-weight: 600;
}

.faq-answer ul,
.faq-answer ol {
    margin: 16px 0;
    padding-left: 28px;
    color: #444444;
}

.faq-answer ul {
    list-style-type: disc;
}

.faq-answer ol {
    list-style-type: decimal;
}

.faq-answer li {
    margin-bottom: 10px;
    color: #444444;
    line-height: 1.75;
    padding-left: 4px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer li strong {
    color: #111111;
    font-weight: 600;
}

.faq-answer a {
    color: #111111;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration-color: #666666;
}

.faq-answer a:hover {
    color: #333333;
    text-decoration-color: #333333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 30px 0;
    }
    
    .faq-header {
        margin-bottom: 40px;
    }
    
    .faq-header h2 {
        font-size: 36px;
    }
    
    .faq-header p {
        font-size: 18px;
    }
    
    .faq-question {
        font-size: 17px;
        padding: 20px 24px;
        line-height: 1.4;
    }
    
    .faq-question::after {
        font-size: 24px;
        margin-left: 16px;
        width: 28px;
        height: 28px;
    }
    
    .faq-answer {
        padding: 0 24px 24px 24px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .faq-answer p {
        margin-bottom: 16px;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        margin: 14px 0;
        padding-left: 24px;
    }
    
    .faq-answer li {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 30px 0;
    }
    
    .faq-header {
        margin-bottom: 32px;
    }
    
    .faq-header h2 {
        font-size: 28px;
    }
    
    .faq-header p {
        font-size: 16px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 18px 20px;
    }
    
    .faq-question::after {
        font-size: 20px;
        margin-left: 12px;
        width: 24px;
        height: 24px;
    }
    
    .faq-answer {
        padding: 0 20px 20px 20px;
        font-size: 14px;
        line-height: 1.7;
    }
    
    .faq-answer p {
        margin-bottom: 14px;
    }
    
    .faq-answer ul,
    .faq-answer ol {
        margin: 12px 0;
        padding-left: 20px;
    }
    
    .faq-answer li {
        margin-bottom: 6px;
    }
    
    .faq-wrapper {
        gap: 12px;
    }
}

/* Compact FAQ for Homepage - Strict Design */
.compact-faq {
    padding: 60px 0 80px;
    background: #ffffff;
}

.compact-faq .faq-container {
    max-width: 1000px;
}

.compact-faq .faq-wrapper.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

.compact-faq .faq-header {
    margin-bottom: 40px;
}

.compact-faq .faq-header h2 {
    font-size: 42px;
    color: #111111;
    font-weight: 700;
}

.compact-faq .faq-item {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.compact-faq .faq-item:hover {
    border-color: #999999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-faq .faq-item[open] {
    border-color: #111111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.compact-faq .faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
}

.compact-faq .faq-question:hover {
    background-color: #f5f5f5;
    color: #111111;
}

.compact-faq .faq-item[open] .faq-question {
    background-color: #f5f5f5;
    color: #111111;
}

.compact-faq .faq-question::after {
    width: 24px;
    height: 24px;
    font-size: 20px;
    background: #e8e8e8;
    color: #333333;
    border-radius: 3px;
}

.compact-faq .faq-item[open] .faq-question::after {
    background: #111111;
    color: #ffffff;
}

.compact-faq .faq-answer {
    padding: 0 20px 18px 20px;
    font-size: 15px;
    color: #444444;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 0;
}

.faq-cta p {
    font-size: 18px;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 500;
}

.faq-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-faq {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    width: 200px;
    height: 54px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #e8e8e8;
    color: #333333;
    border: none;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-faq:hover {
    background: #d5d5d5;
    box-shadow: none;
}

.btn-faq:active {
    transform: none !important;
}

.btn-faq-secondary {
    background: #e8e8e8;
    color: #333333;
    border: none;
    box-shadow: none;
}

.btn-faq-secondary:hover {
    background: #d5d5d5;
    box-shadow: none;
    color: #333333;
}

.btn-faq-secondary:active {
    background: #e8e8e8;
}

/* Compact FAQ Responsive */
@media (max-width: 768px) {
    .compact-faq .faq-wrapper.compact {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .compact-faq {
        padding: 30px 0;
    }
    
    .compact-faq .faq-header h2 {
        font-size: 32px;
    }
    
    .compact-faq .faq-header {
        margin-bottom: 40px;
    }
    
    .faq-cta {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .faq-cta p {
        font-size: 16px;
    }
    
    .faq-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-faq {
        width: 200px;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .compact-faq .faq-header h2 {
        font-size: 26px;
    }
    
    .compact-faq .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .compact-faq .faq-answer {
        padding: 0 18px 16px 18px;
        font-size: 14px;
    }
}
