/* =========================================
   ANW SERVICES SECTION
========================================= */

.anw-services-section {
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.anw-services-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    box-sizing: border-box;
}


/* =========================================
   SERVICE CARD
========================================= */

.anw-service-card {
    position: relative;

    min-height: 190px;

    padding: 32px 30px;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    background: #f7f7f7;

    border: 1px solid #e2e2e2;
    border-radius: 0 0 28px 28px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;

    text-decoration: none !important;
    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================
   REMOVE LINK DEFAULT STYLING
========================================= */

.anw-service-card,
.anw-service-card:hover,
.anw-service-card:focus,
.anw-service-card:active,
.anw-service-card:visited {
    text-decoration: none !important;
}


/* =========================================
   SERVICE TITLE
========================================= */

.anw-service-card h3 {
    position: relative;
    z-index: 2;

    margin: 0 !important;
    padding: 0 !important;

    max-width: 90%;

    font-family: "Poppins", sans-serif;

    font-size: 24px;
    line-height: 1.2;

    font-weight: 800;

    letter-spacing: 0.2px;

    text-transform: uppercase;

    color: #006b3c;

    text-decoration: none !important;

    transition: color 0.3s ease;
}


/* =========================================
   ALTERNATING TITLE COLORS
========================================= */

/* Card 1, 4, 7, 10, 13, 16 */
.anw-service-card:nth-child(3n + 1) h3 {
    color: #006b3c;
}

/* Card 2, 5, 8, 11, 14, 17 */
.anw-service-card:nth-child(3n + 2) h3 {
    color: #b78620;
}

/* Card 3, 6, 9, 12, 15 */
.anw-service-card:nth-child(3n) h3 {
    color: #008b91;
}


/* =========================================
   BOTTOM DECORATIVE SHAPE
========================================= */

.anw-service-card::after {
    content: "";

    position: absolute;

    right: -20px;
    bottom: -30px;

    width: 135px;
    height: 115px;

    border: 2px solid rgba(80, 80, 80, 0.12);

    border-radius: 55% 45% 0 45%;

    transform: rotate(-8deg);

    pointer-events: none;
}


/* =========================================
   SECOND DECORATIVE LINE
========================================= */

.anw-service-card::before {
    content: "";

    position: absolute;

    right: 15px;
    bottom: 15px;

    width: 70px;
    height: 45px;

    border-right: 2px solid rgba(80, 80, 80, 0.10);
    border-bottom: 2px solid rgba(80, 80, 80, 0.10);

    border-radius: 0 0 25px 0;

    pointer-events: none;
}


/* =========================================
   HOVER EFFECT
========================================= */

.anw-service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.11);
}


/* =========================================
   HOVER TITLE
========================================= */

.anw-service-card:hover h3 {
    text-decoration: none !important;
}


/* =========================================
   FOCUS ACCESSIBILITY
========================================= */

.anw-service-card:focus {
    outline: none;
}

.anw-service-card:focus-visible {
    outline: 2px solid #008b91;
    outline-offset: 3px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .anw-services-section {
        padding: 10px 0;
    }

    .anw-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .anw-service-card {
        min-height: 175px;

        padding: 28px 25px;

        border-radius: 0 0 24px 24px;
    }

    .anw-service-card h3 {
        max-width: 92%;

        font-size: 21px;

        line-height: 1.2;
    }

    .anw-service-card::after {
        width: 115px;
        height: 100px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .anw-services-section {
        width: 100%;
        padding: 5px 0;
    }

    .anw-services-grid {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .anw-service-card {
        width: 100%;

        min-height: 145px;

        padding: 25px 22px;

        border-radius: 0 0 22px 22px;
    }

    .anw-service-card h3 {
        max-width: 92%;

        font-size: 19px;

        line-height: 1.25;
    }

    .anw-service-card::after {
        width: 105px;
        height: 90px;

        right: -18px;
        bottom: -25px;
    }

    .anw-service-card::before {
        right: 12px;
        bottom: 12px;

        width: 60px;
        height: 40px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .anw-services-section {
        padding: 5px 0;
    }

    .anw-services-grid {
        gap: 16px;
    }

    .anw-service-card {
        min-height: 135px;

        padding: 23px 20px;

        border-radius: 0 0 20px 20px;
    }

    .anw-service-card h3 {
        max-width: 94%;

        font-size: 18px;

        line-height: 1.25;
    }

    .anw-service-card::after {
        width: 95px;
        height: 80px;

        right: -15px;
        bottom: -22px;
    }

    .anw-service-card::before {
        right: 10px;
        bottom: 10px;

        width: 52px;
        height: 35px;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 360px) {

    .anw-service-card {
        min-height: 125px;

        padding: 21px 18px;
    }

    .anw-service-card h3 {
        font-size: 17px;
    }
}