/**
 * Custom Compact Styling for Sijantan
 * Makes hero section cards more compact and space-efficient
 */

/* Preloader - Logo with Shimmer Effect & Radial Reveal */
.js-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* Radial mask reveal animation when loaded */
.js-preloader.loaded {
    animation: radialReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes radialReveal {
    0% {
        -webkit-mask-image: radial-gradient(circle at center, transparent 0%, black 0%);
        mask-image: radial-gradient(circle at center, transparent 0%, black 0%);
    }

    100% {
        -webkit-mask-image: radial-gradient(circle at center, transparent 100%, black 100%);
        mask-image: radial-gradient(circle at center, transparent 100%, black 100%);
        opacity: 0;
        pointer-events: none;
    }
}

.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Logo wrapper - Visible and Centered */
.logo-wrapper {
    position: relative;
    max-width: 300px;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    animation: logoPulse 2s ease-in-out infinite;
}


@keyframes logoPulse {

    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Typing Text Below Logo */
.typing-text {
    margin-top: 0;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    /* White color */
    font-family: 'Poppins', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    /* Center the text */
    width: 100%;
    animation: fadeInText 1s ease-in 0.5s forwards;
    opacity: 0;
}

.typing-text .cursor {
    display: inline-block;
    animation: blink 1.5s steps(2) infinite;
    margin-left: -3px;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* Global Reset - Clean layout */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}


/* Hero Section - More Info Cards - Pill Version */

/* 1. OUTER WRAPPER: Full Width & Absolute Positioning */
.content-slider-overlay {
    position: absolute !important;
    bottom: 100px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: 100% !important;
    /* Full Width as requested */
    z-index: 9 !important;
    pointer-events: none;

    /* Centering Mechanism */
    display: flex;
    justify-content: center;
    /* Centers the inner content */
    align-items: flex-end;
    padding: 0 15px;
    /* Safety padding for mobile edges */
}

/* 2. INNER CONTENT: Limited Width & Centered */
#section-1 .more-info {
    width: 100% !important;
    max-width: 1000px !important;
    /* "Batasi dalamnya" - Limit the inside */
    background-color: #fff;
    border-radius: 50px;
    padding: 15px 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative !important;
    pointer-events: auto;
    margin: 0 auto !important;
    /* Ensure center alignment */
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Flexbox Layout for the Pill - Custom Row */
#section-1 .more-info .custom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    width: 100%;
    flex-wrap: nowrap;
    /* Prevent wrapping on desktop */
}

/* Icons - Cyan Circle */
#section-1 .more-info i {
    font-size: 20px !important;
    color: #00d2eb;
    /* Cyan */
    background: #eafcff;
    /* Light Cyan BG */
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    margin-right: 12px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

/* Custom Columns */
#section-1 .more-info .custom-col {
    flex: 1;
    /* Distribute space */
    width: auto;
    max-width: none;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content within the column for balance */
    border-right: 1px solid #f0f0f0;
    /* Light separator */
}

/* Remove border from last item */
#section-1 .more-info .custom-col:last-child {
    border-right: none;
    justify-content: center;
    /* keep centered like others */
}

/* Text - Vertical Stack (Label + Value) */
#section-1 .more-info h4 {
    font-size: 15px !important;
    color: #4a4a4a;
    text-align: left;
    font-weight: 700;
    margin: 0 !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

/* Label Styling */
#section-1 .more-info h4 span {
    display: block !important;
    /* Force show labels */
    font-size: 11px !important;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

#section-1 .more-info h4 br {
    display: none;
    /* Hide line break */
}

/* Button - Cyan Pill */
#section-1 .more-info .main-button a {
    background-color: #33d2ff !important;
    /* Bright Cyan */
    color: #fff !important;
    border-radius: 25px;
    padding: 10px 30px !important;
    font-size: 14px !important;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(51, 210, 255, 0.3);
    white-space: nowrap;
}

#section-1 .more-info .main-button a:hover {
    background-color: #2ebce6 !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    #section-1 .more-info {
        border-radius: 20px;
        padding: 20px;
        max-width: 95%;
    }

    .content-slider-overlay {
        bottom: -20px;
        align-items: flex-end;
    }

    #section-1 .more-info .custom-row {
        flex-wrap: wrap;
        /* Allow wrapping */
        justify-content: center;
    }

    #section-1 .more-info .custom-col {
        flex: 0 0 50%;
        /* 2 per row */
        max-width: 50%;
        margin-bottom: 15px;
        border-right: none;
        /* Remove borders on mobile */
        justify-content: flex-start;
    }

    #section-1 .more-info .custom-col:last-child {
        flex: 0 0 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    #section-1 .more-info .custom-col {
        flex: 0 0 100%;
        /* Stack on small screens */
        max-width: 100%;
        margin-bottom: 15px;
    }
}

/* Section 2 - Visit Country Styling */
.visit-country {
    background: #f0f7f7 !important;

    padding-top: 80px !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Section Heading - 2 Column Layout */
.section-heading-row {
    margin-bottom: 60px !important;
}

.section-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.section-heading h2 {
    color: #000000 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.section-heading p {
    color: #000000 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: normal !important;
    margin-bottom: 15px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .section-logo {
        max-width: 150px;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 24px !important;
        text-align: center;
    }

    .section-heading p {
        text-align: center;
    }
}

/* Remove gap between section 1 and section 2 */
#section-1 {
    margin-bottom: 0 !important;
}



/* Support for 5 Slides */

/* Dark overlay for all slides to improve text readability */
#section-1 .content-slider .slider .banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.5) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Ensure text appears above overlay */
#section-1 .content-slider .slider .banner .banner-inner-wrapper {
    position: relative;
    z-index: 2;
}

/* Slide 1 - PEMALANG BERCAHAYA */
#section-1 .content-slider .slider #top-banner-1 {
    background: url("../images/hero/1.avif") no-repeat center center;
    background-size: cover;
}

/* Slide 2 - Bersih */
#section-1 .content-slider .slider #top-banner-2 {
    background: url("../images/hero/2.avif") no-repeat center center;
    background-size: cover;
}

/* Slide 3 - Cakap */
#section-1 .content-slider .slider #top-banner-3 {
    background: url("../images/hero/3.avif") no-repeat center center;
    background-size: cover;
}

/* Slide 4 - Handal */
#section-1 .content-slider .slider #top-banner-4 {
    background: url("../images/hero/4.avif") no-repeat center center;
    background-size: cover;
}

/* Slide 5 - Mulia */
#section-1 .content-slider .slider #top-banner-5 {
    background: url("../images/hero/5.avif") no-repeat center center;
    background-size: cover;
}


#section-1 .content-slider #banner5:checked~.slider #top-banner-5 {
    opacity: 1;
    z-index: 1;
}

#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) {
    cursor: default;
    color: #fff;
    transition: all 0.5s;
}

#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) .progressbar {
    background: #fff;
}

#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) .progressbar-fill {
    animation: progressBarFill 5s linear;
}

/* Controls container - prevent clipping */
#section-1 .content-slider nav .controls {
    overflow: visible !important;
    padding: 5px 0 !important;
}

/* Adjust pagination label width for 5 items */
#section-1 .content-slider nav .controls label {
    width: 15% !important;
    margin: 0 0.2em !important;
    position: relative;
    height: 40px !important;
    padding: 4px 2px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible !important;
}

/* Thick pill-shaped progress bar container */
#section-1 .content-slider nav .controls label .progressbar {
    position: relative !important;
    height: 32px !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border-radius: 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
    transition: all 0.3s ease;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}


/* Liquid fill animation */
#section-1 .content-slider nav .controls label .progressbar .progressbar-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 100% !important;
    background: linear-gradient(90deg, #22b3c1 0%, #33d2ff 100%) !important;
    border-radius: 18px !important;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    margin-left: -100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}


/* Shimmer/Shine effect using pseudo-element */
#section-1 .content-slider nav .controls label .progressbar .progressbar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Number inside the progress bar */
#section-1 .content-slider nav .controls label span.text {
    position: absolute !important;
    z-index: 3 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: auto !important;
    height: auto !important;
    display: block !important;
}

/* Hover effect */
#section-1 .content-slider nav .controls label:hover .progressbar {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

#section-1 .content-slider nav .controls label:hover span.text {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Active/Checked state - Show filled progress */
#section-1 .content-slider #banner1:checked~nav label:nth-of-type(1) .progressbar,
#section-1 .content-slider #banner2:checked~nav label:nth-of-type(2) .progressbar,
#section-1 .content-slider #banner3:checked~nav label:nth-of-type(3) .progressbar,
#section-1 .content-slider #banner4:checked~nav label:nth-of-type(4) .progressbar,
#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) .progressbar {
    background: rgba(34, 179, 193, 0.3) !important;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(34, 179, 193, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Progressive fill animation - 0 to 100% in 5 seconds */
#section-1 .content-slider #banner1:checked~nav label:nth-of-type(1) .progressbar .progressbar-fill,
#section-1 .content-slider #banner2:checked~nav label:nth-of-type(2) .progressbar .progressbar-fill,
#section-1 .content-slider #banner3:checked~nav label:nth-of-type(3) .progressbar .progressbar-fill,
#section-1 .content-slider #banner4:checked~nav label:nth-of-type(4) .progressbar .progressbar-fill,
#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) .progressbar .progressbar-fill {
    animation: progressBarFill 5s linear;
}

@keyframes progressBarFill {
    from {
        margin-left: -100%;
    }

    to {
        margin-left: 0;
    }
}

#section-1 .content-slider #banner1:checked~nav label:nth-of-type(1) span.text,
#section-1 .content-slider #banner2:checked~nav label:nth-of-type(2) span.text,
#section-1 .content-slider #banner3:checked~nav label:nth-of-type(3) span.text,
#section-1 .content-slider #banner4:checked~nav label:nth-of-type(4) span.text,
#section-1 .content-slider #banner5:checked~nav label:nth-of-type(5) span.text {
    font-size: 18px !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Enable smooth morph transitions for hero slider */
#section-1 .content-slider .slider .banner {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Ensure text animations work smoothly */
#section-1 .content-slider .slider .banner h1,
#section-1 .content-slider .slider .banner h2,
#section-1 .content-slider .slider .banner .border-button {
    will-change: transform, opacity;
}

/* 
---------------------------------------------
Global Modern Table Styling (SiJANTAN Theme)
--------------------------------------------- 
*/
.table-modern {
    width: 100%;
    border-collapse: separate;
    /* Allows border-radius */
    border-spacing: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* Clips corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.table-modern thead th {
    background-color: #26C6DA;
    /* Cyan/Teal shade */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8em;
    /* Slightly smaller font */
    letter-spacing: 0.5px;
    padding: 10px 12px;
    /* More compact padding */
    border: none;
    text-align: center;
    vertical-align: middle;
}

.table-modern tbody td {
    padding: 8px 12px;
    /* More compact padding */
    border-bottom: 1px solid #f1f1f1;
    color: #555;
    font-size: 0.9em;
    vertical-align: middle;
    font-weight: 500;
}

/* Zebra Striping */
.table-modern tbody tr:nth-child(even) {
    background-color: #f8fcfd;
    /* Very light teal tint */
}

.table-modern tbody tr:hover {
    background-color: #e0f7fa;
    /* Highlight on hover */
}

.table-modern tbody td:first-child {
    font-weight: 700;
    color: #2c3e50;
}

/* Footer Styling */
.table-modern tfoot th {
    background-color: #ffffff;
    color: #000;
    padding: 10px 12px;
    /* Compact padding */
    font-weight: 800;
    border-top: 2px solid #26C6DA;
    font-size: 0.95em;
}

/* DataTables Integration Fixes */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #26C6DA !important;
    color: white !important;
    border-color: #26C6DA !important;
    border-radius: 50px;
}

/* Modern Flat Button (No Gradient) */
.btn-action-modern {
    background-color: #00ACC1;
    /* Solid Teal */
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    /* Soft rounded corners */
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: none;
    /* Flat look */
}

.btn-action-modern:hover {
    background-color: #00838F;
    /* Darker Teal on hover */
    color: white;
    transform: translateY(-1px);
}

.btn-action-modern:active {
    background-color: #006064;
    transform: translateY(0);
}

/* 
---------------------------------------------
Global Compact Card Styling
--------------------------------------------- 
*/
.card-compact {
    background: #ffffff;
    border-radius: 12px;
    /* Smooth rounded corners */
    border: 1px solid #e0e0e0;
    /* Thin subtle border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    /* Very subtle shadow for depth */
    padding: 15px;
    /* Reduced padding as requested (was 20px) */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Fix for map/content overflowing corners */
}

.card-compact:hover {
    transform: translateY(-2px);
    /* Micro-interaction */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.card-compact h4 {
    color: #455a64;
    /* Blue Grey Dark for titles */
    border-bottom: none;
    /* No divider as requested */
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    /* Centered title */
    font-size: 1.25em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Base Card Style override for specificity if needed */
.card-compact .card-body {
    padding: 0 !important;
    /* Let parent padding handle it, or minimal */
}

/* Modern Card Title with Icon support (Refined based on User Image) */
.card-title-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: #455a64;
    /* Dark Blue Grey */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none !important;
    /* No border as per image */
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered */
    margin-bottom: 20px;
}

.card-title-modern i {
    font-size: 18px;
    color: #26C6DA;
    /* Cyan match */
    margin-right: 12px;
    background: none !important;
    /* Remove background circle */
    width: auto !important;
    height: auto !important;
    border-radius: 0;
    display: inline-block;
    vertical-align: middle;
}

/* 
---------------------------------------------
Global Modern Page Header
--------------------------------------------- 
*/
.page-header-modern {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    /* Full width subtle line */
}

.page-header-modern h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #006064;
    /* Deep Teal */
    font-size: 26px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.page-header-modern h2 i {
    color: #26C6DA;
    margin-right: 12px;
    background: #e0f7fa;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 18px;
}

/* Accent underline */
.page-header-modern::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    /* Sit on top of the border-bottom */
    width: 80px;
    height: 3px;
    background-color: #00ACC1;
    /* Solid Teal */
    border-radius: 2px;
}

/* 
---------------------------------------------
Centered Page Main Header (Description & Title)
--------------------------------------------- 
*/
.page-main-header {
    text-align: center;
    padding: 130px 0 40px;
    /* Increased top padding to clear fixed navbar */
    max-width: 800px;
    margin: 0 auto;
}

.page-main-header .header-icon {
    margin-bottom: 10px;
}

.page-main-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-main-header p {
    color: #607d8b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Fix for Nested Cards - Transparent Outer Container */
.cities-town .slider-content-transparent {
    min-height: 100%;
    position: relative;
    margin-top: 100px;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Fixed Pagination Styling (Bootstrap 5 Override) */
.dataTables_wrapper .dataTables_paginate ul.pagination {
    justify-content: flex-end;
    margin-top: 15px;
    gap: 3px;
    /* Small gap between buttons */
}

.dataTables_wrapper .dataTables_paginate ul.pagination .page-item .page-link {
    border: 1px solid #e0e0e0;
    color: #555;
    border-radius: 6px !important;
    /* Rounded squares */
    padding: 5px 10px !important;
    /* Compact padding */
    font-size: 0.85em;
    font-weight: 500;
    box-shadow: none;
    background-color: #fff;
    transition: all 0.2s;
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate ul.pagination .page-item:not(.active) .page-link:hover {
    background-color: #e0f7fa !important;
    color: #00ACC1 !important;
    border-color: #00ACC1 !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination .page-item.active .page-link {
    background-color: #00ACC1 !important;
    /* Solid Teal */
    border-color: #00ACC1 !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 172, 193, 0.3);
}

.dataTables_wrapper .dataTables_paginate ul.pagination .page-item.disabled .page-link {
    color: #ccc !important;
    background-color: #f9f9f9 !important;
    border-color: #eee !important;
    cursor: not-allowed;
}

/* Navbar Active State Indicator - Embossed Pill */
.header-area .main-nav .nav li a.active {
    position: relative;
    font-weight: 600;
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.15);
    /* Slightly darker for pressed effect */
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 20px !important;
    /* Adjust padding for pill */
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.2);
    /* Emboss inside effect */
    color: #fff !important;
}

/* Remove the previous underline */
.header-area .main-nav .nav li a.active::after,
.header-area .main-nav .nav li:hover a::after {
    display: none !important;
}

/* 
---------------------------------------------
Modern Map & Panels
--------------------------------------------- 
*/
.map-full-container {
    width: 100%;
    height: 100vh;
    /* Fill entire viewport */
    margin-top: 0;
    /* Remove margin to prevent gap */
    padding-top: 60px;
    /* Push map down internally to clear header (adjust if needed) */
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: white;
    /* Ensure no transparent gap */
}

#map {
    width: 100%;
    height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
}

/* Modern Map Panels (Leaflet Controls) */
.map-panel-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    /* More compact padding */
    margin-top: 30px !important;
    /* Push down from navbar */
    margin-left: 20px !important;
    /* Push from left edge */
    margin-right: 10px !important;
    margin-bottom: 10px !important;
    font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(0, 172, 193, 0.2);
    /* Subtle teal border */
    max-width: 320px !important;
    /* Increased 28% for wider card */
    width: 100%;
    transition: all 0.3s ease;
}

/* Reduce gap between stacked panels (e.g. Search + Info) */
.leaflet-top .map-panel-modern+.map-panel-modern {
    margin-top: 10px !important;
}

.map-panel-modern h6 {
    color: #00838F;
    /* Teal Dark */
    font-weight: 700;
    margin-bottom: 8px;
    /* More compact */
    font-size: 11px;
    /* Slightly larger for readability */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0f7fa;
    padding-bottom: 6px;
}

.map-panel-modern p,
.map-panel-modern span,
.map-panel-modern div {
    font-size: 10px;
    /* Balanced size for readability */
    color: #555;
    line-height: 1.4;
    /* Tighter line height */
    margin-bottom: 4px;
}

.map-panel-modern select.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 10px;
    /* Balanced size */
    padding: 6px;
    /* More compact */
}

.map-panel-modern select.form-control:focus {
    border-color: #26C6DA;
    box-shadow: 0 0 0 3px rgba(38, 198, 218, 0.1);
}

/* Legend Specifics */
.legend-btn {
    background: #00ACC1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 172, 193, 0.4);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-btn:hover {
    transform: translateY(-2px);
    background: #00bcd4;
}

.legend-header {
    background: #e0f7fa;
    color: #006064;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    padding: 12px;
    border: none;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

.legend-body {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.legend-item img {
    width: 20px;
    height: 20px;
}

.legend-item .color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Map Detail Panel Improvements */
.map-detail-title {
    font-size: 11px;
    /* Compact but readable */
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
}

.map-detail-subtitle {
    font-size: 9px;
    /* Compact subtitle */
    color: #7f8c8d;
    margin-bottom: 8px;
    /* More compact */
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    /* Tighter gap */
    margin-bottom: 10px;
    /* More compact */
    background: #f8f9fa;
    padding: 8px;
    /* More compact padding */
    border-radius: 8px;
    border: 1px solid #eee;
}

.map-detail-item {
    display: flex;
    flex-direction: column;
}

.map-detail-label {
    font-size: 8px;
    /* Small but readable labels */
    text-transform: uppercase;
    color: #95a5a6;
    font-weight: 600;
    margin-bottom: 1px;
    /* Tighter spacing */
}

.map-detail-value {
    font-size: 10px;
    /* Readable value size */
    font-weight: 600;
    color: #34495e;
    line-height: 1.3;
}

.map-search-group {
    background: #f4f6f7;
    padding: 8px;
    /* More compact */
    border-radius: 8px;
    border-left: 3px solid #00ACC1;
    margin-bottom: 8px;
    /* Tighter spacing */
}

.map-search-label {
    font-size: 8px;
    /* Compact label */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    /* Tighter */
    color: #00ACC1;
    margin-bottom: 4px;
    /* More compact */
    display: flex;
    justify-content: space-between;
}

/* Modern Map Label (Tooltip) */
.label_kec {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0, 172, 193, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    color: #006064 !important;
    /* Dark Teal Text */
    font-family: 'Poppins', sans-serif;
    font-size: 7.7px !important;
    /* Reduced 30% (was 11px) */
    font-weight: 600 !important;
    padding: 2px 10px !important;
    text-transform: uppercase;
    text-shadow: none !important;
    /* Remove the old red stroke */
    white-space: nowrap;
    opacity: 1 !important;
}

.label_kec::before {
    display: none !important;
    /* Remove leaflet tooltip arrow if present */
}

/* 
---------------------------------------------
Mobile Navbar Optimization (Stable & Compact)
--------------------------------------------- 
*/
@media (max-width: 767px) {

    /* Container Reset - Brand Gradient */
    .header-area {
        min-height: 60px !important;
        /* Fixed height for stability */
        padding: 0 !important;
        background: linear-gradient(145deg, #00d2eb 0%, #009ec3 100%) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        display: block !important;
        /* Remove flex on container */
    }

    .header-area .main-nav {
        min-height: 60px !important;
        height: 60px !important;
        padding: 0 15px !important;
        width: 100% !important;
        background: transparent !important;
        overflow: visible !important;
        display: block !important;
        /* Strict block layout for absolute children */
        position: relative !important;
    }

    /* Logo Positioning - ABSOLUTE LEFT */
    .header-area .logo img {
        max-width: 130px !important;
        height: auto !important;
        position: absolute !important;
        top: 50% !important;
        left: 15px !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        filter: none !important;
        /* Ensure original colors if needed, or invert if white req */
    }

    /* Hamburger Trigger - ABSOLUTE RIGHT */
    .header-area .main-nav .menu-trigger {
        position: absolute !important;
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        width: 26px !important;
        height: 20px !important;
        margin: 0 !important;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        z-index: 10001;
        /* Above almost everything */
    }

    /* Hamburger Lines */
    .header-area .main-nav .menu-trigger::before,
    .header-area .main-nav .menu-trigger::after {
        content: none !important;
        display: none !important;
    }

    .header-area .main-nav .menu-trigger span {
        background-color: #ffffff !important;
        height: 2px !important;
        width: 100% !important;
        display: block !important;
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 0 !important;
    }

    .header-area .main-nav .menu-trigger span:last-child {
        margin-bottom: 0 !important;
    }

    /* Active State (X Animation) */
    .header-area .main-nav .menu-trigger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header-area .main-nav .menu-trigger.active span:nth-child(2) {
        opacity: 0;
    }

    .header-area .main-nav .menu-trigger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    /* Dropdown Menu - Floating & Hidden by Default */
    .header-area .main-nav .nav {
        position: absolute !important;
        top: 70px !important;
        left: 5% !important;
        /* Center it: 5% left + 90% width */
        width: 90% !important;
        background: white !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border-radius: 15px !important;
        z-index: 99999 !important;
        padding: 10px 0 !important;

        /* HIDDEN BY DEFAULT - Let JS toggle it via slideToggle or class */
        /* If existing JS uses display:none/block, we don't force it here */
        /* But to be safe against my previous 'visible' override: */
        visibility: visible;
        /* Standard state */
        opacity: 1;
        /* Note: If JS fails to hide it, add 'display: none' here */
    }

    /* Make links strictly block styled */
    .header-area .main-nav .nav li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .header-area .main-nav .nav li a {
        display: block !important;
        color: #555 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        text-align: left !important;
        height: auto !important;
        line-height: normal !important;
    }

    .header-area .main-nav .nav li:last-child a {
        border-bottom: none !important;
    }

    .header-area .main-nav .nav li a:hover,
    .header-area .main-nav .nav li a.active {
        color: #00ACC1 !important;
        background: #f0fbff !important;
        padding-left: 25px !important;
        /* Hover slide effect */
    }

    /* Map Adjustments */
    .map-full-container {
        padding-top: 60px !important;
    }
}

/* 
---------------------------------------------
Mobile Detail Panel as Modal (Bottom Sheet)
--------------------------------------------- 
*/
#detail-panel {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10000 !important;
    /* Above everything */
}

/* On Mobile, transform specific panel to Bottom Sheet */
@media (max-width: 767px) {
    #detail-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        /* Top rounded only */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2) !important;
        background: white !important;
        transform: translateY(110%);
        /* Hidden by slide down */
        padding-bottom: 30px !important;
        /* Safe area for swipe/home bar */
        max-height: 60vh !important;
        overflow-y: auto !important;
        display: block !important;
        /* Ensure it's not hidden by leaflet controls logic */
    }

    #detail-panel.active-modal {
        transform: translateY(0) !important;
        /* Slide Up */
    }

    /* Show close button on mobile only */
    .close-mobile-btn {
        display: block !important;
    }

    /* Adjust font sizes for modal */
    #detail-panel .map-detail-title {
        font-size: 16px !important;
    }

    #detail-panel .map-detail-value {
        font-size: 14px !important;
    }
}
/* Stats Banner Mobile Responsive Improvements */
@media (max-width: 768px) {
    #section-1 .more-info {
        padding: 15px 10px !important;
        border-radius: 35px;
        width: 92% !important;
        left: 4% !important;
        bottom: 70px !important;
    }

    #section-1 .more-info .custom-row {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #section-1 .more-info .custom-col {
        width: 100% !important;
        flex: 1 1 100% !important;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 0 !important;
    }

    #section-1 .more-info i {
        font-size: 18px !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 38px !important;
        margin-right: 10px !important;
        flex-shrink: 0;
    }

    #section-1 .more-info h4 {
        font-size: 13px !important;
        line-height: 18px !important;
        text-align: left;
        margin: 0;
    }

    #section-1 .more-info h4 span {
        font-size: 11px !important;
        display: inline;
        margin-right: 4px;
    }

    #section-1 .more-info .main-button {
        margin-top: 0 !important;
    }

    #section-1 .more-info .main-button a {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info {
        padding: 12px 8px !important;
        border-radius: 30px;
        bottom: 50px !important;
    }

    #section-1 .more-info .custom-row {
        gap: 6px !important;
    }

    #section-1 .more-info .custom-col {
        padding: 5px 0 !important;
    }

    #section-1 .more-info i {
        font-size: 16px !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 34px !important;
        margin-right: 8px !important;
    }

    #section-1 .more-info h4 {
        font-size: 12px !important;
        line-height: 16px !important;
    }

    #section-1 .more-info h4 span {
        font-size: 10px !important;
    }

    #section-1 .more-info .main-button a {
        padding: 6px 16px !important;
        font-size: 11px !important;
    }
}

/* Stats Banner - Super Compact Mobile Version */
@media (max-width: 768px) {
    #section-1 .more-info {
        padding: 8px 6px !important;
        border-radius: 25px;
        width: 94% !important;
        left: 3% !important;
        bottom: 60px !important;
    }

    #section-1 .more-info .custom-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 6px !important;
        flex-direction: unset !important;
    }

    #section-1 .more-info .custom-col {
        width: 100% !important;
        flex: unset !important;
        padding: 4px 6px !important;
        border-right: none !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    #section-1 .more-info .custom-col:nth-child(2),
    #section-1 .more-info .custom-col:nth-child(4) {
        border-left: 1px solid #f0f0f0;
    }

    #section-1 .more-info .custom-col:nth-child(3),
    #section-1 .more-info .custom-col:nth-child(4) {
        border-top: 1px solid #f0f0f0;
    }

    #section-1 .more-info i {
        font-size: 14px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        margin-right: 6px !important;
    }

    #section-1 .more-info h4 {
        font-size: 11px !important;
        line-height: 14px !important;
        display: block !important;
        flex-direction: unset !important;
    }

    #section-1 .more-info h4 span {
        font-size: 9px !important;
        display: inline !important;
        margin-right: 3px;
        margin-bottom: 0;
    }

    #section-1 .more-info .main-button {
        margin-top: 0 !important;
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 4px;
    }

    #section-1 .more-info .main-button a {
        padding: 6px 18px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info {
        padding: 6px 4px !important;
        border-radius: 20px;
        bottom: 45px !important;
    }

    #section-1 .more-info .custom-row {
        gap: 3px 4px !important;
    }

    #section-1 .more-info .custom-col {
        padding: 3px 4px !important;
    }

    #section-1 .more-info i {
        font-size: 12px !important;
        width: 26px !important;
        height: 26px !important;
        line-height: 26px !important;
        margin-right: 5px !important;
    }

    #section-1 .more-info h4 {
        font-size: 10px !important;
        line-height: 12px !important;
    }

    #section-1 .more-info h4 span {
        font-size: 8px !important;
    }

    #section-1 .more-info .main-button a {
        padding: 5px 14px !important;
        font-size: 10px !important;
    }
}

/* Stats Banner - Refined & Clean Mobile Version */
@media (max-width: 768px) {
    #section-1 .more-info {
        padding: 10px !important;
        border-radius: 30px;
        width: 92% !important;
        left: 4% !important;
        bottom: 65px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    #section-1 .more-info .custom-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        flex-direction: unset !important;
    }

    #section-1 .more-info .custom-col {
        width: 100% !important;
        flex: unset !important;
        padding: 8px !important;
        border-right: none !important;
        background: #f8fbfc;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 50px;
    }

    #section-1 .more-info i {
        font-size: 16px !important;
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        margin-right: 8px !important;
        flex-shrink: 0;
    }

    #section-1 .more-info h4 {
        font-size: 12px !important;
        line-height: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1;
    }

    #section-1 .more-info h4 span {
        font-size: 9px !important;
        display: block !important;
        margin-bottom: 2px !important;
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    #section-1 .more-info .main-button {
        margin-top: 0 !important;
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 6px;
    }

    #section-1 .more-info .main-button a {
        padding: 8px 24px !important;
        font-size: 12px !important;
        border-radius: 30px;
        box-shadow: 0 2px 8px rgba(51, 210, 255, 0.3);
    }
}

@media (max-width: 480px) {
    #section-1 .more-info {
        padding: 8px !important;
        border-radius: 25px;
        bottom: 50px !important;
    }

    #section-1 .more-info .custom-row {
        gap: 6px !important;
    }

    #section-1 .more-info .custom-col {
        padding: 6px !important;
        min-height: 45px;
        border-radius: 10px;
    }

    #section-1 .more-info i {
        font-size: 14px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 30px !important;
        margin-right: 6px !important;
    }

    #section-1 .more-info h4 {
        font-size: 11px !important;
        line-height: 14px !important;
    }

    #section-1 .more-info h4 span {
        font-size: 8px !important;
    }

    #section-1 .more-info .main-button a {
        padding: 7px 20px !important;
        font-size: 11px !important;
    }
}

/* Stats Banner - Final Perfect Mobile Version */
@media (max-width: 768px) {
    #section-1 .more-info {
        padding: 12px !important;
        border-radius: 28px;
        width: 90% !important;
        left: 5% !important;
        bottom: 70px !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

    #section-1 .more-info .custom-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        flex-direction: unset !important;
    }

    #section-1 .more-info .custom-col {
        width: 100% !important;
        flex: unset !important;
        padding: 10px 12px !important;
        border-right: none !important;
        background: linear-gradient(135deg, #f8fbfc 0%, #f3f8fa 100%);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 52px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }

    #section-1 .more-info i {
        font-size: 18px !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        margin-right: 10px !important;
        flex-shrink: 0;
        background: linear-gradient(135deg, #eafcff 0%, #d4f5fc 100%);
    }

    #section-1 .more-info h4 {
        font-size: 13px !important;
        line-height: 17px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1;
        font-weight: 700 !important;
    }

    #section-1 .more-info h4 span {
        font-size: 9px !important;
        display: block !important;
        margin-bottom: 3px !important;
        opacity: 0.65;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        font-weight: 600 !important;
    }

    #section-1 .more-info .main-button {
        margin-top: 2px !important;
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 8px;
    }

    #section-1 .more-info .main-button a {
        padding: 10px 28px !important;
        font-size: 13px !important;
        border-radius: 32px;
        box-shadow: 0 3px 10px rgba(51, 210, 255, 0.35);
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info {
        padding: 10px !important;
        border-radius: 24px;
        bottom: 55px !important;
        width: 92% !important;
        left: 4% !important;
    }

    #section-1 .more-info .custom-row {
        gap: 8px !important;
    }

    #section-1 .more-info .custom-col {
        padding: 8px 10px !important;
        min-height: 48px;
        border-radius: 12px;
    }

    #section-1 .more-info i {
        font-size: 16px !important;
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        margin-right: 8px !important;
    }

    #section-1 .more-info h4 {
        font-size: 12px !important;
        line-height: 15px !important;
    }

    #section-1 .more-info h4 span {
        font-size: 8.5px !important;
        margin-bottom: 2px !important;
    }

    #section-1 .more-info .main-button a {
        padding: 8px 24px !important;
        font-size: 12px !important;
    }
}

/* Hide Button in Stats Banner on Mobile */
@media (max-width: 768px) {
    #section-1 .more-info .main-button {
        display: none !important;
    }
    
    /* Adjust grid to remove button space */
    #section-1 .more-info .custom-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Remove button-related padding */
    #section-1 .more-info {
        padding-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info .main-button {
        display: none !important;
    }
    
    #section-1 .more-info {
        padding-bottom: 10px !important;
    }
}

/* Stats Banner - 3 Horizontal Items with Transparent BG */
@media (max-width: 768px) {
    /* Transparent background for main card */
    #section-1 .more-info {
        background: transparent !important;
        box-shadow: none !important;
        padding: 8px !important;
        width: 96% !important;
        left: 2% !important;
        bottom: 65px !important;
        border-radius: 0 !important;
    }

    /* Hide the button */
    #section-1 .more-info .main-button,
    #section-1 .more-info .custom-col:last-child {
        display: none !important;
    }

    /* 3 Column Horizontal Grid */
    #section-1 .more-info .custom-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        flex-direction: unset !important;
    }

    /* Compact semi-transparent cells */
    #section-1 .more-info .custom-col {
        width: 100% !important;
        flex: unset !important;
        padding: 8px 6px !important;
        border-right: none !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 16px;
        display: flex;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 65px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        border: 1px solid rgba(255,255,255,0.5);
    }

    /* Center-aligned icon */
    #section-1 .more-info i {
        font-size: 20px !important;
        width: 38px !important;
        height: 38px !important;
        line-height: 38px !important;
        margin-right: 0 !important;
        margin-bottom: 6px !important;
        flex-shrink: 0;
        background: linear-gradient(135deg, #eafcff 0%, #d4f5fc 100%);
    }

    /* Centered vertical text */
    #section-1 .more-info h4 {
        font-size: 11px !important;
        line-height: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        flex: 1;
        font-weight: 700 !important;
    }

    /* Label above value */
    #section-1 .more-info h4 span {
        font-size: 8px !important;
        display: block !important;
        margin-bottom: 3px !important;
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 600 !important;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info {
        width: 98% !important;
        left: 1% !important;
        padding: 6px !important;
        bottom: 55px !important;
    }

    #section-1 .more-info .custom-row {
        gap: 4px !important;
    }

    #section-1 .more-info .custom-col {
        padding: 6px 4px !important;
        min-height: 60px;
        border-radius: 14px;
    }

    #section-1 .more-info i {
        font-size: 18px !important;
        width: 34px !important;
        height: 34px !important;
        line-height: 34px !important;
        margin-bottom: 5px !important;
    }

    #section-1 .more-info h4 {
        font-size: 10px !important;
        line-height: 13px !important;
    }

    #section-1 .more-info h4 span {
        font-size: 7.5px !important;
        margin-bottom: 2px !important;
    }
}

/* Show Button Below 3 Columns - Independent & Centered */
@media (max-width: 768px) {
    /* Show the button again */
    #section-1 .more-info .main-button {
        display: block !important;
        grid-column: 1 / -1 !important;
        text-align: center;
        margin-top: 8px !important;
        padding-top: 0 !important;
    }

    /* Keep button hidden (4th col) */
    #section-1 .more-info .custom-col:last-child {
        display: none !important;
    }

    /* Style the button to match glassmorphism */
    #section-1 .more-info .main-button a {
        display: inline-block;
        padding: 10px 32px !important;
        font-size: 13px !important;
        border-radius: 25px;
        font-weight: 700 !important;
        background: rgba(51, 210, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 12px rgba(51, 210, 255, 0.4);
        border: 1px solid rgba(255,255,255,0.4);
        transition: all 0.3s ease;
    }

    #section-1 .more-info .main-button a:hover {
        background: rgba(46, 188, 230, 0.95) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(51, 210, 255, 0.5);
    }
}

@media (max-width: 480px) {
    #section-1 .more-info .main-button {
        margin-top: 6px !important;
    }

    #section-1 .more-info .main-button a {
        padding: 8px 28px !important;
        font-size: 12px !important;
        border-radius: 22px;
    }
}

/* Force Show Button Below 3 Columns - Stronger Override */
@media (max-width: 768px) {
    /* FORCE show the button with stronger selectors */
    #section-1 .more-info .custom-col.custom-col:nth-child(4) {
        display: none !important;
    }
    
    #section-1 .content-slider-overlay .more-info .main-button,
    #section-1 .more-info .main-button.main-button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-column: 1 / -1 !important;
        text-align: center !important;
        margin-top: 10px !important;
        padding-top: 0 !important;
    }

    /* Strong button styling */
    #section-1 .content-slider-overlay .more-info .main-button a,
    #section-1 .more-info .main-button.main-button a {
        display: inline-block !important;
        visibility: visible !important;
        padding: 11px 34px !important;
        font-size: 13px !important;
        border-radius: 26px !important;
        font-weight: 700 !important;
        background: rgba(51, 210, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 14px rgba(51, 210, 255, 0.45) !important;
        border: 1px solid rgba(255,255,255,0.5) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }
}

@media (max-width: 480px) {
    #section-1 .content-slider-overlay .more-info .main-button,
    #section-1 .more-info .main-button.main-button {
        margin-top: 8px !important;
    }

    #section-1 .content-slider-overlay .more-info .main-button a,
    #section-1 .more-info .main-button.main-button a {
        padding: 9px 30px !important;
        font-size: 12px !important;
        border-radius: 24px !important;
    }
}

/* Fix Button - Make 4th Column Full Width Below on Mobile */
@media (max-width: 768px) {
    /* Make 4th column (button) full width and centered */
    #section-1 .more-info .custom-col:nth-child(4) {
        display: flex !important;
        grid-column: 1 / -1 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 8px !important;
        justify-content: center !important;
        min-height: auto !important;
    }

    /* Style the button inside */
    #section-1 .more-info .custom-col:nth-child(4) .main-button {
        display: block !important;
        margin: 0 !important;
        text-align: center !important;
    }

    #section-1 .more-info .custom-col:nth-child(4) .main-button a {
        display: inline-block !important;
        padding: 11px 34px !important;
        font-size: 13px !important;
        border-radius: 26px !important;
        font-weight: 700 !important;
        background: rgba(51, 210, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 14px rgba(51, 210, 255, 0.45) !important;
        border: 1px solid rgba(255,255,255,0.5) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    #section-1 .more-info .custom-col:nth-child(4) .main-button a:hover {
        background: rgba(46, 188, 230, 0.95) !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(51, 210, 255, 0.55) !important;
    }
}

@media (max-width: 480px) {
    #section-1 .more-info .custom-col:nth-child(4) {
        margin-top: 6px !important;
    }

    #section-1 .more-info .custom-col:nth-child(4) .main-button a {
        padding: 9px 30px !important;
        font-size: 12px !important;
        border-radius: 24px !important;
    }
}

/* ULTIMATE FIX - Override ALL previous rules for nth-child(4) */
@media (max-width: 768px) {
    /* Force show with highest specificity */
    #section-1 .content-slider-overlay .more-info .custom-row .custom-col:nth-child(4),
    #section-1 .more-info .custom-row .custom-col:nth-child(4) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-column: 1 / -1 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 10px !important;
        justify-content: center !important;
        min-height: auto !important;
        border-left: none !important;
        border-top: none !important;
        border-radius: 0 !important;
    }

    /* Button inside 4th column */
    #section-1 .content-slider-overlay .more-info .custom-row .custom-col:nth-child(4) .main-button,
    #section-1 .more-info .custom-row .custom-col:nth-child(4) .main-button {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Button link styling */
    #section-1 .content-slider-overlay .more-info .custom-row .custom-col:nth-child(4) .main-button a,
    #section-1 .more-info .custom-row .custom-col:nth-child(4) .main-button a {
        display: inline-block !important;
        visibility: visible !important;
        padding: 12px 36px !important;
        font-size: 14px !important;
        border-radius: 28px !important;
        font-weight: 700 !important;
        background: rgba(51, 210, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        box-shadow: 0 5px 16px rgba(51, 210, 255, 0.5) !important;
        border: 1px solid rgba(255,255,255,0.6) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
}

@media (max-width: 480px) {
    #section-1 .content-slider-overlay .more-info .custom-row .custom-col:nth-child(4) .main-button a,
    #section-1 .more-info .custom-row .custom-col:nth-child(4) .main-button a {
        padding: 10px 32px !important;
        font-size: 13px !important;
        border-radius: 26px !important;
    }
}

/* Remove Glass Effect & Move Closer to Pagination */
@media (max-width: 768px) {
    /* Move entire stats card closer to pagination */
    #section-1 .more-info {
        bottom: 30px !important;
    }

    /* Remove glassmorphism - solid background instead */
    #section-1 .more-info .custom-col:not(:nth-child(4)) {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #e8e8e8 !important;
    }
}

@media (max-width: 480px) {
    /* Move closer on small mobile */
    #section-1 .more-info {
        bottom: 25px !important;
    }
}

/* Complete Glass Removal & Lower Position */
@media (max-width: 768px) {
    /* Remove ALL glass effects from main container */
    #section-1 .content-slider-overlay .more-info,
    #section-1 .more-info {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        bottom: 15px !important;
    }

    /* Solid white background only for stat cards */
    #section-1 .more-info .custom-col:nth-child(1),
    #section-1 .more-info .custom-col:nth-child(2),
    #section-1 .more-info .custom-col:nth-child(3) {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid #e0e0e0 !important;
    }
}

@media (max-width: 480px) {
    #section-1 .content-slider-overlay .more-info,
    #section-1 .more-info {
        bottom: 12px !important;
    }
}

/* Remove Glass Effect from ALL Containers */
@media (max-width: 768px) {
    /* Remove from overlay wrapper */
    #section-1 .content-slider-overlay {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Remove from row container */
    #section-1 .more-info .custom-row {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Force transparent on MORE-INFO again with higher specificity */
    #section-1 .content-slider-overlay .more-info.more-info {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
