/* FAQ Section - Advanced */
.faq-section {
    padding: 50px 20px;
    background-color: #ffffff;
    margin: 20px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Softer, deeper shadow for depth */
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* To avoid any unwanted overflow */
    position: relative;
}

.faq-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); /* Hover effect to enhance depth */
    transform: translateY(-5px); /* Lift effect on hover */
}

/* FAQ Detail Container */
.faq-section details {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background-color: #fafafa;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hover Effects for FAQ items */
.faq-section details:hover {
    background-color: #e0f7fa;
    box-shadow: 0 4px 15px rgba(0, 182, 204, 0.3); /* Subtle glowing effect on hover */
    transform: translateY(-5px); /* Slight lift on hover */
}

/* FAQ Summary Styling */
.faq-section summary {
    font-weight: 600;
    font-size: 1.3rem;
    color: #00796b;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px; /* To make space for a custom icon */
    transition: color 0.3s ease;
}

/* Add Chevron Icon on the right of the summary */
.faq-section summary::after {
    content: "▼";
    position: absolute;
    right: 10px;
    font-size: 1rem;
    color: #00796b;
    transition: transform 0.3s ease;
}

/* On open, rotate the chevron */
.faq-section details[open] summary::after {
    transform: rotate(180deg);
}

/* FAQ Answer Styling */
.faq-section p {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    padding: 0 15px;
    transition: max-height 0.4s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

/* Open FAQ - Smooth transition */
.faq-section details[open] p {
    max-height: 500px; /* Allows the paragraph to expand smoothly */
    color: #333;
}

/* FAQ Section Header Styling */
.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #00796b;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add subtle glow effect on hover for the whole FAQ section */
.faq-section:hover h2 {
    color: #004d40;
    text-shadow: 0 0 10px rgba(0, 182, 204, 0.7);
}

/* Responsive Styling for smaller screens */
@media only screen and (max-width: 768px) {
    .faq-section {
        padding: 30px 10px;
        margin: 15px 0;
    }

    .faq-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .faq-section details {
        padding: 12px;
    }

    .faq-section summary {
        font-size: 1.1rem;
    }

    .faq-section p {
        font-size: 0.95rem;
    }
}
