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

.services-hero {

    background: linear-gradient(to bottom, #dff4ff, #f7fbff);

    padding-top: 40px;

    padding-bottom: 50px;
}

/* ======================================== */
/* TITLE */
/* ======================================== */

.services-title {

    width: fit-content;

    margin: auto;

    padding: 10px 34px;

    border: 3px solid #0f3b82;

    border-radius: 14px;

    background: #ffffff;

    font-size: 34px;

    font-weight: 800;

    color: #111827;

    margin-bottom: 40px;

    box-shadow: 0 8px 24px rgba(15, 59, 130, 0.08);
}

/* ======================================== */
/* INTRO SECTION */
/* ======================================== */

.intro-wrapper {

    display: grid;

    grid-template-columns: 1fr 320px 1fr;

    gap: 30px;

    align-items: center;
}

/* CONTENT */

.intro-content {

    font-size: 16px;

    line-height: 1.9;

    font-weight: 500;

    color: #334155;
}

/* PARAGRAPH */

.intro-content p {

    margin-bottom: 14px;
}

/* IMAGE */

.intro-image img {

    width: 100%;

    border-radius: 18px;

    border: 3px solid #bfdbfe;

    background: #ffffff;

    padding: 10px;

    box-shadow: 0 12px 30px rgba(15, 59, 130, 0.08);
}

/* ======================================== */
/* SERVICES SECTION */
/* ======================================== */

.services-section {

    background: #dff4ff;

    padding-top: 30px;

    padding-bottom: 70px;
}

/* ======================================== */
/* ROW WRAPPER */
/* ======================================== */

.service-row-wrapper {

    margin-bottom: 32px;
}

/* ======================================== */
/* GRID */
/* ======================================== */

.services-grid {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}

/* ======================================== */
/* CARD */
/* ======================================== */

.service-card {

    background: #ffffff;

    border: 3px solid #0f3b82;

    border-radius: 18px;

    overflow: hidden;

    transition: 0.35s ease;

    box-shadow: 0 8px 24px rgba(15, 59, 130, 0.06);
}

/* HOVER */

.service-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 18px 40px rgba(15, 59, 130, 0.12);
}

/* ======================================== */
/* HEADER */
/* ======================================== */

.service-header {

    width: 100%;

    border: none;

    background: #ffffff;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    cursor: pointer;

    font-size: 18px;

    font-weight: 800;

    color: #111827;

    text-align: left;

    transition: 0.3s ease;
}

/* ACTIVE HEADER */

.active-row .service-header {

    background: #eff6ff;
}

/* HOVER */

.service-header:hover {

    background: #f8fbff;
}

/* ======================================== */
/* ICON */
/* ======================================== */

.service-icon {

    font-size: 30px;

    color: #0f3b82;

    line-height: 1;

    flex-shrink: 0;

    transition: 0.3s ease;
}

/* ======================================== */
/* BODY */
/* ======================================== */

.service-body {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.45s ease;
}

/* ======================================== */
/* IMAGE */
/* ======================================== */

.service-image {

    padding: 20px 20px 0;
}

.service-image img {

    width: 100%;

    height: 240px;

    object-fit: cover;

    border-radius: 16px;

    border: 2px solid #dbeafe;
}

/* ======================================== */
/* DESCRIPTION */
/* ======================================== */

.service-description {

    padding: 22px;

    font-size: 15px;

    line-height: 1.9;

    font-weight: 500;

    color: #334155;

    border-bottom: 1px solid #e2e8f0;
}

/* PARAGRAPH */

.service-description p {

    margin-bottom: 12px;
}

/* ======================================== */
/* TEXT CLAMP */
/* ======================================== */

.desc-text.clamped {

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ======================================== */
/* SEE MORE */
/* ======================================== */

.see-more-btn {

    display: inline-block;

    margin-top: 10px;

    font-size: 14px;

    font-weight: 700;

    color: #0f3b82;

    cursor: pointer;

    user-select: none;

    transition: 0.25s ease;
}

.see-more-btn:hover {

    color: #2563eb;
}

/* ======================================== */
/* POINTS */
/* ======================================== */

.service-points {

    padding: 22px;
}

/* POINTS */

.custom-points p {

    margin-bottom: 12px;

    font-size: 15px;

    line-height: 1.8;

    font-weight: 500;

    color: #111827;

    position: relative;

    padding-left: 18px;
}

/* BULLET */

.custom-points p::before {

    content: "•";

    position: absolute;

    left: 0;

    top: 0;

    color: #0f3b82;

    font-size: 18px;
}

/* ======================================== */
/* TABLET */
/* ======================================== */

@media(max-width: 1100px){

    .intro-wrapper {

        grid-template-columns: 1fr;
    }

    .intro-image {

        max-width: 360px;

        margin: auto;
    }

    .services-grid {

        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================== */
/* MOBILE */
/* ======================================== */

@media(max-width: 768px){

    .services-title {

        font-size: 26px;

        padding: 8px 22px;

        margin-bottom: 30px;
    }

    .services-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }

    .service-header {

        font-size: 16px;

        padding: 18px;
    }

    .service-icon {

        font-size: 26px;
    }

    .service-image {

        padding: 18px 18px 0;
    }

    .service-image img {

        height: 220px;
    }

    .service-description {

        padding: 18px;

        font-size: 14px;
    }

    .service-points {

        padding: 18px;
    }

    .custom-points p {

        font-size: 14px;
    }
}

/* ======================================== */
/* SMALL MOBILE */
/* ======================================== */

@media(max-width: 480px){

    .services-hero {

        padding-top: 30px;

        padding-bottom: 35px;
    }

    .services-title {

        font-size: 22px;
    }

    .intro-content {

        font-size: 14px;

        line-height: 1.8;
    }

    .service-header {

        font-size: 15px;

        padding: 16px;
    }

    .service-icon {

        font-size: 24px;
    }

    .service-image img {

        height: 200px;
    }
}

/* ======================================== */
/* FIX: UNIFORM CARD HEADER HEIGHT */
/* ======================================== */

.service-header {
    min-height: 90px;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
}

.service-header > span:first-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: calc(18px * 1.4 * 2);
}

.service-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

/* DESCRIPTION CLAMP */

.desc-text.clamped {

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.desc-text.expanded {

    -webkit-line-clamp: unset;
}

.service-media,
.intro-media {

    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* SERVICE BODY ANIMATION */

.service-body {

    overflow: hidden;
    max-height: 0;

    transition: max-height 0.5s ease;
}