/**
 * JustStylin widget styles — FAQ Accordion & Hero Slider.
 *
 * Clean replacements for the Duda SSR widgets that used styled-components
 * with @media all wrappers. These use plain CSS that works everywhere.
 */

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.juststylin-faq {
    width: 100%;
}

.juststylin-faq__item {
    border-bottom: 1px solid #e3e3e3;
}

.juststylin-faq__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.juststylin-faq__toggle:focus-visible {
    outline: 2px solid var(--color_3, #4db0de);
    outline-offset: -2px;
    border-radius: 2px;
}

.juststylin-faq__question {
    flex: 1;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.4;
    margin: 0;
}

.juststylin-faq__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color_3, #4db0de);
    transition: transform 0.3s ease;
}

.juststylin-faq__toggle[aria-expanded="true"] .juststylin-faq__icon {
    transform: rotate(180deg);
}

.juststylin-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.juststylin-faq__answer[aria-hidden="false"] {
    max-height: 1000px;
}

.juststylin-faq__answer-inner {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .juststylin-faq__answer-inner {
        flex-direction: column;
    }
}

.juststylin-faq__answer-inner p {
    margin: 0;
}

/* ==========================================================================
   Hero Image Slider
   ========================================================================== */

.juststylin-slider {
    position: relative;
    width: 100%;
    height: 410px;
    overflow: hidden;
}

.juststylin-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.juststylin-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.juststylin-slider__slide--active {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.juststylin-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.juststylin-slider__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 2;
}

.juststylin-slider__dot {
    padding: unset;
    background-color: #CED6D9;
    border: unset;
    cursor: pointer;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    box-shadow: 0px 0px 2px rgba(24, 39, 75, 0.3), 0px 0px 3px rgba(24, 39, 75, 0.04);
    transition: background-color 0.3s;
}

.juststylin-slider__dot--active {
    background-color: white;
}

.juststylin-slider__dot:focus-visible {
    outline: 2px solid var(--color_3, #4db0de);
    outline-offset: 2px;
}
