
.hero-section-base {
  background: url('../images/bg/services/hero-section.jpeg') center center / cover no-repeat !important;
}

.hero-section-base .overlay {
  background: rgba(0, 0, 0, 0.7) !important;
}

.capabilities-section {
    background-color: #ffffff;
}

/* --- CAPABILITIES TITLE --- */
.capabilities-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* --- CAPABILITIES TEXT --- */
.capabilities-text {
    font-size: 0.95rem;
    color: #555;
    max-width: 600px;
}

/* --- SERVICES GRID SECTION --- */
.services-grid-section {
    background-color: var(--surface-soft);
}

/* --- SERVICE CARD --- */
.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;

    transition: all 0.3s ease;
}

/* --- HOVER EFFECT --- */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(39, 28, 32, 0.08);
}

/* --- IMAGE CONTAINER --- */
.service-card-image {
    position: relative;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* --- OVERLAY --- */
.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(230, 0, 35, 0.75); /* red with 75% opacity */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;
    padding: 20px;

    opacity: 0;
    transition: 0.3s ease;
}

/* --- OVERLAY TEXT --- */
.service-overlay h5 {
    margin-bottom: 8px;
    font-weight: 700;
}

.service-overlay span {
    font-size: 0.875rem;
}

.service-overlay .plus {
    font-weight: bold;
    margin-left: 4px;
}

/* --- HOVER EFFECT --- */
.service-card:hover .service-overlay {
    opacity: 1;
}

/* --- CARD BODY --- */
.service-card-body {
    padding: 20px 18px;
}

.service-card-body h6 {
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card-body p {
    font-size: 0.875rem;
    color: #555;

    /* clamp text */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .capabilities-title {
        font-size: 1.5rem;
    }

    .capabilities-text {
        max-width: 100%;
    }

    .service-card-image img {
        height: 220px;
    }
}

@media (max-width: 767.98px) {
    .service-card-image img {
        height: 200px;
    }

    .service-card-body {
        padding: 16px 14px;
    }

    .service-card-body h6 {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .capabilities-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .capabilities-title {
        font-size: 1.3rem;
    }

    .services-grid-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .service-card-image img {
        height: 180px;
    }

    .service-card-body {
        padding: 14px 12px;
    }
}