:root {
    --primary-color: #1A2E47;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212;
    --background-light: #f5f5f5;
    --border-color: #e0e0e0;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark);
    line-height: 1.6;
}

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

/* Fixed navigation bar spacing */
.page-faq__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d1a2b 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__main-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__text-link:hover {
    color: #ffd947; /* Slightly brighter gold on hover */
    text-decoration: underline;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__cta-button:hover {
    background: #ffd947;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--secondary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-faq__cta-button--secondary:hover {
    background: #2a466a;
    border-color: #ffd947;
    color: #ffd947;
}

.page-faq__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--secondary-color);
    text-align: center;
    padding-top: 40px;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #1a2a3a; /* Slightly lighter dark background for contrast */
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--primary-color);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-faq__faq-question:hover {
    background: #2a466a;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light);
    pointer-events: none; /* Prevents h3 from blocking click event on parent */
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Prevents toggle from blocking click event on parent */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0;
    background: #1a2a3a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(0deg); /* Reset rotation for '-' sign */
}

/* Image within FAQ answer */
.page-faq__image-inline {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-faq__why-choose-us-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    text-align: center;
}

.page-faq__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__feature-card {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-light);
}

.page-faq__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-faq__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); /* Allowed: shadow, not color change */
}

.page-faq__feature-card h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-faq__feature-card p {
    font-size: 16px;
    color: #e0e0e0;
}

.page-faq__cta-center {
    margin-top: 50px;
    text-align: center;
}

/* Tips Section */
.page-faq__tips-section {
    padding: 60px 0;
    background-color: #1a2a3a;
}

.page-faq__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-faq__tips-list li {
    background: var(--primary-color);
    margin-bottom: 15px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-color-light);
}

.page-faq__tips-list li strong {
    color: var(--secondary-color);
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
}

.page-faq__tips-list li p {
    color: #e0e0e0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-faq__final-cta-section {
    padding: 60px 0 80px;
    background-color: var(--background-dark);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 38px;
    }
    .page-faq__section-title {
        font-size: 32px;
    }
    .page-faq__faq-question h3 {
        font-size: 18px;
    }
    .page-faq__feature-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__main-title {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-faq__description {
        font-size: 16px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 16px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px !important;
    }
    .page-faq__features-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__feature-card {
        padding: 25px;
    }
    .page-faq__feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-faq__feature-card h3 {
        font-size: 20px;
    }
    .page-faq__tips-list li {
        padding: 20px;
    }
    .page-faq__tips-list li strong {
        font-size: 17px;
    }
    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__image-inline {
        margin: 15px auto !important;
    }
    /* Ensure video is responsive (if any, though not required for FAQ page) */
    .page-faq video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 28px;
    }
    .page-faq__section-title {
        font-size: 24px;
    }
    .page-faq__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 15px;
    }
}