/* --- Accordion Container (outer wrapper, if part of a section) --- */
/* Assuming a parent section like:
.cee-section {
  padding-top: 6rem; // py-24
  padding-bottom: 6rem; // py-24
  background: linear-gradient(to bottom right, #fef2f2, #fff7ed); // bg-gradient-to-br from-red-50 to-orange-50
}
.cee-section .cee-accordion-wrapper {
  max-width: 48rem; // max-w-4xl
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; // px-4
  padding-right: 1rem;
}
*/

.cee-accordion-wrapper {
    width: 100%; /* Equivalent to w-full */
}

/* Mimics space-y-6 for gap between accordion items */
.cee-accordion-main > *:not(:last-child) {
    margin-bottom: 1.5rem; /* 6 * 0.25rem = 1.5rem */
}

/* --- Accordion Item --- */
.cee-accordion-item {
    border: 1px solid #e5e7eb; /* Equivalent to border border-gray-200 */
    border-radius: 0.5rem; /* Equivalent to rounded-lg */
    padding-left: 1.5rem; /* Equivalent to px-6 */
    padding-right: 1.5rem; /* Equivalent to px-6 */
    background-color: #0097E0; /* Equivalent to bg-[#0097E0] */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Equivalent to shadow-sm */
    overflow: hidden; /* Important for accordion content transition */
}

/* --- Accordion Trigger (Header Button) --- */
.cee-accordion-trigger {
    display: flex;
    justify-content: space-between; /* To push button to the right */
    align-items: center; /* Vertically center content */
    width: 100%;
    padding-top: 1.5rem; /* Equivalent to py-6 */
    padding-bottom: 1.5rem; /* Equivalent to py-6 */
    font-size: 1.125rem; /* Equivalent to text-lg */
    font-weight: 600; /* Equivalent to font-semibold */
    text-align: left; /* Equivalent to text-left */
    color: #fff; /* Equivalent to text-white */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease; /* For hover text color */
}

    .cee-accordion-trigger:hover {
        text-decoration: none; /* Equivalent to hover:no-underline */
    }

/* Specific logic for the "Know More" button's wrapper */
.cee-trigger-button-wrapper {
    display: flex; /* Default: flex (when data-state=closed) */
    align-items: center;
    margin-left: auto; /* Pushes to the right */
}

.cee-accordion-item.is-open .cee-trigger-button-wrapper .cee-know-more-button {
    display: none; /* Hidden when data-state=open (when item is-open) */
}
.cee-accordion-item:not(.is-open) .cee-trigger-button-wrapper .cee-know-less-button {
    display: none; /* Hidden when data-state=open (when item is-open) */
}

/* --- "Know More" Button inside the Trigger --- */
.cee-know-more-button {
    background-color: #fff; /* Equivalent to bg-white */
    color: #0097E0; /* Equivalent to text-[#0097E0] */
    border: 1px solid #fff; /* Equivalent to border-white */
    border-radius: 9999px; /* Equivalent to rounded-full */
    padding: 0.25rem 0.75rem; /* Equivalent to px-3 py-1.5 (for sm size) */
    font-size: 0.875rem; /* Equivalent to text-sm */
    font-weight: 500; /* Medium font weight for button text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out; /* For hover */
}

.cee-know-more-button:hover {
    background-color: rgba(255, 255, 255, 0.9); /* Equivalent to hover:bg-white/90 */
}

.cee-know-more-icon {
    height: 1rem; /* Equivalent to h-4 */
    width: 1rem; /* Equivalent to w-4 */
    margin-left: 0.5rem; /* Equivalent to ml-2 */
    stroke: currentColor;
}

.cee-know-less-button .cee-know-more-icon {
    stroke: var(--white);
    transform: rotate(180deg);
}

/* --- Accordion Content (Collapsible Area) --- */
.cee-accordion-content {
    max-height: 0; /* Hidden by default */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* For smooth collapse/expand */
}

/* When the item is open, set max-height to allow content to show */
.cee-accordion-item.is-open .cee-accordion-content {
    max-height: 1000px; /* Needs to be a value large enough to contain all content */
    transition: max-height 0.5s ease-in-out; /* Slightly longer transition for expansion */
}

.cee-accordion-content-inner {
    color: rgba(255, 255, 255, 0.9); /* Equivalent to text-white/90 */
    padding-bottom: 1.5rem; /* Equivalent to pb-6 */
    /* Mimics mb-4 on paragraphs */
}

    .cee-accordion-content-inner p:not(:last-child) {
        margin-bottom: 1rem; /* mb-4 */
    }

.cee-content-paragraph {
    line-height: 1.5; /* Common line height, adjust if leading-relaxed/snug is desired */
}

.cee-qualifications-list {
    list-style: disc; /* Equivalent to list-disc */
    list-style-position: inside; /* Equivalent to list-inside */
    /* Mimics space-y-2 */
}

.cee-qualifications-list li:not(:last-child) {
    margin-bottom: 0.5rem; /* space-y-2 */
}

.cee-accordion-content-inner :is(p, ul li) {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.9);
}

.cee-accordion-content-inner ul {
    list-style-type: disc;
    padding-left: 13px;
}

.cee-accordion-content-inner ul li:not(:last-child) {
    margin-bottom: 0.4rem;
}

@media (max-width: 767px) {
    .cee-accordion-trigger {
        flex-direction: column;
    }
}
