/* style/faq.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #000080;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
}

.page-faq {
    padding-top: 180px; /* Adjusted for fixed header on desktop */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
    color: var(--text-light); /* Default text color for dark body background */
}

@media (max-width: 768px) {
    .page-faq {
        padding-top: 140px; /* Adjusted for fixed header on mobile */
    }
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a40 100%); /* Dark blue gradient */
    color: var(--text-light);
}

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

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Limit image width */
}

.page-faq__hero-image-actual {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

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

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

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

.page-faq__intro-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-faq__intro-text a:hover {
    text-decoration: underline;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-faq__content-section {
    padding: 60px 20px;
    background-color: var(--bg-light); /* Light background for content */
    color: var(--text-dark); /* Dark text on light background */
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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 15px;
    opacity: 0;
    color: var(--text-dark);
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--bg-white);
    border-radius: 0 0 5px 5px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 16px;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 25px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.page-faq__faq-answer ol {
    list-style-type: decimal;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 16px;
}

.page-faq__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.page-faq__faq-question:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

.page-faq__faq-question:active {
    background: #eeeeee;
}

.page-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-faq__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change + to X */
}

.page-faq__cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffc107 100%); /* Gold gradient */
    text-align: center;
    color: var(--secondary-color); /* Dark blue text on gold background */
}

.page-faq__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-faq__cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-faq__cta-link-text {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-faq__cta-link-text:hover {
    color: #000050;
}

.page-faq__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 18px 45px;
    font-size: 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: #000050;
    color: #ffe066;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 38px;
    }
    .page-faq__intro-text {
        font-size: 17px;
    }
    .page-faq__cta-title {
        font-size: 32px;
    }
    .page-faq__cta-description {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
    }
    .page-faq__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-faq__content-section {
        padding: 40px 15px;
    }
    .page-faq__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-faq__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-faq__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-faq__faq-answer {
        padding: 0 15px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px !important;
    }
    .page-faq__faq-answer p,
    .page-faq__faq-answer li {
        font-size: 15px;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 28px;
    }
    .page-faq__cta-description {
        font-size: 16px;
    }
    .page-faq__btn-primary {
        padding: 15px 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 28px;
    }
    .page-faq__hero-image {
        margin-bottom: 20px;
    }
    .page-faq__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
    .page-faq__faq-question h3 {
        font-size: 15px;
    }
    .page-faq__cta-title {
        font-size: 24px;
    }
    .page-faq__btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
}