﻿/* Container for the accordion */
.accordion {
    max-width: 1100px; /* Your preferred width */
    margin: 0 auto; /* Centers the accordion */
}

/* Individual accordion item */
.accordion-item {
    border-bottom: 1px solid #e0e0e0; /* Subtle separator */
    margin-bottom: 15px; /* Space between items */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow */
    background-color: #fff; /* White background */
    border-radius: 10px; /* Rounds all corners */
    overflow: hidden; /* Ensures content respects the rounding */
}

    /* Explicitly ensure all corners are rounded (optional, for clarity) */
    .accordion-item:first-child {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .accordion-item:last-child {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

/* Header (question) styling */
.accordion-header {
    background-color: #f8f8f8; /* Light gray background */
    color: #2c3e50; /* Darker text color */
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

    /* Hover effect for header */
    .accordion-header:hover {
        background-color: #e8ecef; /* Light gray hover */
    }

/* Active state when clicked */
.accordion-item.active .accordion-header {
    background-color: #3498db; /* Blue for open state */
    color: white; /* White text */
}

/* Plus/minus icon */
.accordion-header::after {
    content: '+';
    font-size: 24px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* Content (answer) styling */
.accordion-content {
    padding: 0 20px;
    background-color: #fff; /* Matches item background */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    width: 90%; /* Sets width of the text section */
    margin: 0 auto; /* Centers the text */
}

/* Active state for content */
.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: none; /* Adjust as needed */
}

/* Typography for content */
.accordion-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Styling for nested lists */
.accordion-content ul {
    margin: 10px 0 0 20px;
    padding-left: 0;
}

    .accordion-content ul li {
        margin-bottom: 10px;
        font-size: 16px;
        color: #555;
    }

        .accordion-content ul li strong {
            color: #2c3e50;
        }
