
.page-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--dark-blue);
}

.page-hero img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    padding: 0 20px;
    display: flex; flex-direction: column; align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem; font-weight: 900; margin-bottom: 15px; width: 100%;
}

.breadcrumb { font-size: 1rem; color: #cbd5e1; }
.breadcrumb a { color: var(--brand-red); text-decoration: none; font-weight: bold; transition: 0.3s; }
.breadcrumb a:hover { color: white; }

#all-services {
    padding: 80px 5%;
    background-color: var(--bg-body);
}

#all-services .sec-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

#all-services .sec-title h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 15px;
}
[data-theme="dark"] #all-services .sec-title h2 { color: white; }

#all-services .sec-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.grid-6 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    max-width: 1250px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--brand-red); transform: scaleX(0); transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-red);
}
.card:hover::before { transform: scaleX(1); }

.card i {
    font-size: 50px; color: var(--brand-red); margin-bottom: 20px;
    background: rgba(221, 24, 59, 0.05); width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s;
}
.card:hover i { background: var(--brand-red); color: white; }

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
    font-weight: 800;
    line-height: 1.4;
    min-height: 3rem; 
    display: flex; align-items: center; justify-content: center;
}
[data-theme="dark"] .card h3 { color: var(--white); }

.card p {
    font-size: 1rem; color: var(--text-gray); margin-bottom: 25px; line-height: 1.7; flex-grow: 1;
}

.card .btn-action {
    padding: 10px 25px; font-size: 0.9rem; width: auto; margin-top: auto;
}

/* --- 4. CTA Section --- */
.services-cta {
    text-align: center; padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e293b 100%);
    color: white; margin-top: 50px;
}
.services-cta h2 { font-size: 2.5rem; margin-bottom: 15px; }
.services-cta p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; }



@media (max-width: 768px) {
    .page-hero { height: 250px; }
    .hero-content h1 { font-size: 1.8rem; margin-bottom: 10px; padding: 0 10px; }

    #all-services { padding: 40px 10px; }
    
    #all-services .sec-title h2 { font-size: 1.8rem; }
    #all-services .sec-title p { font-size: 0.95rem; }

    .grid-6 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .card { padding: 20px 10px !important; border-radius: 12px; }

    .card i { width: 50px; height: 50px; font-size: 24px; margin-bottom: 10px; }

    .card h3 { 
        font-size: 0.85rem !important; 
        margin-bottom: 8px; line-height: 1.3;
        min-height: 45px; 
        display: flex; align-items: center; justify-content: center;
        text-align: center; width: 100%; word-wrap: break-word;
    }
    
    .card p { 
        font-size: 0.75rem !important; line-height: 1.4; margin-bottom: 10px;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }

    .card .btn-action {
        padding: 6px 10px !important; font-size: 0.7rem !important; width: 100%; border-radius: 6px;
    }
    
    .services-cta h2 { font-size: 1.6rem; }
}

.seo-description {
    max-width: 900px; 
    margin: 20px auto 0; 
    padding: 0 15px;
}

.seo-description p {
    font-size: 1rem !important;
    color: #64748b; 
    line-height: 1.8 !important; 
}

.seo-description strong {
    color: var(--dark-blue);
    font-weight: 700;
}


[data-theme="dark"] .seo-description strong {
    color: #ffffff !important; 
}

[data-theme="dark"] .seo-description p {
    color: #cbd5e1 !important; 
}