/* ==========================================================================
   ERP.css
   Styles for the "Our Services" (erp-services) section on index.aspx
   Self-contained: does not require Bootstrap to be loaded.
   Uses ISMS brand palette: navy #36384b, coral #D86379, muted gray #6C6B6B
   ========================================================================== */

/* ---- Layout helpers used by the section markup ---- */
.container-xl {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-light {
    background-color: #f7f7f9;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.mb-4 {
    margin-bottom: 1.25rem;
}

.mb-3 {
    margin-bottom: 0.9rem;
}

.fw-bold {
    font-weight: 700;
}

.text-muted {
    color: #6C6B6B;
}

.h-100 {
    height: 100%;
}

/* ---- Neutralize the sitewide "div:after{clear:both}" clearfix
       inside this section only -- it injects a phantom flex/grid item
       into .row and was breaking horizontal card alignment. ---- */
.erp-services div:after {
    content: none !important;
    display: none !important;
}

/* ---- Grid: row / col-12 / col-md-6 / col-lg-4 / g-4 ----
   Built with CSS Grid instead of flexbox so it is immune to the
   clearfix pseudo-element issue above. ---- */
.erp-services .row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .erp-services .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .erp-services .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.erp-services .row > [class^="col-"] {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- Section heading ---- */
.erp-services {
    font-family: 'Nunito', sans-serif;
}

    .erp-services h2 {
        font-family: 'Courgette', cursive;
        font-weight: 400;
        font-size: 2.4em;
        color: #36384b;
        margin-bottom: 10px;
    }

    .erp-services > .container-xl > .text-center > p {
        font-size: 1.05em;
        line-height: 1.6;
        color: #6C6B6B;
    }

/* ---- Service card ---- */
.erp-service-card {
    background: #fff;
    border: 1px solid #EFEFEF;
    border-radius: 6px;
    box-shadow: 0 0 12px #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .erp-service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 24px rgba(54, 56, 75, 0.14);
        border-color: #D86379;
    }

    .erp-service-card img.erp-service-img {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        max-height: 200px !important;
        min-height: 200px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        border: none !important;
        transition: transform 0.4s ease;
    }

    .erp-service-card:hover .erp-service-img {
        transform: scale(1.05);
    }

.erp-service-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .erp-service-body h3 {
        font-family: 'Economica', sans-serif;
        font-size: 1.35em;
        font-weight: 400;
        color: #36384b;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .erp-service-body p {
        font-size: 0.92em;
        line-height: 1.6;
        color: #8a8a8a;
        margin-bottom: 0;
    }

/* ---- Stats strip: total registrations / working colleges / transactions ---- */
.statsStrip {
    background-color: #36384b;
    padding: 44px 0;
}

    .statsStrip .container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        text-align: center;
    }

    .statsStrip .statBox {
        padding: 0 10px;
        border-right: 1px solid rgba(255,255,255,0.15);
    }

        .statsStrip .statBox:last-child {
            border-right: none;
        }

    .statsStrip .statNumber {
        font-family: 'Economica', sans-serif;
        font-size: 2.8em;
        font-weight: 400;
        color: #fff;
        line-height: 1.2;
    }

        .statsStrip .statNumber span.statAccent {
            color: #D86379;
        }

    .statsStrip .statLabel {
        font-family: 'Nunito', sans-serif;
        font-size: 0.95em;
        color: #cfd0d8;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-top: 6px;
    }

@media only screen and (max-width: 767px) {
    .statsStrip .container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .statsStrip .statBox {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding-bottom: 20px;
    }

        .statsStrip .statBox:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

    .statsStrip .statNumber {
        font-size: 2.2em;
    }
}

/* ---- Responsive tweaks ---- */
@media only screen and (max-width: 767px) {
    .erp-services h2 {
        font-size: 1.9em;
    }

    .erp-service-img {
        height: 180px;
    }

    .erp-service-body {
        padding: 16px 18px 20px;
    }
}
