/* ==========================================
   Services Hero Banner
   ========================================== */
.services-hero {
    position: relative;
    width: 100%;
    height: 480px;
    background: url('../images/servicesp.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 55, 0.7);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-overlay h1 {
    font-size: 38px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-overlay p {
    font-size: 18px;
    line-height: 1.5;
    opacity: 0.95;
}

/* ==========================================
   Main Content Layout
   ========================================== */
.services-content {
    background-color: #f8fafc;
    padding: 60px 8%;
}

/* Section Headings */
.top-services-container h2,
.zigzag-section h2,
.why-choose-us h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 10px;
}

.top-services-container h2::after,
.zigzag-section h2::after,
.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1e3a8a;
    border-radius: 2px;
}

/* ==========================================
   1. Top 3 Services Grid (Matches About Page)
   ========================================== */
.top-services-container {
    margin-bottom: 70px;
}

.top-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 4px solid #1e3a8a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Icons for Top Services */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon img {
    transform: scale(1.60);
}

/* ==========================================
   2. Zig-Zag Layout Section
   ========================================== */
.zigzag-section {
    margin-bottom: 70px;
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 40px;
    /* background: #ffffff; */
    padding: 30px;
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    margin-bottom: 30px;
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-image {
    flex: 1;
    min-width: 400px;
    max-height: 700px;
    overflow: hidden;
    border-radius: 8px;
}

.zigzag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.zigzag-row:hover .zigzag-image img {
    transform: scale(1.03);
}

.zigzag-text {
    flex: 1;
    min-width: 280px;
}

.zigzag-text h3 {
    color: #1e3a8a;
    font-size: 22px;
    margin-bottom: 12px;
}

.zigzag-text p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   3. Why Choose Us Section
   ========================================== */
.why-choose-us {
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.why-intro {
    text-align: center;
    color: #555;
    font-size: 16px;
    max-width: 750px;
    margin: -15px auto 35px auto;
    line-height: 1.6;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.why-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
}

.why-card h4 {
    color: #1e3a8a;
    font-size: 17px;
    margin-bottom: 6px;
}

.why-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 768px) {
    .services-hero {
        height: 260px;
    }

    .hero-overlay h1 {
        font-size: 30px;
    }

    .hero-overlay p {
        font-size: 16px;
    }

    .services-content {
        padding: 40px 5%;
    }

    .top-services-grid {
        grid-template-columns: 1fr;
    }

    /* Collapse Zig-Zag to stacked order on mobile */
    .zigzag-row,
    .zigzag-row.reverse {
        flex-direction: column;
        padding: 20px;
    }

    .why-choose-us {
        padding: 30px 20px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Why Choose Us PNG Icon Container */
.why-icon-img {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Optional hover scale on PNG */
.why-card:hover .why-icon-img img {
    transform: scale(1.12);
}