/* Services Page Specific Styles - Green Theme */
.service-page {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--font-default);
}

/* Color Variables - Green Theme */
:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --accent-color: #059669;
    --accent-light: #34d399;
    --heading-color: #1f2937;
    --text-light: #6b7280;
    --default-color: #374151;
    --background-color: #ffffff;
    --light-background: #f9fafb;
    --dark-background: #065f46;
    --border-color: #e5e7eb;
    --font-default: "Inter", sans-serif;
}

.dark-background {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.light-background {
    background-color: var(--light-background);
}

/* Section Base Styles */
.section {
    padding: 60px 0;
}

/* Page Header - Reduced padding */
.services-header {
    padding: 125px 0 60px;
    position: relative;
    overflow: hidden;
}

.services-header .page-header-content {
    position: relative;
    z-index: 2;
}

.page-badge {
   display: inline-block;
    padding: 8px 20px;
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%);
}

.services-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
}

.services-header .lead {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
   background: var(--accent-color);
  color: var(--contrast-color);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color), transparent 60%);

}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
   background: #169665;
  transform: translateY(-2px);
  box-shadow: 0 18px 205px color-mix(in srgb, white, transparent 5%);
  color: var(--contrast-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
     background: color-mix(in srgb, var(--contrast-color), transparent 5%);
  box-shadow: 0 18px 205px color-mix(in srgb, white, transparent 5%);
  transform: translateX(5px);
  color: #065f46;
}

.header-visual {
    position: relative;
    text-align: center;
}

.header-visual img {
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Services Page Header Mobile Optimization - VERTICAL STACK */
@media (max-width: 768px) {
  .services-header {
    padding: 80px 0 40px;
    overflow: visible;
  }
  
  /* Stack content vertically on mobile */
  .services-header .row.align-items-center {
    flex-direction: column;
    gap: 30px;
  }
  
  /* Make both columns full width */
  .services-header .col-lg-6 {
    width: 100%;
  }
  
  /* Center content on mobile */
  .services-header .page-header-content {
    text-align: center;
    padding: 0 15px;
  }
  
  /* Adjust badge size */
  .page-badge {
    padding: 6px 16px;
    font-size: 12px;
    margin-bottom: 15px;
    margin-top: 50px;
  }
  
  /* Adjust heading size */
  .services-header h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  /* Adjust lead text */
  .services-header .lead {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  
  /* Adjust button styling */
  .header-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
  
  /* Adjust header visual */
  .header-visual {
    padding: 0 15px;
  }
  
  .header-visual img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }
}

/* For very small screens (phones) */
@media (max-width: 576px) {
  .services-header {
    padding: 70px 0 30px;
  }
  
  .services-header h1 {
    font-size: 1.5rem;
  }
  
  .page-badge {
    padding: 5px 14px;
    font-size: 11px;
  }
  
  .services-header .lead {
    font-size: 0.95rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .header-visual img {
    max-height: 200px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .services-header {
    padding: 60px 0 25px;
  }
  
  .services-header h1 {
    font-size: 1.3rem;
  }
  
  .page-badge {
    padding: 4px 12px;
    font-size: 10px;
  }
  
  .services-header .lead {
    font-size: 0.9rem;
  }
  
  .header-visual img {
    max-height: 180px;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 577px) and (max-width: 768px) {
  .services-header h1 {
    font-size: 2rem;
  }
  
  .services-header .lead {
    font-size: 1.1rem;
  }
  
  .header-visual img {
    max-height: 300px;
  }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .services-header .row.align-items-center {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  
  .services-header .col-lg-6 {
    width: 50%;
  }
  
  .services-header .page-header-content {
    text-align: left;
    padding: 0;
  }
  
  .header-visual img {
    max-height: 200px;
  }
  
  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .btn-primary, .btn-secondary {
    width: auto;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
  }
}


/* ///////////////////////////////////////////////////////////////// */
/* Services Stats - Compact */
/* ///////////////////////////////////////////////////////////////// */

.services-stats {
    padding: 40px 0;
}

.stat-item {
    padding: 20px 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}
/* If you want even smaller (grid version without scrolling) */
@media (max-width: 768px) {
  /* Alternative: Grid layout with 4 in one row */
  .services-stats .row.g-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: visible;
  }
  
  .services-stats .row.g-4 > div[class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-right: 1px solid var(--border-color);
  }
  
  .services-stats .row.g-4 > div[class*="col-"]:last-child {
    border-right: none;
  }
  
  .stat-item {
    padding: 8px 4px;
    min-height: 75px;
  }
  
  .stat-number {
    font-size: .5rem;
  }
  
  .stat-label {
    font-size: 10px;
  }
}

/* For very small screens - grid version */
@media (max-width: 400px) {
  .stat-item {
    padding: 6px 2px;
    min-height: 70px;
  }
  
  .stat-number {
    font-size: 0.9rem;
  }
  
  .stat-label {
    font-size: 8px;
  }
}

/* ///////////////////////////////////////////////////////////////// */
/* Services List - Reduced spacing */
/* ////////////////////////////////////////////////////////////////// */    */

.services-list {
    margin-top: 1px;
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
}

.section-title .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.section-title p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: -50px;
    margin-bottom: -30px;
}

.service-detail-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
    border-color: var(--primary-light);
}

.service-detail-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.service-detail-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.service-icon i {
    font-size: 1.375rem;
    color: white;
}

.service-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.service-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.service-detail-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.service-features {
    margin: 20px 0;
}

.service-features h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.service-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-service, .btn-service-outline {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.btn-service {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-service:hover {
    background: white;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-service-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-service-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Services List Mobile Optimization - HORIZONTAL ROW */
@media (max-width: 768px) {
  .services-list {
    margin-top: 0;
    padding: 40px 0;
  }
  
  /* Section title adjustments */
  .section-title {
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-title p {
    font-size: 0.9rem;
  }
  
  /* Horizontal row layout with scrolling */
  .services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    margin: 0 -15px;
    padding: 0 15px 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.1);
  }
  
  /* Make service cards side by side */
  .service-detail-card {
    flex: 0 0 auto;
    width: 85vw;
    max-width: 300px;
    min-width: 280px;
    padding: 20px 18px;
    border-radius: 10px;
    height: auto;
    min-height: 380px;
    display: flex;
    flex-direction: column;
  }
  
  /* Remove hover and featured effects on mobile */
  .service-detail-card:hover,
  .service-detail-card.featured {
    transform: none;
  }
  
  .service-detail-card.featured::before {
    display: none;
  }
  
  /* Compact service header */
  .service-header {
    margin-bottom: 15px;
  }
  
  /* Compact service icon */
  .service-icon {
    width: 45px;
    height: 45px;
  }
  
  .service-icon i {
    font-size: 1.1rem;
  }
  
  /* Compact service meta */
  .service-meta {
    gap: 4px;
  }
  
  .service-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
  
  .service-number {
    font-size: 1.5rem;
  }
  
  /* Compact heading */
  .service-detail-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Compact description */
  .service-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 0;
  }
  
  /* Compact features */
  .service-features {
    margin: 15px 0;
    flex-grow: 1;
  }
  
  .service-features h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .service-features ul {
    margin: 0;
  }
  
  .service-features li {
    font-size: 0.8rem;
    margin-bottom: 6px;
    gap: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .service-features i {
    font-size: 0.9rem;
  }
  
  /* Compact CTA buttons */
  .service-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
  }
  
  .btn-service, .btn-service-outline {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 4px;
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }
  
  /* Remove hover effects on mobile */
  .btn-service:hover,
  .btn-service-outline:hover {
    transform: none;
  }
  
  /* Add scroll indicator */
  .services-grid::-webkit-scrollbar {
    height: 3px;
  }
  
  .services-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
  
  .services-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
  }
}

/* For very small screens */
@media (max-width: 576px) {
  .services-list {
    padding: 35px 0;
  }
  
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .section-title p {
    font-size: 0.85rem;
  }
  
  .service-detail-card {
    width: 80vw;
    max-width: 280px;
    min-width: 260px;
    padding: 18px 15px;
    min-height: 360px;
  }
  
  .service-icon {
    width: 40px;
    height: 40px;
  }
  
  .service-icon i {
    font-size: 1rem;
  }
  
  .service-badge {
    font-size: 8px;
    padding: 1px 6px;
  }
  
  .service-number {
    font-size: 1.3rem;
  }
  
  .service-detail-card h3 {
    font-size: 1rem;
  }
  
  .service-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .service-features h5 {
    font-size: 0.85rem;
  }
  
  .service-features li {
    font-size: 0.75rem;
  }
  
  .btn-service, .btn-service-outline {
    padding: 7px 12px;
    font-size: 11px;
    min-width: 90px;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .services-list {
    padding: 30px 0;
  }
  
  .section-title h2 {
    font-size: 1.2rem;
  }
  
  .service-detail-card {
    width: 85vw;
    max-width: 260px;
    min-width: 240px;
    padding: 15px 12px;
    min-height: 340px;
  }
  
  .service-icon {
    width: 35px;
    height: 35px;
  }
  
  .service-icon i {
    font-size: 0.9rem;
  }
  
  .service-number {
    font-size: 1.2rem;
  }
  
  .service-detail-card h3 {
    font-size: 0.95rem;
  }
  
  .service-description {
    font-size: 0.75rem;
  }
  
  .service-features li {
    font-size: 0.7rem;
  }
  
  .service-cta {
    flex-direction: column;
  }
  
  .btn-service, .btn-service-outline {
    width: 100%;
    min-width: 0;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 577px) and (max-width: 768px) {
  .service-detail-card {
    width: 75vw;
    max-width: 320px;
    min-height: 400px;
  }
  
  .service-detail-card h3 {
    font-size: 1.2rem;
  }
  
  .service-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
  
  .service-cta {
    flex-direction: row;
  }
}

/* Landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
  .service-detail-card {
    width: 70vw;
    max-width: 300px;
    min-height: 350px;
  }
  
  .service-description {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Improve touch targets */
@media (max-width: 768px) {
  .btn-service, .btn-service-outline {
    min-height: 36px;
  }
}

/* ///////////////////////////////////////////////////////////////// */
/* Process Section - Compact */
/* ///////////////////////////////////////////////////////////////// */
.services-process {
    padding: 60px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: -50px;
}

.process-step {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.step-icon span {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.process-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--heading-color);
}

.process-step p {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}



/* ///////////////////////////////////////////////////////////////// */
/* CTA Section - Compact */
/* ///////////////////////////////////////////////////////////////// */
.services-cta {
    padding: 60px 0;
}

.services-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.services-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .services-header {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .services-header h1 {
        font-size: 2rem;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-detail-card {
        padding: 25px 20px;
    }
    
    .service-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .service-meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    
    .services-cta .row {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
    
    .service-cta {
        flex-direction: column;
    }
    
    .btn-service, .btn-service-outline {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .services-header {
        padding: 70px 0 30px;
    }
    
    .services-header h1 {
        font-size: 1.75rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.service-detail-card:hover .service-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Minimal Gap Version */
.services-stats {
    padding: 15px 0 5px 0;
    margin-bottom: -10px;
}

#services-list.services-list {
    padding: 20px 0 40px 0;
    margin-top: 0px;
}

.stat-item {
    padding: 10px 5px;
}

.stat-number {
    font-size: 1rem;
    margin-bottom: 2px;
    margin-top: 0px;
}

.stat-label {
    font-size: 0.5rem;
}