﻿/* FAQ Container */
.faq {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* FAQ Accordion Section */
.faq__accordion {
    flex: 2;
}

.faq__item {
    margin-bottom: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #9AD5DB;
    border: 1px solid #9AD5DB;
}

.faq__question {
    width: 100%;
    padding: 20px 24px;
    background: #9AD5DB;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    color: #144562;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.faq__question:hover {
    background: #e6f2f5;
}

.faq__question[aria-expanded="true"] {
    background: #d9eef3;
}

.faq__question-text {
    flex: 1;
    padding-right: 16px;
}

.faq__toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.faq__toggle-icon.rotated {
    transform: rotate(180deg);
}

.faq__icon--chevron {
    color: #144562;
}

/* FAQ Answer Section */
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__answer.expanded {
    overflow: visible;
}

.faq__answer-content {
    padding: 24px;
    color: #333;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    background: #ffffff;
}

.faq__answer-content p {
    margin-bottom: 16px;
}

.faq__answer-content p:last-child {
    margin-bottom: 0;
}

.faq__answer-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.faq__answer-content li {
    margin-bottom: 8px;
}

.faq__answer-content strong,
.faq__answer-content b {
    font-weight: 600;
    color: #144562;
}

.faq__answer-content a {
    color: #144562;
    text-decoration: none;
}

.faq__answer-content a:hover {
    text-decoration: underline;
}

/* FAQ Sidebar */
.faq__sidebar {
    flex: 1;
    max-width: 350px;
}

.faq__image-wrapper {
    margin-bottom: 30px;
}

.faq__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.faq__graph-wrapper {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
}

.faq__graph-title {
    color: #144562;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.faq__graph-link {
    display: block;
    text-align: center;
    text-decoration: none;
}

.faq__graph-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
    border-radius: 4px;
}

.faq__enlarge-text {
    color: #144562;
    font-size: 14px;
    font-style: italic;
    display: block;
    margin-top: 8px;
}

.faq__enlarge-text:hover {
    text-decoration: underline;
}

/* Chart canvas styling */
.faq__graph-canvas {
    width: 100% !important;
    height: auto !important;
    cursor: pointer;
}

.faq__graph-link:hover .faq__graph-canvas {
    opacity: 0.9;
}

/* Modal styling for Bootstrap 5 */
.modal-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.modal-xl {
    max-width: 1140px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq__content {
        flex-direction: column;
    }

    .faq__sidebar {
        max-width: 100%;
        width: 100%;
    }

    .faq__question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq__answer-content {
        padding: 18px;
        font-size: 15px;
    }

    .faq__image {
        display: none;
    }
}

@media (max-width: 480px) {
    .faq {
        margin: 40px auto;
    }

    .faq__question {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq__answer-content {
        padding: 16px;
        font-size: 14px;
    }

    .faq__graph-wrapper {
        padding: 16px;
    }

    .faq__image {
        display: none;
    }
}
