.content-faq {
    background-color: #f4f7f6;
    padding: 80px 20px;
}

.faq-container {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    padding: 40px 50px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Main Title */
.faq-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a3a5d;
    margin: 0 0 40px 0;
}

/* Tab Navigation */
.faq-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-link {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
}

.tab-link:hover {
    color: #007acc;
}

.tab-link.active {
    color: #007acc;
    border-bottom-color: #007acc;
}

/* Tab Content Panels */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion Styling */
.accordion-item {
    border-bottom: 1px solid #e9e9e9;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 25px 10px;
    color: #1a3a5d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 1.75rem !important;
    font-weight: 600;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 400;
    color: #007acc;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    line-height: 1;
    margin-left: 15px;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

/* Visual Hierarchy Levels */
.level-h2 {
    font-size: 1.75rem !important;
    font-weight: 700;
    background-color: #fff;
}

.level-h3 {
    font-size: 1.75rem !important;
    font-weight: 700;
    background-color: #fff;
}

.level-h4 {
    font-size: 1.75rem !important;
    font-weight: 700;
    background-color: #fff;
    color: #1a3a5d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 15px;
    display: block;
    box-sizing: border-box;
}

.accordion-content p {
    margin: 0 0 25px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .faq-container {
        padding: 30px 25px;
    }

    .faq-main-title {
        font-size: 2.5rem;
    }

    .tab-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .content-faq {
        padding: 60px 15px;
    }

    .faq-main-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .faq-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-link {
        white-space: nowrap;
        padding: 12px 18px;
    }

    .level-h3 {
        padding-left: 20px;
    }

    .level-h4 {
        padding-left: 30px;
    }

    .level-h3 + .accordion-content {
        padding-left: 20px;
    }

    .level-h4 + .accordion-content {
        padding-left: 30px;
    }

    .faq-container {
        padding: 20px 15px;
    }
}
