
.services-archive-page {
    --sv-primary: var(--color-primary, rgb(39, 44, 73));
    --sv-secondary: var(--color-secondary, #ff0);

    --sv-bg-dark: #090b16;
    --sv-bg-mid: rgb(18, 21, 39);

    --sv-card: rgba(39, 44, 73, .62);
    --sv-card-dark: rgba(9, 11, 22, .72);

    --sv-yellow-03: rgba(255, 255, 0, .03);
    --sv-yellow-04: rgba(255, 255, 0, .04);
    --sv-yellow-06: rgba(255, 255, 0, .06);
    --sv-yellow-08: rgba(255, 255, 0, .08);
    --sv-yellow-12: rgba(255, 255, 0, .12);
    --sv-yellow-18: rgba(255, 255, 0, .18);
    --sv-yellow-25: rgba(255, 255, 0, .25);
    --sv-yellow-35: rgba(255, 255, 0, .35);

    direction: rtl;
    background:
        radial-gradient(circle at top right, var(--sv-yellow-04) 0%, transparent 30%),
        radial-gradient(circle at bottom left, rgba(39, 44, 73, .55) 0%, transparent 35%),
        linear-gradient(180deg, var(--sv-bg-mid) 0%, var(--sv-bg-dark) 100%);
    color: var(--text-color);
    overflow: hidden;
}

.services-archive-page * {
    box-sizing: border-box;
}

.services-archive-page .container {
    width: min(1200px, calc(100% - 30px));
    margin: 0 auto;
}

/* ================= Hero / Page Content ================= */

.services-archive-hero {
    position: relative;
    padding: 45px 0;
    background:
        linear-gradient(135deg, rgba(39, 44, 73, .96) 0%, #080a14 100%),
        radial-gradient(circle at 70% 45%, var(--sv-yellow-06) 0%, transparent 65%);
    border-bottom: 1px solid var(--sv-yellow-18);
    overflow: hidden;
}

.services-archive-hero::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid var(--sv-yellow-12);
    border-radius: 28px;
    pointer-events: none;
}

.services-archive-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
    gap: 24px;
    align-items: stretch;
}

.services-archive-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    background: rgba(9, 11, 22, .55);
    border-radius: 18px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .25);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid var(--sv-yellow-18);
    padding: 24px 28px;
}

.services-archive-subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    color: #fff;
    background: rgba(39, 44, 73, .85);
    padding: 5px 18px;
    border-radius: 10px;
    border: 1px solid var(--sv-yellow-25);
    box-shadow: 0 0 18px var(--sv-yellow-04);
    font-size: 14px;
    margin-bottom: 12px;
}

.services-archive-content h1 {
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    margin: 5px 0 14px;
    line-height: 1.6;
}

.services-page-content {
    color: #f1f1f1;
    text-align: justify;
    line-height: 2.1;
    font-size: 15px;
    max-height: 180px;
    overflow-y: auto;
    padding-left: 8px;
}

.services-page-content::-webkit-scrollbar {
    width: 5px;
}

.services-page-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .10);
    border-radius: 10px;
}

.services-page-content::-webkit-scrollbar-thumb {
    background: var(--sv-yellow-35);
    border-radius: 10px;
}

.services-page-content p {
    margin: 0 0 10px;
}

.services-page-content h2,
.services-page-content h3 {
    color: #fff;
    font-size: 20px;
    margin: 18px 0 8px;
    border-right: 3px solid var(--sv-yellow-25);
    padding-right: 10px;
}

/* ================= Hero Image ================= */

.services-archive-image {
    position: relative;
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--sv-yellow-18);
    background:
        radial-gradient(circle at center, var(--sv-yellow-04) 0%, transparent 60%),
        rgba(39, 44, 73, .45);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(11.8px);
    -webkit-backdrop-filter: blur(11.8px);
}

.services-archive-image::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 14px;
    z-index: 2;
    pointer-events: none;
}

.services-archive-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .70)),
        radial-gradient(circle at top left, var(--sv-yellow-06), transparent 38%);
    z-index: 1;
    pointer-events: none;
}

.services-archive-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: 0.4s ease;
}

.services-archive-image:hover img {
    transform: scale(1.04);
}

.services-archive-image-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 25px;
    text-align: center;
    background:
        radial-gradient(circle at center, var(--sv-yellow-04), transparent 65%),
        rgba(39, 44, 73, .55);
}

/* ================= Services List ================= */

.services-list-section {
    position: relative;
    padding: 55px 0 90px;
    background:
        radial-gradient(circle at top left, var(--sv-yellow-03) 0%, transparent 32%),
        linear-gradient(180deg, #101326 0%, #070914 100%);
}

.services-list-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: .35;
    pointer-events: none;
}

.services-list-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(39, 44, 73, .55);
    border: 1px solid var(--sv-yellow-18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .14);
    backdrop-filter: blur(11.8px);
    -webkit-backdrop-filter: blur(11.8px);
}

.services-list-head h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sv-yellow-25);
}

.services-count {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--sv-yellow-18);
    border-radius: 14px;
    padding: 10px 18px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card-link {
    color: #fff;
    text-decoration: none;
    display: block;
    height: 100%;
}

.service-card {
    height: 100%;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)),
        rgba(39, 44, 73, .72);
    border: 1px solid var(--sv-yellow-12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(11.8px);
    -webkit-backdrop-filter: blur(11.8px);
    transition: 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, var(--sv-yellow-04), transparent 32%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, .08), transparent 35%);
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--sv-yellow-25);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: #111;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #000000d9 8%, transparent 55%),
        radial-gradient(circle at top right, var(--sv-yellow-08) 0%, transparent 42%);
    z-index: 1;
    pointer-events: none;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.06);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 15px 5px 5px;
}

.service-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 8px;
}

.service-card-title .btn-primary {
    width: 30px !important;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--sv-yellow-25);
}

.service-card-title svg {
    width: 18px;
    height: 18px;
    fill: var(--sv-primary);
}

.service-card-excerpt {
    color: #e6e6e6;
    font-size: 14px;
    line-height: 2;
    text-align: justify;
    margin-bottom: 14px;
}

.service-card-more {
    display: flex;
    justify-content: flex-end;
}

.service-card-more .btn-primary {
    background: rgba(39, 44, 73, .92);
    border: 1px solid var(--sv-yellow-25);
    color: #fff;
    box-shadow: none;
}

.service-card-link:hover .service-card-more .btn-primary {
    border-color: var(--sv-yellow-35);
    background: rgba(255, 255, 255, .10);
}

.services-empty {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    background: rgba(39, 44, 73, .55);
    border: 1px solid var(--sv-yellow-18);
    border-radius: 18px;
    padding: 30px;
}

/* ================= Responsive ================= */

@media only screen and (max-width: 992px) {
    .services-archive-hero-inner {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-list-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    .services-archive-page .container {
        width: calc(100% - 20px);
    }

    .services-archive-hero {
        padding: 25px 0;
    }

    .services-archive-hero::before {
        inset: 10px;
        border-radius: 18px;
    }

    .services-archive-hero-inner {
        gap: 14px;
    }

    .services-archive-content {
        min-height: auto;
        padding: 18px 15px;
        border-radius: 16px;
    }

    .services-archive-content h1 {
        font-size: 22px;
    }

    .services-page-content {
        font-size: 14px;
        line-height: 2;
        max-height: 190px;
    }

    .services-archive-image,
    .services-archive-image img,
    .services-archive-image-placeholder {
        min-height: 220px;
    }

    .services-list-head {
        text-align: center;
        align-items: stretch;
        padding: 15px;
    }

    .services-list-head h2 {
        font-size: 20px;
    }

    .services-count {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card-image {
        height: 230px;
    }
}
