.rd-widget-wrapper-076c006b {
    position: relative;
    width: 100%;
    /* Lower z-index so the news overlay (which is presumably standard/higher) can sit on top */
    z-index: 10;
}

.rd-nav-header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.rd-nav-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px 0;
    /* Ensure the nav itself is above the backgrounds */
    position: relative;
    z-index: 30;
}

.rd-nav-item {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HAMBURGER STYLES */
.rd-hamburger-toggle {
    display: none; /* Hidden on desktop by default */
    cursor: pointer;
    z-index: 40;
    position: relative;
    padding: 10px;
}

.rd-hamburger-toggle svg {
    width: 24px;
    height: 24px;
    fill: #000;
    transition: fill 0.3s ease;
}

.rd-hamburger-toggle.is-open svg .line {
    /* Basic animation for visual feedback, can be expanded */
    transition: all 0.3s ease;
}
.rd-hamburger-toggle.is-open svg .top { transform: translateY(5px) rotate(45deg); transform-origin: center; }
.rd-hamburger-toggle.is-open svg .middle { opacity: 0; }
.rd-hamburger-toggle.is-open svg .bottom { transform: translateY(-5px) rotate(-45deg); transform-origin: center; }


/* OVERLAYS CONTAINER - Absolute positioned to cover the closest relative parent (hero) */
.rd-overlays-container {
    position: absolute;
    top: 100%; /* Just below the nav by default, but meant to cover hero */
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    /* Lower z-index for the container to ensure it stays below external overlays */
    z-index: 5;
}

.rd-overlay-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Typically the parent section should have min-height or height defined */
    height: 100%;
    min-height: 400px; /* fallback */
    display: flex;
    flex-direction: column;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility, transform;
    transition-timing-function: ease-in-out;
    overflow: visible; /* Changed to visible to let background extend freely */
}

.rd-overlay-item.is-active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* ANIMATIONS */
.rd-overlay-item.anim-fade-slide {
    transform: translateY(-10px);
}
.rd-overlay-item.anim-fade-slide.is-active {
    transform: translateY(0);
}

.rd-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Very low z-index to stay behind everything, including the panel content and external news overlay */
    z-index: -1; 
}

.rd-panel-content {
    position: relative;
    /* max-height: 100%;  <-- REMOVED: This was artificially constraining the height */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* we handle scroll internally */
    /* Ensure the panel content sits above the background image */
    z-index: 20; 
}

.rd-panel-content-inner {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    padding: 30px;
    flex-grow: 1;
    scroll-behavior: smooth;
}

.rd-panel-content-inner::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ARROWS */
.rd-scroll-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    z-index: 25;
}
.rd-scroll-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.rd-panel-content.has-scroll .rd-scroll-arrow {
    display: flex;
}
.rd-scroll-arrow.is-disabled {
    opacity: 0.2;
    pointer-events: none;
}


/* RESPONSIVE HAMBURGER LOGIC - TABLET (<1025px) */
.rd-hamburger-yes.rd-hamburger-breakpoint-tablet .rd-hamburger-toggle {
    display: none;
}
@media (max-width: 1024px) {
    .rd-hamburger-yes.rd-hamburger-breakpoint-tablet .rd-hamburger-toggle {
        display: inline-block;
    }
    
    .rd-hamburger-yes.rd-hamburger-breakpoint-tablet .rd-mobile-nav-container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff; /* Fallback */
        z-index: 35;
    }
    
    .rd-hamburger-yes.rd-hamburger-breakpoint-tablet .rd-mobile-nav-container.is-open {
        display: flex;
    }
}

/* RESPONSIVE HAMBURGER LOGIC - MOBILE (<768px) */
.rd-hamburger-yes.rd-hamburger-breakpoint-mobile .rd-hamburger-toggle {
    display: none;
}
@media (max-width: 767px) {
    .rd-hamburger-yes.rd-hamburger-breakpoint-mobile .rd-hamburger-toggle {
        display: inline-block;
    }
    
    .rd-hamburger-yes.rd-hamburger-breakpoint-mobile .rd-mobile-nav-container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff; /* Fallback */
        z-index: 35;
    }
    
    .rd-hamburger-yes.rd-hamburger-breakpoint-mobile .rd-mobile-nav-container.is-open {
        display: flex;
    }
}
