/* ARD REIT Zigzag Widget – 6 cols text + 6 cols image per row, alternating */

.ard-reit-zigzag-section {
    isolation: isolate;
    width: 100%;
    padding: 30px 0px;
}

.ard-reit-zigzag-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.ard-reit-zigzag-header {
    margin-bottom: 48px;
}

.ard-reit-zigzag-tagline {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500 !important;
    line-height: 1.2;
}

.ard-reit-zigzag-highlight {
    margin: 0;
    font-size: 2rem;
    line-height: 1.5;
    color: #cca97b;
}

/* Motion wrappers (heading + each block) – no layout change, just animation host */
.ard-reit-zigzag-motion {
    width: 100%;
}

/* Zigzag blocks – 12-col grid, 6+6 per row */
.ard-reit-zigzag-blocks {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 50px;
}

/* Each row: single row — 6 cols text + 6 cols image (50% each on desktop) */
.ard-reit-zigzag-row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

/* Small/medium: full-width cols, image first then text; prevent text hiding under image */
.ard-reit-zigzag-row .ard-reit-zigzag-col--image {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    min-height: 0;
}
.ard-reit-zigzag-row .ard-reit-zigzag-col--text {
    order: 2;
    width: 100%;
    max-width: 100%;
    flex: 1 0 auto;
    position: relative;
    z-index: 2;
    min-height: 0;
}

@media (min-width: 769px) {
    .ard-reit-zigzag-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 32px 48px;
        align-items: center;
    }
    .ard-reit-zigzag-row .ard-reit-zigzag-col--text,
    .ard-reit-zigzag-row .ard-reit-zigzag-col--image {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        width: auto;
        box-sizing: border-box;
        z-index: auto;
    }
    /* Desktop: zigzag order — row 1 text left, image right */
    .ard-reit-zigzag-row--text-left .ard-reit-zigzag-col--text { order: 1; }
    .ard-reit-zigzag-row--text-left .ard-reit-zigzag-col--image { order: 2; }
    /* Desktop: row 2 image left, text right */
    .ard-reit-zigzag-row--image-left .ard-reit-zigzag-col--image { order: 1; }
    .ard-reit-zigzag-row--image-left .ard-reit-zigzag-col--text { order: 2; }
}

/* Text column (6 cols content) */
.ard-reit-zigzag-col--text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ard-reit-zigzag-block-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.ard-reit-zigzag-block-desc {
    margin: 0;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
    color: #e5e7eb;
}

/* Image column (6 cols) – contain layout so it never overlaps text */
.ard-reit-zigzag-col--image {
    min-height: 200px;
    overflow: hidden;
    contain: layout;
}

.ard-reit-zigzag-image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.ard-reit-zigzag-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
