/* =========================================================
   TEXT CONTENT TYPOGRAPHY
========================================================= */

/* Text/List → Heading */
.text-content-container :is(p, ul, ol) + :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 18px !important;
}

/* Heading → Text/List */
.text-content-container :is(h1, h2, h3, h4, h5, h6) + :is(p, ul, ol) {
    margin-top: 6px !important;
}

/* Paragraph → Paragraph */
.text-content-container p + p {
    margin-top: 12px !important;
}

/* Paragraph ↔ List */
.text-content-container p + :is(ul, ol),
.text-content-container :is(ul, ol) + p {
    margin-top: 12px !important;
}

/* List ↔ List */
.text-content-container :is(ul, ol) + :is(ul, ol) {
    margin-top: 10px !important;
}

/* Heading ↔ Heading */
.text-content-container
    :is(h1, h2, h3, h4, h5, h6)
    + :is(h1, h2, h3, h4, h5, h6) {
    margin-top: 16px !important;
}

.text-content-container {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.text-content-container .how-it-works ol {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px !important;
}

.text-content-container .how-it-works li {
    counter-increment: steps;
    position: relative;
    padding-left: 44px;
    display: flex;
    align-items: center;
}

.text-content-container .how-it-works li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;

    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;

    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--primary-background);

    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-btn {
    margin-top: 20px;
    transition: margin 0.3s ease;
}

.load-more-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn .bi {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

/* Text button */
.load-more-btn-text a.wp-block-button__link {
    color: var(--wp--preset--color--primary-text);
    font-weight: 600;
    padding: 0;
}

.load-more-btn-text a.wp-block-button__link:hover {
    opacity: 0.7;
}

/* Bordered button */
.load-more-btn-bordered a.wp-block-button__link {
    padding: 12px 24px;
    border: 1px solid var(--wp--preset--color--primary-text);
    border-radius: 6px;
    color: var(--wp--preset--color--primary-text);
    font-weight: 600;
    background: transparent;
}

/* .load-more-btn-bordered a:hover {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--accent);
} */

/* Solid button */
.load-more-btn-solid a.wp-block-button__link {
    padding: 12px 24px;
    border-radius: 6px;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    font-weight: 600;
    border: 1px solid var(--wp--preset--color--primary);
}

.load-more-btn-solid a.wp-block-button__link:hover {
    opacity: 0.9;
}

.step-tabs-btn {
    min-width: max-content !important;
}
.step-tabs-btn:hover {
    background-color: var(--wp--preset--color--light-grey);
    border-radius: 999px;
    color: var(--wp--preset--color--body);
    cursor: pointer;
}
.step-tabs-btn.active {
    background-color: var(--wp--preset--color--primary);
    border-radius: 999px;
    color: var(--wp--preset--color--white);
}

.step-tabs-content {
    display: none;
}

@media (max-width: 768px) {
    .step-tabs-btns-container {
        overflow: scroll hidden !important;
    }
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

/* Focus states */
input:focus,
textarea:focus {
    border-color: var(--wp--preset--color--grey) !important;
}

input:focus-visible,
textarea:focus-visible {
    outline: none;
}

/* =========================================================
   LISTS RESET & STYLES
========================================================= */

ul,
ol,
ul > li,
ol > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Padded list variants */
ul.list-padding {
    list-style-type: disc;
    padding-left: 32px;
}

ul.list-padding > li {
    list-style-type: disc;
    padding-left: 6px;
}

ol.list-padding {
    list-style-type: decimal;
    padding-left: 32px;
}

ol.list-padding > li {
    list-style-type: decimal;
    padding-left: 6px;
}

.text-content-container :is(ul, ol),
.panel-body :is(ul, ol) {
    padding-left: 1.5rem;
    line-height: 1.7;
}

.text-content-container ul > li,
.panel-body ul > li {
    list-style-type: disc;
}

.text-content-container ol > li,
.panel-body ol > li {
    list-style-type: decimal;
}

/* =========================================================
   COMPONENTS
========================================================= */
.needs-href:hover .wp-block-button a {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
}

a.clickable::before,
.clickable > a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Divider */
.vertical-divider {
    width: 1px;
    height: 100%;
    background: var(--wp--preset--color--border);
}

/* Slider */
.slider-btn {
    cursor: pointer;
}

/* Glass effect */
.glass {
    background-color: rgba(15, 157, 88, 0.08);
}

/* WP cover fix */
.wp-block-cover__inner-container {
    width: 100% !important;
}

/* =========================================================
   BUTTONS
========================================================= */

.wp-block-button .wp-block-button__link,
.wp-block-button .wp-element-button {
    transition: background-color 0.25s ease, border-color 0.25s ease,
        color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.wp-block-button.large-btn .wp-block-button__link,
.wp-block-button.large-btn .wp-element-button {
    padding: 16px 36px;
}

.wp-block-button.small-btn .wp-block-button__link,
.wp-block-button.small-btn .wp-element-button {
    padding: 8px 18px;
    font-size: var(--wp--preset--font-size--small);
}

/* =========================================================
   MARQUEE (Swiper) — use class "marquee-container" on the block
========================================================= */

.marquee-container.marquee-active,
.marquee-container.swiper {
    position: relative;
    flex-wrap: nowrap !important;
    overflow: hidden;
    width: 100%;
}

.marquee-container .swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.marquee-container .swiper-slide {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-container .swiper-slide .wp-block-image {
    margin: 0;
}

.marquee-container .swiper-slide img {
    display: block;
    max-width: none;
    width: auto;
    height: auto;
}

/* Soft edge fade / blur on left + right */
.marquee-container.marquee-active::before,
.marquee-container.marquee-active::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(40px, 8vw, 80px);
    z-index: 2;
    pointer-events: none;
}

.marquee-container.marquee-active::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--wp--preset--color--white) 0%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(1.5px);
    -webkit-mask-image: linear-gradient(to right, #000 20%, transparent 100%);
    mask-image: linear-gradient(to right, #000 20%, transparent 100%);
}

.marquee-container.marquee-active::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--wp--preset--color--white) 0%,
        rgba(255, 255, 255, 0.85) 35%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(1.5px);
    -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 100%);
    mask-image: linear-gradient(to left, #000 20%, transparent 100%);
}

.swiper .swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    bottom: unset !important;
}

.swiper .swiper-pagination .swiper-pagination-bullet {
    margin: 0 !important;
    height: 14px;
    width: 14px;
    background: var(--wp--preset--color--light-grey);
    opacity: 1;
}

.swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--wp--preset--color--primary);
}

.swiper .swiper-button-next::after,
.swiper .swiper-button-prev::after {
    color: var(--wp--preset--color--light-grey);
}

/* =========================================================
   ICON SIZES
========================================================= */

.big-icon {
    min-width: 120px;
    min-height: 120px;
}

.normal-icon {
    min-width: 80px;
    min-height: 80px;
}

.small-icon {
    min-width: 60px;
    min-height: 60px;
}

/* =========================================================
   WIDTH UTILITIES
========================================================= */

.min-width-min-content {
    min-width: min-content !important;
}

.min-width-max-content {
    min-width: max-content !important;
}

.max-width-min-content {
    max-width: min-content !important;
}

.max-width-max-content {
    max-width: max-content !important;
}

/* =========================================================
   ICON LISTS
========================================================= */

.icon-list li {
    position: relative;
    padding-left: 1.5rem;
}

.icon-list li::before {
    font-family: "Bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
}

.icon-list.check-icon-list li::before {
    content: "\f26a";
}

/* =========================================================
   ACCORDION BLOCK
========================================================= */
.wp-block-accordion-heading__toggle-icon::before {
    content: "\f282";
    font-size: var(--wp--preset--font-size--large);
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: 400 !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -0.125em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.2s;
}

.wp-block-accordion-heading__toggle[aria-expanded="true"]
    .wp-block-accordion-heading__toggle-icon::before {
    transform: rotate(180deg);
}

.wp-block-accordion-item.is-open
    > .wp-block-accordion-heading
    .wp-block-accordion-heading__toggle-icon {
    transform: none;
}

.faq-container .wp-block-accordion-item .wp-block-accordion-panel,
.faq-container .wp-block-accordion-item .wp-block-accordion-heading__toggle-title {
    font-weight: normal !important;
    font-size: var(--wp--preset--font-size--regular) !important;
}

.faq-container .wp-block-accordion-item.is-open .wp-block-accordion-heading {
    border-bottom: 1px solid var(--wp--preset--color--border) !important;
}

.wp-block-accordion-item * {
    text-decoration: none !important;
}

.wp-block-accordion-heading__toggle-icon {
    font-size: 0 !important;
    width: auto;
}

/* =========================================================
   FORM SELECT / DETAILS RESET
========================================================= */

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */
@media (max-width: 780px) {
    .wp-block-cover .wp-block-cover__inner-container {
        padding: 0 !important;
    }

    .wp-block-cloudcatch-light-modal-block {
        max-width: calc(100% - 32px) !important;
    }
}
