:root {
    --base-clr: #324B50;
    --line-clr: #42434a;
    --hover-clr: rgba(149, 176, 182, 0.3);
    --text-clr: #e6e6ef;
    --accent-clr: #81cad9;
    --secondary-text-clr: #b0b3c1;
    --Tertiary-Color: #95b0b6; /* Light Greyish/Blue */
}
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Figtree', sans-serif;
    background-color: #ffffff;
    background-image: url(../assets/images/WebBackground2.png);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
    background-attachment: scroll;
    min-height: 100vh;
}
main {
    margin: 0 auto;
    margin-top: 6rem;
    width: 100%;
}
.faq-header {
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Stack child elements vertically */
    justify-content: center; /* Center vertically (optional) */
    align-items: center; /* Center horizontally */
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Ensure the container spans the full width */
    margin-top: 3rem;
    margin-bottom: 2rem; /* Add spacing below the header */
    color: var(--base-clr);
    font-size: 1.5rem;
}
.faq-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 2rem; /* Add padding to prevent content from being cut off */
}   
.faq-container {
    width: 70%;
    border-radius: 20px;
    background-color: whitesmoke;
    box-shadow: 0 0 20px var(--base-clr);
    overflow: hidden; /* Ensure content doesn't overflow */
    padding-bottom: 1rem;
}
.faq-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem auto;
    width: 95%;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 6px var(--base-clr);
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: white;
    color: var(--base-clr);
    transition: color 0.5s ease; 
}

.faq-question:hover {
    color: var(--Tertiary-Color); /* Change text color to white */
}

.faq-answer-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--Tertiary-Color);
    transition: transform 0.3s ease;
    cursor: pointer;
    transition: color 0.1s ease;
}
.faq-answer-toggle:hover {
    color: var(--accent-clr); /* Change text color to white */
}

.faq-answer {
    max-height: 0; /* Start with no height */
    opacity: 0; /* Fully transparent */
    overflow: hidden; /* Hide overflowing content */
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Smooth height and opacity transitions */
    padding: 0 1rem; /* Add horizontal padding */
    font-size: 1rem;
    color: var(--base-clr);
    border-top: 1px solid var(--Tertiary-Color);
}

.faq-item.is-active .faq-answer {
    max-height: 500px; /* Set a large enough max-height to accommodate content */
    opacity: 1; /* Fully opaque */
    padding: 1rem; /* Add padding when visible */
}

.faq-item.is-active .answer-toggle {
    transform: rotate(45deg); /* Rotate the "+" to "x" */
}
/* Contact Button */
.faq-footer {
    text-align: center; /* Center-align the text and button */
    margin-top: 1.5rem; /* Add spacing above the footer */
    padding: 2rem 1rem; /* Add padding for better spacing */
    background-color: var(--Tertiary-Color); /* Optional: Add a background color */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.faq-footer p {
    font-size: 1.25rem; /* Adjust font size */
    color: var(--base-clr); /* Use the base color for the text */
    margin-bottom: 1rem; /* Add spacing below the text */
}

.contact-btn {
    display: inline-block; /* Make the button behave like a block element */
    padding: 0.75rem 1.5rem; /* Add padding inside the button */
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    color: #fff; /* White text */
    background-color: var(--base-clr); /* Use the base color for the button */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Add rounded corners */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Add hover effects */
}

.contact-btn:hover {
    background-color: var(--accent-clr); /* Change color on hover */
    transform: translateY(-2px); /* Slightly lift the button on hover */
}
/* Mobile Styling */
@media (max-width: 768px) {
    body {
        background-size: 200% auto;
        background-position: top center;
        overflow-x: hidden;
    }
    .faq-container {
        width: 85%; /* Adjust width for mobile */
        padding: 1rem;
    }
    .faq-header {
        font-size: 1rem; /* Adjust font size for mobile */
        margin: 1.5rem auto;
        width: 80%;
    }
}