﻿/* ========================================
   SERVICES PAGE
======================================== */

.service-banner {
    position: relative;
    height: 420px;
    overflow: hidden;
}

    .service-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60);
}

.service-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
}

    .service-banner-content h1 {
        font-size: 56px;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .service-banner-content p {
        font-size: 20px;
    }

/* MAIN SECTION */

.service-main {
    padding: 90px 0;
    background: #f5f7fb;
}

.service-container {
    width: 88%;
    max-width: 1400px;
    margin: auto;
}

/* TOP SECTION */

.service-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 90px;
}

/* IMAGE */

.service-image img {
    width: 100%;
    border-radius: 12px;
    height: 560px;
    object-fit: cover;
}

/* CONTENT */

.service-content {
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

    .service-content h2 {
        font-size: 46px;
        line-height: 1.1;
        color: #001f68;
        margin-bottom: 35px;
        font-weight: 700;
    }

    .service-content p {
        font-size: 18px;
        line-height: 1.8;
        color: #555;
        margin-bottom: 25px;
    }

/* BUTTON */

.service-btn {
    display: inline-block;
    background: #00a0e3;
    color: white;
    text-decoration: none;
    padding: 18px 42px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

    .service-btn:hover {
        background: #007cc0;
        color: white;
    }

/* TITLE */

.service-title {
    text-align: center;
    margin-bottom: 60px;
}

    .service-title h2 {
        font-size: 42px;
        color: #001f68;
        font-weight: 700;
    }

.service-line {
    width: 140px;
    height: 5px;
    background: #00a0e3;
    margin: 20px auto;
    border-radius: 30px;
}

/* GRID */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 35px;
}

/* CARDS */

.service-card {
    background: #001f68;
    color: white;
    padding: 40px;
    border-radius: 12px;
    transition: 0.3s;
}

    .service-card:hover {
        transform: translateY(-8px);
    }

    .service-card h3 {
        font-size: 34px;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 20px;
    }

    .service-card ul {
        padding-left: 19px;
    }

    .service-card li {
        font-size: 19px;
        line-height: 2;
    }

/* CTA */

.service-cta {
    margin-top: 90px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    
    
}

    .service-cta img {
        width: 100%;
        height: 500px; /* Adjust as needed */
        object-fit: cover;
        object-position: center 20%;
        display: block;
    }

.service-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.service-cta-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    padding: 20px;
}

    .service-cta-content h2 {
        font-size: 72px;
        margin-bottom: 25px;
        font-weight: 700;
    }

    .service-cta-content p {
        font-size: 28px;
        max-width: 950px;
        line-height: 1.8;
        margin-bottom: 35px;
    }

/* ── ACCORDION CARDS — one expands on hover, others collapse ── */

.service-accordion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 35px;
    align-items: start;
}

/* Default card — collapsed, shows only header */
.service-acc-card {
    background: #001f68;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}

/* Collapsed state: dim slightly so active card stands out */
.service-accordion-grid.has-active .service-acc-card:not(.acc-active) {
    background: #001550;
    opacity: 0.72;
}

/* Active (hovered) card */
.service-acc-card.acc-active {
    box-shadow: 0 12px 36px rgba(0, 160, 227, 0.30);
    transform: translateY(-4px);
    background: #002585;
    opacity: 1 !important;
}

/* Header row */
.service-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    gap: 12px;
    min-height: 72px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, padding 0.3s;
}

.service-acc-card.acc-active .service-acc-header {
    border-bottom-color: rgba(255, 255, 255, 0.18);
    padding-bottom: 18px;
}

.service-acc-header span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Chevron icon */
.service-acc-header i {
    color: #00a0e3;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
    display: block;
}

.service-acc-card.acc-active .service-acc-header i {
    transform: rotate(180deg);
}

/* List body — hidden by default, expands on .acc-active */
.service-acc-body {
    list-style: none;
    padding: 0 26px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.35s ease;
}

.service-acc-card.acc-active .service-acc-body {
    max-height: 700px;
    padding-bottom: 22px;
}

.service-acc-body li {
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.5;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.service-acc-body li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #00a0e3;
    font-weight: 700;
    font-size: 17px;
}

.service-acc-body li:last-child {
    border-bottom: none;
}

/* MOBILE */

@media(max-width:1200px) {
    .service-accordion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:992px) {

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

    .service-top {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-banner-content h1 {
        font-size: 42px;
    }

    .service-content h2 {
        font-size: 40px;
    }

    .service-title h2 {
        font-size: 38px;
    }

    .service-cta-content h2 {
        font-size: 40px;
    }

    .service-cta-content p {
        font-size: 20px;
    }

    .service-content {
        padding: 35px;
    }
}

@media(max-width:576px) {
    .service-accordion-grid {
        grid-template-columns: 1fr;
    }
}
