/* Services Page Styles */

.services-detail {
    background-color: #f8f9fa;
}

.service-row {
    padding: 2rem 0;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   FULL HEIGHT IMAGE FIX
   ============================================= */

/* The card row must stretch both columns to equal height */
.service-card .row {
    align-items: stretch !important;
}

/* Image column: must be flex so the wrapper inside can grow */
.service-card .img-col {
    display: flex;
    padding: 0;
}

/* Wrapper fills the entire column — position:relative anchors the absolute img */
.service-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 350px;
    /* fallback so it never collapses */
}

/* Image fills wrapper via absolute positioning — this is the only reliable method */
.service-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    /* Override Bootstrap's img-fluid max-width/height constraints */
    max-width: none !important;
    max-height: none !important;
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.05);
}

/* =============================================
   Content styles
   ============================================= */

.service-content {
    padding: 1rem;
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    color: #e9ecef;
    line-height: 1;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2a5298;
    position: relative;
    padding-bottom: 1rem;
}

.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: #2a5298;
    border-radius: 2px;
}

.service-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.service-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style-type: none !important;
}

.service-features li i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-features li::marker {
    content: none;
}

.services-detail hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 3rem 0;
}

.cta-section {
    background: linear-gradient(135deg, #2a5298 0%, #2a5298 100%);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 991px) {
    .service-image-wrapper {
        min-height: 300px;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-description {
        font-size: 1rem;
    }

    .service-features li {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .service-image-wrapper {
        min-height: 250px;
    }

    .service-title {
        font-size: 1.75rem;
    }

    .service-content {
        padding: 0;
    }
}

html {
    scroll-behavior: smooth;
}

.service-row {
    scroll-margin-top: 100px;
}
