/* Services Page Styles - Modern Engineering Corporate */

/* ============================================
   PAGE HERO
   ============================================ */
.services-page .page-hero,
.service-page .page-hero--service {
    position: relative;
    padding: clamp(5.5rem, 10vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-page .page-hero__bg,
.service-page .page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.services-page .page-hero__bg {
    background: linear-gradient(135deg, #0a1628 0%, #122033 45%, #1a3a5c 100%);
}

.services-page .page-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(37, 169, 224, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 169, 224, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 40%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent);
    pointer-events: none;
}

.service-page .page-hero__overlay,
.services-page .page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(26, 58, 92, 0.88) 100%);
}

.services-page .page-hero__content,
.service-page .page-hero__content {
    position: relative;
    z-index: 10;
    color: #fff;
    max-width: 720px;
}

.services-page__hero-content {
    text-align: right;
}

.services-page__eyebrow,
.service-subsection__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(37, 169, 224, 0.15);
    border: 1px solid rgba(37, 169, 224, 0.35);
    color: var(--secondary-300);
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-page .page-hero__content h1,
.service-page .page-hero__content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    color: #fff;
}

.services-page .page-hero__content p,
.service-page .page-hero__content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.92;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
}

.service-page .page-hero__breadcrumb {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: #fff;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   SUB-SERVICES SECTION (Single Service Page)
   ============================================ */
.service-subsection {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: linear-gradient(180deg, #eef4f9 0%, #f4f5f7 45%, #ffffff 100%);
    overflow: hidden;
}

.service-subsection::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(37, 169, 224, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 92% 85%, rgba(37, 169, 224, 0.08) 0%, transparent 38%);
    pointer-events: none;
}

.service-subsection .container {
    position: relative;
    z-index: 1;
}

.service-subsection__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
}

.service-subsection__title {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.service-subsection__line {
    width: 72px;
    height: 4px;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #25A9E0, #B22B8F);
}

.service-subsection__desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
    margin: 0;
}

.service-page .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

/* Premium engineering service card */
.service-page .service-card.service-card--engine {
    position: relative;
    background: #ffffff;
    border-radius: 1.35rem;
    padding: 0;
    border: 1px solid rgba(37, 169, 224, 0.1);
    box-shadow:
        0 2px 4px rgba(18, 37, 65, 0.04),
        0 12px 32px rgba(18, 37, 65, 0.07);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
    height: 100%;
    text-align: right;
    overflow: hidden;
}

.service-page .service-card.service-card--engine::after {
    content: '';
    position: absolute;
    top: 1.1rem;
    right: 0;
    width: 4px;
    height: calc(100% - 2.2rem);
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, #25A9E0 0%, #B22B8F 55%, #8e2272 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-page .service-card.service-card--engine:hover {
    transform: translateY(-12px);
    border-color: rgba(37, 169, 224, 0.28);
    box-shadow:
        0 8px 16px rgba(18, 37, 65, 0.06),
        0 28px 56px rgba(18, 37, 65, 0.14);
}

.service-page .service-card.service-card--engine:hover::after {
    opacity: 1;
}

.service-page .service-card--engine .service-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-page .service-card--engine .service-card__visual {
    position: relative;
    margin: 0;
    border-radius: 1.35rem 1.35rem 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 210px;
    background: linear-gradient(145deg, #0f2840 0%, #1a3a5c 55%, #122033 100%);
}

.service-page .service-card--engine .service-card__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 169, 224, 0.22), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(178, 43, 143, 0.18), transparent 40%);
    pointer-events: none;
}

.service-page .service-card--engine .service-card__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-page .service-card--engine:hover .service-card__img {
    transform: scale(1.06);
}

.service-page .service-card--engine .service-card__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.05) 0%,
        rgba(10, 22, 40, 0.2) 50%,
        rgba(10, 22, 40, 0.88) 100%
    );
    transition: background 0.4s ease;
    pointer-events: none;
}

.service-page .service-card--engine:hover .service-card__shade {
    background: linear-gradient(
        180deg,
        rgba(37, 169, 224, 0.08) 0%,
        rgba(10, 22, 40, 0.35) 55%,
        rgba(10, 22, 40, 0.92) 100%
    );
}

.service-page .service-card--engine .service-card__heading {
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    z-index: 3;
    margin: 0;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.service-page .service-card--engine .service-card__heading .title-ar {
    display: block;
}

.service-page .service-card--engine .service-card__heading .title-en {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.service-page .service-card--engine .service-card__content {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-page .service-card--engine .service-card__text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-page .service-card--engine .service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(37, 169, 224, 0.16);
}

.service-page .service-card--engine .service-card__label {
    color: var(--color-heading);
    font-weight: 700;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}

.service-page .service-card--engine:hover .service-card__label {
    color: var(--primary-600);
}

.service-page .service-card--engine .service-card__arrow {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: #B22B8F;
    background-image: none;
    box-shadow: 0 8px 22px rgba(178, 43, 143, 0.35);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.service-page .service-card--engine:hover .service-card__arrow {
    background: #B22B8F;
    background-image: none;
    transform: scale(1.08) translateX(-3px);
    box-shadow: 0 12px 28px rgba(178, 43, 143, 0.45);
}

/* Legacy / fallback cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(37, 169, 224, 0.1);
    box-shadow: 0 8px 28px rgba(18, 37, 65, 0.08);
    transition: all 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(18, 37, 65, 0.12);
}

.service-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-card__image {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.06);
}

.service-card__body {
    padding: 1.25rem;
    text-align: right;
}

.service-card__body h3 {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.service-card__body p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-weight: 700;
    font-size: 0.875rem;
}

.service-card__link .icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   SERVICE FEATURED IMAGE (Full Clear Display)
   ============================================ */
.service-featured-image {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.service-featured-image__img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-featured-image:hover .service-featured-image__img {
    transform: scale(1.02);
}

/* ============================================
   SERVICE LAYOUT (Two Column)
   ============================================ */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

.service-main>div {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

/* Override for featured image - no padding needed */
.service-main>.service-featured-image {
    padding: 0;
}

.service-main>.service-featured-image h2 {
    display: none;
}

.service-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-100);
}

.content-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.features-list .icon {
    width: 22px;
    height: 22px;
    color: var(--success-500);
    flex-shrink: 0;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.why-item .icon {
    width: 40px;
    height: 40px;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.why-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   SERVICE SIDEBAR
   ============================================ */
.service-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-card--cta {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.sidebar-card--cta h3 {
    color: white;
}

.sidebar-card--cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.btn--block {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.btn--block:last-child {
    margin-bottom: 0;
}

.btn--outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn--outline-white:hover {
    background: white;
    color: var(--primary-600);
}

.related-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-services li {
    border-bottom: 1px solid var(--neutral-100);
}

.related-services li:last-child {
    border-bottom: none;
}

.related-services a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}

.related-services a:hover {
    color: var(--primary-500);
    padding-right: 0.5rem;
}

.related-services .icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   MAIN SERVICES GRID (Archive Page)
   ============================================ */
.services-page__categories {
    background: var(--bg-primary);
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.services-page__overview-header {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 0;
}

.services-page__overview-header::before {
    display: none;
}

.all-sub-services {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.main-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

.main-service-card.main-service-card--engine {
    position: relative;
    background: #fff;
    border-radius: 1.35rem;
    border: 1px solid rgba(37, 169, 224, 0.08);
    box-shadow: 0 2px 4px rgba(18, 37, 65, 0.04), 0 16px 40px rgba(18, 37, 65, 0.08);
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
    height: 100%;
}

.main-service-card.main-service-card--engine:hover {
    transform: translateY(-12px);
    border-color: rgba(37, 169, 224, 0.28);
    box-shadow: 0 8px 16px rgba(18, 37, 65, 0.06), 0 28px 56px rgba(18, 37, 65, 0.14);
}

.main-service-card--engine .main-service-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.main-service-card--engine .main-service-card__visual {
    position: relative;
    margin: 0;
    border-radius: 1.35rem 1.35rem 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    background: linear-gradient(145deg, #0f2840 0%, #1a3a5c 55%, #122033 100%);
}

.main-service-card--engine .main-service-card__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(37, 169, 224, 0.22), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(178, 43, 143, 0.18), transparent 40%);
    pointer-events: none;
}

.main-service-card--engine .main-service-card__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-service-card--engine:hover .main-service-card__img {
    transform: scale(1.06);
}

.main-service-card--engine .main-service-card__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.05) 0%, rgba(10, 22, 40, 0.25) 50%, rgba(10, 22, 40, 0.88) 100%);
    pointer-events: none;
}

.main-service-card--engine .main-service-card__badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 169, 224, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.main-service-card--engine .main-service-card__heading {
    position: absolute;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    z-index: 3;
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.main-service-card--engine .main-service-card__heading .title-ar {
    display: block;
}

.main-service-card--engine .main-service-card__heading .title-en {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.main-service-card--engine .main-service-card__content {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.main-service-card--engine .main-service-card__text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-service-card--engine .main-service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(37, 169, 224, 0.16);
}

.main-service-card--engine .main-service-card__label {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-heading);
}

.main-service-card--engine .main-service-card__arrow {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #B22B8F;
    background-image: none;
    box-shadow: 0 8px 22px rgba(178, 43, 143, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.main-service-card--engine:hover .main-service-card__arrow {
    background: #B22B8F;
    background-image: none;
    transform: scale(1.08) translateX(-3px);
    box-shadow: 0 12px 28px rgba(178, 43, 143, 0.45);
}

/* ============================================
   ALL SERVICES CATEGORIES (Overview Section)
   ============================================ */
.all-services-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-category-block {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem;
    padding: 0;
    border: 1px solid rgba(37, 169, 224, 0.1);
    box-shadow: 0 4px 6px rgba(18, 37, 65, 0.04), 0 18px 40px rgba(18, 37, 65, 0.07);
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-category-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.service-category-block:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 169, 224, 0.22);
    box-shadow: 0 8px 16px rgba(18, 37, 65, 0.06), 0 24px 48px rgba(18, 37, 65, 0.12);
}

.service-category-block:hover::before {
    transform: scaleX(1);
}

.service-category-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    text-decoration: none;
    color: inherit;
}

.service-category-block__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.service-category-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(37, 169, 224, 0.14), rgba(178, 43, 143, 0.1));
    color: var(--primary-600);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-category-block:hover .service-category-block__icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(37, 169, 224, 0.22), rgba(178, 43, 143, 0.16));
}

.service-category-block__titles {
    min-width: 0;
}

.service-category-block__header h3 {
    margin: 0 0 0.35rem;
    color: var(--color-heading);
    line-height: 1.35;
}

.service-category-block__header .title-ar {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
}

.service-category-block__header .title-en {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-600);
    font-family: var(--font-en, sans-serif);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-category-block__count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(37, 169, 224, 0.1);
    color: var(--primary-700);
    font-size: 0.72rem;
    font-weight: 700;
}

.service-category-block__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 169, 224, 0.08);
    color: var(--primary-600);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.service-category-block__header:hover .service-category-block__arrow,
.service-category-block:hover .service-category-block__arrow {
    background: var(--primary-500);
    color: #fff;
    transform: translateX(-4px);
}

.service-category-block__items {
    list-style: none;
    margin: 0;
    padding: 0 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.service-category-block__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(37, 169, 224, 0.08);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.75) 100%);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.45;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-category-block__item:hover {
    transform: translateX(-3px);
    background: #fff;
    border-color: rgba(37, 169, 224, 0.2);
    color: var(--color-heading);
    box-shadow: 0 4px 14px rgba(18, 37, 65, 0.06);
}

.service-category-block__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(37, 169, 224, 0.12);
    color: var(--primary-600);
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.service-category-block__item:hover .service-category-block__item-icon {
    background: var(--primary-500);
    color: #fff;
}

.service-category-block__item-text {
    min-width: 0;
}

.service-category-block__footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.25rem 1rem 1.15rem;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: rgba(37, 169, 224, 0.06);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-category-block__footer:hover {
    background: rgba(37, 169, 224, 0.12);
    color: var(--primary-800);
    transform: translateY(-1px);
}

.service-category-block__footer svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.service-category-block__footer:hover svg {
    transform: translateX(-3px);
}

.service-category-block__more {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-500);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ============================================
   CTA SECTION
   ============================================ */
.services-page .cta-section {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    text-align: center;
    overflow: hidden;
}

.services-page .cta__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #176586 100%);
    z-index: 0;
}

.services-page .cta__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 169, 224, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 169, 224, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.services-page .cta-content {
    position: relative;
    z-index: 1;
}

.services-page .cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.services-page .cta-content p {
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

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

    .all-services-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid,
    .service-page .services-grid,
    .main-services-grid,
    .all-services-categories {
        grid-template-columns: 1fr;
    }

    .service-page .page-hero {
        padding: 5rem 0 2.5rem;
        min-height: auto;
    }

    .service-page .page-hero__content h1 {
        font-size: 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

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

    .main-service-card__body {
        padding: 1.15rem;
    }

    .services-page .cta-content h2 {
        font-size: 1.5rem;
    }

    .problem-solution-section {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .service-category-block__header {
        padding: 1rem 1rem 0.85rem;
    }

    .service-category-block__icon {
        width: 40px;
        height: 40px;
    }

    .service-category-block__header .title-ar {
        font-size: 0.975rem;
    }

    .service-category-block__items {
        padding-inline: 0.85rem;
    }

    .service-category-block__footer {
        margin-inline: 0.85rem;
    }
}

@media (max-width: 480px) {
    .service-page .page-hero__content h1 {
        font-size: 1.35rem;
    }

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

/* ============================================
   PROBLEM & SOLUTIONS SECTIONS
   ============================================ */
.problem-solution-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.section-title.title-highlight {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-heading);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.section-title.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL */
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 10px;
}

.problem-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--error-500);
    /* Red accent for problem */
}

.solutions-section .problem-text {
    border-right-color: var(--success-500);
    /* Green accent for solution if text used */
}

/* ============================================
   GALLERIES
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item-lightbox {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item-lightbox:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item-inner {
    width: 100%;
    height: 100%;
}

.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-lightbox:hover .gallery-item-inner img {
    transform: scale(1.1);
}

/* ============================================
   RELATED PRODUCTS SECTION
   ============================================ */
.related-products-section {
    margin-top: 4rem;
}

.custom-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* ==============================================
   Lightbox (Added for Service Page)
   ============================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

/* Lightbox Controls */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-close i {
    width: 32px;
    height: 32px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    /* LTR default */
    left: -70px;
}

.lightbox-nav.next {
    /* LTR default */
    right: -70px;
}

/* RTL Adjustments for Nav */
[dir="rtl"] .lightbox-nav.prev {
    right: -70px;
    left: auto;
}

[dir="rtl"] .lightbox-nav.next {
    left: -70px;
    right: auto;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav.prev,
    [dir="rtl"] .lightbox-nav.prev {
        left: 10px;
        right: auto;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-nav.next,
    [dir="rtl"] .lightbox-nav.next {
        right: 10px;
        left: auto;
        background: rgba(0, 0, 0, 0.5);
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
}

/* Service Page Text Enhancements */
.service-text-lg {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 100%;
}

.service-text-lg p {
    margin-bottom: 1.5rem;
}

/* Gallery Captions */
.gallery-item-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.gallery-item-caption {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #eee;
}

.gallery-item-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-wrapper:hover .gallery-item-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-products-section .product-card__image-link {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.related-products-section .product-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-products-section .product-card:hover .product-card__image-link img {
    transform: scale(1.1);
}

.related-products-section .product-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-products-section .product-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.related-products-section .product-card__title a:hover {
    color: var(--primary-500);
}

.related-products-section .product-card__price {
    color: var(--primary-600);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
}