/* Service Page Styles */

/* Header Override for Service Page (Force Solid) */
.header {
    background-color: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.header .logo-normal { display: block !important; }
.header .logo-white { display: none !important; }
.header .global-nav a { color: #333 !important; }
/* Override hover effect for nav items if needed, mostly handled by default but ensure color stays dark */
.header.header-scrolled .global-nav a { color: #333 !important; }


/* Base Layout */
.service-hero {
    position: relative;
    height: 400px;
    background-color: #f5f5f5; /* Fallback */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
    padding: 0 20px;
    margin-bottom: 60px;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.service-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
}

/* Navigation Grid */
.service-nav-container {
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    justify-content: center;
}

@media (min-width: 768px) {
    .service-nav-grid {
        grid-template-columns: repeat(9, 1fr); /* All in one row on large screens if possible, or wrap */
        gap: 10px;
    }
}

.service-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    height: 100%;
}

.service-nav-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--primary-color, #8ca7bc); /* Fallback color */
    color: #fff;
}

.service-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    /* You can use an icon font or SVG here */
}

.service-nav-text {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* Service Detail Sections */
.service-detail-section {
    padding: 80px 0;
    overflow: hidden;
}

.service-detail-section:nth-child(even) {
    background-color: #f9f9f9;
}

.service-detail-section:nth-child(odd) {
    background-color: #fff;
}

.service-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ZigZag Layout */
.service-detail-section:nth-child(even) .service-content-wrapper {
    flex-direction: row-reverse;
}

.service-text-area {
    flex: 1;
    min-width: 300px;
}

.service-image-area {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.service-image-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Text Styling */
.section-number {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color, #8ca7bc);
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.service-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color, #8ca7bc);
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.service-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    white-space: pre-line; /* Determine if we want this */
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-features-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.service-features-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary-color, #8ca7bc);
}

/* CTA in section (optional) */
.service-cta-link {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color, #8ca7bc);
    color: var(--primary-color, #8ca7bc);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
}

.service-cta-link:hover {
    background-color: var(--primary-color, #8ca7bc);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2rem;
    }

    .service-detail-section {
        padding: 50px 0;
    }

    .service-content-wrapper {
        flex-direction: column !important; /* Force stack on mobile */
    }

    .service-text-area {
        text-align: center;
    }

    .service-features-list {
        text-align: left;
        display: inline-block;
    }

    .service-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
