/* Scope all styles using a specific wrapper class to avoid conflicts */
.aina-wheel-wrapper {
    position: relative;
    width: 100%;
    /* You may want to control height via Elementor section settings, 
       but we give a min-height so it's visible in the editor */
    min-height: 500px; 
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.aina-wheel-container {
    /* CSS Variables injected by Elementor via inline styles will override these defaults */
    --wheel-size: 850px;
    --wheel-x-pos: 85%;
    --wheel-y-pos: 50%;
    --animation-duration: 80000ms;
    --slice-scale: 0.99;
    
    --center-size: 450px;
    --center-bg-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.4);

    position: absolute;
    top: var(--wheel-y-pos);
    left: var(--wheel-x-pos);
    transform: translate(-50%, -50%);
    width: var(--wheel-size);
    height: var(--wheel-size);
    z-index: 1;
}

.aina-outer-wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    clip-path: circle(50% at 50% 50%); /* GUARANTEE perfect circle regardless of browser overflow bugs */
    animation: ainaRotateWheel var(--animation-duration) linear infinite;
	border:6px solid white;
	background:white !important;
}

.aina-wheel-container.aina-pause-on-hover:hover .aina-outer-wheel {
    animation-play-state: paused;
}
.aina-wheel-container.aina-pause-on-hover:hover .aina-wheel-item {
    animation-play-state: paused;
}

.aina-wheel-item {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    transform-origin: 50% 50%;
    /* clip-path set by JS */
    overflow: hidden;
    z-index: 10;
}

.aina-wheel-item img {
    width: var(--wheel-image-width, 100%);
    height: var(--wheel-image-height, 100%);
    object-fit: var(--wheel-image-fit, cover);
    /* Move focal point up since the visible wedge is in the top center of the 200% container */
    object-position: var(--wheel-image-pos-x, center) var(--wheel-image-pos-y, 25%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.aina-wheel-item:hover {
    z-index: 20;
}

.aina-wheel-item:hover img {
    transform: scale(1);
}

.aina-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--center-size);
    height: var(--center-size);
    border-radius: 50%;
    background-color: var(--center-bg-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 5;
    border: 6px solid #ffffff;
}

.aina-center-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.8s ease;
}

.aina-center-circle:hover .aina-center-image {
    transform: scale(1.05);
}

.aina-center-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 2;
}

.aina-center-text {
    position: relative;
    z-index: 3;
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.aina-center-text .aina-highlight {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 900;
}

@keyframes ainaRotateWheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ainaCounterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ==========================================================================
   Horizontal Banner Mode (Semicircle Slider)
   ========================================================================== */

.aina-wheel-wrapper.aina-layout-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 8%;
    min-height: 350px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #E3262D 0%, #87090F 100%) !important;
    box-sizing: border-box;
}

/* Banner wheel — uses the same --wheel-x-pos / --wheel-y-pos variables as the
   standard layout so the Elementor X/Y position controls work correctly.
   Defaults replicate the original semicircle-on-the-right look. */
.aina-layout-banner .aina-wheel-container {
    --wheel-x-pos: 85%;   /* default: right side of banner */
    --wheel-y-pos: 50%;   /* default: vertically centred */
    top: var(--wheel-y-pos);
    left: var(--wheel-x-pos);
    transform: translate(-50%, -50%);
    box-shadow: none;
    max-width: 700px;
    max-height: 700px;
}

/* Premium center circle for the semicircle */
.aina-layout-banner .aina-center-circle {
    background-color: var(--center-bg-color, #ffffff) !important;
    border: 8px solid #ffffff !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center !important; /* Shift text up into the top half */
    padding-bottom: 15% !important; /* Push text down just enough to center vertically in top semicircle */
    box-sizing: border-box !important;
}

.aina-layout-banner .aina-center-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem) !important; /* Scale down center text size to fit in semicircle */
    line-height: 1.2 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.aina-layout-banner .aina-center-text .aina-highlight {
    font-size: 1.2em !important;
}

/* Banner typography and content - mathematically guarantees no overlap */
.aina-layout-banner .aina-banner-content {
    margin-left: calc( var(--wheel-size, 500px) + 80px ); /* wheel size + left gap (40px) + right gap (40px) */
    z-index: 10;
    color: #ffffff;
    font-family: 'Inter', 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 55%;
}

.aina-layout-banner .aina-banner-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    line-height: 1.1;
}

.aina-layout-banner .aina-banner-subtitle {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #e0f2fe; /* Soft light-blue color */
    line-height: 1.4;
}

/* Colored Dots row */
.aina-layout-banner .aina-banner-dots {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-items: center;
}

.aina-layout-banner .aina-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.aina-layout-banner .aina-dot:hover {
    transform: scale(1.35);
    filter: brightness(1.2);
}

/* CTA Button Styling */
.aina-layout-banner .aina-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #0a3356;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: 12px;
    border: 2px solid transparent;
    width: fit-content;
}

.aina-layout-banner .aina-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* ==========================================================================
   Responsive Styles — Tablet & Mobile
   ========================================================================== */

/* --- Tablet (769px – 991px) ---
   Switch to stacked column layout:
   disc on top, content below.
   The wheel is pulled out of absolute positioning and into flow via
   position:relative so that flexbox order works correctly.
*/
@media (max-width: 991px) {
    .aina-wheel-wrapper.aina-layout-banner {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 5%;
        min-height: unset;
        height: auto;
        overflow: visible;
    }

    /* Pull wheel into normal flow so flexbox order applies */
    .aina-layout-banner .aina-wheel-container {
        order: 1;                   /* disc always first */
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        --wheel-size: 480px;
        --center-size: 270px;
        width: var(--wheel-size) !important;
        height: var(--wheel-size) !important;
        max-width: 90vw;
        max-height: 90vw;
        flex-shrink: 0;
        margin-bottom: 32px;
    }

    .aina-layout-banner .aina-banner-content {
        order: 2;                   /* text always second */
        margin-left: 0 !important;
        max-width: 100% !important;
        text-align: center;
        align-items: center;
        padding-bottom: 32px;
    }

    .aina-layout-banner .aina-banner-dots {
        justify-content: center;
    }
	 /* Full circle on tablet/mobile — reset the desktop top-half text offset */
    .aina-layout-banner .aina-center-circle {
        justify-content: center !important;
        align-items: center !important;
        padding-top: 0 !important;
    }
}

/* --- Mobile (≤ 600px) ---
   Slightly smaller disc so it fits without horizontal scroll.
*/
@media (max-width: 600px) {
    .aina-wheel-wrapper.aina-layout-banner {
        padding: 28px 16px;
    }

    .aina-layout-banner .aina-wheel-container {
        --wheel-size: 320px;
        --center-size: 180px;
        width: var(--wheel-size) !important;
        height: var(--wheel-size) !important;
        margin-bottom: 24px;
    }

    .aina-layout-banner .aina-banner-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }

    .aina-layout-banner .aina-banner-subtitle {
        font-size: clamp(0.7rem, 3.5vw, 0.9rem) !important;
    }
}
