/* css/faq.css - Styles specific to faq.html */

/* FAQ Content Section */
.ds-section--faq-main-content { /* Replaces .faq-content */
    /* padding from .ds-section */
    max-width: 1000px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.ds-faq-categories { /* Replaces .faq-categories */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.ds-faq-categories__btn { /* Replaces .category-btn */
    background: rgba(var(--ds-light-text-rgb, 230, 230, 250), 0.05);
    border: 1px solid var(--ds-primary-light);
    color: var(--ds-light-text);
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.ds-faq-categories__btn:hover {
    background: rgba(var(--ds-primary-light-rgb), 0.2);
    transform: translateY(-3px);
}
.ds-faq-categories__btn.active {
    background: var(--ds-primary-light);
    color: white;
    box-shadow: 0 0 15px rgba(var(--ds-primary-light-rgb), 0.4);
}

.ds-faq-main-content__list-container { /* Replaces .faq-container */
    margin-bottom: 50px;
}
.ds-faq-main-content__category-group { /* Replaces .faq-category */
    display: none; /* JS will toggle to 'block' or 'grid' */
    /* animation: ds-fadeIn-animation 0.5s ease; /* Defined in main.css or index.css */
}
.ds-faq-main-content__category-group.active {
    display: block;
}

.ds-faq-item { /* Replaces .faq-item, now a direct child of category-group */
    background: var(--ds-card-bg);
    border: 1px solid var(--ds-glass-effect);
    border-radius: 8px; /* Slightly less rounded than full cards */
    margin-bottom: 20px;
    overflow: hidden; /* For answer reveal */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ds-faq-item:hover {
    border-color: var(--ds-primary-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ds-faq-item__question-header { /* Replaces .faq-question */
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.ds-faq-item:hover .ds-faq-item__question-header {
    background-color: rgba(var(--ds-primary-light-rgb), 0.05);
}
.ds-faq-item__question-text { /* Replaces h3 in .faq-question */
    font-size: 1.1rem;
    color: var(--ds-light-text);
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 600;
    flex-grow: 1; /* Allow text to take available space */
    padding-right: 15px; /* Space before icon */
}
.ds-faq-item__toggle-icon { /* Replaces .toggle-icon */
    color: var(--ds-primary-light);
    transition: transform 0.3s ease;
    font-size: 1.2rem; /* Ensure icon is visible */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.ds-faq-item__answer-content { /* Replaces .faq-answer */
    padding: 0 20px; /* Horizontal padding */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    opacity: 0;
}
.ds-faq-item__answer-content p {
    color: var(--ds-gray-text);
    line-height: 1.6;
    padding-top: 5px; /* Space after question before answer text */
    padding-bottom: 20px; /* Space after answer text */
    margin: 0; /* Reset paragraph margin */
}
/* Active state for FAQ item */
.ds-faq-item.active .ds-faq-item__answer-content {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
}
.ds-faq-item.active .ds-faq-item__toggle-icon i {
    transform: rotate(45deg);
}

/* Contact CTA at the bottom of FAQ page */
.ds-faq-main-content__contact-cta { /* Replaces .contact-cta */
    text-align: center;
    background: var(--ds-card-bg);
    padding: 35px 30px;
    border-radius: 10px;
    border: 1px solid var(--ds-glass-effect);
    margin-top: 40px;
}
.ds-faq-main-content__contact-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ds-secondary-color);
}
.ds-faq-main-content__contact-cta p {
    margin-bottom: 25px;
    color: var(--ds-gray-text);
}
/* .ds-btn--primary for contact button is in main.css */


/* Responsive adjustments for FAQ page */
@media (max-width: 768px) {
    .ds-section--faq-hero .ds-hero__title { font-size: 2.5rem; }
    .ds-faq-item__question-text { font-size: 1rem; }
    .ds-faq-categories__btn { padding: 10px 20px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .ds-section--faq-hero .ds-hero__title { font-size: 2rem; }
    .ds-faq-categories { flex-direction: column; align-items: stretch; }
    .ds-faq-categories__btn { width: 100%; text-align: center; }
    .ds-faq-item__question-header { padding: 15px; }
    .ds-faq-item__question-text { font-size: 0.95rem; }
}