/* ==========================================================
   QANOONMARKAZ
   TOOLS & CALCULATORS
   FINAL TOOLS CSS
   ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

.qm-tools-page {
    background: #ffffff;
    padding: 15px 0 30px;
}

.qm-tools-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    align-items: start;
}

.qm-tools-main,
.qm-tools-sidebar {
    min-width: 0;
}


/* ==========================================================
   MAIN ADVERTISEMENT
   ========================================================== */

.qm-tools-ad-top {
    width: 100%;
    min-height: 220px;

    margin-bottom: 35px;

    background: #ffffff;

    border: 1px solid #dedede;
    border-radius: 4px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.qm-tools-ad-top::before {
    content: "ADVERTISEMENT";

    position: absolute;

    top: 10px;
    left: 14px;

    color: #aaaaaa;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 1px;
}

.qm-tools-ad-top span {
    color: #aaaaaa;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: .5px;
}


/* ==========================================================
   TOOLS HEADING
   ========================================================== */

.qm-tools-heading {
    margin-bottom: 25px;
}

.qm-tools-heading h1 {
    margin: 0 0 8px;

    color: #0B2D6B;

    font-size: 40px;
    line-height: 1.3;

    font-weight: 700;
}

.qm-tools-heading p {
    max-width: 850px;
    text-align: justify;

    margin: 0;

    color: #555555;

    font-size: 15px;

    line-height: 1.75;
}

.qm-tools-heading-line {
    width: 55px;
    height: 3px;

    margin-top: 14px;

    background: #C79A1B;
}


/* ==========================================================
   TOOLS GRID
   ========================================================== */

.qm-tools-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================================================
   TOOL CARD
   ========================================================== */

.qm-tool-card {
    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 5px;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.qm-tool-card:hover {
    transform: translateY(-3px);

    border-color: #C79A1B;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}


/* ==========================================================
   TOOL IMAGE BOX
   ========================================================== */
.qm-tool-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================
   IMAGE PLACEHOLDER
   ========================================================== */

.qm-tool-image-placeholder {
    width: 30%;

    background: #f5f6f8;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    color: #999999;
}

.qm-tool-image-placeholder-icon {
    width: 100%;


    margin-bottom: 10px;

    border: 2px solid #d1d5da;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999999;

    font-size: 22px;
}

.qm-tool-image-placeholder span {
    color: #999999;

    font-size: 12px;
}


/* ==========================================================
   TOOL CONTENT
   ========================================================== */

.qm-tool-content {
    padding: 23px 24px 25px;
}

.qm-tool-category {
    display: block;

    margin-bottom: 7px;

    color: #C79A1B;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.qm-tool-content h2 {
    margin: 0 0 10px;

    color: #0B2D6B;

    font-size: 21px;

    line-height: 1.4;

    font-weight: 700;
}

.qm-tool-content p {
    margin: 0 0 20px;

    color: #606060;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   OPEN TOOL BUTTON
   ========================================================== */

.qm-tool-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 140px;

    padding: 11px 18px;

    background: #0B2D6B;

    color: #ffffff;

    border-radius: 3px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease;
}

.qm-tool-button:hover {
    background: #C79A1B;

    color: #ffffff;
}

.qm-tool-button-arrow {
    margin-left: 8px;

    font-size: 16px;
}


/* ==========================================================
   MORE TOOLS COMING SOON
   ========================================================== */

.qm-coming-section {
    margin-top: 35px;
}

.qm-coming-box {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 24px;

    background: #ffffff;

    border: 1px dashed #cfd3d9;

    border-radius: 5px;
}

.qm-coming-icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0B2D6B;

    color: #ffffff;

    border-radius: 50%;

    font-size: 26px;
}

.qm-coming-content h3 {
    margin: 0 0 5px;

    color: #0B2D6B;

    font-size: 18px;

    line-height: 1.4;
}

.qm-coming-content p {
    margin: 0;

    color: #666666;

    font-size: 13px;

    line-height: 1.65;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.qm-tools-sidebar-inner {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ==========================================================
   SIDEBAR ADVERTISEMENT
   ========================================================== */

.qm-sidebar-ad {
    width: 100%;
    min-height: 250px;

    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.qm-sidebar-ad::before {
    content: "ADVERTISEMENT";

    position: absolute;

    top: 10px;

    left: 50%;

    transform: translateX(-50%);

    color: #aaaaaa;

    font-size: 9px;

    letter-spacing: 1px;
}

.qm-sidebar-ad span {
    color: #aaaaaa;

    font-size: 11px;
}


/* ==========================================================
   SIDEBAR WIDGET
   ========================================================== */

.qm-sidebar-widget {
    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    overflow: hidden;
}

.qm-sidebar-widget-content {
    padding: 0 20px 8px;
}


/* ==========================================================
   SIDEBAR TITLE
   ========================================================== */

.qm-sidebar-title {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 15px 20px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.qm-sidebar-title-bar {
    width: 4px;
    height: 21px;

    flex-shrink: 0;

    background: #C79A1B;
}

.qm-sidebar-title h3 {
    margin: 0;

    color: #0B2D6B;

    font-size: 18px;

    line-height: 1.3;

    font-weight: 700;
}


/* ==========================================================
   SIDEBAR LIST
   ========================================================== */

.qm-sidebar-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.qm-sidebar-list li {
    border-bottom: 1px solid #eeeeee;
}

.qm-sidebar-list li:last-child {
    border-bottom: none;
}

.qm-sidebar-list li a {
    display: block;

    padding: 11px 0;

    color: #444444;

    text-decoration: none;

    font-size: 13px;

    line-height: 1.55;

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.qm-sidebar-list li a:hover {
    color: #C79A1B;

    padding-left: 4px;
}


/* ==========================================================
   SIDEBAR ACTION BOX
   ========================================================== */

.qm-sidebar-action {
    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    padding: 22px 20px;
}

.qm-sidebar-action h3 {
    margin: 0 0 9px;

    color: #0B2D6B;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 700;
}

.qm-sidebar-description {
    margin: 0 0 17px;

    color: #666666;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   SIDEBAR BUTTON
   ========================================================== */

.qm-sidebar-action-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    background: #0B2D6B;

    color: #ffffff;

    border-radius: 3px;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .25s ease,
        color .25s ease;
}

.qm-sidebar-action-button:hover {
    background: #C79A1B;

    color: #ffffff;
}

.qm-sidebar-action-button span {
    margin-left: 7px;
}


/* ==========================================================
   WHATSAPP
   ========================================================== */

.qm-sidebar-whatsapp {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 17px 18px;

    background: #ffffff;

    border: 1px solid #dedede;

    border-radius: 4px;

    text-decoration: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.qm-sidebar-whatsapp:hover {
    border-color: #25D366;

    box-shadow: 0 5px 18px rgba(37, 211, 102, .12);
}

.qm-whatsapp-icon {
    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #25D366;

    color: #ffffff;

    border-radius: 50%;

    font-size: 19px;
}

.qm-whatsapp-content {
    min-width: 0;
}

.qm-whatsapp-label {
    display: block;

    margin-bottom: 3px;

    color: #777777;

    font-size: 11px;
}

.qm-whatsapp-number {
    display: block;

    color: #128C45;

    font-size: 14px;

    font-weight: 700;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .qm-tools-layout {
        grid-template-columns: 68% 32%;

        gap: 22px;
    }

    .qm-tools-grid {
        gap: 18px;
    }

    .qm-tool-content {
        padding: 20px;
    }

}


/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media (max-width: 991px) {

    .qm-tools-layout {
        grid-template-columns: 1fr;
    }

    .qm-tools-sidebar {
        width: 100%;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .qm-tools-page {
        padding: 25px 0 45px;
    }


    /* Main Advertisement */

    .qm-tools-ad-top {
        min-height: 160px;

        margin-bottom: 28px;
    }


    /* Heading */

    .qm-tools-heading h1 {
        font-size: 26px;
    }

    .qm-tools-heading p {
        font-size: 14px;
    }


    /* Tools */

    .qm-tools-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    /* Image */

    .qm-tool-image {
        height: 200px;
    }


    /* Content */

    .qm-tool-content {
        padding: 21px;
    }

    .qm-tool-content h2 {
        font-size: 20px;
    }


    /* Coming Soon */

    .qm-coming-box {
        align-items: flex-start;

        padding: 20px;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .qm-tools-heading h1 {
        font-size: 23px;
    }

    .qm-tools-heading p {
        font-size: 13px;
    }

    .qm-tool-image {
        height: 180px;
    }

    .qm-tool-content {
        padding: 19px;
    }

    .qm-tool-content h2 {
        font-size: 19px;
    }

    .qm-tool-content p {
        font-size: 13px;
    }

    .qm-coming-box {
        flex-direction: column;
    }

    .qm-sidebar-action {
        padding: 20px;
    }

}