/*====================================================
QANOON MARKAZ
HOME PAGE CSS
PART 1
Hero + Services
====================================================*/

.qm-homepage{
    background:#f4f6fb;
}

/*==================================
HERO
==================================*/


.qm-hero-overlay{
    width:100%;
    height:100%;
    background:rgba(8,36,94,.65);
    display:flex;
    align-items:center;
}

.qm-hero-content{
    color:#fff;
    width:650px;
}

.qm-hero-content h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:20px;
}

.qm-hero-content p{
    font-size:21px;
    line-height:34px;
    margin-bottom:35px;
}

.qm-hero-buttons{
    display:flex;
    gap:15px;
}

.qm-btn-primary{

    background:#c79a1b;
    color:#fff;
    text-decoration:none;
    padding:14px 34px;
    border-radius:5px;
    font-weight:600;
    transition:.3s;

}

.qm-btn-primary:hover{

    background:#ab8111;

}

.qm-btn-secondary{

    background:#fff;
    color:#0B2D6B;
    text-decoration:none;
    padding:14px 34px;
    border-radius:5px;
    font-weight:600;
    transition:.3s;

}

.qm-btn-secondary:hover{

    background:#ececec;

}


.qm-popular-side{

background:#fff;

padding:20px;

border-radius:8px;

box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.qm-popular-side h3{

background:#000e36;

color:#fff;

padding:15px;

margin:-20px -20px 20px;

font-size:24px;

}

.qm-popular-post{

display:flex;

gap:15px;

margin-bottom:18px;

padding-bottom:18px;

border-bottom:1px solid #ddd;

}

.qm-popular-post img{

width:100px;

height:75px;

object-fit:cover;

border-radius:6px;

}

.qm-popular-post h4{

font-size:17px;

margin-bottom:6px;

}

.qm-popular-post h4 a{

color:#000e36;

text-decoration:none;

}

.qm-popular-post span{

font-size:13px;

color:#777;

}

/*==================================
SECTION TITLE
==================================*/

.qm-services-intro{

    background:#fff;
    padding:20px 0;
    text-align:center;

}

.qm-services-intro h2{

    color:hsl(219, 96%, 10%);
    font-size:50px;
    margin-bottom:20px;
    font-weight:700;

}

.qm-divider{

    width:400px;
    height:4px;
    background:#c79a1b;
    margin:20px auto 35px;

}

.qm-services-intro p{

    width:100%;
    margin:auto;
    color:#555;
    font-size:25px;
    line-height:36px;

}

/*==================================
SERVICES
==================================*/

.qm-services{

    padding:20px 0;
    background:#f4f6fb;

}

.qm-services-grid{

    display:grid;
   grid-template-columns: repeat(6, minmax(0, 1fr));
    gap:10px;

}

.qm-service-card {
    background: #000e36;
    border-radius: 8px;
    text-align: center;
    padding: 15px 10px;
    min-width: 0;
    box-sizing: border-box;
    transition: .3s;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.qm-service-card:hover{

    transform:translateY(-8px);

}

.qm-service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.qm-service-card h3 {
    color: #e0a800;
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.25;
}

.qm-service-card p {
    color: #ffffff;
    line-height: 24px;
    font-size: 14px;
    min-height: 90px;
}

.qm-service-card a {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    background: #0B2D6B;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: .3s;
    font-size: 14px;
}

.qm-service-card a:hover{

    background:#c79a1b;

}
/*====================================================
PART 2
LATEST POSTS + YOUTUBE
====================================================*/

/*==============================
LATEST SECTION
==============================*/

.qm-latest-section{

    padding:80px 0;
    background:#ffffff;

}

.qm-section-title{

    text-align:center;
    margin-bottom:50px;

}

.qm-section-title h2{

    color:#0B2D6B;
    font-size:42px;
    font-weight:700;
    margin-bottom:15px;

}

.qm-section-title p{

    width:800px;
    margin:auto;
    color:#666;
    font-size:19px;
    line-height:34px;

}

/*==============================
3 COLUMNS
==============================*/

.qm-three-columns{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;

}

.qm-column{

    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.qm-column h3{

    background:#0B2D6B;
    color:#fff;
    text-align:center;
    padding:18px;
    font-size:22px;

}

/*==============================
POST
==============================*/

.qm-post{

    display:flex;
    gap:15px;
    padding:18px;
    border-bottom:1px solid #ececec;
    transition:.3s;

}

.qm-post:hover{

    background:#f8f8f8;

}

.qm-post:last-child{

    border-bottom:none;

}

.qm-post img{

    width:90px;
    height:70px;
    object-fit:cover;
    border-radius:4px;

}

.qm-post-content{

    flex:1;

}

.qm-post-content h4{

    margin-bottom:8px;
    line-height:24px;
    font-size:18px;

}

.qm-post-content h4 a{

    text-decoration:none;
    color:#0B2D6B;

}

.qm-post-content h4 a:hover{

    color:#C79A1B;

}

.qm-post-content span{

    color:#888;
    font-size:14px;

}

/*==============================
YOUTUBE
==============================*/

.qm-youtube{

    background:#f4f6fb;
    padding:80px 0;

}

.qm-video-grid{

    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;

}

.qm-video{

    background:#fff;
    padding:12px;
    border-radius:8px;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transition:.35s;

}

.qm-video:hover{

    transform:translateY(-8px);

}

.qm-video iframe{

    border:none;
    border-radius:6px;
    width:100%;
    height:260px;

}
/*====================================================
PART 3
PRACTICE AREA + CONTACT + WHY CHOOSE US + RESPONSIVE
====================================================*/

/*==================================
PRACTICE AREA
==================================*/

.qm-practice{

    padding:10px 0;

    background:#ffffff;

}

.qm-practice-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

    margin-top:50px;

}

.qm-practice-card{

    background:#fff;

    border-radius:8px;

    text-align:center;

    padding:30px 20px;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.35s;

}

.qm-practice-card:hover{

    transform:translateY(-8px);

    background:#0B2D6B;

}

.qm-practice-card img{

    width:130px;

    height:130px;

    object-fit:contain;

    margin-bottom:18px;

}

.qm-practice-card h4{

    color:#0B2D6B;

    font-size:19px;

    transition:.35s;

}

.qm-practice-card:hover h4{

    color:#fff;

}


/*==================================
CONTACT SECTION
==================================*/

.qm-contact-banner{

    background:#000e36;

    color:#fff;

    padding:10px 0;

}

.qm-contact-banner .container{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:20px;

    align-items:center;

}

.qm-contact-left h2{

    font-size:42px;

    margin-bottom:25px;

}

.qm-contact-left p{

    font-size:20px;

    line-height:36px;

}

.qm-contact-right{

    text-align:center;

    background:#fff;

    color:#222;

    border-radius:10px;

    padding:5px;

}

.qm-contact-right img{

    width:150px;

    margin-bottom:10px;

}

.qm-contact-right h3{

    color:#0B2D6B;

    margin-bottom:6px;

}

.qm-contact-right h2{

    color:#C79A1B;

    margin-bottom:10px;

    font-size:32px;

}

.qm-contact-right h4{

    margin-bottom:15px;

}

.qm-contact-btn{

    display:inline-block;

    padding:14px 32px;

    background:#25D366;

    color:#fff;

    text-decoration:none;

    border-radius:6px;

    font-weight:600;

}

.qm-contact-btn:hover{

    background:#1ba84e;

}


/*==================================
WHY CHOOSE US
==================================*/

.qm-why{

    padding:80px 0;

    background:#f4f6fb;

}

.qm-why-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.qm-why-grid div{

    background:#fff;

    padding:35px;

    border-radius:8px;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    transition:.35s;

}

.qm-why-grid div:hover{

    transform:translateY(-8px);

}

.qm-why-grid h3{

    color:#0B2D6B;

    margin-bottom:15px;

}

.qm-why-grid p{

    color:#666;

    line-height:30px;

}


/*==================================
RESPONSIVE
==================================*/

@media(max-width:991px){

.qm-services-grid{

grid-template-columns:repeat(2,1fr);

}

.qm-three-columns{

grid-template-columns:1fr;

}

.qm-video-grid{

grid-template-columns:1fr;

}

.qm-practice-grid{

grid-template-columns:repeat(2,1fr);

}

.qm-why-grid{

grid-template-columns:repeat(2,1fr);

}

.qm-contact-banner .container{

grid-template-columns:1fr;

}

.qm-services-intro p,

.qm-section-title p{

width:100%;

}

}


@media(max-width:576px){

.qm-services-grid{

grid-template-columns:1fr;

}

.qm-practice-grid{

grid-template-columns:1fr;

}

.qm-why-grid{

grid-template-columns:1fr;

}

.qm-hero{

height:220px;

}

.qm-hero-content h1{

font-size:34px;

}

.qm-hero-content p{

font-size:17px;

line-height:28px;

}

.qm-hero-buttons{

flex-direction:column;

}

}
/*=========================
Sticky Menu
=========================*/

.sticky{

position:fixed;

top:0;

left:0;

width:100%;

z-index:99999;

box-shadow:0 5px 20px rgba(0,0,0,.20);

animation:menuDown .4s;

}

@keyframes menuDown{

from{

transform:translateY(-100%);

}

to{

transform:translateY(0);

}

}


/*=========================
Back To Top
=========================*/

#backTop{

position:fixed;

right:30px;

bottom:30px;

width:55px;

height:45px;

background:#0B2D6B;

color:#fff;

display:flex;

justify-content:center;

align-items:center;

font-size:28px;

border-radius:50%;

cursor:pointer;

opacity:0;

visibility:hidden;

transition:.3s;

}

#backTop.show{

opacity:1;

visibility:visible;

}

#backTop:hover{

background:#C79A1B;

}


/*=========================
Animation
=========================*/

.qm-service-card,

.qm-practice-card,

.qm-why-grid div{

opacity:0;

transform:translateY(40px);

transition:.6s;

}

.showCard{

opacity:1 !important;

transform:translateY(0) !important;

}
/*==============================
HOME HERO
==============================*/

.qm-home-hero{

margin:25px 0;

}

.qm-home-grid{

display:grid;

grid-template-columns:70% 30%;

gap:25px;

align-items:start;

}


/*==============================
POPULAR POSTS
==============================*/

.qm-popular-side{

background:#fff;

border-radius:8px;

overflow:hidden;

box-shadow:0 5px 20px rgba(0,0,0,.08);

}

.qm-popular-side h3{

background:#000e36;

color:#fff;

padding:15px 20px;

margin:0;

font-size:24px;

}

.qm-popular-post{

display:flex;

padding:15px;

gap:15px;

border-bottom:1px solid #ececec;

transition:.3s;

}

.qm-popular-post:hover{

background:#f7f7f7;

}

.qm-popular-image img{

width:95px;

height:75px;

object-fit:cover;

border-radius:5px;

}

.qm-popular-content{

flex:1;

}

.qm-popular-content h4{

font-size:16px;

margin-bottom:8px;

line-height:22px;

}

.qm-popular-content h4 a{

color:#000e36;

text-decoration:none;

}

.qm-popular-content h4 a:hover{

color:#e0a800;

}

.qm-post-date{

font-size:13px;

color:#888;

}
.qm-slide-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    top: auto;

    width: 100%;
    min-height: 40%;

    padding: 30px 90px 35px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    z-index: 10;
}
/* ==========================================================
   Slider Text
   ========================================================== */

.qm-slide-overlay h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}


.qm-slide-overlay p {
    margin: 0 0 15px;
    color: #e0a800;
    font-size: 17px;
    line-height: 1.5;
}


.qm-slide-overlay a {
    display: inline-block;
    width: fit-content;
    padding: 9px 18px;

    background: #000e36;
    color: #ffffff;

    text-decoration: none;
    font-size: 15px;
    font-weight: 600;

    border-radius: 3px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.qm-slide-overlay a:hover {
    background: #e0a800;
    color: #000e36;
}
.qm-prev,
.qm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    background: rgba(0,14,54,.85);
    color: #fff;

    border: none;
    cursor: pointer;

    font-size: 24px;
    z-index: 20;

    transition: .3s;
}

.qm-prev {
    left: 20px;
}

.qm-next {
    right: 20px;
}

.qm-prev:hover,
.qm-next:hover {
    background: #e0a800;
}

/*=====================================
LATEST ARTICLES
=====================================*/

.latest-articles-slider{

    display:flex;
    flex-direction:column;

}

.latest-articles-item{

    display:flex;
    align-items:center;

    gap:15px;

    padding:12px;

    text-decoration:none;

    color:#222;

    border-bottom:1px solid #ececec;

    transition:.3s;

}

.latest-articles-item:hover{

    background:#f5f8ff;

}

.latest-articles-item:hover h4{

    color:#e0a800;

}

.latest-articles-thumb{

    width:70px;
    height:70px;

    flex-shrink:0;

    overflow:hidden;

    border-radius:6px;

}

.latest-articles-thumb img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.3s;

}

.latest-articles-item:hover img{

    transform:scale(1.08);

}

.latest-articles-info{

    flex:1;

}

.latest-articles-info h4{

    font-size:15px;

    line-height:22px;

    color:#000e36;

    margin:0 0 5px;

    transition:.3s;

}

.latest-articles-info span{

    color:#777;

    font-size:13px;

}

/* =========================================================
   QanoonMarkaz - Home Hero Responsive CSS
   ========================================================= */

.qm-home-hero {
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.qm-home-hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.qm-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    width: 100%;
    align-items: start;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

.qm-slider-side {
    width: 100%;
    min-width: 0;
}

.qm-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-sizing: border-box;
}

.qm-slide {
    position: relative;
    display: none;
    width: 100%;
}

.qm-slide.active {
    display: block;
}

.qm-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.qm-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78),
        rgba(0, 0, 0, 0.05) 70%
    );
}

.qm-slide-overlay .qm-container {
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
}

.qm-slide-overlay h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
}

.qm-slide-overlay p {
    margin: 0 0 15px;
    max-width: 700px;
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.qm-btn {
    display: inline-block;
    padding: 9px 18px;
    background: #e0a800;
    color: #000e36;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.qm-btn:hover {
    background: #fff;
}

/* =========================================================
   SLIDER BUTTONS
   ========================================================= */

.qm-prev,
.qm-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    font-size: 22px;
    line-height: 42px;
    text-align: center;

    cursor: pointer;
}

.qm-prev {
    left: 12px;
}

.qm-next {
    right: 12px;
}

.qm-prev:hover,
.qm-next:hover {
    background: #e0a800;
    color: #000e36;
}

/* =========================================================
   SLIDER DOTS
   ========================================================= */

.qm-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;

    display: flex;
    gap: 6px;
}

.qm-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.qm-dots button.active {
    background: #e0a800;
}

/* =========================================================
   LATEST NEWS
   ========================================================= */

.qm-column {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.qm-column h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;

    color: #000e36;
    font-size: 21px;
    line-height: 1.3;

    border-bottom: 2px solid #e0a800;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .qm-home-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .qm-slider-overlay .qm-container {
        padding: 22px;
    }

    .qm-slide-overlay h1 {
        font-size: 25px;
    }

    .qm-slide-overlay p {
        font-size: 14px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .qm-home-hero {
        padding: 12px 0;
    }

    .qm-home-hero .container {
        padding: 0 10px;
    }

    .qm-home-grid {
        gap: 20px;
    }

    .qm-slider {
        border-radius: 6px;
    }

    .qm-slide img {
        aspect-ratio: 16 / 10;
    }

    .qm-slide-overlay .qm-container {
        padding: 15px;
    }

    .qm-slide-overlay h1 {
        margin-bottom: 5px;
        font-size: 19px;
        line-height: 1.25;
    }

    .qm-slide-overlay p {
        margin-bottom: 9px;
        font-size: 12px;
        line-height: 1.4;
    }

    .qm-btn {
        padding: 7px 13px;
        font-size: 12px;
    }

    .qm-prev,
    .qm-next {
        width: 32px;
        height: 32px;
        font-size: 17px;
        line-height: 32px;
    }

    .qm-prev {
        left: 7px;
    }

    .qm-next {
        right: 7px;
    }

    .qm-dots {
        bottom: 7px;
        gap: 5px;
    }

    .qm-dots button {
        width: 7px;
        height: 7px;
    }

    .qm-column h3 {
        font-size: 18px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .qm-slide-overlay .qm-container {
        padding: 12px;
    }

    .qm-slide-overlay h1 {
        font-size: 17px;
    }

    .qm-slide-overlay p {
        font-size: 11px;
    }

    .qm-btn {
        padding: 6px 11px;
        font-size: 11px;
    }

    .qm-prev,
    .qm-next {
        width: 28px;
        height: 28px;
        font-size: 15px;
        line-height: 28px;
    }
}
