    /* Scene Container */
.tbs-scene {
    position: relative;
    width: 100%;
    height: 850px; /* Increased to accommodate cards (max height ~750px) + padding */
    overflow: hidden; /* Cut off the bottom half of the wheel */
    perspective: 1000px;
    margin-top: 50px; /* Reduced top margin since container is taller */
}

/* Wheel Container */
.tbs-wheel-container {
    position: absolute;
    bottom: -400px; /* Hide half of the 800px wheel */
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through visual wheel if needed, but we drag scene usually */
}

/* The Wheel Graphic */
.tbs-wheel-graphic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, #2b2b2b 0deg, #1a1a1a 180deg, #2b2b2b 360deg);
    box-shadow: none; /* Completely removed to clean up the gap */
    position: relative;
    
    /* Make it look like a tire */
    border: 40px solid #111;
}

.tbs-wheel-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.1);
}

/* Carousel Ring (Centre of Rotation) */
.tbs-carousel-ring {
    position: absolute;
    bottom: 0; /* Center of the wheel (since wheel is bottom: -400px and height 800px) */
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10;
        /* Debug helper */
    /* border: 5px solid yellow; */
}

/* Card Styling */
.tbs-card {
    position: absolute;
    width: 250px;
    height: 320px;
    left: -125px; /* Center horizontally: -width/2 */
    
    /* 
       Start Position: 
       We want the card to be at the top of the wheel (12 o'clock).
       Wheel Radius is 400px (800px / 2).
       Gap is say 50px.
       So bottom should be 450px from pivot (Ring).
    */
    bottom: 450px; 
    
    /* Origin will be overridden by JS, but logic is: center (Bottom + Radius) */
    transform-origin: center 770px; /* Rough guess: 320(H) + 450(Gap) */
    
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Default shadow, JS will toggle this */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* transition: transform 0.1s; -- GSAP handles this */
    transition: box-shadow 0.3s ease; /* Smooth shadow transition */
    cursor: pointer;
    
    /* Ensure visibility of card */
    opacity: 1;
    backface-visibility: hidden; /* Clean rendering */
    
    /* Overlay CSS Var Default */
    --tbs-overlay-op: 0;

    /* FORCE HEIGHT AND WIDTH TO PREVENT THEME OVERRIDES */
    height: 320px !important;
    max-height: 320px !important;
    min-height: 320px !important;
}

/* Light Gray Overlay for Inactive Items */
.tbs-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(214, 214, 214, 0.253); /* Light gray overlay */
    opacity: var(--tbs-overlay-op);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.2s linear;
    backdrop-filter: blur(0.5px); /* Blur effect for inactive items */
    -webkit-backdrop-filter: blur(0.5px); /* Safari support */
}

.tbs-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.tbs-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    flex-shrink: 0; /* Prevent shrinking when content expands */
}

.tbs-card-content {
    padding: 15px !important;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Contain content */
}

.tbs-card-title {
    margin: 5px 0 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.2 !important; /* Reset line-height to prevent theme inheritance issues */
}

.tbs-card-subtitle {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888 !important;
    margin-bottom: 5px !important;
    line-height: normal !important; /* Reset line-height */
}

.tbs-card-decoration {
    width: 30px;
    height: 2px;
    background: #333;
    margin: 10px auto 0;
}
/* Mobile/Tablet View Toggle */
.tbs-mobile-carousel {
    display: none;
}

@media (max-width: 1024px) {
    /* Hide Desktop Circle Scene */
    .tbs-scene {
        display: none !important; 
    }
    
    /* Show Mobile/Tablet Linear Carousel */
    .tbs-mobile-carousel {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 40px 20px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .tbs-mobile-carousel::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    /* Mobile Card Styling */
    .tbs-mobile-card {
        flex: 0 0 70vw; /* Majority of width */
        max-width: 350px;
        height: 60vh;
        max-height: 450px;
        scroll-snap-align: center;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
    }
    
    .tbs-mobile-card-link-wrapper {
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .tbs-mobile-card-image {
        flex: 1;
        background-size: cover;
        background-position: center;
        width: 100%;
    }
    
    .tbs-mobile-card-content {
        padding: 20px;
        text-align: center;
        background: #fff;
    }
    
    .tbs-mobile-card-subtitle {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #999;
        margin-bottom: 5px;
    }
    
    .tbs-mobile-card-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        padding-bottom: 10px;
        color: #333;
        position: relative;
    }
    
    .tbs-mobile-card-title::after {
         content: "";
         display: block;
         width: 20px;
         height: 2px;
         background: #333;
         margin: 10px auto 0;
    }
}
