/* Rotating 3 Pillars Carousel Block */

/* CSS Custom Properties for Theme Colors */
:root {
    /* Blue Theme */
    --r3pc-blue-border: #cce4ff;
    --r3pc-blue-gradient-from: rgba(32, 125, 233, 0.1);
    --r3pc-blue-accent: #207de9;
    --r3pc-blue-icon-bg: #cce4ff;
    --r3pc-blue-icon-fill: #207de9;
    
    /* Purple Theme */
    --r3pc-purple-border: #e9d4e9;
    --r3pc-purple-gradient-from: rgba(175, 63, 172, 0.1);
    --r3pc-purple-accent: #af3fac;
    --r3pc-purple-icon-bg: #e9d4e9;
    --r3pc-purple-icon-fill: #af3fac;
    
    /* Teal Theme */
    --r3pc-teal-border: #dbf3f1;
    --r3pc-teal-gradient-from: rgba(77, 193, 185, 0.1);
    --r3pc-teal-accent: #4dc1b9;
    --r3pc-teal-icon-bg: #dbf3f1;
    --r3pc-teal-icon-fill: #4dc1b9;
}

/* Main Container */
.rotating-3-pillars-carousel {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 64px 24px 144px;
    box-sizing: border-box;
}

.rotating-3-pillars-carousel__container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

/* Triangle Navigation */
.rotating-3-pillars-carousel__triangle-nav {
    position: relative;
    width: 100%;
    height: 186px;
    z-index: 2;
}

/* Triangle Shape - Dashed Lines */
.rotating-3-pillars-carousel__triangle-shape {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 496px;
    height: 126px;
    pointer-events: none;
}

.rotating-3-pillars-carousel__triangle-shape svg {
    width: 100%;
    height: 100%;
}

/* Navigation Items Container */
.rotating-3-pillars-carousel__nav-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Navigation Item Base */
.rotating-3-pillars-carousel__nav-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1;
    /* Transition for diagonal movement - animate left & top together */
    transition: 
        left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        flex-direction 0s 0.3s,
        opacity 0.3s ease;
}

.rotating-3-pillars-carousel__nav-item:hover .rotating-3-pillars-carousel__nav-icon {
    transform: scale(1.05);
}

.rotating-3-pillars-carousel__nav-item.is-active {
    z-index: 2;
}

/* Position: Center (Active - Bottom of triangle) */
.rotating-3-pillars-carousel__nav-item[data-position="center"] {
    left: 50%;
    top: 138px;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.rotating-3-pillars-carousel__nav-item[data-position="center"] .rotating-3-pillars-carousel__nav-label {
    position: absolute;
    top: -52px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: none;
    text-align: center;
}

/* Position: Top-Left */
.rotating-3-pillars-carousel__nav-item[data-position="top-left"] {
    left: 412px;
    top: 12px;
    transform: translateX(-50%);
    flex-direction: row-reverse;
    gap: 16px;
}

.rotating-3-pillars-carousel__nav-item[data-position="top-left"] .rotating-3-pillars-carousel__nav-label {
    position: absolute;
    top: 50%;
    left: auto;
    right: calc(100% + 32px);
    transform: translateY(-50%);
    text-align: right;
    /* white-space: pre-wrap; */
    width: 130px;
}

/* Position: Top-Right */
.rotating-3-pillars-carousel__nav-item[data-position="top-right"] {
    left: 900px;
    top: 12px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 16px;
}

.rotating-3-pillars-carousel__nav-item[data-position="top-right"] .rotating-3-pillars-carousel__nav-label {
    position: absolute;
    top: 50%;
    left: calc(100% + 32px);
    right: auto;
    transform: translateY(-50%);
    text-align: left;
    /* white-space: pre-wrap; */
    width: 130px;
}

/* Nav Icon */
.rotating-3-pillars-carousel__nav-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Icon Background Ring */
.rotating-3-pillars-carousel__nav-icon::before {
    content: '';
    position: absolute;
    inset: -12.5%;
    border-radius: 50%;
    /* opacity: 0.5;
    transition: opacity 0.3s ease; */
}

/* Active nav icon ::before - currently unused, can add effects here */

.rotating-3-pillars-carousel__nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    z-index: 1;
}

/* Nav Label */
.rotating-3-pillars-carousel__nav-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    color: #222222;
    letter-spacing: -0.864px;
    /* Smooth transitions for position and size changes */
    transition: 
        top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        right 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* Theme-specific Nav Icon Colors */
.rotating-3-pillars-carousel__nav-item--blue .rotating-3-pillars-carousel__nav-icon {
    background: var(--r3pc-blue-icon-bg);
}

.rotating-3-pillars-carousel__nav-item--blue .rotating-3-pillars-carousel__nav-icon::before {
    background: var(--r3pc-blue-icon-bg);
}

.rotating-3-pillars-carousel__nav-item--purple .rotating-3-pillars-carousel__nav-icon {
    background: var(--r3pc-purple-icon-bg);
}

.rotating-3-pillars-carousel__nav-item--purple .rotating-3-pillars-carousel__nav-icon::before {
    background: var(--r3pc-purple-icon-bg);
}

.rotating-3-pillars-carousel__nav-item--teal .rotating-3-pillars-carousel__nav-icon {
    background: var(--r3pc-teal-icon-bg);
}

.rotating-3-pillars-carousel__nav-item--teal .rotating-3-pillars-carousel__nav-icon::before {
    background: var(--r3pc-teal-icon-bg);
}

/* Slides Container */
.rotating-3-pillars-carousel__slides {
    width: 100%;
    position: relative;
    z-index: 1;
    padding-right: 64px;
}

/* Individual Slide */
.rotating-3-pillars-carousel__slide {
    display: none;
    flex-direction: column;
    gap: 40px;
    padding: 64px;
    border-radius: 16px;
    border: 2px solid;
    background: linear-gradient(to bottom, var(--slide-gradient-from), rgba(255, 255, 255, 0));
    margin-right: -64px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rotating-3-pillars-carousel__slide.is-active {
    display: flex;
    opacity: 1;
}

/* Theme-specific Slide Styles */
.rotating-3-pillars-carousel__slide--blue {
    border-color: var(--r3pc-blue-border);
    --slide-gradient-from: var(--r3pc-blue-gradient-from);
    --slide-accent: var(--r3pc-blue-accent);
}

.rotating-3-pillars-carousel__slide--purple {
    border-color: var(--r3pc-purple-border);
    --slide-gradient-from: var(--r3pc-purple-gradient-from);
    --slide-accent: var(--r3pc-purple-accent);
}

.rotating-3-pillars-carousel__slide--teal {
    border-color: var(--r3pc-teal-border);
    --slide-gradient-from: var(--r3pc-teal-gradient-from);
    --slide-accent: var(--r3pc-teal-accent);
}

/* Slide Inner Layout */
.rotating-3-pillars-carousel__slide-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Content Column */
.rotating-3-pillars-carousel__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Preheading - Base */
.rotating-3-pillars-carousel__preheading {
    display: block;
}

/* Preheading - Text Variant */
.rotating-3-pillars-carousel__preheading--text {
    font-family: var(--font-inter);
    font-weight: 800;
    font-size: 18px;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: 0.54px;
}

/* Theme specific preheading text colors */
.rotating-3-pillars-carousel__slide--blue .rotating-3-pillars-carousel__preheading--text {
    color: var(--r3pc-blue-accent);
}

.rotating-3-pillars-carousel__slide--purple .rotating-3-pillars-carousel__preheading--text {
    color: var(--r3pc-purple-accent);
}

.rotating-3-pillars-carousel__slide--teal .rotating-3-pillars-carousel__preheading--text {
    color: var(--r3pc-teal-accent);
}

/* Preheading - Image Variant */
.rotating-3-pillars-carousel__preheading--image {
    display: flex;
    align-items: center;
    height: auto;
}

.rotating-3-pillars-carousel__preheading--image img {
    max-height: 32px;
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto 212 / 119;
    flex: 0;
}

/* Heading */
.rotating-3-pillars-carousel__heading {
    font-family: var(--font-inter);
    font-weight: 800;
    font-size: 32px;
    line-height: 40px;
    color: #222222;
    letter-spacing: -1.152px;
    margin: 0;
}

/* Bullet Points */
.rotating-3-pillars-carousel__bullets {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rotating-3-pillars-carousel__bullet {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0
}

.rotating-3-pillars-carousel__bullet-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--slide-accent);
    margin-top: 13px;
}

.rotating-3-pillars-carousel__bullet-text {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 21px;
    line-height: 35px;
    color: #222222;
}

/* Media Column */
.rotating-3-pillars-carousel__media {
    flex: 0 0 480px;
    max-width: 480px;
    overflow: hidden;
}

.rotating-3-pillars-carousel__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Autoplay Video */
.rotating-3-pillars-carousel__video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.rotating-3-pillars-carousel__video-wrapper.is-loaded {
    background: transparent;
    min-height: auto;
}

.rotating-3-pillars-carousel__video-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rotating-3-pillars-carousel__video-wrapper.is-loaded .rotating-3-pillars-carousel__video-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.rotating-3-pillars-carousel__video-spinner {
    width: 48px;
    height: 48px;
    animation: r3pc-spin 1s linear infinite;
}

.rotating-3-pillars-carousel__video-spinner circle {
    stroke: var(--r3pc-blue-accent);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: r3pc-dash 1.5s ease-in-out infinite;
}

/* Autoplay Image */

.rotating-3-pillars-carousel__media-scroller-wrapper {
    flex: 0 0 480px;
    max-width: 480px;
    height: 270px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 15%,
        rgba(0, 0, 0, 1) 85%,
        rgba(0, 0, 0, 0) 100%
    );
}

.rotating-3-pillars-carousel__media-scroller {
    display: flex;
    flex-direction: column;
    width: 100%;
    will-change: transform;
    animation: rotating-3-pillars-carousel-scroll 8s linear infinite;
}

/* Both the <img> and the ::after duplicate are sized by the SAME
   aspect-ratio rule so their pixel heights match exactly — otherwise
   translateY(-50%) lands a fraction off and produces a visible snap. */
.rotating-3-pillars-carousel__media-scroller img,
.rotating-3-pillars-carousel__media-scroller::after {
    width: 100%;
    height: auto;
    aspect-ratio: var(--scroller-aspect, 960 / 842);
    display: block;
    flex-shrink: 0;
}

/* Duplicate copy of the image stacked below to enable a seamless loop.
   --scroller-img and --scroller-aspect are set inline from the template
   so the second copy always matches the first <img>. */
.rotating-3-pillars-carousel__media-scroller::after {
    content: '';
    background-image: var(--scroller-img);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Paused while the carousel is off screen or the tab is hidden (class set in rotating-3-pillars-carousel.js) */
.rotating-3-pillars-carousel.is-offscreen .rotating-3-pillars-carousel__media-scroller {
    animation-play-state: paused;
}

@keyframes rotating-3-pillars-carousel-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

/* Theme-specific spinner colors */
.rotating-3-pillars-carousel__slide--purple .rotating-3-pillars-carousel__video-spinner circle {
    stroke: var(--r3pc-purple-accent);
}

.rotating-3-pillars-carousel__slide--teal .rotating-3-pillars-carousel__video-spinner circle {
    stroke: var(--r3pc-teal-accent);
}

@keyframes r3pc-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes r3pc-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.rotating-3-pillars-carousel__video-autoplay {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rotating-3-pillars-carousel__video-wrapper.is-loaded .rotating-3-pillars-carousel__video-autoplay {
    opacity: 1;
}

/* Video Trigger (Thumbnail + Play Button) */
.rotating-3-pillars-carousel__video-trigger {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.rotating-3-pillars-carousel__video-trigger img {
    width: 100%;
    height: auto;
    display: block;
}


/* Wistia Wrapper */
.rotating-3-pillars-carousel__wistia-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.rotating-3-pillars-carousel__wistia-wrapper .wistia_embed {
    width: 100%;
}

.rotating-3-pillars-carousel__wistia-wrapper .wistia_responsive_wrapper {
    border-radius: 8px;
    overflow: hidden;
}

/* Wistia Play Button - Circular Pulsing Style (Always Blue) */
.rotating-3-pillars-carousel__wistia-wrapper .fx-wistia_thumb .wistia_embed {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: var(--r3pc-blue-accent) !important;
    animation: r3pc-pulse-blue 2s ease-in-out infinite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


.rotating-3-pillars-carousel__wistia-wrapper .fx-wistia_thumb .wistia_embed::before {
    left: 25px;
}

/* Wistia thumbnail image */
.rotating-3-pillars-carousel__wistia-wrapper .wistia_click_to_play img {
    border-radius: 8px;
}

/* Pulsating Play Button - Always Blue */
.rotating-3-pillars-carousel__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--r3pc-blue-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: r3pc-pulse-blue 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(32, 125, 233, 0.4);
}

.rotating-3-pillars-carousel__play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Visual centering for play icon */
}

@keyframes r3pc-pulse-blue {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(32, 125, 233, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 0 0 20px rgba(32, 125, 233, 0);
    }
}

/* Footer */
.rotating-3-pillars-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* CTA Link */
.rotating-3-pillars-carousel__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 21px;
    line-height: 28px;
    color: #207de9;
    text-decoration: none;
    letter-spacing: -0.168px;
    transition: gap 0.3s ease;
}

.rotating-3-pillars-carousel__cta:hover {
    gap: 12px;
}

.rotating-3-pillars-carousel__cta svg {
    width: 19px;
    height: 16px;
    transition: transform 0.3s ease;
}

.rotating-3-pillars-carousel__cta:hover svg {
    transform: translateX(4px);
}

/* Pagination Dots */
.rotating-3-pillars-carousel__pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rotating-3-pillars-carousel__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    background: #ced4da;
    transition: background 0.3s ease, transform 0.3s ease;
}

.rotating-3-pillars-carousel__dot:hover {
    transform: scale(1.1);
}

/* Theme-specific Active Dots */
.rotating-3-pillars-carousel__dot--blue.is-active {
    background: var(--r3pc-blue-accent);
}

.rotating-3-pillars-carousel__dot--purple.is-active {
    background: var(--r3pc-purple-accent);
}

.rotating-3-pillars-carousel__dot--teal.is-active {
    background: var(--r3pc-teal-accent);
}

/* ================================
   RESPONSIVE STYLES
   ================================ */

/* Tab Layout for screens below 1360px */
@media screen and (max-width: 1359px) {

    .rotating-3-pillars-carousel {
        padding: 48px 24px 64px;
    }
    
    /* Hide triangle shape in tab mode */
    .rotating-3-pillars-carousel__triangle-shape {
        display: none;
    }
    
    /* Tab Navigation Layout */
    .rotating-3-pillars-carousel__triangle-nav {
        height: auto;
        margin-bottom: 32px;
    }
    
    .rotating-3-pillars-carousel__nav-items {
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
        height: auto;
        gap: 48px;
    }
    
    /* Tab Item Styles - Override absolute positioning */
    .rotating-3-pillars-carousel__nav-item {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        flex-direction: column !important;
        width: 120px;
        gap: 16px;
        transition: none !important;
    }
    
    /* Tab Icon */
    .rotating-3-pillars-carousel__nav-icon {
        width: 120px;
        height: 120px;
    }
    
    /* Tab Label - Override absolute positioning */
    .rotating-3-pillars-carousel__nav-label {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        font-size: 21px;
        line-height: 27px;
        width: auto !important;
        max-width: 120px;
        text-align: center !important;
        white-space: normal;
    }
    .rotating-3-pillars-carousel__nav-item[data-position="center"] .rotating-3-pillars-carousel__nav-label {
        white-space: normal;
    }
    
    /* Active tab label styles */
    .rotating-3-pillars-carousel__nav-item.is-active .rotating-3-pillars-carousel__nav-label {
        font-weight: 600;
    }
    
    /* Inactive tab label styles */
    .rotating-3-pillars-carousel__nav-item:not(.is-active) .rotating-3-pillars-carousel__nav-label {
        font-weight: 400;
        color: #222222;
    }
    
    /* Active tab icon - show colored background */
    .rotating-3-pillars-carousel__nav-item.is-active .rotating-3-pillars-carousel__nav-icon {
        background: transparent;
    }
    
    .rotating-3-pillars-carousel__nav-item.is-active .rotating-3-pillars-carousel__nav-icon::before {
        content: '';
        position: absolute;
        inset: -12.5%;
        border-radius: 50%;
        opacity: 1;
        z-index: -1;
    }
    
    .rotating-3-pillars-carousel__nav-item--blue.is-active .rotating-3-pillars-carousel__nav-icon::before {
        background: var(--r3pc-blue-icon-bg);
    }
    
    .rotating-3-pillars-carousel__nav-item--purple.is-active .rotating-3-pillars-carousel__nav-icon::before {
        background: var(--r3pc-purple-icon-bg);
    }
    
    .rotating-3-pillars-carousel__nav-item--teal.is-active .rotating-3-pillars-carousel__nav-icon::before {
        background: var(--r3pc-teal-icon-bg);
    }
    
    /* Inactive tab icon - solid background */
    .rotating-3-pillars-carousel__nav-item:not(.is-active) .rotating-3-pillars-carousel__nav-icon::before {
        opacity: 0;
    }
    
    /* Slides container adjustments */
    .rotating-3-pillars-carousel__slides {
        /* padding-right: 0; */
        margin-top: 0;
    }
    
    .rotating-3-pillars-carousel__slide {
        padding: 24px;
    }
    
    .rotating-3-pillars-carousel__slide-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .rotating-3-pillars-carousel__media {
        flex: 0 0 auto;
        /* max-width: 100%; */
        /* width: 100%; */
        height: auto;
    }
    
    /* .rotating-3-pillars-carousel__content {
        gap: 24px;
    } */
    
    .rotating-3-pillars-carousel__preheading--text {
        font-size: 16px;
    }
    
    .rotating-3-pillars-carousel__preheading--image img {
        max-height: 28px;
    }
    
    .rotating-3-pillars-carousel__heading {
        font-size: 24px;
        line-height: 30px;
    }
    
    .rotating-3-pillars-carousel__bullet {
        font-size: 18px;
        line-height: 28px;
    }
    
    .rotating-3-pillars-carousel__bullet-text {
        font-size: 18px;
        line-height: 28px;
    }
    
    .rotating-3-pillars-carousel__footer {
        margin-top: 24px;
    }
    
    .rotating-3-pillars-carousel__cta {
        font-size: 18px;
    }

    .rotating-3-pillars-carousel__media-scroller-wrapper {
        height: 420px;
    }
}

/* Tablet adjustments */
@media screen and (max-width: 768px) {

    
    .rotating-3-pillars-carousel {
        padding: 32px 16px 48px;
    }
    
    .rotating-3-pillars-carousel__nav-items {
        gap: 16px;
    }
    
    .rotating-3-pillars-carousel__nav-icon {
        width: 80px;
        height: 80px;
    }
    
    .rotating-3-pillars-carousel__nav-label {
        font-size: 18px;
        line-height: 24px;
        max-width: 120px;
    }
    
    .rotating-3-pillars-carousel__slide {
        padding: 20px;
    }
    
    .rotating-3-pillars-carousel__heading {
        font-size: 22px;
        line-height: 28px;
    }
    
    .rotating-3-pillars-carousel__bullet-text {
        font-size: 16px;
        line-height: 26px;
    }
    
    /* Reorder elements: Content → CTA → Media → Pagination */
    .rotating-3-pillars-carousel__slide.is-active {
        display: flex;
        flex-direction: column;
    }
    
    .rotating-3-pillars-carousel__slide-inner {
        display: contents;
    }
    
    .rotating-3-pillars-carousel__footer {
        display: contents;
    }
    
    .rotating-3-pillars-carousel__content {
        order: 1;
    }
    
    .rotating-3-pillars-carousel__cta {
        order: 2;
        /* margin-top: 24px; */
    }
    
    .rotating-3-pillars-carousel__media {
        order: 3;
        /* margin-top: 24px; */
        align-self: center;
    }
    
    .rotating-3-pillars-carousel__pagination {
        order: 4;
        align-self: center;
        /* margin-top: 24px; */
    }
    
    /* Play button responsive */
    .rotating-3-pillars-carousel__play-button {
        width: 64px;
        height: 64px;
    }
    
    .rotating-3-pillars-carousel__play-button svg {
        width: 26px;
        height: 26px;
    }
    
    /* Wistia play button responsive */
    .rotating-3-pillars-carousel__wistia-wrapper .wistia_click_to_play > div > div,
    .rotating-3-pillars-carousel__wistia-wrapper .w-big-play-button {
        width: 64px !important;
        height: 64px !important;
    }
    
    .rotating-3-pillars-carousel__wistia-wrapper .wistia_click_to_play > div > div svg,
    .rotating-3-pillars-carousel__wistia-wrapper .w-big-play-button svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .rotating-3-pillars-carousel__slide,
    .rotating-3-pillars-carousel__nav-item {
        transition: none;
    }
    
    .rotating-3-pillars-carousel__nav-icon,
    .rotating-3-pillars-carousel__cta,
    .rotating-3-pillars-carousel__cta svg,
    .rotating-3-pillars-carousel__dot {
        transition: none;
    }
    
    /* Disable pulsing animations for accessibility */
    .rotating-3-pillars-carousel__play-button,
    .rotating-3-pillars-carousel__wistia-wrapper .wistia_click_to_play > div > div,
    .rotating-3-pillars-carousel__wistia-wrapper .w-big-play-button {
        animation: none !important;
    }

    .rotating-3-pillars-carousel__media-scroller {
        animation: none;
    }
}

