@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter"; /* font-family is inherited */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    box-sizing: border-box;
    margin: 0 auto 100px;
    padding: 100px 15px 150px;
    width: 90%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 45px;
}

.faq-header {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-header > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 40px;
    line-height: 1.25em;
    font-weight: 700;
}

.c-us {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    column-gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.c-us > p {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.75em;
    font-weight: 500;
}

.contact-us-btn {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: rgba(11, 64, 8, 1);
    font-size: 24px;
    font-weight: 500;
    border-bottom: 2px solid rgba(11, 64, 8, 1);
}

.accordion-container {
    box-sizing: border-box;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    row-gap: 25px;
}

.accordion-item {
    box-sizing: border-box;
    margin: 0;
    padding: 14px 26px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(217, 217, 217, 0.75);
    border-radius: 10px;
}

.accordion-header {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.50em;
    cursor: pointer;
    gap: 20px;
}

.accordion-header i {
    color: rgba(11, 64, 8, 1);
}

/* Display content when active/open */
.accordion-content {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.50em;
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    opacity: 0;
    transition: max-height 500ms ease, opacity 500ms ease, padding 500ms ease;
}
.accordion-header.active + .accordion-content {
    max-height: none; /* Increased to accommodate more content and ensure hiding */
    opacity: 1;
    padding: 15px 0 10px;
}

/* Rotate arrow when active/open */
.accordion-arrow {
    transition: transform 500ms ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg); /* Arrow points up when open */
}

@media (max-width: 1128px) {
    .main-container {
        padding: 70px 0 150px;
        width: 95%;
        max-width: none;
    }
    .faq-header {
        padding: 0 15px;
    }
    .faq-header > h1 {
        font-size: 35px;
        font-weight: 600;
    }
    .c-us > p {
        font-size: 20px;
    }
    .contact-us-btn {
        font-size: 22px;
    }
    .accordion-item {
        padding: 14px 16px;
    }
    .accordion-header {
        font-size: 20px;
        font-weight: 600;
    }
    .accordion-content {
        font-size: 16px;
    }
}

@media (max-width: 524px) {
    .faq-header {
        gap: 30px;
    }
}