/* style/faq.css */

/* Base Styles for PH365 FAQ Page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #0A0A0A; /* Custom background color */
    color: #FFF6D6; /* Custom main text color */
}

/* Fixed Header Spacing */
/* First section in main should have a small top padding, relying on body for main offset */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding for the first section, relying on body for main offset */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above, text below */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.page-faq__hero-image-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

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

.page-faq__hero-text-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* H1 font-size with clamp */
    font-weight: 700;
    color: #FFF6D6;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

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

.page-faq__cta-buttons--center {
    margin-top: 40px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile button text wrap */
    word-wrap: break-word; /* For mobile button text wrap */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #111111; /* Dark text for light button background for contrast */
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 216, 106, 0.3);
}

.page-faq__btn-secondary {
    background: #111111; /* Custom card background color */
    color: #FFD36B; /* Custom glow color */
    border: 2px solid #3A2A12; /* Custom border color */
}

.page-faq__btn-secondary:hover {
    transform: translateY(-3px);
    background: #222222;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-faq__section-description {
    font-size: 1.05em;
    color: #FFF6D6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ List Styles */
.page-faq__faq-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background: #111111; /* Custom card background */
    border: 1px solid #3A2A12; /* Custom border color */
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.page-faq__faq-item:hover {
    background: #1a1a1a;
    border-color: #FFD36B;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: #FFF6D6;
}

.page-faq__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #FFD36B;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px;
}

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

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

.page-faq__faq-answer a {
    color: #FFD36B;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Highlight text in answers */
.page-faq__highlight {
    color: #FFD36B;
    font-weight: 600;
}

/* Contact Support Section */
.page-faq__contact-support {
    text-align: center;
    margin-top: 80px;
    padding: 40px 20px;
    background: #111111; /* Custom card background */
    border-radius: 12px;
    border: 1px solid #3A2A12; /* Custom border color */
}

.page-faq__contact-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Partners Section */
.page-faq__partners-section {
    text-align: center;
    margin-top: 80px;
    padding: 40px 20px;
    background: #111111; /* Custom card background */
    border-radius: 12px;
    border: 1px solid #3A2A12; /* Custom border color */
}

.page-faq__partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.page-faq__partner-logo {
    width: 167px; /* Fixed width as per exception */
    height: 127px; /* Fixed height as per exception */
    object-fit: contain;
    filter: grayscale(100%) brightness(150%); /* Make logos adapt to dark background and theme */
    transition: filter 0.3s ease;
}

.page-faq__partner-logo:hover {
    filter: grayscale(0%) brightness(100%); /* Color on hover */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-faq__hero-text-content {
        order: 2;
    }

    .page-faq__hero-image-container {
        order: 1;
    }

    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-faq__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-faq__hero-content-wrapper {
        padding: 0 15px;
        gap: 25px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-faq__hero-description,
    .page-faq__section-description,
    .page-faq p,
    .page-faq li {
        font-size: 1em;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        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__content-area,
    .page-faq__contact-support,
    .page-faq__partners-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__faq-question {
        padding: 18px 20px;
        font-size: 1em;
    }

    .page-faq__faq-answer {
        padding: 0 20px;
    }

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px 18px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__hero-image-container,
    .page-faq__contact-image,
    .page-faq__partner-logos {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__partner-logo {
        width: 120px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding-bottom: 30px;
    }

    .page-faq__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-faq__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }

    .page-faq__faq-question {
        font-size: 0.95em;
        padding: 15px 18px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 12px 18px 15px;
    }
    .page-faq__cta-buttons {
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}