/* ===================================
   SERVICES PAGE STYLES
   ================================= */

.services-page {
    padding: 0;
    background: #2A3138;
}

/* Section Base Styles - Force all sections to have same background */
/* Base style for ALL service sections */
.services-page .service-section {
    position: relative;
    background: #2A3138;
    color: #ffffff;
    padding: 140px 0 100px; /* default for section 1 */
}

/* Shared style for sections 2–7 */
.services-page .service-section:nth-of-type(n+2) {
    padding: 100px 0; /* same padding for sections 2,3,4,5,6,7 */
}

/* Section 1: Overview */
.section-overview {
    background: #2A3138 !important;
    color: #ffffff;
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgb(52 66 80);
    border-radius: 12px;
    padding: 30px 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #5C86B0;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(92, 134, 180, 0.25);
    border: 1px solid rgba(92, 134, 180, 0.2);
}

.feature-icon img {
    width: 40px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* centers the icon */
}


.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Section Content Layout */
.section-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 1;
    text-align: center;
}

.content-image img {
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.02);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.service-features i {
    color: #28a745;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* All sections have consistent styling */

.service-features i.fa-check:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #5C86B0; /* solid blue fill */
    border-radius: 50%;        /* makes it a circle */
}
/* .service-features i {
    color: #4CAF50;
} */

.section-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features li {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons - Match front-page styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    background: #5C86B0;
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn:hover {
    background: #4A72A0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 134, 176, 0.3);
    color: white;
    text-decoration: none;
}

.btn i {
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* ----- Mobile (0–767px) ----- */
@media (max-width: 767px) {

        /* Section Base Styles - Force all sections to have same background */
    .services-page .service-section,
    .services-page .service-section:nth-child(odd),
    .services-page .service-section:nth-child(even),
    .services-page .service-section:nth-child(1),
    .services-page .service-section:nth-child(2),
    .services-page .service-section:nth-child(3),
    .services-page .service-section:nth-child(4),
    .services-page .service-section:nth-child(5),
    .services-page .service-section:nth-child(6),
    .services-page .service-section:nth-child(7) {
        padding: 40px 0 ;
        position: relative ;
        background: #2A3138 ;
        color: #ffffff ;
    }

    .services-page .service-section.section-overview{
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 20px;
    }

    .feature-card {
        padding: 20px 12px;
    }

    .section-content {
        flex-direction: column; /* stack text + image */
        gap: 30px;
    }

    .content-image img {
        width: 100%;
        border-radius: 8px;
    }

    .btn {
        width: 100%; /* full width buttons */
        justify-content: center;
    }
        /* Force order: Image (1), Text (2) for all service sections */
    .service-section .section-content {
        display: flex;
        flex-direction: column;
    }
    
    .services-page .section-content{
        flex-direction: column;
    }
    
    .services-page .section-content.col-text-left{
        flex-direction: column-reverse;
    }

    .service-section .content-image { order: 1; }
    .service-section .content-text  { order: 2; }

    /* Ensure the CTA is the last element inside text block and spaced nicely */
    .service-section .content-text .btn {
        display: inline-flex;
        margin-top: 16px;
        align-self: flex-start; /* remove if you want full-width button */
    }
  /* If you want the button full-width on mobile, uncomment this: */
  /* .service-section .content-text .btn { width: 100%; align-self: stretch; } */
}

/* ----- Tablet / iPad (768–1199px) ----- */
@media (min-width: 768px) and (max-width: 1199px) {
    .services-page .service-section:nth-child(1),
    .services-page .service-section:nth-child(2),
    .services-page .service-section:nth-child(3),
    .services-page .service-section:nth-child(4),
    .services-page .service-section:nth-child(5),
    .services-page .service-section:nth-child(6),
    .services-page .service-section:nth-child(7) {
        padding: 50px 0 ;
        position: relative ;
        background: #2A3138 ;
        color: #ffffff ;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column grid */
        gap: 24px;
    }

    .section-content {
        flex-direction: row; /* side by side */
        /* gap: 10px; */
    }
}

@media (max-width: 1199px) {
    .services-page .service-section.section-overview{
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .section-content{
        gap: 40px;
    }

    .service-section .section-header{
        margin-bottom: 40px;
    }
}

@media (max-width: 991px) {
    .services-page .section-content{
        flex-direction: column;
    }

    .section-content.col-text-right {
        flex-direction: column-reverse;
    }

    .service-section .content-image{
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        position: relative;
    }

    .service-section .content-image > img{
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ----- Desktop (1200px+) ----- */
@media (min-width: 1200px) {

    .section-title {
        font-size: 30px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .section-content {
        flex-direction: row;
        gap: 60px;
    }

    .content-image img {
        max-width: 600px;
    }
}
