/* Service Hero */
.service-hero-wrapper {
    background-color: #F0F8FF;
    padding: 42px 20px 36px;
    text-align: center;
    margin-bottom: 60px;
}

.service-hero {
    max-width: 800px;
    margin: 0 auto;
}


.service-hero h1 {
    font-size: clamp(32px, 4vw, 43px);
    font-weight: bold;
    color: #000;
    margin-bottom: 12px;
    line-height: 102%;
}

.service-hero p {
    font-size: 20px;
    color: #121420;
    line-height: 1.31;
}

.all-service-card {
    display: flex;
    /* align-items: center; */
    justify-content: space-between;
    gap: 20px;
    margin-top: 47px;
}

.all-service-card img {
    width: 100%;
    max-width: 520px;
    height: 345px;
    object-fit: cover;
}

.service-heading {
    padding: 15px 10px;

    border-left: 6px solid #000000;
    margin-bottom: 22px;
}

.service-heading.active {
    border-color: #0090FF;
}

.service-heading h3 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    line-height: 1.12;
}

.service-left h4 {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    line-height: 1.31;
    margin-bottom: 18px;
}

.service-left h5 {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    line-height: 1.31;
    margin-bottom: 18px;
}

.service-left p {
    font-size: 20px;
    color: #000;
    line-height: 1.31;
    margin-bottom: 20px;
    max-width: 628px;
}

.outcome {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    line-height: 1.31;
    margin-bottom: 18px;
}

.service-left a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    color: #044179;
    transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    padding: 4px 0px;
    margin-top: 36px;
}

.less {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #044179;
    border: 1px solid #044179;
    border-radius: 999px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.less:hover {
    background-color: #044179;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(4, 65, 121, 0.25);
}

.less:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(4, 65, 121, 0.2);
}

.less:focus-visible {
    outline: 2px solid #0090FF;
    outline-offset: 2px;
}

.service-expandable-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.55s ease, opacity 0.35s ease;
}

.all-service-card.is-expanded .service-expandable-content {
    opacity: 1;
}

.all-service-card.is-expanded .learn-more {
    display: none;
}

.service-left a i {
    font-size: 18px;
    margin-top: 3px;
}

.service-left a:hover {
    background: #e8f4ff;
    gap: 16px;
    padding: 4px 10px;
}

.service-left a:active {
    background: #cce7ff;
    transform: scale(0.97);
    padding: 4px 10px;
}

@media (max-width: 768px) {

    /* Hero */
    .service-hero-wrapper {
        padding: 28px 16px 32px;
    }

    .service-hero h1 {
        font-size: clamp(24px, 7vw, 34px);
        margin-bottom: 8px;
    }

    .service-hero p {
        font-size: 15px;
    }
}



/* Hovers & Active States */

/* ── Service Card (whole row) ── */
.all-service-card {
    transition: transform var(--t), box-shadow var(--t), background var(--t);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid transparent;
}

.all-service-card:hover {
    background: #f0f8ff;
    transform: scale(1.01);
    box-shadow: 0 10px 32px rgba(0, 144, 255, 0.1);
    border: 1px solid #cce7ff;
}

.all-service-card:active {
    transform: scale(0.99);
}

/* ── Service Card Image ── */
.all-service-card img {
    transition: transform var(--t), box-shadow var(--t);
    border-radius: 8px;
}

.all-service-card:hover img {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ── Service Heading Border ── */
.service-heading {
    transition: border-color var(--t), background var(--t);
    border-radius: 0 6px 6px 0;
}

.all-service-card:hover .service-heading {
    border-color: var(--blue);
    background: #e8f4ff;
}

.all-service-card:hover .service-heading h3 {
    color: var(--blue);
}

/* ── Learn More Link (already has base styles, enhancing) ── */
.service-left a {
    transition: gap var(--t), background var(--t), padding var(--t), border-radius var(--t), transform var(--t);
}

.service-left a:hover {
    background: #e8f4ff;
    gap: 16px;
    padding: 4px 10px;
}

.service-left a:active {
    background: #cce7ff;
    transform: scale(0.97);
    padding: 4px 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .all-service-card {
        gap: 30px;
    }

    .all-service-card img {
        max-width: 420px;
        height: 300px;
    }

    .service-left p {
        font-size: 18px;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .services-container {
        padding: 0 20px;
    }

    .all-service-card {
        gap: 24px;
        margin-top: 36px;
    }

    .all-service-card img {
        max-width: 360px;
        height: 270px;
    }

    .service-heading h3 {
        font-size: 21px;
    }

    .service-left h4 {
        font-size: 19px;
    }

    .service-left h5{
        font-size: 17px;
    }
    .outcome {
        font-size: 19px;
    }
    .service-left p {
        font-size: 17px;
    }

    .service-left a {
        font-size: 16px;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .service-hero-wrapper {
        padding: 28px 16px 32px;
        margin-bottom: 36px;
    }

    .service-hero h1 {
        font-size: clamp(24px, 7vw, 34px);
        margin-bottom: 8px;
    }

    .service-hero p {
        font-size: 15px;
    }

    /* Cards — stack vertically */
    .services-container {
        padding: 0 16px;
        padding-bottom: 40px;
    }

    .all-service-card {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 28px;
        gap: 20px;
        padding: 16px;
    }

    /* Alternate cards flip image to top */
    .all-service-card:nth-child(even) {
        flex-direction: column-reverse;
    }

    .all-service-card img {
        width: 100%;
        max-width: 100%;
        height: 220px;
        border-radius: 8px;
    }

    .service-heading {
        margin-bottom: 16px;
    }

    .service-heading h3 {
        font-size: 19px;
    }

    .service-left h4 {
        font-size: 17px;
        margin-bottom: 12px;
    }

    .outcome {
        font-size: 17px;
    }

    .service-left h5{
        font-size: 15px;
    }

    .service-left p {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .service-left a {
        margin-top: 16px;
        font-size: 15px;
    }

    .less {
        font-size: 14px;
        padding: 7px 16px;
    }

    .service-left a i {
        font-size: 17px;
        margin-top: 1px;
    }
}


@media (max-width: 480px) {
    .service-hero-wrapper {
        padding: 22px 12px 26px;
        margin-bottom: 24px;
    }

    .service-hero p {
        font-size: 14px;
    }

    .all-service-card {
        margin-top: 20px;
        padding: 14px;
        gap: 16px;
    }

    .all-service-card img {
        height: 180px;
    }

    .service-heading {
        padding: 10px 8px;
        margin-bottom: 12px;
    }

    .service-heading h3 {
        font-size: 17px;
    }

    .service-left h4 {
        font-size: 15px;
    }

    .service-left h5{
        font-size: 14px;
        line-height: 0.95;
    }

    .outcome {
        font-size: 14px;
    }

    .service-left p {
        font-size: 14px;
    }

    .service-left a {
        font-size: 14px;
        margin-top: 12px;
    }

    .less {
        width: 100%;
        min-height: 40px;
        font-size: 14px;
    }
}