/* =========================================
   FAQ Section (Accordion Style)
========================================= */
.faq-section {
    max-width: 900px;
    margin: 40px auto 60px auto;
}

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

.faq-header h1,
.faq-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.faq-header p {
    font-size: 1rem;
    color: var(--text-light);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
}

/* Hide the default marker of the summary element */
.faq-question {
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question {
    padding: 20px 25px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background-color: var(--bg-color);
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-secondary);
}

/* Custom Plus/Minus Icon */
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 15px;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}
.faq-icon::before {
    width: 14px;
    height: 2px;
}
.faq-icon::after {
    width: 2px;
    height: 14px;
}

/* When Accordion is Open */
.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
}
.faq-item[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    padding: 20px 25px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    background-color: #FAFAFA;
}

/* FAQ Answer Links Styling */
.faq-answer p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-answer p a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

@media (max-width: 480px) {
    .faq-header h1,
    .faq-header h2 { font-size: 1.7rem; }
    .faq-question { padding: 16px 18px; font-size: 1rem; }
    .faq-answer { padding: 16px 18px; }
}
