/*
Theme Name: qme_mining_child
Author: Guddu Pal WordPress Designer
Description: QME Mining & Tunnelling Child theme for Hello Elementor
Version: 1.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* ===================|| Root Css ||======================== */
:root {
    --black: #14172B;
    --white: #FFFFFF;
    --purple: #3D2186;
    --blue: #0F479C;
    --grey: #5A5F6D;
    --border: #E3E3E7;
    --light_snow: #BCD0F2;
    --fog: #f5f5f7;
    --gold: #C4952D;
    --gradient: linear-gradient(135deg, var(--purple), var(--blue));
    --shadow: 0 30px 64px -22px rgba(20, 23, 43, .32), 0 10px 26px rgba(20, 23, 43, .10);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--white);
}
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
     background: var(--white);
     border-radius: 8px; 
}
body::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 8px;
}
::selection {
    background: var(--blue);
    color: var(--white);
}
body {
    overflow-x: hidden;
}

div[data-elementor-type="header"] {
    z-index: 9999;
    position: relative;
}
.header_navbar nav > ul > li:last-child a {
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px !important;
    border-radius: 2px;
    background: var(--gradient);
    color: var(--white) !important;
}
.header_navbar nav > ul > li:last-child a::after {
    display: none;
}
.hero_heading h1 span.color_head {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
}

.counter_head > div {
    width: 50px;
    height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why_qme_img > div img,.workshop_img > div img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.sub_heading_line > div > p {
    display: flex;
    align-items: center;
    grid-gap: 10px;
}
.sub_heading_line > div > p::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gradient);
}
.capabilities_head  .sub_heading_line > div > p::before {
    background: var(--white);
}
.workshop_img > div,.gallery_img > div,.project_img > div {
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
}
.workshop_img > div img {
    aspect-ratio: 4 / 3;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
}
.workshop_img > div:hover img {
    transform: scale(1.05);
}
.underground_view > div,.workshop_img > div {
    box-shadow: var(--shadow);
}
.gallery_img > div img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
}
.gallery_img > div:hover img {
    transform: scale(1.05);
}
.gallery_img > div, .project_box {
    position: relative !important;
    border-radius: 20px !important;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
    overflow: hidden;
}
.gallery_img > div::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 23, 43, .72), rgba(20, 23, 43, 0) 55%);
    border-radius: 20px;
}
.project_box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.project_box:hover img {
    transform: scale(1.05);
}
.project_box > a {
    position: absolute;
    top: 0;
    height: 100%;
    display: block;
    width: 100%;
    z-index: 1;
}
.project_box > div.project_img  a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(20, 23, 43, 0.9) 0%, rgba(20, 23, 43, 0.15) 60%);
    border-radius: 20px;
}
.diveder_bg span {
    color: var(--gradient);
}
.project_img > div a {
    display: block;
}
.project_img > div img {
    min-height: 460px;
    max-height: 460px;
    border-radius: 18px;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
}
.capabilities_content p {
    min-height: 72px;
}
.capabilities_slider.owl-theme .owl-nav {
    margin-top: 0px;
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 100%;
    right: 0px;
}
.capabilities_slider.owl-theme .owl-nav button.owl-prev,
.capabilities_slider.owl-theme .owl-nav button.owl-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 16px;
    margin: 0px;
    transition: all 0.7s cubic-bezier(.2,.7,.3,1);
}
.capabilities_slider.owl-theme .owl-nav button:hover {
    background: var(--white);
    color: var(--blue);
}
.capabilities_slider.owl-theme .owl-nav button.owl-prev::after,
.capabilities_slider.owl-theme .owl-nav button.owl-next::after {
    content: "â†";
    font-size: 20px;
    font-family: 'IBM Plex Sans';
    line-height: 20px;
}
.capabilities_slider.owl-theme .owl-nav button.owl-next::after {
    content: "â†’";
}
.capabilities_slider.owl-theme .owl-nav button span {
    font-size: 0px;
}
.brand_text p a {
    text-decoration: underline;
}
.recent_project_sec .qme-gallery-grid > a:nth-child(3) ~ a {
    display: none;
}
/* =======================|| Services Page Css Start ||========================= */
.card_list ul {
    padding: 0px;
    list-style: none;
}
.card_list ul li {
    padding: 7px 0px;
    border-top: 1px solid var(--border);
}
.card_list ul li:first-child {
    border-top: none;
}
.service_card {
    border-top: 3px solid transparent !important;
}
.service_card:hover {
    border-top: 3px solid var(--blue) !important;
}
/* =======================|| Company Page Css Start ||========================= */
.about_tabs ul li a {
    padding: 16px 20px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.about_tabs ul li a:hover {
    border-bottom: 2px solid var(--blue);
}
.submit_btn {
    /* background: linear-gradient(135deg, var(--purple), var(--blue)) !important; */
    background: var(--white) !important;
    padding: 13px 40px !important;
    color: var(--black) !important;
}
.projects_img,.projects_img > div,.projects_img > div img {
    height: 100%;
    display: block;
    object-fit: cover;
}
.film_img ,.film_img > div,.film_img > div img,.field_img ,.field_img > div,.field_img > div img {
    height: 100%;
    display: block;
    object-fit: cover !important;
}

.services_grid_box {
    flex-flow: wrap !important;
    display: flex !important;
    justify-content: center;
}
.services_grid_box > div {
    width: calc(100%/4 - 15px) !important;
}
.inside_working_sec .sub_heading_line > div > p::before {
    background: var(--white);
}
/* =========================================
   1. Filter Dropdown & Search Styles
   ========================================= */
.qme-filters-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: center;
}
.qme-custom-dropdown {
    position: relative;
    width: 220px;
    font-family: 'IBM Plex Sans';
}
.qme-dropdown-header {
    border: 2px solid var(--blue);
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #14163d;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
}
.qme-dropdown-header:hover {
    background: #f8f9fc;
}
.qme-dropdown-body {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px 8px 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.qme-custom-dropdown.active .qme-dropdown-body {
    display: flex;
}
.qme-dropdown-search {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px 8px 0px 0px !important;
}
.qme-dropdown-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px 0;
}
.qme-dropdown-list label {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14px;
    color: var(--grey);
    cursor: pointer;
    transition: background 0.2s;
}
.qme-dropdown-list label:hover {
    background: #f4f5f7;
}
.qme-dropdown-list input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--blue);
}

/* Main Search & Reset */
.qme-main-search-wrapper {
    flex-grow: 1;
    min-width: 220px;
    max-width: 220px;
}
.qme-main-search-wrapper .qme-main-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--blue);
    border-radius: 30px;
    font-size: 14px;
    font-family: 'IBM Plex Sans';
    outline: none;
    transition: border-color 0.3s;
}
.qme-main-search-wrapper .qme-main-search-input:focus {
    border-color: var(--blue);
}
.qme-reset-btn {
    /* background: #e6e7ee; */
    background: #14163d;
    color: #14163d;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Sans';
    color: var(--white);
}
.qme-reset-btn:hover,.qme-reset-btn:focus {
    background: #14163d;
    color: var(--white);
}

/* =========================================
   2. Equipment Category Sections & Card Grid
   ========================================= */
.qme-category-section {
    margin-bottom: 50px;
}
.qme-category-section:last-child {
    margin-bottom: 0px;
}
.qme-cat-heading {
    color: var(--purple);
    font-size: 20px;
    font-weight: 800;
    font-style: italic;
    margin: 0px 0px 16px 0px;
    font-family: 'IBM Plex Sans';
}
.qme-eq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    font-family: 'IBM Plex Sans';
}
.qme-eq-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 32px 28px;
}
.qme-eq-card:hover {
    box-shadow: 0 12px 24px rgba(20, 22, 61, 0.08);
    transform: translateY(-4px);
}
.qme-eq-img {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    display: block;
    margin-bottom: 12px;
    border-radius: 12px 12px 0px 0px !important;
}
.qme-eq-content {
    /* padding: 24px; */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.qme-eq-model {
    color: var(--purple);
    font-size: 15px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.qme-eq-title {
    color: var(--black);
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.2;
    font-family: 'Big Shoulders Display';
}
.qme-eq-desc {
    color: var(--grey);
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 24px;
    /* flex-grow: 1; */
    font-weight: 400;
}
.qme-eq-meta {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
}
.qme-meta-label {
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
}
.qme-meta-value {
    color: var(--black);
    text-align: right;
    font-size: 14px;
    font-weight: 400;
}
.qme-eq-btn {
    display: inline-block;
    background-image: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    padding: 14px 26px 14px 26px;
    border-radius: 4px;
    margin-top: 16px;
    align-self: flex-start;
    transition: background 0.3s;
}
.qme-eq-btn:hover {
    background-image: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: var(--white);
}

.qme-hidden { 
    display: none !important; 
}
.qme-no-results {
    width: 100%;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: var(--grey);
    font-family: 'IBM Plex Sans';
    display: none;
}
/* =======================|| Popup Form Css Start ||========================= */
.popup_sec {
    position: fixed !important;
    max-width: 600px;
    width:calc(100% - 30px) !important;
    width: 100%;
    left: 50%;
    top: 50%;
    background-color: var(--white);
    border-radius: 16px;
    transform: translate(-50%,-50%);
    z-index: 999;
    padding: 20px 20px;
}
.popup_overlay {
    background-color: rgba(0,0,0,0.5);
    position: fixed !important;
    width: 100%;
    height: 100%;
    z-index: 99;
    top: 0px;
    left: 0px;
}
.pop_head {
    padding: 0px 10px 10px;
    text-align: end;
    font-size: 26px;
}
.enquire_btn a,.pop_head i {
    cursor: pointer;
}
.submit_enquire {
    border: unset;
    border-radius: 0px;
    padding: 10px 32px;
    text-transform: uppercase;
}
/* =======================|| Responsive Css Start ||========================= */
@media (max-width: 1024px) {
    .qme-filters-container {
        gap: 10px;
    }
    .qme-custom-dropdown {
        width: 210px;
    }
    .qme-main-search-wrapper {
        min-width: 200px;
        max-width: 200px;
    }
    .qme-eq-grid {
        gap: 20px;
    }
}
@media (max-width: 991px) {
    .services_grid_box > div {
        width: calc(100%/2 - 10px) !important;
    }
    .qme-eq-card {
        padding: 20px 20px 28px;
    }
    .qme-category-section {
        margin-bottom: 36px;
    }
}
@media (max-width: 780px) {
    .popup_sec form {
        height: 400px;
        overflow-y: scroll;
    }
}
@media (max-width: 767px) {
    .capabilities_slider.owl-theme .owl-nav button.owl-prev, .capabilities_slider.owl-theme .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }
    .capabilities_slider.owl-theme .owl-nav {
        bottom: calc(100% - 16px);
    }
    .capabilities_content p {
        min-height: unset;
    }
    .services_grid_box > div {
        width: calc(100%/1 - 0px) !important;
    }
    .qme-eq-img {
        height: 200px !important;
    }
}
@media (max-width: 680px) {
    .qme-eq-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 484px) {
    .about_tabs ul li a {
        padding: 10px 6px;
    }
}   