  /* ---------------------------------------------------------------------- */
/* --- COLOR PALETTE & GLOBAL RESET --- */
/* ---------------------------------------------------------------------- */
:root {
    /* Primary (Bright Green) */
    --color-primary: #22c55e;
    /* Dark Text, Primary Headers */
    --color-text-dark: #1e293b;
    /* Body Text, Secondary */
    --color-text-grey: #475569;
    /* Light Grey Backgrounds */
    --color-bg-light: #f8fafc;
    /* Card/Element Borders */
    --color-border-subtle: #e2e8f0;
    /* Hero Overlay (Slate 950 with transparency) */
    --color-hero-overlay: rgba(13, 22, 38, 0.85);
    /* White */
    --color-white: #ffffff;
}

/* Base container for content width and centering */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* General Section Padding */
section {
    padding: 6rem 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 0;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

p {
    color: var(--color-text-grey);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------- */
/* --- BUTTON STYLES (Reused Theme) --- */
/* ---------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn.primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn.primary:hover {
    background-color: #16a34a;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    border-color: var(--color-border-subtle);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    color: var(--color-primary);
}

/* Read More Button (Subtle/Inline for related cards) */
.btn.read-more {
    padding: 0;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    border: none;
    align-self: flex-start;
}

.btn.read-more:hover {
    color: #16a34a;
    text-decoration: underline;
    background-color: transparent;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------------------- */
/* --- HERO SECTION: .service-detail-hero --- */
/* ---------------------------------------------------------------------- */
.service-detail-hero {
    position: relative;
    padding: 10rem 0 6rem;
    background-size: cover;
    background-position: center;
    text-align: center;
    /* Ensures minimum height for impact */
    min-height: 450px;
    display: flex;
    align-items: center;
}

.service-detail-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-hero-overlay); /* Slate 950 with opacity */
    z-index: 1;
}

.service-detail-hero .container {
    position: relative;
    z-index: 2;
}

.service-detail-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* --- MAIN CONTENT: .service-detail-content --- */
/* ---------------------------------------------------------------------- */
.service-detail-content {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.green-line {
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.service-info h2 {
    margin-bottom: 2rem;
}

.service-info #serviceImage {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight {
    background-color: var(--color-bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.highlight h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* CTA buttons under content */
.service-detail-content .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
}

/* ---------------------------------------------------------------------- */
/* --- RELATED SERVICES (Global Horizontal Scroll) --- */
/* ---------------------------------------------------------------------- */
.related-services {
    background-color: var(--color-white);
    padding-bottom: 6rem;
}

.related-services h2 {
    margin-bottom: 2rem;
    text-align: center; /* FIXED: Center the heading */
}

.carousel-controls {
    /* Adjusted layout to accommodate global scrolling, no need for button alignment */
    display: block; 
}

/* HIDE NAV BUTTONS: No longer needed for global scroll UI */
.nav-btn {
    display: none; 
}

.carousel-wrapper {
    /* CRITICAL: Enable horizontal scrolling globally */
    overflow-x: scroll; 
    overflow-y: hidden;
    width: 100%;
    /* Enables smooth scrolling on touch devices */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; 
}

.related-grid {
    display: flex; 
    /* Ensures cards stay in one horizontal line */
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding-bottom: 1rem; /* Space for scrollbar */
}

.related-card {
    /* Critical for horizontal layout and scrolling */
    min-width: 250px;
    max-width: 300px;
    width: 100%;
    flex-shrink: 0; /* Ensures cards don't shrink when scrolling */
    scroll-snap-align: start; /* Optional: adds a nice snap effect */

    background-color: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.1);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.related-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}


/* ---------------------------------------------------------------------- */
/* --- FINAL CTA (Reusable block) --- */
/* ---------------------------------------------------------------------- */
.final-cta {
    background-color: var(--color-bg-light);
    text-align: center;
    padding: 8rem 0;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.final-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ---------------------------------------------------------------------- */
/* --- RESPONSIVENESS (Mobile/Tablet Optimizations) --- */
/* ---------------------------------------------------------------------- */

/* Tablet and Smaller Desktop (< 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .service-detail-hero {
        min-height: 350px;
        padding: 8rem 0 4rem;
    }

    .service-highlights {
        grid-template-columns: 1fr; /* Stack highlights vertically */
    }
}

/* Mobile View (Max 768px) */
@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .service-detail-hero {
        padding: 6rem 0 3rem;
    }

    .service-detail-content .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    .service-detail-content .cta-buttons .btn {
        width: 100%;
    }

    /* Adjust padding/margin for final CTA */
    .final-cta {
        padding: 5rem 0;
    }
    
    .final-cta .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Removed redundant mobile scrolling styles as they are now set globally. */
}
        .footer-about p {
 font-size: 0.95rem;
  color: #e5e5e5;
} 
        .footer-bottom p {
color: #FFFFFF;
font-size: 0.9rem; 
        }
        .footer-newsletter p{
            color: #FFFFFF;
            font-size: 0.9rem;
        }