/**
 * CSS for FAQ Shortcode
 * File: css/faq-style.css
 */

.faq-container {
    max-width: 930px;
    padding: 32px 0;
    margin-left: auto;
    margin-right: auto;
}

.faq-group {
    margin-bottom: 40px; /* Space between FAQ groups */
}

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

.faq-group-title {
    font-size: 1.8em; /* Adjust as needed */
    margin-top: 0;
    margin-bottom: 10px; /* Space after group title */
    padding-bottom: 5px;
    /* border-bottom: 2px solid #3498db; */ /* Optional accent border */
}

.faq-group-description {
    font-size: 1em;
    margin-bottom: 25px; /* Space after group description and before items wrapper */
    line-height: 1.6;
}

.faq-items-wrapper {
    /* Remove wrapper styling for clean design */
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.faq-item {
    background-color: #EAF2FD;
    margin-bottom: 16px;
    padding: 32px;
    border-radius: 16px;
}

.home .faq-item {
    background-color: #fff;
}

.faq-item:last-child {
    margin-bottom: unset;
}

.faq-question-text {
    color: #1A1A1A;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question-text::-webkit-details-marker {
    display: none; /* Hide default marker in webkit browsers */
}

.faq-question-text::marker {
    display: none; /* Hide default marker */
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: 16px;
    transition: transform 0.3s ease;
    background-image: url('../images/chevron.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 16px;
}

.faq-answer-content {
    color: #666;
}

/* Ensure paragraphs within the answer content are styled nicely */
.faq-answer-content p {
    margin: 0;
}

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

/* Ensure links in answers maintain good contrast */
.faq-answer-content a {
    color: #2D7AE9;
}

/* Ensure lists and other elements inherit grey color */
.faq-answer-content ul,
.faq-answer-content ol,
.faq-answer-content li {
    color: #666;
}

/* Media Queries */
@media (max-width: 767px) {
    .faq-container {
        padding: 0;
    }

    .faq-group-title {
        font-size: 1.6em;
    }

    .faq-item {
        padding: var(--container-padding);
    }

    .faq-question-text {
        font-size: 18px;
        line-height: 24px;
        padding: 10px 0;
    }

    .faq-answer {
        padding: 0;
        margin-top: 10px;
    }

    .faq-answer-content {
        font-size: 16px;
    }
}
