/* style/faq.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

/* Base styles for the FAQ page content */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-faq__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-faq__subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-faq__text-block p,
.page-faq__text-block li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-faq__text-block strong {
    color: var(--text-main);
}

.page-faq__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-faq__list-item {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* HERO Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
}

.page-faq__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold-color);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.page-faq__hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* CTA Button Styles */
.page-faq__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-button--secondary {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    margin-left: 15px;
}

.page-faq__cta-button--secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-faq__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Content specific wrappers */
.page-faq__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.page-faq__content-wrapper .page-faq__text-block {
    flex: 1;
    min-width: 300px;
}

.page-faq__content-wrapper .page-faq__image-wrapper {
    flex: 0 0 400px; /* Fixed width for image on desktop */
    max-width: 100%;
    box-sizing: border-box;
}

.page-faq__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-faq__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__image-wrapper--bottom {
    margin-top: 40px;
    text-align: center;
}

/* FAQ Accordion Styles (using <details>) */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: rgba(var(--primary-color), 0.5); /* Slightly lighter hover for dark card */
    color: var(--gold-color);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details[open].page-faq__faq-item .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 20px;
    background: rgba(var(--deep-navy-color), 0.5); /* Slightly transparent dark background for answer */
    border-top: 1px solid var(--divider-color);
    border-radius: 0 0 8px 8px;
}

.page-faq__faq-answer p {
    color: var(--text-secondary);
    margin-top: 15px;
    font-size: 16px;
}

/* Conclusion CTA Section */
.page-faq__section--cta {
    text-align: center;
    background: var(--primary-color);
    padding: 80px 0;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__section--cta .page-faq__section-title {
    color: var(--gold-color);
    margin-bottom: 25px;
}

.page-faq__cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__section-title {
        font-size: 32px;
    }
    .page-faq__subsection-title {
        font-size: 22px;
    }
    .page-faq__text-block p,
    .page-faq__text-block li {
        font-size: 15px;
    }
    .page-faq__hero-description,
    .page-faq__cta-description {
        font-size: 17px;
    }
    .page-faq__content-wrapper .page-faq__image-wrapper {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-faq__subsection-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__hero-description {
        font-size: 16px;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-faq__content-wrapper .page-faq__image-wrapper {
        flex: none;
        width: 100%;
    }
    .page-faq__image-wrapper img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__cta-button,
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__cta-button--secondary {
        margin-left: 0;
    }
    .page-faq__button-group {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 15px;
    }
    .page-faq__faq-answer p {
        font-size: 15px;
    }
    .page-faq__section--cta {
        padding: 50px 20px;
        margin: 30px auto;
    }
    .page-faq__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .page-faq__section-title {
        font-size: 24px;
    }
    .page-faq__subsection-title {
        font-size: 18px;
    }
    .page-faq__hero-image img {
      border-radius: 4px;
    }
    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-faq__text-block p,
    .page-faq__text-block li {
        font-size: 14px;
    }
    .page-faq__faq-qtext {
        font-size: 15px;
    }
    .page-faq__faq-answer p {
        font-size: 14px;
    }
}