/**
 * Modern Final Override - Nuclear Option
 * This file MUST be loaded LAST
 * Uses maximum specificity and !important everywhere
 */

/* ==========================================
   HERO SECTION - ABSOLUTE OVERRIDE
   ========================================== */
body .hero-section,
html body .hero-section,
.hero-section.hero-section {
    position: relative !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    padding: 120px 0 80px !important;
    overflow: hidden !important;
    background-color: transparent !important;
    background: transparent !important;
}

body .hero-section .layer,
.hero-section .layer {
    position: relative !important;
    width: 100% !important;
    z-index: 2 !important;
}

body .home-banner,
.hero-section .home-banner,
body .hero-section .home-banner {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}

body .home-banner::before,
.hero-section .home-banner::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.9) 100%) !important;
    z-index: 1 !important;
}

body .section-search,
.hero-section .section-search,
body .hero-section .section-search {
    text-align: center !important;
    position: relative !important;
    z-index: 3 !important;
}

body .section-search h1,
.section-search h1 {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

body .section-search p,
.section-search > p {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 40px !important;
}

/* ==========================================
   SEARCH BOX
   ========================================== */
body .search-box,
.hero-section .search-box {
    max-width: 900px !important;
    margin: 0 auto 30px !important;
}

body .search-style,
.search-box .search-style,
form.search-style {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border: none !important;
}

body .search-input,
.search-style .search-input {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 16px !important;
}

body .search-input.line {
    border-right: 2px solid #e2e8f0 !important;
    border-bottom: none !important;
}

body .search-input .bficon {
    color: #667eea !important;
    font-size: 20px !important;
}

body .search-btn .btn,
.search-btn button.btn,
button.btn.search_service {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 16px 40px !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 16px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* ==========================================
   SEARCH CATEGORIES
   ========================================== */
body .search-cat,
.hero-section .search-cat {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
}

body .search-cat span {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
}

body .search-cat a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    padding: 8px 20px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 25px !important;
    backdrop-filter: blur(10px) !important;
}

/* ==========================================
   CATEGORY SECTION
   ========================================== */
body .category-section,
section.category-section {
    background: #f8fafc !important;
    padding: 80px 0 !important;
}

body .cate-widget,
.category-section .cate-widget,
a .cate-widget {
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    height: 280px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
}

body .cate-widget img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body .cate-widget::before,
.cate-widget::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

body .cate-title,
.cate-widget .cate-title {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    z-index: 2 !important;
}

body .cate-title h3,
.cate-title h3 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

body .cate-count,
.cate-widget .cate-count {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #667eea !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    z-index: 2 !important;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
body .popular-services,
section.popular-services {
    background: #ffffff !important;
    padding: 80px 0 !important;
}

body .service-widget {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    margin: 12px !important;
}

body .service-img,
.service-widget .service-img {
    position: relative !important;
    height: 240px !important;
    overflow: hidden !important;
}

body .service-img img.serv-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body .item-info,
.service-img .item-info {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
}

body .service-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 6px 12px 6px 6px !important;
    border-radius: 25px !important;
}

body .cate-list a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* ==========================================
   HEADINGS
   ========================================== */
body .heading h2,
.heading h2 {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 12px !important;
}

body .heading span {
    font-size: 16px !important;
    color: #64748b !important;
    display: block !important;
}

body .viewall a {
    color: #667eea !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ==========================================
   BLOG SECTION
   ========================================== */
body .blog {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

body .blog-image {
    height: 220px !important;
    overflow: hidden !important;
}

body .blog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
body .how-work,
section.how-work {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 80px 0 !important;
}

body .how-work .heading h2 {
    color: #ffffff !important;
}

body .how-work .heading span {
    color: rgba(255, 255, 255, 0.9) !important;
}

body .iconround {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 30px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .steps {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    color: #667eea !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

body .howwork h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

body .howwork p {
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    body .section-search h1,
    .section-search h1 {
        font-size: 42px !important;
    }

    body .search-style,
    form.search-style {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body .search-input.line {
        border-right: none !important;
        border-bottom: 2px solid #e2e8f0 !important;
        padding-bottom: 12px !important;
    }
}

@media (max-width: 767px) {
    body .section-search h1 {
        font-size: 32px !important;
    }

    body .cate-widget {
        height: 240px !important;
    }

    body .hero-section {
        padding: 100px 0 60px !important;
    }
}
