/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

.page-faq__hero {
    background-color: #1A237E; /* Main color */
    color: #FFFFFF;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-faq__hero-title .highlight {
    color: #FFD700; /* Auxiliary color */
}

.page-faq__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1em;
    border: 2px solid transparent;
}

.page-faq__btn--primary {
    background-color: #FFD700; /* Auxiliary color */
    color: #1A237E; /* Main color for text */
    border-color: #FFD700;
}

.page-faq__btn--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-faq__btn--secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary color */
    border-color: #FFD700;
}

.page-faq__btn--secondary:hover {
    background-color: #FFD700;
    color: #1A237E;
    transform: translateY(-2px);
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2;
}

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

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

.page-faq__section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #1A237E; /* Main color */
    font-weight: bold;
}

.page-faq__categories {
    background-color: #f8f8f8;
}

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

.page-faq__category-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}

.page-faq__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-faq__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.page-faq__category-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #1A237E; /* Main color */
}

.page-faq__accordion-section {
    background-color: #FFFFFF;
}

.page-faq__accordion {
    margin-top: 40px;
    text-align: left;
}

.page-faq__accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-faq__accordion-header {
    background-color: #f5f5f5;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: bold;
    color: #1A237E; /* Main color */
    transition: background-color 0.3s ease;
}

.page-faq__accordion-header h3 {
    margin: 0;
    font-size: 1.15em;
    color: #1A237E;
}

.page-faq__accordion-header:hover {
    background-color: #e0e0e0;
}

.page-faq__accordion-icon {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Auxiliary color */
}

.page-faq__accordion-header.active .page-faq__accordion-icon {
    transform: rotate(45deg);
}

.page-faq__accordion-content {
    padding: 0 25px;
    background-color: #FFFFFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__accordion-content p {
    padding: 15px 0;
    margin: 0;
    color: #555;
}

.page-faq__accordion-content.active {
    max-height: 500px; /* Adjust based on expected content length */
    padding: 15px 25px;
}

.page-faq__link-inline {
    color: #1A237E;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-faq__link-inline:hover {
    color: #FFD700;
}

.page-faq__cta-section {
    background-color: #1A237E; /* Main color */
    color: #FFFFFF;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq__cta-content {
    max-width: 800px;
    z-index: 1;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-faq__cta-title .highlight {
    color: #FFD700; /* Auxiliary color */
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-faq__cta-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
}

.page-faq__cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-faq__hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
        justify-content: space-between;
    }
    
    .page-faq__hero-content {
        flex: 1;
        padding-right: 40px;
    }

    .page-faq__hero-buttons {
        justify-content: flex-start;
    }

    .page-faq__hero-image-wrapper {
        position: relative;
        flex: 1;
        opacity: 1;
        width: auto;
        height: auto;
    }

    .page-faq__hero-image {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .page-faq__section-title {
        font-size: 2.8em;
    }

    .page-faq__cta-section {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
        justify-content: space-between;
    }

    .page-faq__cta-content {
        flex: 1;
        padding-right: 40px;
    }

    .page-faq__cta-buttons {
        justify-content: flex-start;
    }

    .page-faq__cta-image-wrapper {
        position: relative;
        flex: 1;
        opacity: 1;
        width: auto;
        height: auto;
    }

    .page-faq__cta-image {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}

@media (max-width: 767px) {
    .page-faq__hero-title {
        font-size: 2em;
    }

    .page-faq__hero-description {
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__category-grid {
        grid-template-columns: 1fr;
    }

    .page-faq__accordion-header {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-faq__accordion-header h3 {
        font-size: 1em;
    }

    .page-faq__accordion-content p {
        padding: 10px 0;
    }

    .page-faq__cta-title {
        font-size: 2em;
    }

    .page-faq__cta-description {
        font-size: 1em;
    }
}