.b-radius {
    border-radius: 16px;
}

.error-img {
    width: 80%;
    padding-bottom: 20px;
    max-width: 100%;
}

.prod-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

.intro-image {
    height: 240px !important;
    overflow: hidden;
}

.gap-3 {
  gap: 1rem;
}

.bg-sizing {
    background-size: cover;
    background-position: center;
}

img.home-about-img {
    height: 600px;
    object-fit: cover;
    border-radius: 10px 48px 10px 48px;
}

.problem-range-fix {
    min-width: 500px;
}

@media (min-width: 992px) and (max-width: 1238px) {
    .problem-range-fix {
        min-width: 100% !important;
        max-width: 100% !important;
        margin-top: 0px;
    }
}

  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            line-height: 1.6;
        }

        /* Hero Slider Container */
        .hero-slider {
            position: relative;
            width: 100%;
            height: 85vh;
            overflow: hidden;
        }

        /* Individual Slide */
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slide.active {
            opacity: 1;
        }

        /* Dark Overlay */
        .slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1;
        }

        /* Slide Content */
        .slide-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 800px;
            padding: 0 20px;
            animation: slideUp 1s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .slide-content h1 {
            font-size: 4rem;
            font-weight: bold;
            color: white;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 15px 30px;
            border: none;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: bold;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
        }

        .btn-primary {
            background: #C18A2C;
            color: white;
        }

        .btn-primary:hover {
            background: #C18A2C;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
        }

        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .btn-secondary:hover {
            background: white;
            color: #333;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
        }

        /* Navigation Buttons */
        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 2rem;
            padding: 15px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 3;
            backdrop-filter: blur(10px);
            border-radius: 5px;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .nav-button.prev {
            left: 20px;
        }

        .nav-button.next {
            right: 20px;
        }

        /* Slide Indicators */
        .indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 3;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        /* Background Images */
        .slide:nth-child(1) {
            background-image: url('../images/flat-lay-red-rocks-background.jpg');
        }

        .slide:nth-child(2) {
            background-image: url('../images/tasty-cashew-nuts-as-background.jpg');
        }

        .slide:nth-child(3) {
            background-image: url('../images/environmental-pollution-industry-exterior-daylight.jpg');
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .slide-content h1 {
                font-size: 3rem;
            }

            .slide-content p {
                font-size: 1rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                padding: 12px 25px;
                font-size: 0.9rem;
                min-width: 200px;
            }

            .nav-button {
                font-size: 1.5rem;
                padding: 10px 15px;
            }

            .nav-button.prev {
                left: 10px;
            }

            .nav-button.next {
                right: 10px;
            }
        }

        @media (max-width: 480px) {
            .slide-content h1 {
                font-size: 2rem;
            }

            .slide-content {
                padding: 0 15px;
            }

            .btn {
                padding: 10px 20px;
                font-size: 0.8rem;
                min-width: 180px;
            }
        }
        @media (max-width: 768px) {
            .hero-slider {
                height: 70vh;
            }
        }

        @media (max-width: 480px) {
            .hero-slider {
                height: 60vh;
            }
        }
        @media (max-width: 768px) {
    .nav-button {
        top: auto;
        bottom: 120px;
        transform: none;
    }
    
    .nav-button.prev {
        left: 20px;
    }
    
    .nav-button.next {
        right: 20px;
    }
}

@media (max-width: 768px){
    img.home-about-img {
        height: 480px;
    }
}

@media (max-width: 480px){
    img.home-about-img {
        height: 400px;
    }
    .intro-image {
        height: 180px !important;
    }
}

@media (min-width: 768px){
    .service-item {
        min-height: 420px;
    }
}

@media (min-width: 768px) {
    .error-img {
        width: 60%;
    }
}

@media (min-width: 1024px) {
    .error-img {
        width: 50%;
    }
}

@media (min-width: 1440px) {
    .error-img {
        width: 30%;
    }
}

/* Ensure header search dropdown overlays hero slider */
.header-searchbox-style-two .toggle-searchbox {
    /* create stacking context */
    position: absolute;
}
.header-searchbox-style-two .toggle-searchbox.show {
    z-index: 10000 !important;
}

/* Ensure main nav dropdowns overlay hero slider */
.header-style-two .header-wrapper .header-navigation-area {
    position: relative;
    z-index: 10000; /* keep header above hero */
}
.header-style-two .header-wrapper .header-navigation-area .main-menu ul li ul.sub-menu,
.header-style-two .header-wrapper .header-navigation-area .main-menu ul li ul.sub-menu li ul.sub-menu {
    position: absolute; /* ensure proper stacking */
    z-index: 10001 !important; /* dropdowns above overlay/text */
}
