﻿/* =========================================================
   WHY QOUMI SECTION
   ========================================================= */

.why-qoumi-section {
    width: 100%;
    padding: 65px 20px;
    background: #ffffff !important;
    color: #111111 !important;
    box-sizing: border-box;
    padding-top: 25px !important;
    padding-bottom: 65px;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.why-qoumi-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.why-qoumi-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 45px;
    text-align: center;
    margin-top: 0 !important;
    margin-bottom: 35px !important;
}

    .why-qoumi-heading h2 {
        margin: 0;
        padding: 0;
        font-size: 24px !important;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: 1px;
        color: #003f3d !important;
        text-align: center;
        margin-top: -17px;
       
    }

.heading-line {
    width: 88px;
    height: 4px; 
    flex: 0 0 88px;
    border-radius: 10px;
    background: #f28c00;
    margin-top:-80px;
}


/* =========================================================
   8 CARDS IN ONE ROW
   ========================================================= */

.why-qoumi-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 15px;
    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.why-qoumi-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 270px;
    padding: 30px 10px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}


    /* =========================================================
   GOLD TOP EFFECT
   ========================================================= */

    .why-qoumi-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: #f28c00;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.35s ease;
    }


/* =========================================================
   LARGE ICON
   ========================================================= */

.why-qoumi-icon {
    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(168, 117, 34, 0.30);
    color: #f28c00;
    font-size: 36px;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.why-qoumi-card h3 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 17px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111111 !important;
    text-align: center;
    word-break: normal;
    transition: color 0.35s ease;
}


/* =========================================================
   CARD TEXT
   ========================================================= */

.why-qoumi-card p {
    margin: 0;
    padding: 0;
    font-size: 13px !important;
    line-height: 1.35;
    font-weight: 100;
    color: #555555 !important;
    text-align: center;
    letter-spacing: -0.2px;
    white-space: nowrap;
    transition: color 0.35s ease;
}


/* =========================================================
   MOUSE OVER - GOLD CARD
   ========================================================= */

.why-qoumi-card:hover {
    background: #a87522 !important;
    border-color: #a87522 !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(168, 117, 34, 0.30);
}


    /* Top line */
    .why-qoumi-card:hover::before {
        transform: scaleX(1);
    }


    /* =========================================================
   HOVER ICON
   ========================================================= */

    .why-qoumi-card:hover .why-qoumi-icon {
        background: #ffffff !important;
        color: #a87522 !important;
        transform: scale(1.10);
    }


    /* =========================================================
   HOVER TITLE
   ========================================================= */

    .why-qoumi-card:hover h3 {
        color: #ffffff !important;
    }


    /* =========================================================
   HOVER TEXT
   ========================================================= */

    .why-qoumi-card:hover p {
        color: #ffffff !important;
    }


/* =========================================================
   LARGE DESKTOP
   8 CARDS IN ONE ROW
   ========================================================= */

@media (min-width: 1400px) {

    .why-qoumi-container {
        max-width: 1600px;
    }

    .why-qoumi-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 18px;
    }

    .why-qoumi-card {
        min-height: 285px;
    }
}


/* =========================================================
   NORMAL DESKTOP
   8 CARDS IN ONE ROW
   ========================================================= */

@media (min-width: 1200px) and (max-width: 1399px) {

    .why-qoumi-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 12px;
    }

    .why-qoumi-card {
        min-height: 260px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .why-qoumi-icon {
        width: 65px;
        height: 65px;
        min-width: 65px;
        min-height: 65px;
        font-size: 31px;
    }

    .why-qoumi-card h3 {
        font-size: 21px !important;
    }

    .why-qoumi-card p {
        font-size: 15px !important;
    }
}


/* =========================================================
   LAPTOP
   4 CARDS PER ROW
   ========================================================= */

@media (min-width: 992px) and (max-width: 1199px) {

    .why-qoumi-heading h2 {
        font-size: 27px !important;
    }

    .why-qoumi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .why-qoumi-card {
        min-height: 260px;
    }
}


/* =========================================================
   TABLET
   2 CARDS PER ROW
   ========================================================= */

@media (min-width: 576px) and (max-width: 991px) {

    .why-qoumi-section {
        padding: 55px 20px;
    }

    .why-qoumi-heading {
        margin-bottom: 35px;
    }

        .why-qoumi-heading h2 {
            font-size: 25px !important;
        }

    .heading-line {
        width: 55px;
        flex: 0 0 55px;
    }

    .why-qoumi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .why-qoumi-card {
        min-height: 270px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .why-qoumi-section {
        padding: 45px 15px;
    }


    /* Heading */

    .why-qoumi-heading {
        gap: 8px;
        margin-bottom: 30px;
    }

        .why-qoumi-heading h2 {
            max-width: 280px;
            font-size: 21px !important;
            line-height: 1.35;
            letter-spacing: 0.5px;
            white-space: normal;
        }

    .heading-line {
        width: 25px;
        flex: 0 0 25px;
        height: 3px;
    }


    /* Cards */

    .why-qoumi-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .why-qoumi-card {
        width: 100%;
        max-width: 350px;
        min-height: 270px;
        margin: 0 auto;
        padding: 30px 20px 25px;
    }


    /* Large mobile icon */

    .why-qoumi-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        font-size: 37px;
        margin-bottom: 18px;
    }


    .why-qoumi-card h3 {
        font-size: 25px !important;
    }


    .why-qoumi-card p {
        font-size: 17px !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .why-qoumi-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .why-qoumi-card {
        max-width: 320px;
        min-height: 255px;
    }

    .why-qoumi-heading h2 {
        font-size: 18px !important;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .why-qoumi-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
}
