/* === CSS Variables from Theme Color Manager === */
:root {
    --tcm-theme-bg: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
    --tcm-theme-text: var(--tcm-theme-text, var(--tcm-theme-text, #333333));
    --tcm-accent: #1D4ED8;
    --tcm-accent-hover: #1E40AF;
    --tcm-accent-text: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
    --tcm-header-bg: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
    --tcm-header-text: var(--tcm-theme-text, var(--tcm-theme-text, #333333));
    --tcm-footer-bg: #1a1d29;
    --tcm-footer-text: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
    --tcm-table-header-bg: var(--tcm-table-even-bg, var(--tcm-table-even-bg, #F6F6F6));
    --tcm-table-header-text: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    --tcm-table-odd-bg: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
    --tcm-table-odd-text: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    --tcm-table-even-bg: var(--tcm-table-even-bg, var(--tcm-table-even-bg, #F6F6F6));
    --tcm-table-even-text: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    --tcm-custom-blocks-bg: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #ffffff));
}

/* FAQ Block Styles */

.faq-block {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF)));
}

.faq-container {
    max-width: 1520px;
    padding: 0 40px;
    margin: 0 auto;
    width: 100%;
}

/* Title Styles */
.faq-title {
    font-size: 40px;
    font-weight: 500;
    line-height: 100%;
    margin-bottom: 48px;
    text-align: left;
}

.faq-title__normal {
    color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
}

.faq-title__highlight {
    color: var(--tcm-accent);
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background: var(--tcm-custom-blocks-bg, var(--tcm-custom-blocks-bg, #FFFFFF));
    border-top: 1px solid #D8D8D8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Question Button */
.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-item__question:hover {
    background-color: #F9FAFB;
}

.faq-item__question-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    line-height: 1.5;
    padding-right: 20px;
    margin-top: 8px;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    position: relative;
}

.faq-item__icon-plus,
.faq-item__icon-minus {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item__icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-item__icon-minus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.is-open .faq-item__icon-plus {
    opacity: 0;
    transform: rotate(-90deg);
}

.faq-item.is-open .faq-item__icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* Answer Content */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
    max-height: 1000px;
}

.faq-item__answer-content {
    padding: 0 24px;
    color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    transition: padding 0.4s ease;
}

.faq-item.is-open .faq-item__answer-content {
    padding: 0;
}

.faq-item__answer-content:hover {
    background-color: #F9FAFB;
}

.faq-item__answer-content p {
    margin: 0 0 12px 0;
    padding: 0 !important;
}

.faq-item__answer-content p:last-child {
    margin-bottom: 0;
}

/* HTML Content Support */
.faq-item__answer-content ul,
.faq-item__answer-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-item__answer-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item__answer-content li:last-child {
    margin-bottom: 0;
}

.faq-item__answer-content a {
    color: #1D4ED8;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-item__answer-content a:hover {
    color: #1E40AF;
}

.faq-item__answer-content strong,
.faq-item__answer-content b {
    font-weight: 600;
    color: var(--tcm-table-even-text, var(--tcm-table-even-text, #212121));
}

.faq-item__answer-content em,
.faq-item__answer-content i {
    font-style: italic;
}

/* Empty State */
.faq-empty {
    text-align: center;
    color: #9CA3AF;
    font-size: 16px;
    padding: 40px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-title {
        font-size: 28px;
        margin-bottom: 44px;
    }

    .faq-item__question {
        padding: 24px 0;
    }

    .faq-item__question-text {
        font-size: 18px;
    }

    .faq-item__answer-content {
        font-size: 14px;
    }
}
@media (max-width: 600px) {
    .faq-container  {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 28px;
    }

    .faq-items {
        gap: 12px;
    }

    .faq-item__question {
        padding: 14px 0;
    }

    .faq-item__question-text {
        font-size: 15px;
    }

    .faq-item__answer-content {
        font-size: 14px;
    }
}
