/* ─────────────────────────────────────
   ACF Repeater Grid — Base Styles
   Elementor controls override via selectors.
   ───────────────────────────────────── */

.arb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Card — top image (default) */
.arb-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card — left image variant */
.arb-card--left {
    flex-direction: row;
    align-items: stretch;
}

/* Image container */
.arb-card__image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.arb-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Left-image layout: image fills its side */
.arb-card--left .arb-card__image {
    height: auto;
}

/* Body */
.arb-card__body {
    display: flex;
    flex-direction: column;
}

/* Title */
.arb-card__title {
    margin: 0;
    padding: 0;
}

/* Content — reset WYSIWYG margins */
.arb-card__content {
    line-height: 1.6;
}

.arb-card__content > *:first-child {
    margin-top: 0;
}

.arb-card__content > *:last-child {
    margin-bottom: 0;
}

/* Nothing found */
.arb-nothing-found {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Editor placeholder */
.arb-editor-notice {
    font-size: 14px;
}

/* ─────────────────────────────────────
   ACF Repeater Toggle — Base Styles
   ───────────────────────────────────── */

.arb-toggle {
    width: 100%;
}

.arb-toggle__item {
    overflow: hidden;
}

/* Header / trigger button */
.arb-toggle__header {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    gap: 12px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.arb-toggle__header:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

/* Icon left → icon comes before title in DOM, flex handles order */
.arb-toggle__header--icon-right {
    justify-content: space-between;
}

.arb-toggle__header--icon-left {
    flex-direction: row;
}

/* Title inside the button */
.arb-toggle__title {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* Icon */
.arb-toggle__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    line-height: 1;
}

.arb-toggle__icon--chevron {
    transform: rotate(0deg);
}
.arb-toggle__item.is-active .arb-toggle__icon--chevron {
    transform: rotate(90deg);
}

.arb-toggle__icon--caret {
    transform: rotate(0deg);
}
.arb-toggle__item.is-active .arb-toggle__icon--caret {
    transform: rotate(90deg);
}

.arb-toggle__icon--plus {
    transform: rotate(0deg);
}
.arb-toggle__item.is-active .arb-toggle__icon--plus {
    transform: rotate(45deg);
}

/* Body / content panel */
.arb-toggle__body {
    overflow: hidden;
}

.arb-toggle__body[hidden] {
    display: none;
}

.arb-toggle__body-inner > *:first-child {
    margin-top: 0;
}

.arb-toggle__body-inner > *:last-child {
    margin-bottom: 0;
}
