/*
Theme Name: Qanoon Markaz
Theme URI: https://qanoonmarkaz.com
Author: Muhammad Imran
Author URI: https://qanoonmarkaz.com
Description: Professional Legal Services & Legal Information Theme.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: qanoonmarkaz
*/
body{
    margin:0;
    padding:0;
    font-family:Arial,sans-serif;
    overflow-x:hidden;
    background:#ffffff;
}


main{
   width:100%;
    margin:0;
    padding:0;
    background:#fff;
}
/* ==========================================================
   QanoonMarkaz Search Results
   ========================================================== */

.qm-search-page {
    background: #f4f6fb;
    min-height: 500px;
    padding-bottom: 60px;
}


/* ==========================================================
   Search Hero
   ========================================================== */

.qm-search-hero {
    background: #000e36;
    padding: 45px 20px 40px;
    text-align: center;
}

.qm-search-hero h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.3;
}

.qm-search-hero p {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.qm-search-hero strong {
    color: #e0a800;
}


/* ==========================================================
   Search Container
   ========================================================== */

.qm-search-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    box-sizing: border-box;
}


/* ==========================================================
   Results Grid
   ========================================================== */

.qm-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* ==========================================================
   Search Card
   ========================================================== */

.qm-search-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.qm-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 25px rgba(0, 0, 0, 0.13);
}


/* ==========================================================
   Featured Image
   ========================================================== */

.qm-search-card-image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.qm-search-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.qm-search-card:hover .qm-search-card-image img {
    transform: scale(1.04);
}


/* ==========================================================
   Card Content
   ========================================================== */

.qm-search-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}


/* ==========================================================
   Meta
   ========================================================== */

.qm-search-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 13px;
}

.qm-search-post-type {
    display: inline-block;
    padding: 5px 10px;
    background: #000e36;
    color: #e0a800;
    border-radius: 3px;
    font-weight: 600;
}

.qm-search-date {
    color: #777777;
    white-space: nowrap;
}


/* ==========================================================
   Title
   ========================================================== */

.qm-search-card h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.4;
}

.qm-search-card h2 a {
    color: #000e36;
    text-decoration: none;
    transition: color 0.25s ease;
}

.qm-search-card h2 a:hover {
    color: #e0a800;
}


/* ==========================================================
   Excerpt
   ========================================================== */

.qm-search-excerpt {
    color: #555555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}


/* ==========================================================
   Read More
   ========================================================== */

.qm-search-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    padding: 10px 18px;
    background: #000e36;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.qm-search-read-more:hover {
    background: #e0a800;
    color: #000e36;
}


/* ==========================================================
   Pagination
   ========================================================== */

.qm-search-pagination {
    margin-top: 45px;
    text-align: center;
}

.qm-search-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-search-pagination li {
    margin: 0;
    padding: 0;
}

.qm-search-pagination a,
.qm-search-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background: #ffffff;
    color: #000e36;
    text-decoration: none;
    border: 1px solid #dddddd;
    font-size: 14px;
    transition: all 0.25s ease;
}

.qm-search-pagination a:hover {
    background: #000e36;
    color: #ffffff;
    border-color: #000e36;
}

.qm-search-pagination .current {
    background: #e0a800;
    color: #000e36;
    border-color: #e0a800;
    font-weight: 700;
}


/* ==========================================================
   No Results
   ========================================================== */

.qm-search-no-results {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 30px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.qm-search-no-results-icon {
    margin-bottom: 20px;
    font-size: 45px;
    color: #e0a800;
}

.qm-search-no-results h2 {
    margin: 0 0 12px;
    color: #000e36;
    font-size: 28px;
}

.qm-search-no-results p {
    margin: 0 0 25px;
    color: #666666;
    line-height: 1.7;
}

.qm-search-no-results strong {
    color: #000e36;
}

.qm-search-home-button {
    display: inline-block;
    padding: 11px 24px;
    background: #000e36;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.qm-search-home-button:hover {
    background: #e0a800;
    color: #000e36;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 992px) {

    .qm-search-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .qm-search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {

    .qm-search-hero {
        padding: 35px 15px;
    }

    .qm-search-hero h1 {
        font-size: 28px;
    }

    .qm-search-hero p {
        font-size: 15px;
    }

    .qm-search-container {
        padding: 25px 15px 45px;
    }

    .qm-search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qm-search-card-image {
        height: 200px;
    }

    .qm-search-card-content {
        padding: 18px;
    }

    .qm-search-card h2 {
        font-size: 19px;
    }

}

