/* ============================================================
   FAQ ACCORDION STYLES
   File: /css/faq.css
   Purpose: Shared FAQ styling for all pages
   ============================================================ */

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background: #f9f9f9;
}

.faq-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #225656;
}

/* FAQ Item Container */
.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 60px 20px 25px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: #225656;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question:focus {
    outline: 2px solid #348888;
    outline-offset: -2px;
}

/* Plus/Minus Icon */
.faq-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #348888;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: translateY(-50%) rotate(45deg);
}

/* FAQ Answer Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 1500px; /* Large enough for any answer */
    padding: 0 25px 25px 25px;
}

.faq-answer p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #225656;
}

.faq-answer a {
    color: #348888;
    text-decoration: none;
}

.faq-answer a:hover {
    color: #fa7f08;
    text-decoration: underline;
}

/* List styling within FAQs */
.faq-answer ul,
.faq-answer ol {
    margin: 10px 0 15px 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Open First FAQ by Default */
.faq-item:first-child {
    border-left: 4px solid #348888;
}

.faq-item.active {
    border-left: 4px solid #fa7f08;
}

/* CTA within FAQ section */
.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #f24405;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-cta .cta-button:hover {
    background: #c23604;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 18px 50px 18px 20px;
    }

    .faq-icon {
        right: 20px;
        font-size: 1.3rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Print Styles - Show All Answers */
@media print {
    .faq-answer {
        max-height: none !important;
        padding: 0 25px 25px 25px !important;
    }
    
    .faq-icon {
        display: none;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
}