/* ==================== SERVICES PAGE HERO (matches About hero pattern) ==================== */
.service-hero-section {
    position: relative;
    width: 100%;
    height: 390px;
    background-image: url('../images/about/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    font-family: var(--font-main, 'Segoe UI', sans-serif);
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 85, 59, 0.568);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 15px;
    margin-left: 60px;
}

.service-hero-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-hero-content p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

@media (max-width: 768px) {
    .service-hero-section {
        height: 350px;
    }

    .service-hero-content h1 {
        margin-top: 60px;
        margin-left: -20px;
        font-size: 32px;
    }

    .service-hero-content p {
        font-size: 14px;
        max-width: 100%;
        margin-left: -20px;

    }
}









/* ==================== EXPERT SOLUTIONS SECTION STYLES ==================== */
.expert-solutions-section {
    padding: 60px 0;
    background-color: #ffffff;
    font-family: var(--font-main, 'Segoe UI', sans-serif);
    overflow: hidden; /* එළියට යන රූප කපා හැරීමට */
}

.es-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* --- Left Column: Content --- */
.es-left-col {
    flex: 1;
}

.es-subtitle {
    display: block;
    color: #1e5809; /* Coral/Orange Color */
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.es-heading {
    font-size: 46px;
    font-weight: 800;
    color: #1a1a1a; /* Very Dark Gray/Black */
    line-height: 1.15;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
}

.es-highlight-box {
    border-left: 4px solid #5aa63c; /* තැඹිලි පාට ඉර */
    padding-left: 20px;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 25px;
}

.es-desc {
    font-size: 15px;
    color: #777777; /* Gray text */
    line-height: 1.7;
    margin: 0 0 35px 0;
    max-width: 90%;
}

.es-btn {
    display: inline-block;
    background-color: #00b47a; /* Bright Green */
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px; /* පින්තූරේ විදියටම රවුම් කරලා (Pill shape) */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.es-btn:hover {
    background-color: #009363;
    transform: translateY(-2px);
}

/* --- Right Column: Images & Cards --- */
.es-right-col {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 40px; /* Sub image එකට ඉඩ තියන්න */
}

/* Image Composition */
.es-image-group {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.es-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    /* පින්තූරේ විදියට වම් පැත්ත රවුම් කරලා දකුණු පැත්ත සාමාන්‍ය විදියට තියන්න */
    border-radius: 150px 20px 20px 150px;
    display: block;
}

.es-sub-img {
    position: absolute;
    bottom: 40px;
    left: -80px; /* වමට පනින්න */
    width: 180px;
    height: 240px;
    object-fit: cover;
    /* Arch හැඩය (උඩ රවුම්, යට කෙලින්) */
    border-radius: 100px 100px 20px 20px;
    border: 8px solid #ffffff; /* සුදු border එක */
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Green Experience Badge */
.es-exp-badge {
    position: absolute;
    bottom: 20px;
    left: -50px;
    background-color: #00b47a; /* Bright Green */
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0, 180, 122, 0.3);
}

.es-exp-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.es-exp-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Floating White Cards */
.es-cards-group {
    position: absolute;
    right: -30px; /* ප්‍රධාන පින්තූරෙන් දකුණට පනින්න */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 4;
}

.es-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    width: 280px;
    transition: transform 0.3s ease;
}

.es-card:hover {
    transform: translateX(-5px); /* Hover කරද්දි ලාවට වමට එනවා */
}

.es-card-icon {
    font-size: 24px;
    color: #00b47a; /* Bright Green Icon */
}

.es-card-text {
    flex: 1;
}

.es-card-text h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.es-card-text p {
    font-size: 12px;
    color: #777777;
    margin: 0;
    line-height: 1.4;
}

/* ==================== MOBILE RESPONSIVE ==================== */

/* Tablet View */
@media (max-width: 991px) {
    .es-container {
        flex-direction: column; /* Tablet වලදී එක යට එක වැටෙන්න */
        gap: 80px;
    }
    
    .es-right-col {
        padding-left: 0;
        width: 100%;
        justify-content: center;
        flex-direction: column; /* Cards ටික යටට යවන්න */
    }
    
    .es-image-group {
        margin-left: 60px; /* Sub image එකට වම් පැත්තෙන් ඉඩ තියන්න */
    }
    
    .es-cards-group {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 40px;
        flex-direction: row; /* Tablet වලදී Cards හරහට වැටෙන්න */
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .expert-solutions-section {
        padding: 60px 0;
    }

    .es-heading {
        font-size: 32px;
    }
    
    .es-image-group {
        margin-left: 30px;
    }
    
    .es-main-img {
        height: 400px;
        border-radius: 80px 20px 20px 80px; /* Mobile වලදී curve එක පොඩි කරනවා */
    }
    
    .es-sub-img {
        width: 140px;
        height: 180px;
        left: -40px;
        bottom: 50px;
    }
    
    .es-exp-badge {
        left: -20px;
        bottom: 10px;
        padding: 10px 15px;
    }
    
    .es-exp-num {
        font-size: 24px;
    }
    
    .es-cards-group {
        flex-direction: column; /* Mobile වලදී ආයෙමත් Cards එක යට එකට වැටෙන්න */
        width: 100%;
        align-items: center;
    }
    
    .es-card {
        width: 100%;
        max-width: 300px;
    }
}