:root {
    --int-white: #ffffff;
    --int-navy: #777;
}

/* 1. IMMERSIVE HEADER */
#header {
    background: transparent !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
    pointer-events: none !important;
    /* ALLOW CLICKS THROUGH TO HERO */
}

#header-wrap,
.slider-overlay {
    pointer-events: none !important;
}

#header-wrap .container {
    pointer-events: auto !important;
    /* RE-ENABLE FOR LOGO AND MENU */
}

#header.sticky-header {
    background: var(--int-white) !important;
    position: fixed !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
    border-bottom: none !important;
}

#header.sticky-header #primary-menu ul li a {
    color: var(--int-navy) !important;
}

#header.sticky-header #primary-menu ul li a:hover{
    color:#000 !important;
}

/* 2. PREMIUM HERO WRAPPER (V6) */
.premium-hero-v6 {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
}

.premium-hero-v6 #slider,
.premium-hero-v6 #slider .slider-parallax-inner {
    position: relative;
    z-index: 1;
    height: 700px !important;
    /* Taller for grandeur */
}

/* The Curved Shape */
.premium-hero-v6::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-color: var(--int-white);
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 10;
}

/* 3. CONTENT OVERLAY (BANNER) */
.premium-hero-v6 .banner {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 20 !important;
    background: transparent !important;
    padding: 0 !important;
    pointer-events: none;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    transform: none !important;
    /* OVERRIDE JS CENTEIRNG */
    top: 0 !important;
    margin-top: 0 !important;
}

/* CONTAINER ALIGNMENT - DIRECTLY UNDER HEADER */
.premium-hero-v6 .banner .container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Force to top */
    align-items: center !important;
    padding-top: 140px !important;
    /* Start under transparent header */
    height: auto !important;
    pointer-events: auto;
}

/* Force override of theme helper classes */
.premium-hero-v6 section.padding-tb-200px,
.premium-hero-v6 .padding-tb-200px {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding: 0 !important;
}

/* Remove row margins that might push content down */
.premium-hero-v6 .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.premium-hero-v6 .row.margin-tb-60px {
    margin: 0 !important;
    width: 100% !important;
    justify-content: center !important;
}

/* Dark gradient at the top for header readability */
.premium-hero-v6 .banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full height to dim background */
    background: linear-gradient(to bottom, rgba(14, 34, 68, 0.9) 0%, rgba(14, 34, 68, 0.4) 50%, rgba(14, 34, 68, 0.1) 100%);
    z-index: -1;
}

/* Specific styling for text and search */
.premium-hero-v6 .title h1 {
    font-size: 52px !important;
    font-weight: 800 !important;
    color: var(--int-white) !important;
    margin-bottom: 10px !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.premium-hero-v6 .title h2 {
    font-size: 20px !important;
    color: var(--int-white) !important;
    margin-bottom: 30px !important;
    max-width: 900px;
    line-height: 1.6;
    text-align: center !important;
}

html[lang="en-US"] .premium-hero-v6 .title h2 {
    max-width: 1081px !important;
}

html[lang="en-US"] .premium-hero-v6 .title h2 p span {
    color: #fff !important;
}

/* Floating Search Filter */
.premium-hero-v6 .listing-search {
    position: relative;
    z-index: 100 !important;
    background: var(--int-white) !important;
    border-radius: 12px !important;
    padding: 20px 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto !important;
    pointer-events: auto !important;
}

/* Responsive fixes */
@media (max-width: 768px) {

    .premium-hero-v6 #slider,
    .premium-hero-v6 #slider .slider-parallax-inner {
        height: 600px !important;
    }

    .premium-hero-v6 .banner .container {
        padding-top: 100px !important;
    }

    .premium-hero-v6 .title h1 {
        font-size: 32px !important;
    }

    .premium-hero-v6 .listing-search {
        padding: 20px !important;
    }

    .premium-hero-v6 .title h2 {
        font-size: 14px !important;
    }
}

/* 4. PREMIUM CATEGORY CARDS (4-COLUMN GRID) */
.premium-cat-grid {
    margin-top: 40px !important;
}

.premium-cat-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    background: #ffffff !important;
    border-radius: 15px !important;
    padding: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    height: 100% !important;
}

.premium-cat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(144, 196, 68, 0.2) !important;
    /* Subtle theme green tint */
}

.premium-cat-card .card-img {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    aspect-ratio: 1/1 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f0f0f0 !important;
}

.premium-cat-card .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.premium-cat-card .card-info {
    flex: 1 !important;
    padding-left: 15px !important;
    text-align: right !important;
    /* RTL Support */
}

.premium-cat-card .card-info h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--int-navy) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    transition: color 0.3s ease !important;
}

.premium-cat-card:hover .card-info h3 {
    color: #90c444 !important;
    /* Theme green */
}

/* Responsive adjustments for the grid */
@media (max-width: 1200px) {
    .premium-cat-card .card-info h3 {
        font-size: 15px !important;
    }
}

@media (max-width: 991px) {
    .premium-cat-card {
        padding: 10px !important;
    }
}