.faq-container {
    margin: 100px auto;
    width: 80%; /* Set the width to 80% of the screen */
    max-width: 1200px; /* Adjust the maximum width for larger screens */
    padding: 20px;
    margin-top: 20px;
}

h1 {
    text-align: center; /* Center align the header */
    color: #f4f4f4;
    margin-bottom: 40px; /* Increased margin for more space */
    font-size: 50px;
}

.accordion {
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
    border-color: #1C3284;
    border-style: double;
    border-width: 25px;
    border-radius: 10px;
}

.accordion-btn {
    background-color: #f4f4f4;
    color: #1c3284;
    cursor: pointer;
    padding: 15px 35px; /* Added extra padding for better spacing */
    border: none;
    margin-bottom: 0; /* Removed bottom margin to ensure consistent spacing */
    font-size: 18px;
    text-align: left;
    position: relative;
    transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth background color and padding transition */
}

.accordion-btn:hover {
    background-color: #e0e0e0;
    padding: 15px 45px; /* Increase padding on hover for a more interactive feel */
}

.accordion-btn::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #1C3284;
    border-right: 7px solid transparent;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    position: absolute;
    left: 15px; /* More space for the triangle icon */
    top: 50%;
    transform: translateY(-50%) rotate(0deg); /* Triangle pointing right */
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

.accordion-btn.active::before {
    transform: translateY(-50%) rotate(90deg); /* Triangle pointing down */
}

.accordion-content {
    background-color: #f4f4f4;
    color: #1c3284;
    padding: 0 15px;
    overflow: hidden;
    max-height: 0; /* Start with max-height 0 */
    opacity: 0; /* Start with opacity 0 */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Smooth height and opacity transition */
}

.accordion-content p {
    margin: 20px 0; /* Add more margin for better spacing */
    line-height: 1.6;
}

@media(min-width: 1024px){
    .accordion {
        background-color: #1C3284;
        border-color: #f4f4f4;
        border-style: double;
        border-width: 25px;
        border-radius: 10px;
    }
    .accordion-btn {
        background-color: #1c3284;
        color: #f4f4f4;
    }
    .accordion-btn::before {
        border-left-color: #f4f4f4;
    }

    .accordion-btn:hover {
        background-color: #0a1c56;
    }
    h1 {
        text-align: right;
        color: #1C3284;
    }
}
