/* style/faq.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #0056b3; /* Darker shade of primary for contrast */
    --border-color: #e0e0e0;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
}

.page-faq .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-faq .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Hero Banner Section */
.page-faq .hero-faq-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--text-color-light);
    padding: 80px 0;
    text-align: center;
}

.page-faq .hero-faq-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq .hero-faq-banner h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-weight: bold;
}

.page-faq .hero-faq-banner p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-faq .hero-faq-banner .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.page-faq .cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 10px;
}

.page-faq .cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    border: 2px solid var(--secondary-color);
}

.page-faq .cta-button.primary:hover {
    background-color: #e6b000; /* Slightly darker gold */
    border-color: #e6b000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-faq .cta-button.secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

.page-faq .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-faq .faq-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-faq .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-faq .faq-question:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
}

.page-faq .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color-dark);
    font-weight: 600;
    flex-grow: 1;
}

.page-faq .faq-question:hover h3 {
    color: var(--primary-color);
}

.page-faq .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    margin-left: 15px;
    line-height: 1;
}

.page-faq .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    border-top: 1px solid var(--border-color);
}

.page-faq .faq-item.active .faq-answer {
    max-height: 800px; /* Sufficient height for content */
    padding: 20px 25px;
}

.page-faq .faq-answer p {
    margin-bottom: 15px;
    color: #555555;
}

.page-faq .faq-answer ul {
    margin: 0 0 15px 20px;
    padding: 0;
    list-style-type: disc;
    color: #555555;
}

.page-faq .faq-answer ul li {
    margin-bottom: 8px;
}

.page-faq .faq-answer ul li strong {
    color: var(--primary-color);
}

.page-faq .faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* CTA Bottom Section */
.page-faq .cta-bottom {
    background: linear-gradient(45deg, var(--background-dark), var(--primary-color));
    padding: 60px 0;
    text-align: center;
    color: var(--text-color-light);
}

.page-faq .cta-bottom .section-title {
    color: var(--text-color-light);
}

.page-faq .cta-bottom .section-title::after {
    background-color: var(--secondary-color);
}

.page-faq .cta-bottom p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-faq .cta-bottom .cta-button.secondary {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.page-faq .cta-bottom .cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq .hero-faq-banner h1 {
        font-size: 2.8em;
    }
    .page-faq .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq .hero-faq-banner {
        padding: 60px 0;
    }
    .page-faq .hero-faq-banner h1 {
        font-size: 2.2em;
    }
    .page-faq .hero-faq-banner p {
        font-size: 1em;
    }
    .page-faq .cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin: 8px;
    }
    .page-faq .faq-question {
        padding: 15px 20px;
    }
    .page-faq .faq-question h3 {
        font-size: 1.1em;
    }
    .page-faq .faq-toggle {
        font-size: 20px;
    }
    .page-faq .faq-answer {
        padding: 0 20px;
    }
    .page-faq .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-faq .cta-bottom {
        padding: 40px 0;
    }
    .page-faq .cta-bottom p {
        font-size: 0.95em;
    }
}

@media (max-width: 576px) {
    .page-faq .hero-faq-banner h1 {
        font-size: 1.8em;
    }
    .page-faq .section-title {
        font-size: 1.8em;
    }
    .page-faq .cta-button {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
    .page-faq .faq-question {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-faq .faq-question h3 {
        margin-bottom: 10px;
    }
    .page-faq .faq-toggle {
        align-self: flex-end;
        margin-top: -30px; /* Adjust to position toggle correctly */
        margin-right: 5px;
    }
    .page-faq .hero-faq-banner .hero-image {
        margin-top: 30px;
    }
}