/* ================= DESKTOP (DEFAULT) ================= */
.compass-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 60px 5%;
    height: 600px; /* Only for desktop */
    box-sizing: border-box;
}

.compass-text-area-container {
    flex: 1.2;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    height: 300px;
    opacity: 0; 
    transition: opacity 0.5s ease;
    gap: 15px;
}

.compass-text-area-container.show-text {
    opacity: 1 !important;
}

.compass-prefix-text {
    white-space: nowrap;
    line-height: 1;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.compass-path-highlight {
    color: #F3C93F !important;
}

.compass-text-swiper {
    flex: 1;
    height: 300px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.compass-text-swiper .swiper-slide {
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transform-origin: left center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center; 
    justify-content: flex-start !important;
    text-align: left !important;
    height: 100px !important; 
    box-sizing: border-box;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    transform: translateX(calc(-1 * var(--pc-left-offset, 50px))) scale(0.85);
    opacity: 0 !important;
    visibility: hidden;
}

.compass-text-swiper .swiper-slide-active,
.compass-text-swiper .swiper-slide-duplicate-active {
    transform: translateX(0) scale(1) !important; 
    opacity: 1 !important;
    visibility: visible;
    color: var(--pc-active-color, #F3C93F) !important;
}

.compass-viewport {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
    position: relative;
    height: 500px; 
}

.compass-image-header {
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 5; 
}

.compass-img-title, .compass-img-subtitle {
    margin: 0 0 6px 0;
    padding: 0;
    line-height: 1.1;
}

.compass-viewport img {
    object-position: center; 
    border-radius: 0px; 
    z-index: 2;
    margin-top: auto; 
    max-width: 100%; 
}

/* ================= TABLET & MOBILE RESPONSIVE (max-width: 1024px) ================= */
@media (max-width: 1024px) {
    .compass-hero-wrapper {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 160px 20px 40px !important; /* Increased padding to push 'The wealth of' down */
        position: relative !important; 
    }
    
    .compass-text-area-container {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 40px !important; /* Created gap between slider text and compass image */
        opacity: 1 !important;
    }
    
    .compass-prefix-text {
        position: relative !important;
        transform: none !important;
        top: 0 !important;
        left: 0 !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: -10px !important; /* Adjusted gap with the active slider text */
        z-index: 5 !important;
    }
    
    .compass-text-swiper {
        height: 100px !important;
        padding-left: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        display: block !important;
    }
    
    .compass-text-swiper .swiper-slide {
        justify-content: center !important;
        text-align: center !important;
        height: 33px !important; 
        transform: scale(0.85) !important; 
    }
    
    .compass-text-swiper .swiper-slide-active,
    .compass-text-swiper .swiper-slide-duplicate-active {
        transform: scale(1) !important;
    }

    .compass-viewport {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        position: static !important;
    }
    
    .compass-image-header {
        position: absolute !important; 
        top: 60px !important; /* Pulled down from the very top */
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-bottom: 0 !important;
        display: block !important;
        width: 100% !important;
        z-index: 10 !important;
    }

    .compass-viewport img {
        margin: 0 auto !important; 
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        padding-top: 0 !important;
    }
}