/*====================================================
QANOON MARKAZ
ABOUT PAGE CSS
PART 1
Banner + Welcome + Mission + Vision
====================================================*/


/*=========================================
ABOUT PAGE
=========================================*/

.qm-about-page{
    background:#f4f6fb;
}


/*=========================================
ABOUT BANNER
=========================================*/

.qm-about-banner{
    width:100%;
    overflow:hidden;
    background:#fff;
}

.qm-about-banner img{
    display:block;
    width:100%;
    height:auto;
}


/*=========================================
WELCOME
=========================================*/

.qm-about-intro{

    padding:40px 0;
    background:#ffffff;
    text-align:center;

}

.qm-about-intro h1{

    font-size:52px;
    color:#000e36;
    font-weight:700;
    margin-bottom:20px;

}

.qm-about-divider{

    width:700px;
    height:4px;
    background:#c79a1b;
    margin:0 auto 35px;

}

.qm-about-intro p{

    max-width:1100px;
    margin:auto;
    font-size:20px;
    line-height:38px;
    color:#555;

}


/*=========================================
MISSION & VISION
=========================================*/

.qm-mission-section{

    padding:40px 0;
    background:#ececec;

}

.qm-mission-section-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:35px;

}

.qm-mission-section-box{

    background:#ffffff;
    padding:45px;
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    border-top:5px solid #c79a1b;
    transition:.35s;

}

.qm-mission-section-box:hover{

    transform:translateY(-8px);

}

.qm-mission-section-box{

    font-size:34px;
    color:#000e36;
    margin-bottom:20px;
    align-items: center;

}

.qm-divider-small{

    width:170px;
    height:4px;
    background:#c79a1b;
    margin-bottom:25px;

}

.qm-mission-section-box{

    color:#000e36;
    font-size:19px;
    line-height:34px;
    

}


/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:991px){

.qm-about-intro{

padding:60px 20px;

}

.qm-about-intro h1{

font-size:42px;

}

.qm-about-intro p{

font-size:18px;
line-height:32px;

}

.qm-mission-section-grid{

grid-template-columns:1fr;

}

.qm-mission-section-box{

padding:35px;

}

}


@media(max-width:576px){

.qm-about-intro h1{

font-size:34px;

}

.qm-about-intro p{

font-size:17px;
line-height:30px;

}

.qm-mission-section-box h2{

font-size:28px;

}

.qm-mission-section-box{

padding:28px;

}

}
/*====================================================
ABOUT PAGE CSS
PART 2
CORE VALUES + PROFESSIONAL TEAM
====================================================*/


/*=========================================
CORE VALUES
=========================================*/

.qm-core-values{

    padding:30px 0;
    background:#ffffff;

}

.qm-section-title{

    text-align:center;
    margin-bottom:60px;

}

.qm-section-title h2{

    font-size:46px;
    color:#000e36;
    font-weight:700;
    margin-bottom:18px;

}

.qm-core-values-section-title p{

    max-width:900px;
    margin:auto;
    color:#666;
    font-size:19px;
    line-height:34px;

}

.qm-core-values-grid{

    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:15px;

}

.qm-core-values-card{

    background:#ffffff;
    border-radius:10px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.35s;

}

.qm-core-values-card:hover{

    background:#000e36;
    transform:translateY(-8px);

}

.qm-core-values-card img{

    width:85px;
    height:85px;
    object-fit:contain;
    margin-bottom:20px;

}

.qm-core-values-card h3{

    font-size:22px;
    color:#000e36;
    transition:.35s;

}

.qm-core-values-card:hover h3{

    color:#ffffff;

}


/*=========================================
TEAM
=========================================*/
/*==============================
TEAM
==============================*/

.qm-team{
    padding:40px 0;
    background:#f4f6fb;
}

.qm-team-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
    align-items:stretch;
}

.qm-team-cards{
    background:#fff;
    border-radius:12px;
    padding:20px 18px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);

    display:flex;
    flex-direction:column;
}

.qm-team-image{
    width:170px;
    height:170px;
    margin:0 auto 20px;
    border-radius:50%;
    overflow:hidden;
    border:4px solid #e0a800;
}

.qm-team-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.qm-team-cards h3{
    color:#000e36;
    font-size:18px;
    margin:0 0 8px;
    min-height:20px;
}

.qm-team-cards h4{
    font-size:16px;
    color:#222;
    margin-bottom:12px;
    min-height:35px;
}

.qm-team-divider{
    width:90px;
    height:3px;
    background:#e0a800;
    margin:12px auto 15px;
}

.qm-team-cards h5{
    color:#d62828;
    font-size:18px;
    margin-bottom:15px;
    min-height:45px;
}

.qm-team-cards p{
    color:#555;
    font-size:17px;
    line-height:20px;

    flex:1;
    margin-bottom:25px;
}

.qm-team-cards .qm-btn{
    display:inline-block;
    padding:14px 30px;
    background:#c79a1b;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    margin-top:auto;
}

.qm-team-cards .qm-btn:hover{
    background:#ab8111;
}


/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:1200px){

.qm-values-grid{

grid-template-columns:repeat(3,1fr);

}

.qm-team-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:991px){

.qm-values-grid{

grid-template-columns:repeat(2,1fr);

}

.qm-team-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:576px){

.qm-values-grid{

grid-template-columns:1fr;

}

.qm-team-grid{

grid-template-columns:1fr;

}

.qm-team-image{

width:150px;
height:150px;

}

.qm-team-cards p{

min-height:auto;

}

}
/*====================================================
ABOUT PAGE CSS
PART 3
WHY CHOOSE US + ANIMATION + RESPONSIVE
====================================================*/


/*=========================================
WHY CHOOSE US
=========================================*/

.qm-why-about{

    padding:50px 0;
    background:#ffffff;

}

.qm-why-grid{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin-top:60px;

}

.qm-why-card{

    background:#ffffff;
    border-radius:12px;
    text-align:center;
    padding:30px 20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    border-top:5px solid #c79a1b;

}

.qm-why-card:hover{

    transform:translateY(-10px);
    background:#000e36;

}

.qm-why-card img{

    width:100px;
    height:100px;
    object-fit:contain;
    margin-bottom:20px;

}

.qm-why-card h3{

    color:#000e36;
    font-size:22px;
    font-weight:700;
    line-height:30px;
    transition:.35s;

}

.qm-why-card:hover h3{

    color:#ffffff;

}

.qm-why-card p{

    margin-top:15px;
    color:#666;
    font-size:16px;
    line-height:28px;
    transition:.35s;

}

.qm-why-card:hover p{

    color:#f2f2f2;

}


/*=========================================
SCROLL ANIMATION
=========================================*/

.qm-value-card,
.qm-team-card,
.qm-mission-box,
.qm-why-card{

    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;

}

.qm-show{

    opacity:1 !important;
    transform:translateY(0) !important;

}


/*=========================================
RESPONSIVE
=========================================*/

@media(max-width:1200px){

.qm-why-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:991px){

.qm-why-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:576px){

.qm-why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.qm-section-title h2{

font-size:34px;

}

.qm-section-title p{

font-size:17px;
line-height:30px;

}

.qm-why-card{

padding:25px 20px;

}

}
/* ==========================================================
   ABOUT PAGE — FINAL RESPONSIVE FIX
   ========================================================== */


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 991px) {

    /* About divider */
    .qm-about-divider {
        width: 70%;
        max-width: 700px;
    }

    /* Core Values */
    .qm-core-values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Team */
    .qm-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Why Choose */
    .qm-why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 576px) {

    /* ABOUT INTRO */
    .qm-about-intro {
        padding: 40px 15px;
    }

    .qm-about-intro h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .qm-about-intro p {
        font-size: 16px;
        line-height: 28px;
        width: 100%;
    }


    /* ABOUT DIVIDER */
    .qm-about-divider {
        width: 80%;
        max-width: 350px;
        height: 3px;
        margin: 0 auto 25px;
    }


    /* SMALL DIVIDER */
    .qm-divider-small {
        width: 100px;
        max-width: 100%;
        height: 3px;
        margin-bottom: 20px;
    }


    /* MISSION & VISION */
    .qm-mission-section {
        padding: 35px 15px;
    }

    .qm-mission-section-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qm-mission-section-box {
        padding: 25px 20px;
        font-size: 17px;
        line-height: 28px;
        box-sizing: border-box;
    }

    .qm-mission-section-box h2 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 15px;
    }


    /* ======================================================
       CORE VALUES
       ====================================================== */

    .qm-core-values {
        padding: 40px 15px;
    }

    .qm-section-title {
        margin-bottom: 35px;
    }

    .qm-section-title h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .qm-core-values-section-title p {
        font-size: 16px;
        line-height: 27px;
        width: 100%;
    }

    .qm-core-values-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
    }

    .qm-core-values-card {
        width: 100%;
        box-sizing: border-box;
        padding: 25px 20px;
    }

    .qm-core-values-card img {
        width: 75px;
        height: 75px;
        margin-bottom: 15px;
    }

    .qm-core-values-card h3 {
        font-size: 20px;
        line-height: 27px;
    }


    /* ======================================================
       TEAM
       ====================================================== */

    .qm-team {
        padding: 40px 15px;
    }

    .qm-team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qm-team-cards {
        width: 100%;
        box-sizing: border-box;
        padding: 25px 20px;
    }

    .qm-team-image {
        width: 140px;
        height: 140px;
    }


    /* ======================================================
       WHY CHOOSE US
       ====================================================== */

    .qm-why-about {
        padding: 45px 15px;
    }

    .qm-why-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 35px;
        width: 100%;
    }

    .qm-why-card {
        width: 100%;
        box-sizing: border-box;
        padding: 25px 20px;
    }

    .qm-why-card img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .qm-why-card h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .qm-why-card p {
        font-size: 15px;
        line-height: 26px;
    }

}