.home-services-section,
.service-details-page {
    --service-primary: var(--main, #030f40);
    --service-heading: var(--heading, #030f40);
    --service-blue: #2f73e0;
    --service-blue-dark: #1956b8;
    --service-cyan: #5ec9ed;
    --service-accent: var(--third, #ffc119);
    --service-muted: var(--body, #667085);
    --service-soft: #f3f7ff;
    --service-border: #dce6f5;
    font-family: var(--gna-font-family);
    direction: rtl;
}

.home-services-section {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 82px 24px 88px;
    background:
        radial-gradient(circle at 8% 10%, rgba(94, 201, 237, .13), transparent 25rem),
        radial-gradient(circle at 93% 90%, rgba(255, 193, 25, .1), transparent 23rem),
        linear-gradient(180deg, #fff 0%, #f8fbff 50%, #fff 100%);
}

.home-services-section::before {
    position: absolute;
    top: 70px;
    right: -90px;
    width: 220px;
    height: 220px;
    border: 34px solid rgba(47, 115, 224, .035);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home-services-container {
    position: relative;
    width: min(1330px, 100%);
    margin: 0 auto;
}

.home-services-heading {
    margin-bottom: 38px;
    text-align: center;
}

.home-services-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--service-blue);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 900;
}

.home-services-eyebrow i {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--service-accent);
}

.home-services-heading h2 {
    margin: 9px 0 0 !important;
    color: var(--service-muted) !important;
    font: 500 clamp(.88rem, 1.2vw, 1.05rem)/1.9 var(--gna-font-family) !important;
    white-space: pre-line;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-service-card {
    position: relative;
    display: grid;
    min-height: 202px;
    grid-template-columns: minmax(0, 1.12fr) 43%;
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 14px 40px rgba(20, 45, 87, .075);
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-service-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 90px;
    height: 5px;
    border-radius: 5px 0 0 0;
    background: linear-gradient(90deg, var(--service-cyan), var(--service-blue));
    content: "";
    transition: width .25s ease;
}

.home-service-card:hover {
    border-color: rgba(47, 115, 224, .3);
    box-shadow: 0 22px 52px rgba(20, 45, 87, .14);
    transform: translateY(-5px);
}

.home-service-card:hover::after { width: 150px; }

.home-service-content {
    order: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 25px 22px 22px;
}

.home-service-media {
    position: relative;
    order: 2;
    display: block;
    min-height: 202px;
    overflow: hidden;
    background: linear-gradient(145deg, #e9f1fb, #f6f9fd);
}

.home-service-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 67%, rgba(3, 15, 64, .09));
    content: "";
    pointer-events: none;
}

.home-service-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.home-service-card:hover .home-service-media > img { transform: scale(1.05); }

.home-service-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(94, 201, 237, .14), transparent 48%),
        linear-gradient(145deg, #f8fbff, #eef4fc);
}

.home-service-placeholder img {
    width: 76px;
    height: 110px;
    object-fit: contain;
    opacity: .82;
    filter: drop-shadow(0 12px 18px rgba(20, 45, 87, .12));
}

.home-service-title-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.home-service-title-row h3 {
    min-width: 0;
    margin: 0 !important;
    color: var(--service-heading) !important;
    font: 850 1rem/1.75 var(--gna-font-family) !important;
}

.home-service-title-row h3 a { color: inherit; }

.home-service-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #cfe0f8;
    border-radius: 13px;
    background: var(--service-soft);
    color: var(--service-blue);
}

.home-service-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-service-content > p {
    display: -webkit-box;
    margin: 11px 0 14px !important;
    overflow: hidden;
    color: var(--service-muted) !important;
    font: 400 .76rem/2 var(--gna-font-family) !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-service-link {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--service-blue) !important;
    font-size: .73rem;
    font-weight: 800;
}

.home-service-link svg {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: rgba(47, 115, 224, .1);
    transition: transform .2s ease, background-color .2s ease;
}

.home-service-link:hover svg {
    background: rgba(255, 193, 25, .35);
    transform: translateX(-3px);
}

.home-services-empty {
    max-width: 650px;
    margin: auto;
    padding: 38px;
    border: 1px dashed #b8cceb;
    border-radius: 24px;
    text-align: center;
    background: #fff;
    box-shadow: 0 14px 40px rgba(20, 45, 87, .06);
}

.home-services-empty img { width: 62px; height: 84px; object-fit: contain; }
.home-services-empty h3 { margin: 10px 0 !important; color: var(--service-heading) !important; font: 850 1.1rem var(--gna-font-family) !important; }
.home-services-empty p { color: var(--service-muted); font-size: .82rem; }
.home-services-empty a { display: inline-flex; margin-top: 8px; padding: 11px 20px; border-radius: 12px; background: var(--service-primary); color: #fff !important; font-size: .78rem; font-weight: 800; }

.service-details-page {
    min-height: 70vh;
    padding: 42px 24px 88px;
    color: var(--service-primary);
    background:
        radial-gradient(circle at 8% 8%, rgba(94, 201, 237, .12), transparent 25rem),
        linear-gradient(180deg, #fbfdff 0%, #fff 36%);
}

.service-details-container { width: min(1240px, 100%); margin: auto; }

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #8490a1;
    font-size: .75rem;
}

.service-breadcrumb a { color: var(--service-blue); font-weight: 700; }

.service-details-hero {
    display: grid;
    min-height: 440px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 45, 87, .12);
}

.service-details-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 5vw, 68px);
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 193, 25, .14), transparent 40%),
        linear-gradient(145deg, #fff 0%, #fff 62%, #f3f8ff 100%);
}

.service-details-copy::after {
    position: absolute;
    right: -70px;
    bottom: -95px;
    width: 210px;
    height: 210px;
    border: 30px solid rgba(47, 115, 224, .04);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.service-details-type {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 193, 25, .18);
    color: #8a6200;
    font-size: .76rem;
    font-weight: 800;
}

.service-details-type::before { width: 7px; height: 7px; border-radius: 50%; background: var(--service-accent); content: ""; }

.service-details-copy h1 {
    position: relative;
    z-index: 1;
    margin: 18px 0 13px !important;
    color: var(--service-heading) !important;
    font: 900 clamp(2rem, 3vw, 3.2rem)/1.55 var(--gna-font-family) !important;
}

.service-details-copy > p {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 !important;
    color: var(--service-muted) !important;
    font: 400 .93rem/2.15 var(--gna-font-family) !important;
    white-space: pre-line;
}

.service-details-actions { position: relative; z-index: 1; display: flex; gap: 11px; margin-top: 30px; }

.service-book-button,
.service-back-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 850;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.service-book-button { border: 1px solid var(--service-primary); background: var(--service-primary); color: #fff !important; box-shadow: 0 11px 25px rgba(3, 15, 64, .17); }
.service-book-button:hover { border-color: var(--service-accent); background: var(--service-accent); color: var(--service-primary) !important; transform: translateY(-2px); }
.service-back-button { border: 1px solid var(--service-border); background: #fff; color: var(--service-primary) !important; }
.service-back-button:hover { border-color: #a9c1e5; background: var(--service-soft); transform: translateY(-2px); }

.service-details-cover { position: relative; min-height: 440px; overflow: hidden; background: #eaf1f9; }
.service-details-cover::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 74%, rgba(3, 15, 64, .06)); content: ""; pointer-events: none; }
.service-details-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-details-cover > span { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #fff, #eaf1f9 74%); }
.service-details-cover > span img { width: 140px; height: 220px; object-fit: contain; opacity: .9; filter: drop-shadow(0 18px 25px rgba(20, 45, 87, .14)); }
.service-details-cover > .service-details-slide-title { inset: auto 20px 20px; display: block; width: fit-content; max-width: calc(100% - 40px); padding: 8px 13px; border-radius: 10px; background: rgba(3, 15, 64, .78); color: #fff; font-size: .75rem; font-weight: 750; backdrop-filter: blur(7px); }

.service-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 22px 0; }
.service-facts--without-price { grid-template-columns: repeat(2, 1fr); }

.service-facts article,
.service-details-panel {
    border: 1px solid var(--service-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 45, 87, .055);
}

.service-facts article { position: relative; display: flex; min-height: 92px; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden; padding: 18px 21px; border-radius: 18px; }
.service-facts article::before { position: absolute; top: 0; right: 0; bottom: 0; width: 4px; border-radius: 0 18px 18px 0; background: linear-gradient(180deg, var(--service-cyan), var(--service-blue)); content: ""; }
.service-facts article:nth-child(even)::before { background: linear-gradient(180deg, var(--service-accent), #f2a900); }
.service-facts small { color: #8793a6; font-size: .72rem; }
.service-facts strong { color: var(--service-heading); font-size: .9rem; font-weight: 850; }

.service-details-panel { margin-top: 20px; padding: 28px; border-radius: 22px; }
.service-description-panel { padding: clamp(24px, 4vw, 42px); }
.service-details-panel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 20px !important; color: var(--service-heading) !important; font: 850 1.15rem var(--gna-font-family) !important; }
.service-full-description { color: #63708b; font-size: .9rem; line-height: 2.15; overflow-wrap: anywhere; }
.service-rich-content { color: #52617a; font-size: .91rem; line-height: 2.15; }
.service-rich-content > :first-child { margin-top: 0 !important; }
.service-rich-content > :last-child { margin-bottom: 0 !important; }
.service-rich-content p { margin: 0 0 1.15em; color: inherit; font: inherit; }
.service-rich-content h1,
.service-rich-content h2,
.service-rich-content h3 { position: relative; margin: 1.6em 0 .7em !important; color: var(--service-heading) !important; font-family: var(--gna-font-family) !important; line-height: 1.65 !important; }
.service-rich-content h1 { font-size: clamp(1.45rem, 2.4vw, 2rem) !important; font-weight: 900 !important; }
.service-rich-content h2 { padding-right: 17px; font-size: clamp(1.15rem, 2vw, 1.45rem) !important; font-weight: 880 !important; }
.service-rich-content h2::before { position: absolute; top: .22em; right: 0; width: 5px; height: 1.25em; border-radius: 5px; background: linear-gradient(180deg, var(--service-cyan), var(--service-blue)); content: ""; }
.service-rich-content h3 { font-size: 1.05rem !important; font-weight: 850 !important; }
.service-rich-content ul,
.service-rich-content ol { margin: 1em 0 1.3em; padding-right: 1.7rem; }
.service-rich-content li { margin: .45em 0; padding-right: .2rem; }
.service-rich-content li::marker { color: var(--service-blue); font-weight: 850; }
.service-rich-content blockquote { margin: 1.5em 0; padding: 18px 22px; border: 0; border-right: 4px solid var(--service-accent); border-radius: 14px; background: linear-gradient(90deg, #fffaf0, #f8fbff); color: #384a67; font-weight: 650; }
.service-rich-content a { color: var(--service-blue) !important; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(47, 115, 224, .35); text-underline-offset: 4px; }
.service-rich-content img { display: block; width: auto; max-width: min(100%, 900px); height: auto; margin: 28px auto; border: 1px solid var(--service-border); border-radius: 20px; box-shadow: 0 18px 44px rgba(20, 45, 87, .13); }
.service-rich-content pre { overflow-x: auto; margin: 1.4em 0; padding: 17px 20px; border-radius: 13px; background: #10213b; color: #edf5ff; direction: ltr; text-align: left; }
.service-rich-content .ql-align-center { text-align: center; }
.service-rich-content .ql-align-left { text-align: left; }
.service-rich-content .ql-align-right { text-align: right; }
.service-rich-content .ql-align-justify { text-align: justify; }
.service-rich-content .ql-direction-rtl { direction: rtl; }
.service-rich-content .ql-size-small { font-size: .75em; }
.service-rich-content .ql-size-large { font-size: 1.35em; }
.service-rich-content .ql-size-huge { font-size: 1.8em; }
.service-rich-content .ql-indent-1 { margin-right: 2.5em; }
.service-rich-content .ql-indent-2 { margin-right: 5em; }
.service-rich-content .ql-indent-3 { margin-right: 7.5em; }
.service-details-panel h2::before { width: 5px; height: 24px; border-radius: 5px; background: linear-gradient(180deg, var(--service-cyan), var(--service-blue)); content: ""; }

.service-category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.service-category-list a { padding: 8px 14px; border: 1px solid #d5e3f7; border-radius: 999px; background: var(--service-soft); color: var(--service-primary) !important; font-size: .75rem; font-weight: 700; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.service-category-list a:hover { border-color: #aac6ee; background: #e9f2ff; transform: translateY(-2px); }

.service-related-section { margin-top: 42px; }
.service-related-heading { margin-bottom: 20px; }
.service-related-heading h2 { margin: 0 0 8px !important; color: var(--service-heading) !important; font: 900 clamp(1.35rem,2vw,1.8rem)/1.6 var(--gna-font-family) !important; }
.service-related-heading p { margin: 0; color: var(--service-muted); font-size: .8rem; }
.service-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.service-related-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--service-border); border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(20,45,87,.07); transition: transform .25s ease,box-shadow .25s ease,border-color .25s ease; }
.service-related-card:hover { border-color: #b9ceec; box-shadow: 0 18px 42px rgba(20,45,87,.12); transform: translateY(-4px); }
.service-related-card__media { position: relative; display: block; height: 172px; overflow: hidden; background: #edf3fa; }
.service-related-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-related-card:hover .service-related-card__media > img { transform: scale(1.045); }
.service-related-card__media > span { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle,#fff,#eaf1f9); }
.service-related-card__media > span img { width: 72px; height: 105px; object-fit: contain; opacity: .8; }
.service-related-card__content { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.service-related-card__content h3 { margin: 0 0 8px !important; color: var(--service-heading) !important; font: 850 .96rem/1.7 var(--gna-font-family) !important; }
.service-related-card__content h3 a { color: inherit !important; }
.service-related-card__content > p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: var(--service-muted); font-size: .74rem; line-height: 1.9; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.service-related-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service-related-card__facts span { padding: 5px 8px; border-radius: 8px; background: var(--service-soft); color: #65748c; font-size: .65rem; font-weight: 700; }
.service-related-card__link { width: max-content; margin-top: 14px; color: var(--service-blue) !important; font-size: .72rem; font-weight: 850; }
.service-related-empty { padding: 32px; border: 1px dashed #b8cceb; border-radius: 20px; background: #fff; color: var(--service-muted); text-align: center; }

.audience-details-hero { display: grid; min-height: 360px; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); overflow: hidden; border: 1px solid var(--service-border); border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(20,45,87,.1); }
.audience-details-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px,5vw,64px); background: radial-gradient(circle at 100% 0,rgba(255,193,25,.14),transparent 40%),linear-gradient(145deg,#fff,#f3f8ff); }
.audience-details-hero__copy > span { width: max-content; padding: 7px 13px; border-radius: 999px; background: rgba(47,115,224,.1); color: var(--service-blue); font-size: .74rem; font-weight: 850; }
.audience-details-hero__copy h1 { margin: 16px 0 11px !important; color: var(--service-heading) !important; font: 900 clamp(2rem,3vw,3rem)/1.55 var(--gna-font-family) !important; }
.audience-details-hero__copy p { max-width: 680px; margin: 0; color: var(--service-muted); font-size: .9rem; line-height: 2.1; white-space: pre-line; }
.audience-details-hero__media { position: relative; min-height: 360px; overflow: hidden; background: #eaf1f9; }
.audience-details-hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audience-details-hero__media > span { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle,#fff,#eaf1f9); }
.audience-details-hero__media > span img { width: 120px; height: 190px; object-fit: contain; opacity: .85; }
.audience-services { margin-top: 48px; }

.service-attachment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-attachment-grid > a { display: flex; min-width: 0; flex-direction: column; gap: 7px; padding: 11px; border: 1px solid var(--service-border); border-radius: 16px; background: #fbfdff; color: var(--service-primary) !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-attachment-grid > a:hover { border-color: #aac6ee; box-shadow: 0 12px 26px rgba(20, 45, 87, .1); transform: translateY(-3px); }
.service-attachment-grid img,
.service-attachment-grid video { width: 100%; height: 150px; border-radius: 12px; object-fit: cover; background: #171a20; }
.service-file-icon { display: grid; height: 150px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #edf4ff, #f8fbff); color: var(--service-blue); font-size: 2.2rem; }
.service-attachment-grid strong { overflow: hidden; color: var(--service-heading); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.service-attachment-grid small { color: #8995a7; font-size: .66rem; }

@media (max-width: 1050px) {
    .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-attachment-grid { grid-template-columns: repeat(3, 1fr); }
    .service-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
    .service-details-page { padding: 30px 18px 65px; }
    .service-details-hero { grid-template-columns: 1fr; }
    .service-details-cover { min-height: 330px; grid-row: 1; }
    .service-details-copy { padding: 36px 30px; }
    .service-facts { grid-template-columns: 1fr 1fr; }
    .service-attachment-grid { grid-template-columns: 1fr 1fr; }
    .audience-details-hero { grid-template-columns: 1fr; }
    .audience-details-hero__media { min-height: 290px; grid-row: 1; }
}

@media (max-width: 767px) {
    .home-services-section { padding: 58px 14px 64px; }
    .home-services-grid { grid-template-columns: 1fr; gap: 15px; }
    .home-services-heading { margin-bottom: 29px; }
}

@media (max-width: 480px) {
    .home-service-card { min-height: 180px; grid-template-columns: minmax(0, 1fr) 39%; border-radius: 18px; }
    .home-service-media { min-height: 180px; }
    .home-service-content { padding: 19px 15px 18px; }
    .home-service-title-row { align-items: flex-start; gap: 8px; }
    .home-service-title-row h3 { font-size: .88rem !important; }
    .home-service-icon { width: 35px; height: 35px; flex-basis: 35px; border-radius: 11px; }
    .home-service-icon svg { width: 23px; height: 23px; }
    .service-details-copy { padding: 31px 22px; }
    .service-details-cover { min-height: 270px; }
    .service-details-actions { flex-direction: column; }
    .service-facts,
    .service-attachment-grid,
    .service-related-grid { grid-template-columns: 1fr; }
    .service-details-panel { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-service-card,
    .home-service-media > img,
    .home-service-link svg,
    .service-book-button,
    .service-back-button,
    .service-category-list a,
    .service-related-card,
    .service-related-card__media > img,
    .service-attachment-grid > a { transition: none; }
}
