/* Base Styles for page-faq */
.page-faq {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background: #F5F7FA; /* General background color */
}

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

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

.page-faq__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #FF5A4F;
    border-radius: 2px;
}

.page-faq__text-block p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-faq__keyword {
    font-weight: bold;
    color: #E53935;
}

/* Hero Section */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, assuming body padding-top is handled by shared.css */
    background-color: #F5F7FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
}

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

.page-faq__hero-content {
    max-width: 900px;
    padding: 30px 15px 50px;
}

.page-faq__hero-title {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: 18px;
    color: #333333;
    margin-bottom: 30px;
}

.page-faq__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-faq__btn-secondary:hover {
    background: #f0f0f0;
    color: #FF5A4F;
    border-color: #FF5A4F;
    transform: translateY(-2px);
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Content with Image Block */
.page-faq__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 30px;
}

.page-faq__text-block {
    flex: 2;
}

.page-faq__image-block {
    flex: 1;
    min-width: 300px;
}

.page-faq__content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}

/* FAQ Section */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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: #f5f5f5;
}

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

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #E53935;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 20px;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555555;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #555555;
}

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

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

/* Conclusion Section */
.page-faq__conclusion-section {
    background-color: #E53935;
    color: #ffffff;
    text-align: center;
    padding: 60px 0;
}

.page-faq__conclusion-section .page-faq__section-title {
    color: #ffffff;
}

.page-faq__conclusion-section .page-faq__section-title::after {
    background-color: #FF5A4F;
}

.page-faq__conclusion-text {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.page-faq__conclusion-section .page-faq__btn-primary {
    background: #ffffff;
    color: #E53935;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-faq__conclusion-section .page-faq__btn-primary:hover {
    background: #f0f0f0;
    color: #FF5A4F;
}

.page-faq__conclusion-section .page-faq__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-faq__conclusion-section .page-faq__btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #FF5A4F;
    color: #FF5A4F;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 20px 15px 40px;
    }
    .page-faq__hero-title {
        font-size: clamp(28px, 4vw, 42px);
    }
    .page-faq__hero-description {
        font-size: 17px;
    }
    .page-faq__content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-faq__text-block, .page-faq__image-block {
        flex: none;
        width: 100%;
    }
    .page-faq__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-faq__section-title {
        font-size: 28px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 16px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 17px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 18px;
    }
}

@media (max-width: 768px) {
    .page-faq__container {
        padding: 15px;
    }
    .page-faq__section {
        padding: 30px 0;
    }
    .page-faq__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* HERO Section Mobile */
    .page-faq__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
    }
    .page-faq__hero-image-wrapper {
        max-height: 400px; /* Adjust max-height for mobile hero image */
    }
    .page-faq__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__hero-content {
        padding: 20px 15px 30px;
    }
    .page-faq__hero-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-faq__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-faq__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__cta-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-faq__cta-bottom .page-faq__btn-primary,
    .page-faq__cta-bottom .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Images Mobile */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-faq__section,
    .page-faq__container,
    .page-faq__content-wrapper,
    .page-faq__image-block,
    .page-faq__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__content-wrapper {
        gap: 20px;
    }

    /* FAQ Section Mobile */
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-qtext {
        font-size: 15px;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
    }
    .page-faq__faq-answer p,
    .page-faq__faq-answer li {
        font-size: 15px;
    }

    /* Conclusion Section Mobile */
    .page-faq__conclusion-section {
        padding: 40px 15px;
    }
    .page-faq__conclusion-text {
        font-size: 16px;
    }
}