/* ============================================================
   ACCORDION WRAPPER
   ============================================================ */
.ch-accordion {
    outline: 1px rgba(255, 255, 255, .2) solid;
    border-radius: 12px;
    overflow: hidden;
}

.ch-accordion-header {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px 40px;
    cursor: pointer;
    position: relative;
}

/* show the line only if accordion is open */
.ch-accordion:has(.ch-accordion-body.is-open) .ch-accordion-header::after {
    content: "";
    width: calc(100% - 80px);
    height: 1px;
    left: 40px;
    bottom: 0;
    position: absolute;
    background: rgba(255, 255, 255, .2);
}

.ch-accordion-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.ch-accordion-body>div {
    padding: 40px;
}

.ch-accordion-body.is-open {
    overflow: visible;
}

/* Left column */
.ch-accordion-body>div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* Right column */
.ch-accordion-body>div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

/* Best For — full width */
.ch-accordion-body>div:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* ============================================================
   HEADER — ICON BOX
   ============================================================ */
.icon-box {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border: 1px solid var(--darktheme-light-orange);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box svg {
    width: 72px;
    height: 72px;
    stroke: var(--darktheme-white);
    fill: none;
}

/* ============================================================
   HEADER — TEXT BLOCK
   ============================================================ */
.ch-accordion-header-text {
    flex: 1;
}

.custom-title-4 h3 {
    font-family: var(--font-stack-heading);
    font-weight: 400;
    color: var(--darktheme-heading-white);
    margin: 0 0 12px;
    line-height: 1.3;
}

.custom-title-4 h3 span {
    color: var(--darktheme-light-orange);
}

.ch-accordion-header-text>p {
    font-family: var(--font-stack-text);
    color: var(--darktheme-white);
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
}

/* ============================================================
   HEADER — COLLAPSE TOGGLE
   ============================================================ */
.ch-accordion-header-collapse {
    flex-shrink: 0;
    width: 24px;
    height: 2px;
    background-color: var(--darktheme-light-orange);
    margin-left: auto;
    position: relative;
    transition: transform 0.3s ease;
}

.ch-accordion-header-collapse::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--darktheme-light-orange);
    transform: translateY(-50%) rotate(90deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ch-accordion-header-collapse.is-open::after {
    opacity: 0;
    transform: translateY(-50%) rotate(0deg);
}

/* ============================================================
   BODY — SHARED TEXT STYLES
   ============================================================ */
.ch-accordion-body p {
    font-family: var(--font-stack-text);
    color: var(--darktheme-white);
    line-height: 1.7;
    margin: 0 0 16px;
}

.ch-accordion-body p.strong {
    font-weight: 700;
    font-family: var(--font-stack-heading);
    color: var(--darktheme-heading-white);
    margin-bottom: 8px;
}

/* ============================================================
   BODY — SERIES PILLS
   ============================================================ */
.ch-series-pills-heading {
    color: var(--darktheme-bg-medium-gray) !important;
    margin-bottom: 10px !important;
}

.ch-series-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.ch-series-pills .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    font-family: var(--font-stack-text);
    color: var(--darktheme-white);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.ch-series-pills .pill::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--darktheme-bg-orange);
    border-radius: 1px;
    flex-shrink: 0;
}

.ch-series-pills .pill:hover {
    border-color: var(--darktheme-bg-orange);
    color: var(--darktheme-heading-white);
}

/* ============================================================
   BODY — CTA LINK
   ============================================================ */
.ch-accordion-cta {
    display: inline-block;
    font-family: var(--font-stack-text);
    color: var(--darktheme-white);
    text-decoration: none;
    padding-bottom: 3px;
    padding-right: 40px;
    border-bottom: 1px solid var(--darktheme-bg-orange);
    transition: color 0.2s;
    background: url(/wp-content/uploads/2026/06/Arrow-right.svg);
    background-size: 15px;
    background-repeat: no-repeat;
    background-position: 100% 50%;
}

.ch-accordion-cta:hover {
    color: var(--darktheme-light-orange);
}

/* ============================================================
   BODY — RIGHT COLUMN: SCROLLABLE CONTAINER
   ============================================================ */
.scrollable-container {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 217, 217, 0.5) transparent;
}

.scrollable-container::-webkit-scrollbar {
    width: 3px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background-color: rgba(217, 217, 217, 0.5);
    border-radius: 2px;
}

/* ============================================================
   BODY — RIGHT COLUMN: Q&A
   ============================================================ */
.ch-accordion-question {
    font-family: var(--font-stack-text);
    color: var(--darktheme-white) !important;
    font-weight: 400;
    margin-bottom: 8px !important;
    padding-left: 16px;
    position: relative;
}

.ch-accordion-question::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--darktheme-bg-medium);
}

/* ============================================================
   RESPONSIVE, TOUCH 
   ============================================================ */
@media (max-width: 1024px) {
    .ch-accordion-header {
        gap: 16px;
        padding: 20px;
    }

    .ch-accordion-header-text>p {
        display: none;
    }

    .ch-accordion:has(.ch-accordion-body.is-open) .ch-accordion-header::after {
        width: calc(100% - 40px);
        left: 20px;
    }

    .ch-accordion-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ch-accordion-body>div {
        padding: 20px;
    }

    .ch-accordion-body>div:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .ch-accordion-body>div:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }

    .icon-box {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .icon-box svg {
        width: 48px;
        height: 48px;
    }
}