/* style.css */
.faq-accordion-container {
    width: 100%;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #f9f9f9;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f1f1f1;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: normal;
    color: #999;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '−'; /* Use proper minus sign */
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.faq-answer-inner {
    padding: 20px;
    line-height: 1.6;
}

/* Single Page Styles */
.faq-single-container {
    width: 100%;
    margin: 40px auto;
    padding: 0;
    font-family: sans-serif;
}

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

.faq-page-title {
    font-size: 28px;
    color: #4b89dc;
    /* Light blue from image */
    display: inline-block;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* Breadcrumbs */
.faq-breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-breadcrumbs a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.faq-breadcrumbs a:hover {
    text-decoration: underline;
}

.faq-breadcrumbs .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.faq-breadcrumb-sep {
    color: #999;
}

.faq-single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.faq-labels {
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-category-links,
.faq-tag-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-meta-separator {
    width: 1px;
    height: 20px;
    background-color: #eee;
    margin: 0 5px;
}

.faq-label-category {
    color: #4b89dc;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.faq-label-category:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.faq-label-category .dashicons {
    margin-right: 5px;
    color: #4b89dc;
}

.faq-label-tag {
    display: inline-block;
    padding: 3px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.faq-label-tag:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.faq-date {
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.faq-date .dashicons {
    margin-right: 5px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.faq-single-content {
    margin-top: 20px;
}

.faq-main-q-section,
.faq-main-a-section {
    display: flex;
    margin-bottom: 30px;
}

.faq-icon-q,
.faq-icon-a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.faq-icon-q {
    background-color: #000033;
}

.faq-icon-a {
    background-color: #3b99fc;
}

.faq-question-text {
    font-size: 24px;
    font-weight: bold;
    margin: 8px 0 0 0;
    line-height: 1.4;
    color: #000033;
}

.faq-answer-container {
    flex-grow: 1;
    padding-top: 8px;
}

.faq-answer-text {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .faq-single-header {
        margin-bottom: 30px;
    }

    .faq-page-title {
        font-size: 24px;
    }

    .faq-single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .faq-main-q-section,
    .faq-main-a-section {
        flex-direction: row;
        /* Keep icon on the left but maybe smaller */
    }

    .faq-icon-q,
    .faq-icon-a {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 15px;
    }

    .faq-question-text {
        font-size: 20px;
        margin-top: 5px;
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {

    .faq-main-q-section,
    .faq-main-a-section {
        flex-direction: column;
    }

    .faq-icon-q,
    .faq-icon-a {
        margin-bottom: 10px;
    }

    .faq-answer-container {
        padding-top: 0;
    }
}

/* Archive Page Styles */
.faq-archive-container {
    width: 100%;
    margin: 40px auto;
    padding: 0;
}

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

.faq-category-section {
    margin-bottom: 60px;
}

.faq-category-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 5px solid #000033;
    padding-left: 15px;
    color: #333;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    align-items: start; /* Prevent items from stretching to the same height */
}

.faq-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-card-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changed from flex-start to center for better icon alignment */
    transition: background 0.2s;
}

.faq-card-header:hover {
    background-color: #fcfcfc;
}

.faq-header-left {
    display: flex;
    align-items: flex-start;
    width: 90%;
}

.faq-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
}

/* Override Q icon size for card if needed, or reuse */
.faq-card .faq-icon-q {
    margin-right: 15px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    flex-shrink: 0;
}

.faq-card-header.active+.faq-card-body {
    border-top: 1px solid #f0f0f0;
}

.faq-body-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.faq-card .faq-icon-a {
    margin-right: 15px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    flex-shrink: 0;
}

.faq-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* POINT box and Supplementary Info */
.faq-points-box {
    background-color: #f7f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.faq-points-title {
    font-weight: bold;
    font-size: 14px;
    color: #4b89dc;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.faq-points-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-points-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.faq-points-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 15px;
    height: 1px;
    background-color: #ccc;
}

.faq-supp-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

.faq-main-answer {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.faq-read-more {
    text-align: right;
}

.faq-read-more a {
    font-size: 12px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.faq-read-more a:hover {
    opacity: 0.7;
}

.faq-list-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    background: #fff;
}

.faq-list-item:hover {
    background: #f9f9f9;
}

.faq-list-q-icon {
    background: #000033;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 14px;
}

.faq-list-title {
    flex-grow: 1;
    font-weight: bold;
    font-size: 16px;
}

.faq-list-arrow {
    color: #999;
}

.faq-pagination {
    margin-top: 30px;
    text-align: center;
}