/**
 * Bright Infosystem Website
 *
 * @file faqs-section.css
 * @description Styles for the "Frequently Asked Questions" section.
 * @version 2.0 (Conflict Fix)
 */

.faqs-section {
    padding: 100px 20px;
    background-color: var(--bg-color);
}

.faqs-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left col slightly smaller */
    gap: 60px;
    align-items: flex-start; /* Align items to the top */
}

/* --- Left Column: Content --- */
.faqs-left-col {
    text-align: left;
    position: sticky;
    top: 120px; /* Adjust based on header height */
}

.faqs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
}

.faqs-badge .badge-icon {
    width: 16px;
    height: 16px;
}

.faqs-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.faqs-heading .gradient-text {
    background: linear-gradient(to right, var(--accent-color), var(--accent-secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faqs-description {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    margin: 0 0 30px 0;
}

/* --- Right Column: Accordion --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    border: 1px solid var(--divider-color);
    border-radius: 15px;
    background-color: var(--secondary-color);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.4s ease;
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 15px;
    border-top: 1px solid var(--divider-color);
    padding-top: 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust if answers are very long */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .faqs-container {
        grid-template-columns: 1fr;
    }
    .faqs-left-col {
        position: static;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .faqs-heading {
        font-size: 32px;
    }
    .faqs-left-col {
        text-align: left;
    }
}

