/* Hero Carousel Styles - Enhanced with Admin Settings Support */

.hero-carousel-section {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    margin-top: 0;
}

/* Remove top spacing on homepage */
body.homepage .hero-carousel-section {
    margin-top: 0 !important;
}

.hero-slide {
    position: relative;
    height: 75vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    transition: transform 0.6s ease-in-out;
}

/* Responsive hero heights - better mobile experience */
@media (max-width: 1200px) {
    .hero-slide {
        height: 70vh;
        min-height: 600px;
    }
}

@media (max-width: 992px) {
    .hero-slide {
        height: 65vh;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 50vh;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 45vh;
        min-height: 320px;
    }
}

@media (max-width: 380px) {
    .hero-slide {
        height: 40vh;
        min-height: 280px;
    }
}

@media (max-height: 600px) and (max-width: 768px) {
    /* For landscape mobile or short screens */
    .hero-slide {
        height: 70vh;
        min-height: 300px;
    }
}

/* Custom transition effects */
.hero-slide[data-transition-effect="fade"] {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-item.active .hero-slide[data-transition-effect="fade"] {
    opacity: 1;
}

.hero-slide[data-transition-effect="zoom"] .hero-background-image {
    transition: transform 8s ease-in-out, scale 0.6s ease-in-out;
}

.carousel-item.active .hero-slide[data-transition-effect="zoom"] .hero-background-image {
    transform: scale(1.1);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;

    /* Advanced GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
    -webkit-transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;

    /* Prevent layout shifts and optimize rendering */
    contain: layout style paint;
    isolation: isolate;

    /* Force hardware acceleration layer */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;

    /* Optimize for image rendering */
    image-rendering: optimizeQuality;
    -webkit-optimize-contrast: optimizeQuality;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 8s ease-in-out, opacity 0.3s ease-in-out;

    /* Advanced image quality optimizations */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated; /* Fallback for very sharp edges */

    /* Force high quality interpolation */
    -ms-interpolation-mode: bicubic;
    -webkit-filter: none;
    filter: none;

    /* Prevent blurry images on transform and scaling */
    transform: translateZ(0) scale(1.001);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.001);
    -webkit-perspective: 1000px;
    perspective: 1000px;

    /* Better color rendering and sharpness */
    color-interpolation-filters: sRGB;
}

/* Mobile-first responsive improvements */
@media (max-width: 576px) {
    .hero-background-image {
        /* Better mobile cropping - focus on center/upper area */
        object-position: center 35%;
        /* Ensure image covers full container even on very small screens */
        min-height: 100%;
        width: 100%;
    }

    .hero-image-container {
        /* Ensure container maintains aspect ratio */
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero-background-image {
        object-position: center 40%;
    }
}

@media (max-width: 360px) {
    .hero-slide {
        height: 40vh;
        min-height: 280px;
    }

    .hero-background-image {
        object-position: center 45%;
    }
}

/* Aspect ratio improvement for ultra-wide mobile screens */
@media (max-width: 850px) and (max-height: 400px) {
    .hero-slide {
        height: 85vh;
        min-height: 300px;
    }
}

/* Responsive image object positioning for better mobile cropping */
@media (max-width: 768px) {
    .hero-background-image {
        object-position: center 30%; /* Focus on upper portion for mobile */
    }
}

@media (max-width: 576px) {
    .hero-background-image {
        object-position: center 25%; /* Even more focus on upper portion for small screens */
    }
}

/* Additional image quality enhancements */
.hero-background-image {
    -webkit-font-smoothing: subpixel-antialiased;

    /* Force hardware acceleration */
    will-change: transform, opacity;

    /* Prevent image compression artifacts */
    image-orientation: from-image;

    /* Ensure crisp rendering on all browsers */
    -webkit-optimize-contrast: optimizeSpeed;

    /* Additional sharpness enhancements */
    filter: contrast(1.02) saturate(1.05) brightness(1.01);
}

/* Enhanced lazy loading support with better quality placeholder */
.hero-background-image.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loading-shimmer 2s infinite linear;
}

.hero-background-image.lazy[src],
.hero-background-image.lazy[srcset] {
    opacity: 1;
}

.hero-background-image.loaded {
    opacity: 1;
}



/* Responsive image container */
.hero-responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease-in-out, opacity 0.3s ease-in-out;
    image-rendering: auto;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
}

/* Loading states */
.hero-image-loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* Additional optimization for smooth image scaling */
.hero-image-container img {
    image-rendering: auto !important;
    image-rendering: high-quality !important;
    image-rendering: -webkit-optimize-contrast !important;
    -ms-interpolation-mode: bicubic !important;
    will-change: transform;
}

/* Prevent pixelation on zoom */
.carousel-item.active .hero-background-image {
    transform: scale(1.05);
    image-rendering: auto;
    image-rendering: high-quality;
    -webkit-transform: scale(1.05) translateZ(0);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-content .container-xl,
.hero-content .row,
.hero-content .col-lg-10,
.hero-content .col-xl-8 {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-category .badge {
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    /* Unified background with meta info */
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Removed specific bg-warning glow animation since category now uses unified background */

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    text-align: center;
    word-wrap: break-word;
}

.hero-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-category {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-meta {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-meta .d-flex {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta .btn {
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(52, 144, 220, 0.8), rgba(116, 75, 162, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: white !important;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(52, 144, 220, 0.9), rgba(116, 75, 162, 0.9)) !important;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.carousel-control-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.carousel-control-icon i {
    font-size: 1.5rem;
    color: white;
    pointer-events: none;
}

/* Custom Carousel Navigation - NO CONFLICTS WITH BOOTSTRAP NAV */
.hero-carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-carousel-nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-carousel-nav-button {
    /* COMPLETE RESET - No inheritance from any Bootstrap classes */
    all: unset;

    /* Force remove ALL border and outline properties */
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: 0 !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;

    /* Reset appearance completely */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: none !important;

    /* Custom styling for dots */
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Active state */
.hero-carousel-nav-button.active {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

/* Hover and focus states */
.hero-carousel-nav-button:hover,
.hero-carousel-nav-button:focus {
    background: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1);
    border: 0 !important;
    outline: 0 !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2) !important;
}

/* FALLBACK: Also keep Bootstrap indicators styling for compatibility */
.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 15;
}

.carousel-indicators button,
#heroCarousel .carousel-indicators button,
.hero-carousel .carousel-indicators button,
.carousel-indicators [data-bs-target] {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
    width: 30px !important;
    height: 3px !important;
    margin: 0 3px !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    opacity: 0.5 !important;
}

.carousel-indicators button.active,
#heroCarousel .carousel-indicators button.active,
.hero-carousel .carousel-indicators button.active {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* ULTIMATE OVERRIDE - Target ANY possible blue line sources */
.carousel-indicators *,
#heroCarousel .carousel-indicators *,
.hero-carousel .carousel-indicators *,
.carousel-indicators button *,
#heroCarousel .carousel-indicators button *,
.hero-carousel .carousel-indicators button * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background-image: none !important;
    background-color: transparent !important;
}

/* Override focus-visible modern browsers */
.carousel-indicators button:focus-visible,
#heroCarousel .carousel-indicators button:focus-visible,
.hero-carousel .carousel-indicators button:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Remove text-decoration if any */
.carousel-indicators button,
#heroCarousel .carousel-indicators button,
.hero-carousel .carousel-indicators button {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-style: none !important;
    text-decoration-thickness: 0 !important;
}

/* Force remove any webkit/moz specific styling */
.carousel-indicators button,
#heroCarousel .carousel-indicators button,
.hero-carousel .carousel-indicators button {
    -webkit-border-before: none !important;
    -webkit-border-after: none !important;
    -webkit-border-start: none !important;
    -webkit-border-end: none !important;
    -moz-border-start: none !important;
    -moz-border-end: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    -moz-text-decoration-line: none !important;
}

/* NUCLEAR OPTION - Completely reset and rebuild indicators */
.carousel-indicators button,
#heroCarousel .carousel-indicators button,
.hero-carousel .carousel-indicators button {
    all: unset !important;
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.5) !important;
    width: 30px !important;
    height: 3px !important;
    margin: 0 3px !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
}

/* ULTIMATE FIX - Last resort override for blue indicator lines */
/* This CSS rule has the highest specificity and should override everything */
body .carousel-indicators button,
body #heroCarousel .carousel-indicators button,
body .hero-carousel .carousel-indicators button,
html body .carousel-indicators button,
html body #heroCarousel .carousel-indicators button,
html body .hero-carousel .carousel-indicators button {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Force override on ALL possible states */
body .carousel-indicators button:hover,
body .carousel-indicators button:focus,
body .carousel-indicators button:active,
body .carousel-indicators button:visited,
body #heroCarousel .carousel-indicators button:hover,
body #heroCarousel .carousel-indicators button:focus,
body #heroCarousel .carousel-indicators button:active,
body #heroCarousel .carousel-indicators button:visited,
html body .carousel-indicators button:hover,
html body .carousel-indicators button:focus,
html body .carousel-indicators button:active,
html body .carousel-indicators button:visited {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Remove Bootstrap's default button styling completely */
body .carousel-indicators button[data-bs-target],
body #heroCarousel .carousel-indicators button[data-bs-target] {
    all: revert !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
    width: 30px !important;
    height: 3px !important;
    margin: 0 3px !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
    display: inline-block !important;
}

body .carousel-indicators button[data-bs-target].active,
body #heroCarousel .carousel-indicators button[data-bs-target].active {
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 600px;
        margin: 3rem auto;
        padding: 3rem 1.5rem;
    }

    @media (max-width: 768px) {

     .hero-content .display-4 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }
    }

    .hero-slide {
        padding: 2rem 0;
    }

    /* Better centering for mobile content */
    .hero-content .container-xl,
    .hero-content .row,
    .hero-content .col-lg-10,
    .hero-content .col-xl-8 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-title {
        margin: 2rem auto 1.5rem auto;
        text-align: center;
    }

    .hero-description {
        margin: 1.5rem auto 2rem auto;
        text-align: center;
    }

    .hero-meta {
        margin: 1.5rem auto;
        justify-content: center !important;
        text-align: center;
    }

    .hero-actions {
        margin: 2rem auto 1rem auto;
        text-align: center;
        justify-content: center;
    }
}

/* Mobile description truncation with fade effect */
@media (max-width: 996px) {
    .hero-description {
        position: relative;
        max-width: 800px;
        margin: 0 auto 2rem auto;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        text-align: center;
        word-wrap: break-word;
        overflow: hidden;
    }

    .hero-description.truncated::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 50px;
        height: 1.5em;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
        pointer-events: none;
    }

    /* Mobile meta layout - 2x2 grid */
    .hero-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        margin: 1.5rem auto !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-meta-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .hero-meta .d-flex {
        flex-direction: row !important;
        gap: 0.4rem !important;
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 15px !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        justify-content: center !important;
        min-width: 120px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 576px) {
    .hero-description {
        position: relative;
        max-width: 90%;
        margin: 1.5rem auto 2rem auto;
        text-align: center;
        line-height: 1.4;
        font-size: 1rem;
        overflow: hidden;
    }

    .hero-description.truncated::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 1.4em;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
        pointer-events: none;
    }

    .hero-meta {
        gap: 0.4rem !important;
        margin: 1rem auto !important;
    }

    .hero-meta-row {
        gap: 0.5rem !important;
    }

    .hero-meta .d-flex {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        min-width: 90px !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 480px) {
    .hero-description {
        position: relative;
        max-width: 95%;
        margin: 2rem auto 2.5rem auto;
        text-align: center;
        line-height: 1.5;
        font-size: 0.95rem;
        overflow: hidden;
    }

    .hero-description.truncated::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 35px;
        height: 1.5em;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8));
        pointer-events: none;
    }

    .hero-meta {
        gap: 0.3rem !important;
        margin: 0.75rem auto !important;
    }

    .hero-meta-row {
        gap: 0.4rem !important;
    }

    .hero-meta .d-flex {
        padding: 3px 6px !important;
        font-size: 0.65rem !important;
        min-width: 80px !important;
        border-radius: 15px !important;
    }
}

/* Hero Skeleton Loading */
.hero-skeleton {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba23a 100%);
    min-height: 70vh;
    animation: pulse 2s ease-in-out infinite alternate;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.skeleton-badge {
    width: 120px;
    height: 32px;
    background: rgba(255,255,255,0.3);
    border-radius: 16px;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-title {
    width: 80%;
    height: 60px;
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-description {
    width: 60%;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-meta {
    width: 400px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Enhanced Animations */
.hero-slide {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active .hero-category {
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.carousel-item.active .hero-title {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.carousel-item.active .hero-description {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.carousel-item.active .hero-meta {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.carousel-item.active .hero-actions {
    animation: slideInUp 0.8s ease-out 0.8s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Fallback */
.hero-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

@media (max-width: 576px) {
    .hero-fallback {
        min-height: 300px;
        padding: 1.5rem 0.75rem;
    }
}

/* Touch and Mobile Enhancements */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.carousel-item {
    touch-action: pan-y;
}

/* Improved touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .carousel-control-icon {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.3);
    }

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 8px;
    }

    .hero-cta .btn {
        min-height: 44px;
        padding: 0.75rem 2rem;
        touch-action: manipulation;
        max-width: 160px;
        width: auto;
        border-radius: 15px;
    }
}

/* Prevent text selection on mobile during swipe */
.hero-slide * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hero-slide *:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Note: Responsive heights now handled by main hero-slide styles above */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.15rem;
        max-width: 700px;
    }

    .carousel-control-icon {
        width: 50px;
        height: 50px;
    }

    .carousel-control-icon i {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 85vh;
        min-height: 650px;
        padding: 2.5rem 0;
    }

    .hero-content {
        min-height: 85vh;
        padding: 3rem 1.5rem 6rem 1.5rem;
        margin: 2rem auto 4rem auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content .container-xl,
    .hero-content .row,
    .hero-content .col-lg-10,
    .hero-content .col-xl-8 {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 3.5rem !important;
        margin: 2rem auto 1.5rem auto;
        line-height: 1.1;
        text-align: center;
        max-width: 90%;
    }

    .hero-description {
        font-size: 1.1rem;
        margin: 1.5rem auto 2rem auto;
        max-width: 85%;
        line-height: 1.5;
        text-align: center;
    }

    .hero-meta {
        font-size: 0.9rem;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        margin: 2rem auto;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-meta-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .hero-meta .d-flex {
        flex-direction: row !important;
        gap: 0.5rem !important;
        padding: 8px 16px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 15px !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        justify-content: center;
        min-width: 120px !important;
        white-space: nowrap !important;
    }

    .hero-actions {
        margin: 2rem auto 4rem auto;
        text-align: center;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    /* Note: Mobile heights are now handled by the main responsive styles above */
}

@media (max-width: 576px) {
    .hero-slide {
        padding: 2rem 0 3rem 0;
    }

    .hero-content {
        padding: 2rem 1rem 3rem 1rem;
        margin: 1rem auto 2rem auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 95%;
    }

    .hero-content .container-xl,
    .hero-content .row,
    .hero-content .col-lg-10,
    .hero-content .col-xl-8 {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 3rem !important;
        margin: 2.5rem auto 1.5rem auto;
        text-align: center;
        max-width: 95%;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 1rem;
        margin: 1.5rem auto 2rem auto;
        max-width: 90%;
        line-height: 1.4;
        text-align: center;
    }

    .hero-category {
        margin: 1.5rem auto 2rem auto;
        display: flex;
        justify-content: center;
    }

    .hero-category .badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        visibility: visible;
    }

    .hero-meta {
        gap: 1rem !important;
        font-size: 0.85rem;
        margin: 2rem auto;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .hero-meta-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .hero-meta .d-flex {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        justify-content: center;
        max-width: 90%;
        min-width: 100px !important;
        white-space: nowrap !important;
    }

    .hero-actions {
        margin: 2rem auto 1rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Hide carousel controls on very small screens */
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .skeleton-title {
        height: 40px;
        width: 90%;
    }

    .skeleton-description {
        height: 36px;
        width: 80%;
    }

    .skeleton-meta {
        width: 250px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 75vh;
        min-height: 600px;
        padding: 3.5rem 0;
    }

    .hero-content {
        min-height: 75vh;
        padding: 4.5rem 0.75rem;
        margin: 4rem auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-content .container-xl,
    .hero-content .row,
    .hero-content .col-lg-10,
    .hero-content .col-xl-8 {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 2.75rem !important;
        margin: 2.5rem auto 1.5rem auto;
        text-align: center;
        max-width: 98%;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.95rem;
        margin: 2rem auto 2.5rem auto;
        text-align: center;
        max-width: 95%;
        line-height: 1.5;
    }

    .hero-category {
        margin: 2rem auto 2.5rem auto;
        display: flex;
        justify-content: center;
    }

    .hero-category .badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        display: inline-block;
        visibility: visible;
    }

    .hero-meta {
        margin: 2.5rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-meta .d-flex {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 15px;
        justify-content: center;
        max-width: 90%;
    }

    .hero-actions {
        margin: 2rem auto 5rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
        position: relative;
        z-index: 10;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Hide carousel controls on very small screens */
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-indicators {
        bottom: 25px !important;
        margin-bottom: 0 !important;
        z-index: 15 !important;
    }

    .carousel-indicators button {
        width: 35px !important;
        height: 4px !important;
        margin: 0 4px !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }
}

/* Ultra-small screen adjustments */
@media (max-width: 380px) {
    .hero-slide {
        height: 80vh;
        min-height: 650px;
        padding: 4rem 0;
    }

    .hero-content {
        min-height: 80vh;
        padding: 5rem 0.5rem;
        margin: 4rem auto;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }

    .hero-content .container-xl,
    .hero-content .row,
    .hero-content .col-lg-10,
    .hero-content .col-xl-8 {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
        margin: 1.5rem auto 1rem auto;
        text-align: center;
        max-width: 98%;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem;
        margin: 1rem auto 1.5rem auto;
        text-align: center;
        max-width: 95%;
        line-height: 1.4;
    }

    .hero-category {
        margin: 1rem auto 1.5rem auto;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-category .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        display: inline-block !important;
        visibility: visible !important;
    }

    .hero-meta {
        margin: 1.5rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-meta .d-flex {
        padding: 6px 12px;
        font-size: 0.7rem;
        justify-content: center;
        max-width: 95%;
    }

    .hero-actions {
        margin: 1.5rem auto 1rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* Extreme small screen fallback for very small devices */
@media (max-width: 320px) {
    .hero-slide {
        height: 85vh !important;
        min-height: 700px !important;
        padding: 4rem 0 !important;
    }

    .hero-content {
        min-height: 85vh !important;
        padding: 5rem 0.25rem !important;
        margin: 4rem auto !important;
        justify-content: space-around !important;
        gap: 0.75rem !important;
    }

    .hero-title {
        font-size: 1.8rem !important;
        margin: 1rem auto 0.75rem auto !important;
        line-height: 1.25 !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
        margin: 0.75rem auto 1rem auto !important;
        line-height: 1.3 !important;
    }

    .hero-category {
        margin: 0.75rem auto 1rem auto !important;
    }

    .hero-category .badge {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    .hero-meta {
        margin: 1rem auto !important;
    }

    .hero-meta .d-flex {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
    }

    .hero-actions {
        margin: 1rem auto 0.5rem auto !important;
    }

    .hero-cta .btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.8rem !important;
        min-width: 120px !important;
        border-radius: 15px !important;
    }
}

/* Container width adjustments */
.container-xl {
    max-width: 1400px;
}

/* Mobile CTA Button Adjustments */
@media (max-width: 576px) {
    .hero-cta .btn {
        max-width: 140px !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 480px) {
    .hero-cta .btn {
        max-width: 120px !important;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.75rem !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 380px) {
    .hero-cta .btn {
        max-width: 100px !important;
        padding: 0.45rem 0.7rem !important;
        font-size: 0.7rem !important;
        border-radius: 15px !important;
    }
}

/* =================================================================
   Enhanced Hero Carousel Styles for Dynamic Features
================================================================= */

/* Custom Image Slides */
.custom-image-slide .hero-category .badge {
    background-color: rgba(108, 117, 125, 0.9) !important;
}

.custom-image-slide .hero-cta {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
}

.custom-image-slide .hero-cta:hover {
    background-color: white;
    transform: translateY(-2px);
}

/* Meta Information Enhancements */
.hero-meta-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Meta Layout */
@media (max-width: 768px) {
    .hero-meta {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .hero-meta-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Accessibility Enhancements */
.hero-carousel:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Loading States */
.hero-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.skeleton-badge,
.skeleton-title,
.skeleton-description {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-badge {
    width: 120px;
    height: 24px;
    margin: 0 auto;
}

.skeleton-title {
    width: 80%;
    height: 48px;
    margin: 0 auto;
}

.skeleton-description {
    width: 60%;
    height: 20px;
    margin: 0 auto;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Performance Optimizations */
.hero-carousel .carousel-item {
    will-change: transform;
}

.hero-background-image {
    will-change: transform;
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.9) 100%
        );
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-background-image,
    .carousel-item {
        transition: none !important;
        animation: none !important;
    }

    .hero-background-image {
        transform: none !important;
    }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background-image {
        /* Enhanced rendering for retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Image Performance Optimizations */
.hero-background-image[importance="high"] {
    /* Priority loading for above-the-fold images */
    content-visibility: auto;
    contain-intrinsic-size: 1920px 1080px;
}

/* Preload state for better UX */
.hero-background-image[data-src]:not([src]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Advanced Browser-Specific Image Quality Optimizations */

/* Chrome/Webkit specific optimizations */
@supports (-webkit-appearance: none) {
    .hero-background-image {
        -webkit-filter: contrast(1.02) saturate(1.05) brightness(1.01);
        filter: contrast(1.02) saturate(1.05) brightness(1.01);
        -webkit-transform: translateZ(0) scale(1.001);
        transform: translateZ(0) scale(1.001);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Firefox specific optimizations */
@supports (-moz-appearance: none) {
    .hero-background-image {
        image-rendering: -moz-crisp-edges;
        transform: translateZ(0) scale(1.001);
    }
}

/* Edge/IE specific optimizations */
@supports (-ms-ime-align: auto) {
    .hero-background-image {
        -ms-interpolation-mode: bicubic;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";
        filter: alpha(opacity=100);
    }
}

/* Force high quality on all modern browsers */
.hero-background-image {
    /* Prevent image degradation during transforms */
    will-change: transform, filter;

    /* Enhanced sharpening */
    filter:
        contrast(1.02)
        saturate(1.05)
        brightness(1.01)
        sepia(0%)
        hue-rotate(0deg);

    /* Prevent pixelation on zoom */
    image-rendering: optimizeQuality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;

    /* Force anti-aliasing */
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Better color space */
    color-interpolation-filters: sRGB;

    /* Prevent compression artifacts */
    image-orientation: from-image;
}

/* High DPI displays (4K+) - Ultra quality mode */
@media (min-resolution: 288dpi),
       (-webkit-min-device-pixel-ratio: 3) {
    .hero-background-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimizeQuality;
        filter:
            contrast(1.03)
            saturate(1.08)
            brightness(1.02)
            blur(0px);
        transform: translateZ(0) scale(1.0005);
    }
}

/* 8K displays optimization */
@media (min-width: 7680px) {
    .hero-background-image {
        image-rendering: pixelated;
        filter: contrast(1.05) saturate(1.1) brightness(1.03);
    }
}

/* Force crisp rendering on carousel transitions */
.carousel-item.active .hero-background-image,
.carousel-item-next .hero-background-image,
.carousel-item-prev .hero-background-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0) scale(1.001);
    filter: contrast(1.02) saturate(1.05) brightness(1.01);
}

/* Preload and prefetch optimizations */
.hero-background-image[loading="eager"] {
    content-visibility: auto;
    contain-intrinsic-size: 2560px 1440px;
}

/* =============================================================================
   Dynamic Overlay and Transition Effects (Admin Settings Based)
   ============================================================================= */

/* CSS Variables for dynamic admin settings (to be set by JavaScript) */
:root {
    --hero-overlay-opacity: 0.6;
    --hero-overlay-opacity-reduced: 0.42;
    --hero-overlay-opacity-half: 0.3;
    --hero-transition-duration: 600;
}

/* Dynamic overlay styles based on admin settings */
.hero-carousel .hero-overlay.overlay-solid {
    background: rgba(0, 0, 0, var(--hero-overlay-opacity));
}

.hero-carousel .hero-overlay.overlay-gradient {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, var(--hero-overlay-opacity)) 0%,
        rgba(0, 0, 0, var(--hero-overlay-opacity-reduced)) 50%,
        rgba(0, 0, 0, var(--hero-overlay-opacity)) 100%
    );
}

.hero-carousel .hero-overlay.overlay-radial {
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, var(--hero-overlay-opacity-half)) 0%,
        rgba(0, 0, 0, var(--hero-overlay-opacity)) 70%
    );
}

.hero-carousel .hero-overlay.overlay-none {
    background: none;
}

/* Fade transition effects */
.hero-carousel[data-transition-effect="fade"] .carousel-item {
    opacity: 0;
    transition: opacity calc(var(--hero-transition-duration) * 1ms) ease-in-out;
}

.hero-carousel[data-transition-effect="fade"] .carousel-item.active {
    opacity: 1;
}

/* Zoom transition effects */
.hero-carousel[data-transition-effect="zoom"] .carousel-item {
    transition-duration: calc(var(--hero-transition-duration) * 1ms);
}

.hero-carousel[data-transition-effect="zoom"] .carousel-item .hero-background-image {
    transition: transform calc(var(--hero-transition-duration) * 1ms) ease-in-out;
}

.hero-carousel[data-transition-effect="zoom"] .carousel-item.active .hero-background-image {
    transform: scale(1.05);
}

/* Slide transition (default Bootstrap) */
.hero-carousel[data-transition-effect="slide"] .carousel-item {
    transition-duration: calc(var(--hero-transition-duration) * 1ms);
}

/* Custom transition duration for all items */
.carousel-item {
    transition-duration: calc(var(--hero-transition-duration) * 1ms);
}

/* =============================================================================
   End Dynamic Admin Settings
   ============================================================================= */

/* PRODUCTION SERVER FIX - Force override for navigation dots */
/* This section ensures hero carousel navigation works on production servers */
.hero-carousel-section .hero-carousel-nav,
#heroCarousel .hero-carousel-nav,
section[data-carousel-id="heroCarousel"] .hero-carousel-nav {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    z-index: 15 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(5px) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-carousel-section .hero-carousel-nav-button,
#heroCarousel .hero-carousel-nav-button,
section[data-carousel-id="heroCarousel"] .hero-carousel-nav-button {
    all: unset !important;
    display: block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.hero-carousel-section .hero-carousel-nav-button.active,
#heroCarousel .hero-carousel-nav-button.active,
section[data-carousel-id="heroCarousel"] .hero-carousel-nav-button.active {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}

.hero-carousel-section .hero-carousel-nav-button:hover,
#heroCarousel .hero-carousel-nav-button:hover,
section[data-carousel-id="heroCarousel"] .hero-carousel-nav-button:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1) !important;
}

/* Mobile-specific carousel indicators positioning */
.carousel-indicators {
        bottom: 20px !important;
        margin-bottom: 0 !important;
        z-index: 15 !important;
        position: absolute !important;
    }

    .carousel-indicators button {
        background: rgba(255, 255, 255, 0.7) !important;
        width: 35px !important;
        height: 4px !important;
        margin: 0 4px !important;
    }

    .carousel-indicators button.active {
        background: rgba(255, 255, 255, 0.95) !important;
    }
