/* ***********************************************************************
    Filename: faq.css
    Description: CSS for the FAQ section of SACFinance
   
    Related Files:
        - faq.cfm 
  
************************************************************************ */

/* ----------------------------- */
/* FAQ PAGE HEADER + BREADCRUMB */
/* ----------------------------- */

.faq-container {
    margin-top: 0 auto;
    padding: 20px;
    font-family: 'Calibri', sans-serif;

}

.faq-header {
    margin: 0 auto;
    padding: 20px;
}

.faq-header h1 {
    font-size: 20px;
    font-weight: 500;
    color: #1d1d1d;
    margin-bottom: 15px;
    font-family: 'Calibri', sans-serif;
}

.faq-header .faq-bold {
    font-weight: 700;
    margin-right: 8px;
    font-size: 35px;
    color: #EE3829;
}

.breadcrumb-box {
    background: #e9ecef;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.breadcrumb-box a {
    color: #2A95D1;
    text-decoration: none;
}

.breadcrumb-box span {
    color: #666;
}


/* ----------------------------- */
/* FAQ ACCORDION                */
/* ----------------------------- */

.faq-overall-items{
    max-width: 100%;
    margin: 0 20px;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #d9d9d9;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #2A95D1;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

/* Question button */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    background: #f8f9fa;
    color: #043e6c;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-item.active .faq-question {
    background: #e1f1fb;
    color: #043e6c;
}

/* Arrow */
.faq-question .arrow {
    font-size: 16px;
    transition: transform 0.25s ease;
    color: #043e6c;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* Answer content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 22px;
    font-size: 16px;
    color: #333;
}

.faq-item.active .faq-answer {
    padding: 16px 22px 22px;
    max-height: 500px; /* enough for long answers */
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}


/* List styling */
.faq-answer ol {
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 1rem;
}

/* Image styling */
.faq-answer img {
    display: block;
    margin-top: 0.5rem;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Link styling inside answers */
.faq-answer a {
    color: #2a95d1;
    text-decoration: underline;
}

.faq-answer a:hover {
    color: #043e6c;
}



/* Mobile adjustments */
@media (max-width: 600px) {
    .faq-header h1 {
        font-size: 20px;
    }
    

    .faq-question {
        font-size: 16px;
        padding: 15px 18px;
    }

    .faq-answer {
        padding: 0 18px;
        font-size: 15px;
    }

    .faq-header .faq-bold {
        display: block;
    }
}
