/* --- Main Accordion Structure & Spacing --- */

.custom-accordion-faq {
    /* Add any overall wrapper styles here if needed */
    font-family: sans-serif; /* A basic font for now */
}

.c-accordion {
    display: flex;
    flex-direction: column;
    gap: 40px; /* The space between items */
}

.c-accordion__item {
    position: relative; /* This is the anchor for our icon */
    background-color: transparent;
    border-radius: 30px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease; /* Smooth transition for the card */
}

/* --- Expanded (Open) State --- */
.c-accordion__item[open] {
    background-color: white;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}


/* --- Accordion Title / Trigger --- */

.c-accordion__trigger {
    display: block;
    cursor: pointer;
    font-family: 'Poppins';
    padding: 30px;
    font-size: 24px;
    font-weight: 300;
    position: relative;
    color: #211938;
}

/* Hide the default arrow marker from the <summary> element */
.c-accordion__trigger::-webkit-details-marker {
    display: none;
}
.c-accordion__trigger {
    list-style: none;
}


/* --- Accordion Content Panel (The Magic) --- */

.c-accordion__panel {
    /* Hide the content by default */
    overflow: hidden;
    max-height: 0;
    
    /* Smooth transition for the slide effect */
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.c-accordion__panel-content p,
.c-accordion__panel-content ul{
    color: #211938;
    font-size: 16px;
    font-family: 'Poppins';
    max-width:85%;
}

/* When the item is open, the panel's max-height will be set by JavaScript */
.c-accordion__item[open] .c-accordion__panel {
    /* The JS will set a specific value here, like max-height: 250px; */
}

/* The inner wrapper for the answer, used to apply padding safely */
.c-accordion__panel-content {
    padding: 0 30px 30px 30px; /* 0 top padding, 30px on other sides */
}


/* --- Icon Styling using ::after --- */

.c-accordion__item::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 45px; /* Adjust this value to vertically center with your title */
    transform: translateY(-50%);
    width: 43px;
    height: 43px;
    background-image: url('/wp-content/uploads/2025/10/Group-427320718.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: top 0.4s ease, bottom 0.4s ease, transform 0.3s ease, background-image 0.3s ease;
}

.c-accordion__item[open]::after {
    background-image: url('/wp-content/uploads/2025/10/Group-427320718-1.svg');
    top: auto;
    bottom: 30px;
    transform: translateY(0);
}

@media only screen and (max-width: 767px) {
    .c-accordion__item::after {
        top: unset;
        bottom: 0;
        width: 35px;
        height: 35px;
            right: 15px;
    }
    
    .c-accordion__trigger {
    padding: 20px;
    font-size:20px;
}

.c-accordion__panel-content p,
.c-accordion__panel-content ul
{
	max-width:90%;
}
}