
/*
 * Accordion Styles
 * -------------------------------------------------------------------------- */

.accordion-container {
    width: 100%;
    max-width: 700px; /* Adjust as needed, or remove for full width */
    margin: 40px auto; /* Centre the accordion and give some space */
    border-top: 1px solid #ddd; /* Top border for the whole accordion */
}

.accordion-item {
    border-bottom: 1px solid #ddd; /* Separator line between items */
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9; /* Light background for the header */
    cursor: pointer;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    user-select: none; /* Prevent text selection on double click */
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

h2.faq {
    color: black;
}

.accordion-header:hover {
    background-color: #f0f0f0; /* Slightly darker on hover */
}

/* Style for when the accordion is active/open */
.accordion-header[aria-expanded="true"] {
    background-color: #e5e5e5; /* Different background for active header */
    color: #000; /* Darker text for active header */
}

.accordion-title {
    flex-grow: 1; /* Allow title to take available space */
    padding-right: 15px; /* Space between title and icon */
}

/* Accordion Icon Styling (Plus/Minus circle) */
.accordion-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #888;
    border-radius: 50%; /* Make it a circle */
    position: relative;
    transition: transform 0.3s ease; /* Smooth rotation for the icon */
}

/* Plus icon (default state) */
.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #888;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 12px;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 12px;
}

/* Minus icon (when header is expanded) */
.accordion-header[aria-expanded="true"] .accordion-icon {
    border-color: #555; /* Darker border for active icon */
}

.accordion-header[aria-expanded="true"] .accordion-icon::before {
    background-color: #555;
    transform: rotate(0deg); /* Horizontal line remains */
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
    background-color: #555;
    transform: rotate(90deg); /* Vertical line rotates to disappear, creating minus */
    opacity: 0; /* Make the vertical bar disappear for a clean minus */
}


/* Accordion Content Styling */
.accordion-content {
    padding: 20px;
    background-color: #ffffff; /* White background for content */
    line-height: 1.6;
    color: #555;
    overflow: hidden; /* Important for slide animation */
    /* No height defined here, jQuery's slideToggle will manage it */
}

.accordion-content p {
    margin-bottom: 1em;
}

.accordion-content ul {
    list-style: disc; /* Or 'none' if you want custom styling */
    margin-left: 20px;
    padding-left: 0;
}

.accordion-content ul li {
    margin-bottom: 0.5em;
}

.greyelement{
    background:#f0f0f0;
    color:#ffffff;
}