/* Services Page Styles */


/* Hero Section */

.services-hero {
    background-image: url('../assect/images/services/1.png');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 72, 60, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #42DE84;
    margin: 0;
}


/* Services Introduction */

.services-intro {
    padding: 60px 0 40px;
    text-align: center;
}

.services-intro h2 {
    font-size: 40px;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 700;
}

.services-intro p {
    max-width: 1000px;
    margin: 0 auto;
    color: #9D9D9D;
    line-height: 1.6;
    font-size: 22px;
}


/* Services Categories */

.services-categories {
    padding: 0 0 80px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
    width: 100%;
}

.service-category {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    /* Prevent category from shrinking */
    padding: 30px 0 0;
    box-sizing: border-box;
}


/* Service category slider container */

.service-category-slider {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.category-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.category-header h3 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.highlight {
    color: #0A483C;
    font-weight: 700;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 30px;
    margin: 15px auto;
    max-width: 800px;
}

.feature {
    position: relative;
    padding: 0 15px;
    font-size: 22px;
    color: #9D9D9D;
    display: inline-block;
}

.feature:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: #ccc;
}


/* Remove bullet points from features */

.feature::before {
    display: none;
}

.category-content {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    padding: 30px 0 0;
    background-color: white;
    align-items: center;
}

.service-image {
    overflow: hidden;
    border-radius: 8px;
    order: -1;
    /* Place image on the left */
}

.service-details h4 {
    font-size: 36px;
    margin: 0 0 25px;
    color: #000000;
    font-weight: 600;
}

.service-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.service-number {
    background-color: #237C6F;
    color: white;
    width: 31px;
    height: 31px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 15px;
    margin-top: 3px;
    font-size: 26px;
}

.service-text h5 {
    margin: 0 0 5px;
    font-size: 22px;
    color: #000000;
    font-weight: 600;
}

.service-text p {
    margin: 0;
    color: #000000;
    line-height: 1.5;
    font-size: 22px;
}


/* Slider navigation buttons */

.slider-nav {
    background-color: white;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.slider-nav:hover {
    background-color: #0A483C;
    color: white;
    box-shadow: 0 5px 15px rgba(10, 72, 60, 0.2);
}

.prev-btn {
    margin-right: 20px;
}

.next-btn {
    margin-left: 20px;
}

.service-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #e6e6e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #237C6F;
    transform: scale(1.2);
}


/* Enhanced mobile-specific styles */

@media screen and (max-width: 768px) {
    .services-intro h2 {
        font-size: 1.8rem;
    }
    .services-hero {
        height: 300px;
        margin-top: 59px;
    }
    /* Main section adjustments */
    .services-intro {
        padding: 40px 0 30px;
    }
    .services-intro h2 {
        font-size: 1.8rem;
    }
    .services-intro p {
        font-size: 16px;
        padding: 0 15px;
    }
    .services-categories {
        padding: 20px 0 50px;
    }
    /* Category layout improvements */
    .service-category {
        padding: 15px;
        background-color: #f9f9f9;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .category-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        background-color: white;
        border-radius: 8px;
    }
    /* Header adjustments */
    .category-header {
        order: 1;
        padding: 10px 10px 15px;
        margin-bottom: 0;
    }
    .category-header h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    /* Image optimizations */
    .service-image {
        order: 2;
        margin: 0 auto 15px;
        max-width: 280px;
        /* Limit image width on mobile */
        width: 100%;
        height: auto;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }
    .service-image img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        aspect-ratio: 16/9;
        /* Maintain aspect ratio */
    }
    /* Service details adjustments */
    .service-details {
        order: 3;
        width: 100%;
        padding: 5px;
    }
    .service-details h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        text-align: center;
    }
    .service-item {
        margin-bottom: 15px;
        background-color: #f9f9f9;
        padding: 10px;
        border-radius: 6px;
    }
    .service-number {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        margin-right: 10px;
    }
    .service-text h5 {
        font-size: 1rem;
    }
    .service-text p {
        font-size: 16px;
    }
    /* Feature list improvements */
    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 0;
        text-align: center;
        font-size: 0.85rem;
    }
    .feature {
        padding: 0 10px;
        margin-bottom: 5px;
        display: inline-block;
    }
    .feature:not(:last-child)::after {
        content: '•';
        position: absolute;
        right: -2px;
        color: #ccc;
    }
    /* Navigation improvements */
    .slider-nav {
        width: 32px;
        height: 32px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    .prev-btn {
        left: 0;
        margin-right: 0;
    }
    .next-btn {
        right: 0;
        margin-left: 0;
    }
    .slider-nav i {
        font-size: 14px;
    }
    /* Pagination dots */
    .service-pagination {
        margin-top: 15px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
}


/* Extra small devices */

@media screen and (max-width: 480px) {
    .service-image {
        max-width: 240px;
        /* Even smaller image for very small screens */
    }
    .feature-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    .feature {
        text-align: center;
        padding: 5px;
        font-size: 16px;
    }
    .feature:not(:last-child)::after {
        display: none;
    }
    .service-category {
        padding: 10px;
    }
    .category-content {
        padding: 10px;
    }
}