/* style/faq.css */

/* General styles for FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Hero Section */
.page-faq__hero {
    background: linear-gradient(135deg, #0047AB, #00287a);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-faq__hero > .page-faq__container {
    position: relative;
    z-index: 1;
}

.page-faq__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f8ff;
}

/* Buttons */
.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: 1em;
    border: none;
    text-align: center;
}

.page-faq__btn--primary {
    background-color: #FFD700;
    color: #0047AB;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-faq__btn--secondary {
    background-color: #0047AB;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.page-faq__btn--secondary:hover {
    background-color: #003a8c;
    transform: translateY(-2px);
}

/* Section Titles */
.page-faq__section {
    padding: 60px 0;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #0047AB;
    text-align: center;
    margin-bottom: 40px;
    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: #FFD700;
    border-radius: 2px;
}

/* Accordion Section */
.page-faq__accordion-section {
    background-color: #fff;
}

.page-faq__accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-faq__accordion-item {
    border-bottom: 1px solid #eee;
}

.page-faq__accordion-item:last-child {
    border-bottom: none;
}

.page-faq__accordion-header {
    margin: 0;
}

.page-faq__accordion-button {
    width: 100%;
    background-color: #fcfcfc;
    color: #0047AB;
    padding: 20px 25px;
    border: none;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-faq__accordion-button:hover {
    background-color: #e6f0ff;
}

.page-faq__accordion-button.active {
    background-color: #e6f0ff;
    color: #003a8c;
}

.page-faq__accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.page-faq__accordion-icon::before,
.page-faq__accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #0047AB;
    transition: transform 0.3s ease;
}

.page-faq__accordion-icon::before {
    width: 2px;
    height: 16px;
    top: 2px;
    left: 9px;
}

.page-faq__accordion-icon::after {
    width: 16px;
    height: 2px;
    top: 9px;
    left: 2px;
}

.page-faq__accordion-button.active .page-faq__accordion-icon::before {
    transform: rotate(90deg);
}

.page-faq__accordion-button.active .page-faq__accordion-icon::after {
    transform: rotate(180deg);
}

.page-faq__accordion-content {
    padding: 0 25px;
    background-color: #fdfdfd;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content.active {
    max-height: 500px; /* Increased for potential longer content */
    padding: 20px 25px;
}

.page-faq__accordion-content p {
    margin-bottom: 15px;
    color: #555;
}

.page-faq__accordion-content a {
    color: #0047AB;
    text-decoration: underline;
}

.page-faq__accordion-content .page-faq__btn {
    margin-top: 10px;
}

/* Related FAQs Section */
.page-faq__related-faqs {
    background-color: #f0f5ff;
    padding-bottom: 80px;
}

.page-faq__detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq__detail-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-faq__detail-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0047AB;
}

.page-faq__detail-title a {
    color: #0047AB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__detail-title a:hover {
    color: #FFD700;
}

.page-faq__detail-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* Call to Action Bottom */
.page-faq__cta-bottom {
    background-color: #0047AB;
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.page-faq__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700;
}

.page-faq__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f8ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-faq__title {
        font-size: 2.5em;
    }

    .page-faq__subtitle {
        font-size: 1.1em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__accordion-button {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-content.active {
        padding: 15px 20px;
    }

    .page-faq__detail-item {
        padding: 25px;
    }

    .page-faq__cta-title {
        font-size: 2em;
    }

    .page-faq__cta-description {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-faq__title {
        font-size: 2em;
    }

    .page-faq__subtitle {
        font-size: 1em;
    }

    .page-faq__hero {
        padding: 60px 0;
    }

    .page-faq__section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__accordion-button {
        font-size: 1em;
    }

    .page-faq__cta-bottom {
        padding: 50px 0;
    }

    .page-faq__cta-title {
        font-size: 1.8em;
    }
}