/* ==========================================
SERVICES
========================================== */

#index-services {
    background:
        radial-gradient(circle at center top,
            rgba(30, 95, 140, 0.10),

            transparent 55%),
        var(--grey);
}

.index-services-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* LEFT SIDE */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    background: var(--white);
    border-radius: 14px;
    padding: 14px 16px;
    transition: 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.service-item summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;

    color: var(--primary);
}

/* the arrow */
.service-item summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--darker);
    border-bottom: 2px solid var(--darker);
    transform: rotate(45deg);
    /* points down */
    transition: transform 0.25s ease, border-color 0.25s ease;
    margin-left: auto;
}

.service-item[open] summary::after {
    transform: rotate(-135deg);
    /* points up */
    border-color: var(--accent);
    /* optional accent color */
}

.service-item summary::-webkit-details-marker {
    display: none;
}

.service-item img {
    width: 22px;
    height: 22px;
    opacity: 0.9;
}

.service-item p {
    margin: 10px 0 0;
    color: var(--darker);
    font-size: 0.95rem;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
    color: var(--secondary);
}

/* RIGHT SIDE */

.services-right {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow);
}

.services-right h3 {
    margin-bottom: 12px;
    color: var(--darker);

}

.services-right p {
    color: var(--darker);
    margin-bottom: 12px;
    line-height: 1.6;
}

.about-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid #1f2f44;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .index-services-layout {
        grid-template-columns: 1fr;
    }

    .index-services-right {
        position: relative;
        top: 0;
    }
}