/* responsive-redesign.css - Dark Theme & Strict Image Layout Fixes */

html {
    font-size: 100%;
}
body {
    overflow-x: hidden;
}

/* Hero Section */
.second-slider .slide-inner {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* We ensure background images fit beautifully */
}
.second-slider .slide-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.6) 100%);
    z-index: 1;
}
.second-slider .slide-inner .container {
    position: relative;
    z-index: 2;
}

/* STRICT IMAGE SIZING TO FIX "PROPER NAHI HAI" */
/* All service images, about images, and featured boxes */
.featured-imagebox-service .featured-imagebox img,
.ks-about-thumb-1 img,
.contact-box .image img,
.hero-image-wrapper {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Explicit aspect ratios for containers to keep layout identical no matter the image */
.featured-imagebox-service .featured-imagebox {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.ks-about-thumb-1 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* Service Boxes */
.service-block .inner-box {
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
}
.service-block .icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* Services 3 Col Grid */
.featured-imagebox-service {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.featured-imagebox-service .featured-conatin {
    padding: 20px;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .second-slider h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .second-slider .slide-inner {
        padding: 120px 0 50px;
        text-align: center;
    }
    .main-header.two .header_search {
        display: none;
    }
    .ks-about-thumb-1 {
        margin-bottom: 30px;
    }
    .header-lower .logo-box {
        padding: 10px 0;
    }
}
