/* Extracted verbatim from front-page.php (6 inline block(s)).
   Order preserved; enqueue order in functions.php reproduces the original cascade. */

.text-light-70 {
    color: rgba(244, 244, 251, 0.78) !important;
}

/* Global Section Badge Style */
.rn-section-badge {
    display: inline-block;
    padding: clamp(0.5rem, 1vw, 0.65rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 999px;
    background: rgba(191, 171, 211, 0.16);
    border: 1px solid #f0b519;
    color: var(--ct-accent);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    letter-spacing: 0.6px;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    transition: all 0.3s ease;
}

.rn-section-badge:hover {
    background: rgba(191, 171, 211, 0.22);
    border-color: #f0b519;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 181, 25, 0.3);
}

.rn-hero {
    min-height: clamp(640px, 90vh, 840px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #0d0d18;
    padding-top: clamp(6rem, 10vw, 8rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.rn-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rn-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.95);
}

.rn-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(13, 13, 24, 0.9) 0%, rgba(13, 13, 24, 0.65) 45%, rgba(13, 13, 24, 0.55) 100%);
}

.rn-hero__noise {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(208, 177, 212, 0.18), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(191, 171, 211, 0.12), transparent 55%);
    mix-blend-mode: screen;
    opacity: 0.45;
}

.rn-hero__content {
    position: relative;
    z-index: 5;
}

.rn-hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rn-hero__lead {
    max-width: 720px;
}

.rn-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    background: rgba(191, 171, 211, 0.16);
    border: 1px solid #f0b519;
    color: var(--ct-accent);
    font-weight: 600;
    letter-spacing: 0.6px;
}

.rn-hero__actions {
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
    margin-bottom: 0;
    gap: clamp(0.75rem, 1.25vw, 1rem) !important;
    padding: 0;
}

.rn-hero__btn {
    min-width: auto;
    width: auto;
    white-space: nowrap;
    padding: clamp(0.65rem, 1.25vw, 0.875rem) clamp(1.25rem, 2.5vw, 1.75rem) !important;
    border-radius: clamp(0.5rem, 0.75vw, 0.65rem) !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-width: 2px !important;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
    letter-spacing: 0.3px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rn-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

.rn-hero__btn--primary {
    background: linear-gradient(135deg, rgba(191, 171, 211, 0.98), rgba(191, 171, 211, 0.9)) !important;
    border-color: #f0b519 !important;
    color: #111 !important;
}

.rn-hero__btn--primary:hover {
    background: linear-gradient(135deg, rgba(191, 171, 211, 1), rgba(191, 171, 211, 0.95)) !important;
    border-color: #f0b519 !important;
    box-shadow: 0 6px 20px rgba(191, 171, 211, 0.45), 0 0 15px rgba(240, 181, 25, 0.4);
    color: #111 !important;
}

.rn-hero__btn--secondary {
    background: transparent !important;
    border-color: #f0b519 !important;
    color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
}

.rn-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #f0b519 !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25), 0 0 15px rgba(240, 181, 25, 0.4);
}

.rn-hero__btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    margin-bottom: 0;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .rn-hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
        margin-top: clamp(1.25rem, 2vw, 1.75rem);
    }
    
    .rn-hero__btn {
        width: auto;
        min-width: auto;
        padding: clamp(0.75rem, 1.75vw, 0.9rem) clamp(1.5rem, 5vw, 2rem) !important;
        max-width: 280px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .rn-hero__actions {
        gap: 0.875rem !important;
    }
    
    .rn-hero__btn {
        padding: clamp(0.7rem, 1.5vw, 0.85rem) clamp(1.35rem, 3vw, 1.65rem) !important;
    }
}

@media (max-width: 767.98px) {
    .rn-hero {
        padding-top: 5rem;
        padding-bottom: 4rem;
        min-height: 640px;
    text-align: center;
}

    .rn-hero__badge {
        margin-bottom: 1.25rem;
    }
}

.rn-about-section {
    position: relative;
    padding: clamp(5rem, 9vw, 7rem) 0;
    background: linear-gradient(135deg, rgba(13, 13, 24, 0.94), rgba(7, 7, 15, 0.92));
}

.rn-about__background {
    position: absolute;
    inset: 0;
    /* background-image removed: assets/images/background/ does not exist, so this
       url() 404'd on every page load while painting nothing (the layer sits at
       opacity 0.18 over the dark gradient below). */
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.rn-about__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(208, 177, 212, 0.25), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(252, 216, 2, 0.22), transparent 60%),
        linear-gradient(135deg, rgba(13, 13, 24, 0.88), rgba(7, 7, 15, 0.9));
}

.rn-about__intro {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.rn-about__tabs {
    position: relative;
    z-index: 2;
}

.rn-about__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.rn-about__nav .nav-link {
    color: rgba(244, 244, 251, 0.7);
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    border: 1px solid #f0b519;
    transition: all 0.3s ease;
    font-weight: 600;
    background: rgba(31, 31, 52, 0.6);
    backdrop-filter: blur(12px);
}

.rn-about__nav .nav-link.active,
.rn-about__nav .nav-link:hover {
    color: #111;
    background: linear-gradient(135deg, var(--ct-accent), var(--ct-accent-dark));
    border-color: #f0b519;
}

.rn-about__nav .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: rgba(191, 171, 211, 0.82);
    transition: color 0.3s ease, transform 0.3s ease;
}

.rn-about__nav .nav-link.active i {
    color: #111 !important;
}

.rn-about__content {
    margin-top: 3rem;
}

.rn-about__card {
    background: rgba(20, 20, 38, 0.82);
    border: 1px solid rgba(208, 177, 212, 0.25);
    border-radius: 1.5rem;
    padding: clamp(2rem, 5vw, 2.75rem);
    box-shadow: 0 26px 55px rgba(5, 5, 15, 0.45);
}

.rn-about__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(240, 181, 25, 0.35), rgba(208, 177, 212, 0.3));
    border: 1px solid #f0b519;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 1.5rem;
    box-shadow: 0 16px 30px rgba(240, 181, 25, 0.25);
}

.rn-about__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    color: rgba(244, 244, 251, 0.78);
}

.rn-about__list li i {
    color: var(--ct-accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.rn-about__media {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 32px 65px rgba(5, 5, 15, 0.55);
}

.rn-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rn-about__media-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(20, 20, 38, 0.85);
    color: rgba(244, 244, 251, 0.6);
    gap: 1rem;
    font-weight: 600;
}

.rn-about__media-placeholder i {
    font-size: 2rem;
    color: var(--ct-accent);
}

.rn-about__media-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(252, 216, 2, 0.25), transparent 45%);
    opacity: 0.35;
}

@media (max-width: 991.98px) {
    .rn-about__nav .nav-link {
        padding: 0.65rem 1.35rem;
    }
}

@media (max-width: 767.98px) {
    .rn-about-section {
    padding: 4rem 0;
}

    .rn-about__nav {
    display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        justify-content: center !important;
        justify-items: center !important;
        max-width: 600px;
        margin: 0 auto !important;
    }

    .rn-about__nav .nav-link {
    width: 100%;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .rn-about__nav .nav-link i {
        font-size: 1.05rem;
    }

    .rn-about__card {
        padding: 1.75rem;
    }

    .rn-about__media {
        border-radius: 1.25rem;
    }
}

.rn-services {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(208, 177, 212, 0.25), transparent 55%),
                linear-gradient(135deg, rgba(10, 10, 18, 0.96), rgba(6, 6, 12, 0.96));
}

.rn-services__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) blur(6px);
    transform: scale(1.05);
    opacity: 0.45;
}

.rn-services__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 14, 0.75) 0%, rgba(7, 7, 14, 0.92) 60%),
        radial-gradient(circle at 75% 10%, rgba(191, 171, 211, 0.22), transparent 60%);
}

.rn-services__intro {
    position: relative;
    z-index: 3;
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.rn-services__intro .rn-section-badge {
    font-size: 1.2rem;
    padding: 0.65rem 2rem;
    letter-spacing: 0.65px;
}

@media (max-width: 767.98px) {
    .rn-services__intro {
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }
    
    .rn-services__intro .rn-section-badge {
        margin-top: clamp(1rem, 2vw, 1.5rem);
    }
}

@media (min-width: 992px) {
    .rn-services__intro .rn-section-badge {
        font-size: 1.8rem;
        padding: 0.8rem 2.35rem;
        letter-spacing: 0.85px;
    }

    .rn-services__intro {
        transform: translateY(-28%);
        margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
    }

    .rn-services__slider {
        margin-top: -0.5rem;
    }
}

.rn-services__slider {
    position: relative;
    z-index: 2;
    perspective: 1200px;
    padding: clamp(0.75rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rn-services__track {
    position: relative;
    width: clamp(230px, 34vw, 360px);
    height: clamp(195px, 24vw, 240px);
    min-height: clamp(195px, 24vw, 240px);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    margin: 0 auto;
}

.rn-service-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transition:
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
    opacity: 0;
    filter: blur(1px);
    pointer-events: none;
    height: 100%;
}

.rn-service-card__inner {
    position: relative;
    border-radius: 1.25rem;
    --service-card-padding: clamp(0.6rem, 1.4vw, 0.9rem);
    --service-card-min-height: clamp(118px, 21vw, 160px);
    --service-card-gap: 0.55rem;
    padding: var(--service-card-padding);
    padding-bottom: clamp(0.7rem, 1.5vw, 0.95rem);
    background:
        linear-gradient(150deg, rgba(22, 22, 36, 0.9), rgba(6, 6, 16, 0.85)),
        rgba(10, 10, 22, 0.28);
    border: 1px solid rgba(208, 177, 212, 0.42);
    backdrop-filter: blur(14px);
    box-shadow:
        0 24px 48px rgba(3, 3, 12, 0.45),
        inset 0 0 38px rgba(208, 177, 212, 0.12);
    /* أعلى بحوالي 40% على الديسكتوب */
    min-height: var(--service-card-min-height);
    display: flex;
    flex-direction: column;
    gap: var(--service-card-gap);
    align-items: flex-start;
    justify-content: space-between;
    overflow: visible;
    color: rgba(245, 245, 255, 0.94);
    line-height: 1.45;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
    text-align: start;
}

.rn-service-card__inner h3 {
    color: #fff;
    margin-bottom: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.rn-service-card__description {
    font-size: clamp(0.63rem, 1.12vw, 0.714rem);
    margin-bottom: 0;
    color: rgba(240, 240, 249, 0.82);
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.rn-service-card__order-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.5rem, 1vw, 0.65rem) clamp(1rem, 1.8vw, 1.25rem);
    margin-top: auto;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #fff !important;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    position: relative;
    z-index: 20 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.rn-service-card.is-front .rn-service-card__order-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-flex !important;
}

.rn-service-card__order-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

.rn-service-card__order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.rn-service-card__order-btn i {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rn-service-card.is-side .rn-service-card__order-btn,
.rn-service-card.is-back .rn-service-card__order-btn {
    display: none;
}

.rn-service-card__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(191, 171, 211, 0.18), transparent 55%),
        radial-gradient(circle at 78% 82%, rgba(208, 177, 212, 0.15), transparent 58%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.rn-service-card__order-btn * {
    pointer-events: none;
}

.rn-service-card__inner::before {
    content: '';
    position: absolute;
    inset: 13%;
    border-radius: 1.1rem;
    background: linear-gradient(160deg, rgba(191, 171, 211, 0.15), rgba(208, 177, 212, 0.08));
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.rn-service-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.7rem;
    flex-direction: row-reverse;
}

.rn-service-card__title h3 {
    flex: 1;
    text-align: right;
}

.rn-service-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.95);
    background: linear-gradient(135deg, rgba(191, 171, 211, 0.78), rgba(208, 177, 212, 0.55));
    border: 1px solid #f0b519;
    border-radius: 999px;
    padding: 0.36rem 0.95rem;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    margin-bottom: 0.55rem;
}

.rn-service-card__tag i {
    font-size: 0.85rem;
}

.rn-service-card__icon {
    width: clamp(40px, 4.4vw, 46px);
    height: clamp(40px, 4.4vw, 46px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(240, 181, 25, 0.45), rgba(255, 244, 200, 0.28)),
        rgba(240, 181, 25, 0.16);
    border: 1px solid #f0b519;
    color: rgba(17, 17, 17, 0.9);
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    box-shadow:
        0 18px 34px rgba(240, 181, 25, 0.26),
        inset 0 0 12px rgba(255, 248, 210, 0.35);
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    flex-shrink: 0;
}

.rn-service-card__icon::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.58), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.rn-service-card.is-front {
    pointer-events: auto;
    opacity: 1;
    filter: blur(0);
    z-index: 5;
}

.rn-service-card.is-front .rn-service-card__inner {
    box-shadow:
        0 40px 80px rgba(3, 3, 12, 0.65),
        inset 0 0 65px rgba(252, 216, 2, 0.14);
}

.rn-service-card.is-front .rn-service-card__inner::before {
    opacity: 1;
}

.rn-service-card.is-side {
    opacity: 0.2;
    filter: blur(0.85px);
}

.rn-service-card.is-back {
    opacity: 0.1;
}

.rn-services__nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(191, 171, 211, 0.42);
    background: rgba(17, 17, 28, 0.55);
    color: rgba(191, 171, 211, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.rn-services__nav--prev {
    right: clamp(0.75rem, 3vw, 1.5rem);
}

.rn-services__nav--next {
    left: clamp(0.75rem, 3vw, 1.5rem);
}

.rn-services__nav:hover {
    background: rgba(191, 171, 211, 0.25);
    color: #111;
    transform: translateY(-50%) scale(1.06);
}

.rn-services__nav i {
    font-size: 1.3rem;
}

.rn-services__dots {
    position: absolute;
    bottom: clamp(-3.6rem, -7vw, -2.4rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 2;
}

.rn-services__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(191, 171, 211, 0.7);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.rn-services__dot.is-active {
    background: rgba(191, 171, 211, 0.85);
    border-color: rgba(191, 171, 211, 0.95);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(191, 171, 211, 0.6);
}

.rn-services__dot.is-active {
    background: rgba(191, 171, 211, 0.85);
    border-color: rgba(191, 171, 211, 0.95);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(191, 171, 211, 0.6);
}

/* Tablet optimizations for better 3D effect */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .rn-services__slider {
        perspective: 1100px !important;
        perspective-origin: center center;
    }

    .rn-services__track {
        width: clamp(240px, 42vw, 320px) !important;
        height: clamp(170px, 48vw, 210px) !important;
        min-height: clamp(170px, 48vw, 210px) !important;
        max-height: clamp(210px, 52vw, 240px) !important;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .rn-service-card {
        transform-style: preserve-3d !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        will-change: transform, opacity;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-perspective: 1000px;
    }

    .rn-service-card__inner {
        min-height: clamp(170px, 48vw, 210px);
        max-height: clamp(210px, 52vw, 240px);
        height: auto;
        overflow: visible;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .rn-service-card__inner p {
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .rn-service-card.is-front {
        opacity: 1 !important;
        filter: blur(0) !important;
    }

    .rn-service-card.is-side {
        opacity: 0.5 !important;
        filter: blur(0.5px) !important;
    }

    .rn-service-card.is-back {
        opacity: 0.25 !important;
        filter: blur(0.8px) !important;
    }

    .rn-services__dots {
        bottom: clamp(-0.5rem, -1vw, 0rem);
        margin-top: 0;
    }
}

@media (max-width: 1199.98px) {
    .rn-services__track {
        width: clamp(200px, 44vw, 300px);
        height: clamp(180px, 34vw, 250px);
    }

    .rn-services__dots {
        bottom: clamp(-0.5rem, -1vw, 0rem);
    }
}

@media (max-width: 991.98px) {
    .rn-services__slider {
        perspective: 1000px;
        perspective-origin: center center;
        padding: clamp(0.75rem, 4vw, 2.25rem);
    }

    .rn-services__track {
        width: clamp(180px, 54vw, 260px);
        height: clamp(170px, 48vw, 210px);
        min-height: clamp(170px, 48vw, 210px);
        transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .rn-service-card {
        transform-style: preserve-3d !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    .rn-service-card__inner {
        padding: clamp(0.7rem, 3vw, 1rem);
        min-height: clamp(170px, 48vw, 210px);
        max-height: clamp(210px, 52vw, 240px);
        height: auto;
        overflow: visible;
        transform-style: preserve-3d;
        backface-visibility: hidden;
    }

    .rn-service-card__inner p {
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .rn-service-card__icon {
        width: clamp(34px, 5.5vw, 40px);
        height: clamp(34px, 5.5vw, 40px);
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }

    .rn-services__dots {
        bottom: clamp(-0.5rem, -1vw, 0rem);
        margin-top: 0;
    }
}

/* iPad Air specific optimizations (820px - 834px width) - general tablet */
@media (min-width: 820px) and (max-width: 834px) {
    .rn-services__slider {
        padding: clamp(1.5rem, 5vw, 2.5rem) !important;
    }

    .rn-services__track {
        width: clamp(320px, 55vw, 360px) !important;
        height: clamp(240px, 55vw, 280px) !important;
        min-height: clamp(240px, 55vw, 280px) !important;
        max-height: clamp(280px, 60vw, 320px) !important;
    }

    .rn-service-card__inner {
        min-height: clamp(240px, 55vw, 280px) !important;
        max-height: clamp(280px, 60vw, 320px) !important;
        height: auto !important;
        padding: clamp(1rem, 4vw, 1.3rem) !important;
        gap: 0.75rem !important;
    }

    .rn-service-card__inner h3 {
        font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
        margin-bottom: 0.65rem !important;
        line-height: 1.3 !important;
    }

    .rn-service-card__inner p {
        font-size: clamp(0.85rem, 2vw, 1.05rem) !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
    }

    .rn-service-card__icon {
        width: clamp(42px, 6vw, 48px) !important;
        height: clamp(42px, 6vw, 48px) !important;
        font-size: clamp(1.2rem, 2.5vw, 1.4rem) !important;
    }

    .rn-service-card__tag {
        font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
        padding: clamp(0.4rem, 1.2vw, 0.55rem) clamp(0.8rem, 2vw, 1rem) !important;
        margin-bottom: 0.5rem !important;
    }

    .rn-services__dots {
        bottom: clamp(-0.2rem, -0.5vw, 0.3rem) !important;
        margin-top: 1rem !important;
    }

    .rn-services__nav {
        width: clamp(50px, 7vw, 56px) !important;
        height: clamp(50px, 7vw, 56px) !important;
    }
}

@media (max-width: 767.98px) {
    .rn-services {
        padding: clamp(2.6rem, 5.2vw, 3.8rem) 0;
    }

    .rn-services__slider {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "track track"
            "dots dots"
            "prev next";
        justify-items: center;
        align-items: center;
        row-gap: 2rem !important;
        column-gap: clamp(0.6rem, 4vw, 1rem);
        padding-inline: clamp(0.7rem, 5.6vw, 1.4rem);
    }

    .rn-services__track {
        grid-area: track !important;
        width: min(65.34vw, 191.18px) !important;
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
    }

    .rn-services__nav {
        position: static !important;
        transform: none !important;
        display: inline-flex !important;
        z-index: 4 !important;
        margin-top: 0 !important;
    }

    .rn-services__nav--prev {
        grid-area: prev !important;
        justify-self: end;
    }

    .rn-services__nav--next {
        grid-area: next !important;
        justify-self: start;
    }

    .rn-services__dots {
        grid-area: dots !important;
        position: static !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
    }

    .rn-service-card {
        align-items: center !important;
        height: auto !important;
        width: 100% !important;
    }

    .rn-service-card__inner {
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        width: 100% !important;
        padding: clamp(0.5rem, 2.8vw, 0.65rem) !important;
        gap: clamp(0.3rem, 2vw, 0.45rem) !important;
        flex-shrink: 1 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .rn-service-card__title h3 {
        font-size: clamp(0.72rem, 2.75vw, 0.86rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0 !important;
    }

    .rn-service-card__inner p {
        font-size: clamp(0.58rem, 2.5vw, 0.72rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .rn-service-card__tag {
        font-size: clamp(0.54rem, 2.4vw, 0.66rem) !important;
        padding-inline: 0.42rem !important;
        padding-block: 0.22rem !important;
        margin-bottom: 0.16rem !important;
    }

    .rn-service-card__icon {
        width: clamp(24px, 7.2vw, 30px) !important;
        height: clamp(24px, 7.2vw, 30px) !important;
        font-size: clamp(0.78rem, 2.8vw, 0.94rem) !important;
        border-radius: 11px;
    }

    .rn-video-gallery__mobile-track {
        width: min(82vw, 360px);
        margin-inline: auto;
        min-height: 0;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rn-video-gallery__mobile-slide {
        padding-inline: clamp(0.15rem, 2.8vw, 0.5rem);
    }

    .rn-video-gallery__mobile-slide .rn-video-card {
        width: 100%;
        max-width: min(82vw, 360px);
        margin: 0;
        border-radius: clamp(1.4rem, 6vw, 2.4rem);
        overflow: hidden;
        aspect-ratio: 9 / 16;
        display: flex;
        flex-direction: column;
    }

    .rn-video-gallery__mobile-slide .rn-video-card__video {
        width: 100%;
        height: 100%;
        aspect-ratio: 9 / 16;
        object-fit: cover;
        border-radius: inherit;
    }
}

@media (max-width: 575.98px) {
    .rn-services__slider {
        row-gap: 1.6rem !important;
        padding-inline: clamp(0.5rem, 4.2vw, 0.8rem);
    }

    .rn-services__track {
        width: min(84.7vw, 176.66px) !important;
        height: clamp(92.93px, 31.56vw, 115.19px) !important;
    }

    .rn-services__nav {
        margin-top: 0 !important;
    }

    .rn-services__dots {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .rn-service-card {
        align-items: center !important;
        height: auto !important;
        width: 100% !important;
    }

    .rn-service-card__inner {
        height: clamp(74.54px, 26.04vw, 92.93px) !important;
        width: 100% !important;
        padding: clamp(0.34rem, 2.4vw, 0.46rem) !important;
        gap: clamp(0.22rem, 1.76vw, 0.34rem) !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .rn-service-card__title h3 {
        font-size: clamp(0.68rem, 3.3vw, 0.82rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 0 !important;
    }

    .rn-service-card__inner p {
        font-size: clamp(0.54rem, 3vw, 0.68rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
    }

    .rn-service-card__tag {
        font-size: clamp(0.5rem, 2.9vw, 0.62rem) !important;
        padding-inline: 0.38rem !important;
        padding-block: 0.2rem !important;
        margin-bottom: 0.14rem !important;
    }

    .rn-service-card__icon {
        width: clamp(22px, 8vw, 28px) !important;
        height: clamp(22px, 8vw, 28px) !important;
        font-size: clamp(0.74rem, 3vw, 0.9rem) !important;
    }

    .rn-video-gallery__mobile-track {
        width: min(88vw, 320px);
    }

    .rn-video-gallery__mobile-slide .rn-video-card {
        border-radius: clamp(1.8rem, 9.5vw, 3rem);
    }
}

.rn-video-gallery {
    position: relative;
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: linear-gradient(135deg, rgba(12, 12, 22, 0.94), rgba(6, 6, 14, 0.94));
}

.rn-video-gallery .container {
    max-width: min(100%, 1584px);
}

.rn-video-gallery__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(208, 177, 212, 0.18), transparent 55%),
        radial-gradient(circle at 82% 82%, rgba(252, 216, 2, 0.16), transparent 60%);
    opacity: 0.3;
}

.rn-video-gallery__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 16, 0.75) 0%, rgba(7, 7, 16, 0.92) 70%),
        radial-gradient(circle at 75% 15%, rgba(252, 216, 2, 0.18), transparent 65%);
}

.rn-video-gallery__intro {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.rn-video-gallery__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, clamp(170px, 12vw, 260px)));
    justify-content: center;
    gap: 1.4rem;
}

.rn-video-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(155deg, rgba(24, 24, 42, 0.85), rgba(6, 6, 14, 0.9));
    border: 1px solid rgba(208, 177, 212, 0.32);
    box-shadow: 0 18px 35px rgba(5, 5, 15, 0.45);
    display: flex;
    flex-direction: column;
}

.rn-video-card__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(36, 36, 58, 0.85), rgba(16, 16, 28, 0.9));
}

.rn-video-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: rgba(252, 216, 2, 0.92);
}

.rn-video-card__indicator {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.9);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.rn-video-card__video {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: clamp(280px, 32vw, 420px);
    object-fit: cover;
    display: block;
    background: #050509;
}

/* Poster facade — the real <video> is injected on click, so the homepage no
   longer preloads six video streams. */
.rn-video-card__facade {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    height: clamp(280px, 32vw, 420px);
    display: block;
    padding: 0;
    border: 0;
    background: #050509;
    cursor: pointer;
    overflow: hidden;
}

.rn-video-card__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rn-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13, 13, 24, 0.72);
    border: 2px solid var(--ct-accent);
    color: var(--ct-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.rn-video-card__facade:hover .rn-video-card__play {
    background: var(--ct-accent-gradient);
    color: #14121c;
    transform: translate(-50%, -50%) scale(1.1);
}

.rn-video-card__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 45% 25%, rgba(252, 216, 2, 0.22), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.65;
}

.rn-video-gallery__mobile {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    width: 100%;
}

.rn-video-gallery__mobile-track {
    position: relative;
    min-height: clamp(440px, 118vw, 760px);
    height: clamp(500px, 132vw, 880px);
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.rn-video-gallery__mobile-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.rn-video-gallery__mobile-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.rn-video-gallery__mobile-slide .rn-video-card,
.rn-video-gallery__mobile-slide .rn-video-card__video {
    height: 100%;
}

.rn-video-gallery__mobile-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
}

.rn-video-gallery__mobile-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(252, 216, 2, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rn-video-gallery__mobile-dot.is-active {
    background: rgba(252, 216, 2, 0.88);
    border-color: rgba(252, 216, 2, 0.95);
    width: 18px;
}

.rn-video-gallery__mobile-nav {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.9rem;
}

.rn-video-gallery__mobile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(252, 216, 2, 0.45);
    background: rgba(17, 17, 28, 0.65);
    color: rgba(252, 216, 2, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rn-video-gallery__mobile-btn:hover {
    background: rgba(252, 216, 2, 0.26);
    color: #111;
}

@media (max-width: 1399.98px) {
    .rn-video-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .rn-video-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rn-floating-actions {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.rn-floating-actions.is-open {
    gap: 14px;
}

.rn-floating-toggle,
.rn-floating-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ct-text);
    background: linear-gradient(145deg, rgba(208, 177, 212, 0.25), rgba(22, 22, 38, 0.95));
    border: 1px solid rgba(208, 177, 212, 0.35);
    box-shadow: 0 18px 35px rgba(5, 5, 15, 0.45);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, opacity 0.3s ease;
    pointer-events: auto;
}

.rn-floating-toggle:hover,
.rn-floating-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 24px 45px rgba(5, 5, 15, 0.55);
}

.rn-floating-toggle {
    background: linear-gradient(145deg, var(--ct-accent), var(--ct-accent-dark));
    color: #111;
}

.rn-floating-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform-origin: bottom center;
    transform: scale(0.85);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.rn-floating-actions.is-open .rn-floating-list {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.rn-floating-actions.is-open .rn-floating-btn {
    animation: rn-float-in 0.35s ease forwards;
}

.rn-floating-btn:nth-child(1) { animation-delay: 0.02s; }
.rn-floating-btn:nth-child(2) { animation-delay: 0.04s; }
.rn-floating-btn:nth-child(3) { animation-delay: 0.06s; }
.rn-floating-btn:nth-child(4) { animation-delay: 0.08s; }
.rn-floating-btn:nth-child(5) { animation-delay: 0.10s; }

/* Branch shortcuts: circular like the others, with a label that slides out. */
.rn-floating-btn--branch {
    position: relative;
}

.rn-floating-btn--branch .rn-floating-label {
    position: absolute;
    inset-inline-start: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: rgba(13, 13, 24, 0.94);
    border: 1px solid rgba(208, 177, 212, 0.4);
    color: var(--ct-text);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    direction: rtl;
}

.rn-floating-btn--branch:hover .rn-floating-label,
.rn-floating-btn--branch:focus-visible .rn-floating-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Touch devices get no hover, so keep the labels permanently visible there. */
@media (hover: none) {
    .rn-floating-btn--branch .rn-floating-label {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
        font-size: 0.78rem;
        padding: 0.28rem 0.7rem;
    }
}

@keyframes rn-float-in {
    0% {
        transform: translateY(12px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
    opacity: 1;
}
}

@media (max-width: 575.98px) {
    .rn-floating-actions {
        bottom: 18px;
        left: 18px;
        gap: 10px;
    }

    .rn-floating-toggle,
    .rn-floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }
}

.rn-partners-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: linear-gradient(135deg, rgba(14,14,24,0.95), rgba(8,8,16,0.95));
}
.rn-partners__intro .rn-section-badge {
    font-size: 1.1rem;
}
.rn-partners__viewport {
    overflow: hidden;
    position: relative;
    --partner-row: clamp(56px, 6vw, 72px);
    --partner-gap: 12px;
    height: var(--partner-row); /* one row view */
}
.rn-partners__track {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: var(--partner-gap);
    align-items: center;
    align-content: start;
    grid-auto-rows: var(--partner-row);
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 1;
}
.rn-partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    min-height: var(--partner-row);
}
.rn-partners__logo {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: clamp(40px, 4.2vw, 56px);
    object-fit: contain;
    filter: none; /* keep original colors */
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.rn-partners__item:hover .rn-partners__logo {
    transform: translateY(-2px);
    opacity: 1;
}

/* Brighten partner logos that are too dark for this background.
   Measured against the strip's rgb(14,14,24): each of these sits below ~2.3:1
   contrast in its original colours. Only single-hue marks are listed —
   flattening a multi-colour logo to white would destroy it, so Nahdi, Riyad
   Bank and the Ministry of Education keep their own colours (4.2–5.3:1). */
.rn-partners__logo[src*="/Alinma"],
.rn-partners__logo[src*="/Kafd-01"],
.rn-partners__logo[src*="/logo-125-x-510-"],
.rn-partners__logo[src*="/Alrajhi-Bank-01"],
.rn-partners__logo[src*="/riyadh-chamber"],
.rn-partners__logo[src*="/stc"] {
    filter: brightness(0) invert(1) contrast(1.05);
}

@media (max-width: 1199.98px) { .rn-partners__track { grid-template-columns: repeat(6, minmax(110px, 1fr)); } }
@media (max-width: 991.98px)  { .rn-partners__track { grid-template-columns: repeat(3, minmax(100px, 1fr)); } }
@media (max-width: 767.98px)  { .rn-partners__track { grid-template-columns: repeat(2, minmax(90px, 1fr)); } }
@media (min-width: 1200px)    { .rn-partners__item { padding: 0.5rem; } }

.rn-partners__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.rn-partners__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(191, 171, 211, 0.6);
    background: rgba(255,255,255,0.06);
    transition: all 0.25s ease;
}
.rn-partners__dot.is-active {
    background: rgba(191, 171, 211, 0.95);
    border-color: rgba(191, 171, 211, 1);
    width: 22px;
}

@media (max-width: 767.98px) {
    #services .rn-services__intro {
        max-width: 656px !important;
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: clamp(1.4rem, 3vw, 2rem) !important;
        transform: translateY(-20%) !important;
    }

    #services .rn-services__slider {
        row-gap: 2.5rem !important;
        gap: 2.5rem 1rem !important;
    }

    #services .rn-services__track[data-services-track] {
        width: min(81.675vw, 238.98px) !important;
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    #services .rn-service-card[data-service-card] {
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #services .rn-service-card__inner {
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        margin: clamp(12px, 3.2vw, 16px) clamp(18px, 4.8vw, 24px) !important;
        padding: clamp(0.5rem, 2.8vw, 0.65rem) !important;
        overflow: visible !important;
        justify-content: space-between !important;
    }
    
    #services .rn-service-card__description {
        -webkit-line-clamp: 3 !important;
        line-height: 1.35 !important;
        margin-bottom: 0.4rem !important;
    }
    
    #services .rn-service-card__order-btn {
        padding: 0.45rem 0.9rem !important;
        font-size: 0.7rem !important;
        margin-top: 0.4rem !important;
    }

    #services .rn-services__dots {
        margin-top: 1.5rem !important;
        padding-top: 0 !important;
    }

    #services .rn-services__nav {
        margin-top: 1.5rem !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 575.98px) {
    #services .rn-services__intro {
        max-width: 656px !important;
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: clamp(1.12rem, 2.8vw, 1.6rem) !important;
        transform: translateY(-20%) !important;
    }

    #services .rn-services__slider {
        row-gap: 2rem !important;
        gap: 2rem 1rem !important;
    }

    #services .rn-services__track[data-services-track] {
        width: min(105.875vw, 220.83px) !important;
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    #services .rn-service-card[data-service-card] {
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #services .rn-service-card__inner {
        height: clamp(160px, 42vw, 209px) !important;
        min-height: clamp(160px, 42vw, 209px) !important;
        max-height: clamp(160px, 42vw, 209px) !important;
        margin: clamp(11px, 3.9vw, 14px) clamp(16px, 5.5vw, 22px) !important;
        padding: clamp(0.5rem, 2.8vw, 0.65rem) !important;
        overflow: visible !important;
        justify-content: space-between !important;
    }
    
    #services .rn-service-card__description {
        -webkit-line-clamp: 3 !important;
        line-height: 1.3 !important;
        margin-bottom: 0.35rem !important;
    }
    
    #services .rn-service-card__order-btn {
        padding: 0.4rem 0.85rem !important;
        font-size: 0.68rem !important;
        margin-top: 0.35rem !important;
    }

    #services .rn-services__dots {
        margin-top: 1.2rem !important;
        padding-top: 0 !important;
    }

    #services .rn-services__nav {
        margin-top: 1.2rem !important;
        padding-top: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #services .rn-services__track[data-services-track] {
        height: clamp(170px, 48vw, 210px) !important;
        min-height: clamp(170px, 48vw, 210px) !important;
        max-height: clamp(210px, 52vw, 240px) !important;
    }

    #services .rn-service-card[data-service-card] {
        height: clamp(170px, 48vw, 210px) !important;
        min-height: clamp(170px, 48vw, 210px) !important;
        max-height: clamp(210px, 52vw, 240px) !important;
    }

    #services .rn-service-card__inner {
        min-height: clamp(170px, 48vw, 210px) !important;
        max-height: clamp(210px, 52vw, 240px) !important;
        height: auto !important;
        overflow: visible !important;
        padding: clamp(0.7rem, 3vw, 1rem) !important;
        justify-content: space-between !important;
    }

    #services .rn-service-card__description {
        line-height: 1.4 !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        -webkit-line-clamp: 4 !important;
        flex: 1 !important;
    }
    
    #services .rn-service-card__order-btn {
        margin-top: 0.5rem !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

/* iPad Air specific optimizations (820px - 834px width) - #services selector */
@media (min-width: 820px) and (max-width: 834px) {
    #services .rn-services__slider {
        padding: clamp(1.5rem, 5vw, 2.5rem) !important;
        row-gap: 2rem !important;
    }

    #services .rn-services__track[data-services-track] {
        height: clamp(240px, 55vw, 280px) !important;
        min-height: clamp(240px, 55vw, 280px) !important;
        max-height: clamp(280px, 60vw, 320px) !important;
        width: min(75vw, 360px) !important;
    }

    #services .rn-service-card[data-service-card] {
        height: clamp(240px, 55vw, 280px) !important;
        min-height: clamp(240px, 55vw, 280px) !important;
        max-height: clamp(280px, 60vw, 320px) !important;
    }

    #services .rn-service-card__inner {
        min-height: clamp(240px, 55vw, 280px) !important;
        max-height: clamp(280px, 60vw, 320px) !important;
        height: auto !important;
        padding: clamp(1rem, 4vw, 1.3rem) !important;
        overflow: visible !important;
        gap: 0.75rem !important;
        justify-content: space-between !important;
    }

    #services .rn-service-card__inner h3 {
        font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
        margin-bottom: 0.65rem !important;
        line-height: 1.3 !important;
    }

    #services .rn-service-card__description {
        font-size: clamp(0.85rem, 2vw, 1.05rem) !important;
        line-height: 1.6 !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        margin-bottom: 0 !important;
        -webkit-line-clamp: 5 !important;
        flex: 1 !important;
    }
    
    #services .rn-service-card__order-btn {
        margin-top: 0.75rem !important;
        padding: 0.65rem 1.15rem !important;
        font-size: 0.85rem !important;
    }

    #services .rn-service-card__icon {
        width: clamp(42px, 6vw, 48px) !important;
        height: clamp(42px, 6vw, 48px) !important;
        font-size: clamp(1.2rem, 2.5vw, 1.4rem) !important;
    }

    #services .rn-service-card__tag {
        font-size: clamp(0.75rem, 2vw, 0.9rem) !important;
        padding: clamp(0.4rem, 1.2vw, 0.55rem) clamp(0.8rem, 2vw, 1rem) !important;
        margin-bottom: 0.5rem !important;
    }

    #services .rn-services__intro {
        margin-bottom: clamp(2.5rem, 5vw, 3rem) !important;
    }

    #services .rn-services__dots {
        margin-top: 1.5rem !important;
        bottom: auto !important;
    }

    #services .rn-services__nav {
        width: clamp(50px, 7vw, 56px) !important;
        height: clamp(50px, 7vw, 56px) !important;
    }
}

/* Work Gallery (Before/After) Styles */
.rn-work-gallery {
    position: relative;
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: linear-gradient(135deg, rgba(13, 13, 24, 0.94), rgba(7, 7, 15, 0.92));
}

.rn-work-gallery__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(208, 177, 212, 0.18), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(252, 216, 2, 0.16), transparent 60%);
    opacity: 0.3;
}

.rn-work-gallery__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 16, 0.75) 0%, rgba(7, 7, 16, 0.92) 70%),
        radial-gradient(circle at 75% 15%, rgba(252, 216, 2, 0.18), transparent 65%);
}

.rn-work-gallery__intro {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.rn-work-gallery__slider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.rn-work-gallery__track {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.rn-work-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.rn-work-item.is-active {
    display: block;
    opacity: 1;
}

.rn-work-item__container {
    position: relative;
}

.rn-work-item__slider {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 32px 65px rgba(5, 5, 15, 0.55);
    background: #050509;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.rn-work-item__slider:active {
    cursor: grabbing;
}

.rn-work-item__images {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rn-work-item__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rn-work-item__image--before {
    z-index: 1;
}

.rn-work-item__image--after {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.05s linear;
}

.rn-work-item__divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(252, 216, 2, 0.95), rgba(252, 216, 2, 0.95));
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(252, 216, 2, 0.6);
}

.rn-work-item__divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ct-accent), var(--ct-accent-dark));
    border: 3px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rn-work-item__divider:hover .rn-work-item__divider-handle,
.rn-work-item__slider:active .rn-work-item__divider-handle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(252, 216, 2, 0.5);
}

.rn-work-item__label {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(17, 17, 28, 0.85);
    border: 1px solid rgba(252, 216, 2, 0.5);
    border-radius: 999px;
    color: rgba(252, 216, 2, 0.95);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 11;
}

.rn-work-item__label--before {
    right: 1rem;
}

.rn-work-item__label--after {
    left: 1rem;
}

.rn-work-item__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(244, 244, 251, 0.9);
}

.rn-work-gallery__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(252, 216, 2, 0.45);
    background: rgba(17, 17, 28, 0.65);
    color: rgba(252, 216, 2, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    flex-shrink: 0;
}

.rn-work-gallery__nav:hover {
    background: rgba(252, 216, 2, 0.26);
    color: #111;
    transform: scale(1.05);
}

.rn-work-gallery__nav i {
    font-size: 1.5rem;
}

.rn-work-gallery__dots {
    position: absolute;
    bottom: -3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 2;
}

.rn-work-gallery__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(252, 216, 2, 0.7);
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}

.rn-work-gallery__dot.is-active {
    background: rgba(252, 216, 2, 0.85);
    border-color: rgba(252, 216, 2, 0.95);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(252, 216, 2, 0.6);
}

@media (max-width: 991.98px) {
    .rn-work-gallery__slider {
        flex-direction: column;
        gap: 1rem;
    }

    .rn-work-gallery__nav {
        position: static;
        align-self: center;
    }

    .rn-work-gallery__dots {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
    }

    .rn-work-item__slider {
        border-radius: 1.25rem;
    }

    .rn-work-item__label {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .rn-work-gallery {
        padding: clamp(3.5rem, 7vw, 5rem) 0;
    }

    .rn-work-gallery__intro {
        margin-bottom: 2rem;
    }

    .rn-work-item__images {
        aspect-ratio: 4 / 3;
    }

    .rn-work-item__divider-handle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .rn-work-item__label {
        top: 0.75rem;
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .rn-work-item__label--before {
        right: 0.75rem;
    }

    .rn-work-item__label--after {
        left: 0.75rem;
    }

    .rn-work-item__title {
        font-size: 1.1rem;
        margin-top: 1rem !important;
    }
}

/* Testimonials Section - Simple Grid */
.rn-testimonials-section {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(12, 12, 22, 0.96), rgba(6, 6, 14, 0.96));
    overflow: hidden;
}

.rn-testimonials-section .container {
    max-width: min(100%, 1584px); /* ~20% wider than 1320px for desktop */
}

.rn-testimonials__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(208, 177, 212, 0.16), transparent 55%),
                radial-gradient(circle at 80% 75%, rgba(252, 216, 2, 0.14), transparent 60%);
    opacity: 0.4;
}

.rn-testimonials__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 16, 0.78) 0%, rgba(7, 7, 16, 0.94) 70%);
}

.rn-testimonials__intro {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.rn-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rn-testimonials__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 992px) {
    .rn-testimonials__grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.rn-testimonials__item {
    position: relative;
    width: 100%;
    border-radius: clamp(0.875rem, 1.5vw, 1.25rem);
    overflow: hidden;
    background: linear-gradient(155deg, rgba(24, 24, 42, 0.92), rgba(6, 6, 14, 0.96));
    border: 1.5px solid rgba(208, 177, 212, 0.22);
    box-shadow: 0 12px 28px rgba(5, 5, 15, 0.45);
    transition: all 0.4s ease;
    cursor: pointer;
    padding: clamp(0.75rem, 1.5vw, 1rem);
}

.rn-testimonials__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 5, 15, 0.55), 0 0 20px rgba(252, 216, 2, 0.15);
    border-color: rgba(252, 216, 2, 0.35);
}

.rn-testimonials__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    transition: transform 0.4s ease;
}

.rn-testimonials__item:hover .rn-testimonials__image {
    transform: scale(1.02);
}

.rn-testimonials__load-more-wrapper {
    position: relative;
    z-index: 2;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.rn-testimonials__load-more {
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(2rem, 4vw, 3rem);
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rn-testimonials__load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 15px rgba(240, 181, 25, 0.4);
    background: rgba(255, 255, 255, 0.1);
    border-color: #f0b519;
}

.rn-testimonials__load-more i {
    font-size: 1.1em;
}

/* Testimonials Lightbox */
.rn-testimonials-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 2vw, 2rem);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rn-testimonials-lightbox.is-active {
    display: flex;
    opacity: 1;
}

/* Gallery Section Styles */
.rn-gallery-section {
    position: relative;
    padding: clamp(5rem, 9vw, 7rem) 0;
    background: linear-gradient(135deg, rgba(13, 13, 24, 0.94), rgba(7, 7, 15, 0.92));
}

.rn-gallery__bg {
    position: absolute;
    inset: 0;
    /* background-image removed: assets/images/background/ does not exist, so this
       url() 404'd on every page load while painting nothing (the layer sits at
       opacity 0.18 over the dark gradient below). */
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.rn-gallery__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 20%, rgba(208, 177, 212, 0.25), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(252, 216, 2, 0.22), transparent 60%),
        linear-gradient(135deg, rgba(13, 13, 24, 0.88), rgba(7, 7, 15, 0.9));
}

.rn-gallery__intro {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto 3rem;
}

.rn-gallery__nav .nav-link {
    background: rgba(31, 31, 52, 0.6);
    border: 2px solid rgba(208, 177, 212, 0.32);
    color: var(--ct-text);
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.rn-gallery__nav .nav-link:hover {
    background: rgba(191, 171, 211, 0.15);
    border-color: var(--ct-accent);
    color: var(--ct-accent);
    transform: translateY(-2px);
}

.rn-gallery__nav .nav-link.active {
    background: var(--ct-accent-gradient);
    border-color: #f0b519;
    color: #000;
    box-shadow: var(--ct-accent-glow);
}

/* The .rn-gallery__item-* rules that lived here styled the old glob-driven
   gallery tiles. That markup is gone — the teaser now renders through
   template-parts/gallery-grid.php, styled by template-parts/gallery-styles.php
   (.rn-gal__*). */

@media (max-width: 767.98px) {
    .rn-gallery-section {
        padding: 3rem 0;
    }
    
    .rn-gallery__nav .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

.rn-testimonials-lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rn-testimonials-lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: rnLightboxFadeIn 0.3s ease;
}

@keyframes rnLightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rn-testimonials-lightbox__counter {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 500;
}

.rn-testimonials-lightbox__close,
.rn-testimonials-lightbox__prev,
.rn-testimonials-lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: clamp(2.5rem, 5vw, 3.5rem);
    height: clamp(2.5rem, 5vw, 3.5rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.rn-testimonials-lightbox__close:hover,
.rn-testimonials-lightbox__prev:hover,
.rn-testimonials-lightbox__next:hover {
    background: rgba(252, 216, 2, 0.3);
    border-color: rgba(252, 216, 2, 0.6);
    transform: scale(1.1);
}

.rn-testimonials-lightbox__close {
    top: clamp(1rem, 2vw, 2rem);
    left: clamp(1rem, 2vw, 2rem);
}

.rn-testimonials-lightbox__prev {
    left: clamp(1rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.rn-testimonials-lightbox__prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.rn-testimonials-lightbox__next {
    right: clamp(1rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.rn-testimonials-lightbox__next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 767.98px) {
    .rn-testimonials-lightbox__prev,
    .rn-testimonials-lightbox__next {
        width: clamp(2rem, 4vw, 2.5rem);
        height: clamp(2rem, 4vw, 2.5rem);
        font-size: clamp(1rem, 2vw, 1.25rem);
    }
    
    .rn-testimonials-lightbox__close {
        top: clamp(0.5rem, 1vw, 1rem);
        left: clamp(0.5rem, 1vw, 1rem);
        width: clamp(2rem, 4vw, 2.5rem);
        height: clamp(2rem, 4vw, 2.5rem);
        font-size: clamp(1rem, 2vw, 1.25rem);
    }
    
    .rn-testimonials-lightbox__prev {
        left: clamp(0.5rem, 1vw, 1rem);
    }
    
    .rn-testimonials-lightbox__next {
        right: clamp(0.5rem, 1vw, 1rem);
    }
}

@media (max-width: 767.98px) {
    .rn-testimonials-section {
        padding: clamp(3rem, 6vw, 4.5rem) 0;
    }

    .rn-testimonials__grid {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 1.5vw, 1rem);
    }

    .rn-testimonials__intro {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }
}

.rn-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.rn-branch {
    display: flex;
    flex-direction: column;
    background: rgba(13, 13, 24, 0.62);
    border: 1px solid rgba(208, 177, 212, 0.25);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.rn-branch:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(191, 171, 211, 0.28);
    border-color: var(--ct-accent);
}

.rn-branch__head {
    padding: 1.25rem 1.35rem 0.85rem;
}

.rn-branch__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ct-text);
    margin: 0 0 0.35rem;
}

.rn-branch__area {
    margin: 0;
    color: var(--ct-muted);
    font-size: 0.97rem;
}

.rn-branch__area i {
    color: var(--ct-accent);
    margin-inline-end: 0.45rem;
}

.rn-branch__map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0d0d18;
    border-block: 1px solid rgba(208, 177, 212, 0.18);
}

.rn-branch__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rn-branch__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 1.1rem 1.35rem 1.35rem;
    margin-top: auto;
}

.rn-branch__btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(208, 177, 212, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ct-text);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.rn-branch__btn:hover {
    border-color: var(--ct-accent);
    background: rgba(191, 171, 211, 0.16);
    color: var(--ct-text);
    transform: translateY(-2px);
}

.rn-branch__btn--primary {
    background: var(--ct-accent-gradient);
    border-color: var(--ct-accent);
    color: #14121c;
}

.rn-branch__btn--primary:hover {
    color: #14121c;
    box-shadow: 0 10px 24px rgba(191, 171, 211, 0.35);
}

.rn-branch__btn--wa:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.16);
}

@media (max-width: 575.98px) {
    .rn-branches {
        grid-template-columns: 1fr;
    }

    .rn-branch__btn {
        flex: 1 1 100%;
    }
}

.rn-map-section {
    position: relative;
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, rgba(12, 12, 22, 0.96), rgba(6, 6, 14, 0.96));
    overflow: hidden;
}

.rn-map-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(208, 177, 212, 0.12), transparent 70%),
                radial-gradient(circle at 20% 80%, rgba(252, 216, 2, 0.1), transparent 60%);
    opacity: 0.5;
    z-index: 1;
}

.rn-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 16, 0.85) 0%, rgba(7, 7, 16, 0.92) 100%);
    z-index: 1;
}

.rn-map-intro {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.rn-map-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
}

.rn-map-frame {
    position: relative;
    width: 100%;
    border-radius: clamp(1.25rem, 2.5vw, 2rem);
    overflow: hidden;
    background: linear-gradient(155deg, rgba(24, 24, 42, 0.95), rgba(6, 6, 14, 0.98));
    border: 2px solid rgba(208, 177, 212, 0.25);
    box-shadow: 0 20px 60px rgba(5, 5, 15, 0.6),
                0 0 0 1px rgba(252, 216, 2, 0.1) inset,
                0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

.rn-map-frame:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 216, 2, 0.4);
    box-shadow: 0 30px 80px rgba(5, 5, 15, 0.7),
                0 0 0 1px rgba(252, 216, 2, 0.2) inset,
                0 0 40px rgba(252, 216, 2, 0.15),
                0 12px 40px rgba(0, 0, 0, 0.5);
}

.rn-map-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 216, 2, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.rn-map-frame:hover .rn-map-glow {
    opacity: 1;
}

.rn-map-wrapper {
    position: relative;
    width: 100%;
    height: clamp(400px, 50vh, 550px);
    overflow: hidden;
    border-radius: clamp(0.75rem, 1.5vw, 1.25rem);
    background: rgba(15, 15, 30, 0.8);
    z-index: 2;
}

.rn-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: grayscale(0.15) brightness(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: clamp(0.5rem, 1vw, 1rem);
}

.rn-map-frame:hover .rn-map-iframe {
    filter: grayscale(0) brightness(1);
    transform: scale(1.01);
}

/* Decorative corner accents */
.rn-map-frame::before,
.rn-map-frame::after {
    content: '';
    position: absolute;
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    border: 2px solid rgba(252, 216, 2, 0.3);
    pointer-events: none;
    z-index: 3;
    transition: all 0.4s ease;
}

.rn-map-frame::before {
    top: clamp(0.75rem, 1.5vw, 1.25rem);
    right: clamp(0.75rem, 1.5vw, 1.25rem);
    border-left: none;
    border-bottom: none;
    border-radius: 0 clamp(0.75rem, 1.5vw, 1.25rem) 0 0;
}

.rn-map-frame::after {
    bottom: clamp(0.75rem, 1.5vw, 1.25rem);
    left: clamp(0.75rem, 1.5vw, 1.25rem);
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
}

.rn-map-frame:hover::before,
.rn-map-frame:hover::after {
    border-color: rgba(252, 216, 2, 0.6);
    box-shadow: 0 0 20px rgba(252, 216, 2, 0.3);
}

@media (max-width: 991.98px) {
    .rn-map-section {
        padding: clamp(3rem, 6vw, 4.5rem) 0;
    }
    
    .rn-map-container {
        padding: 0 1rem;
    }
    
    .rn-map-frame {
        padding: clamp(0.5rem, 1.25vw, 1rem);
    }
    
    .rn-map-wrapper {
        height: clamp(350px, 45vh, 450px);
    }
}

@media (max-width: 767.98px) {
    .rn-map-section {
        padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    }
    
    .rn-map-intro {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }
    
    .rn-map-container {
        padding: 0 0.75rem;
    }
    
    .rn-map-frame {
        padding: 0.5rem;
        border-width: 1.5px;
    }
    
    .rn-map-wrapper {
        height: clamp(300px, 40vh, 380px);
        border-radius: clamp(0.5rem, 1vw, 0.75rem);
    }
    
    .rn-map-iframe {
        border-radius: clamp(0.375rem, 0.75vw, 0.625rem);
    }
    
    .rn-map-frame::before,
    .rn-map-frame::after {
        width: clamp(30px, 5vw, 45px);
        height: clamp(30px, 5vw, 45px);
    }
    
    .rn-map-frame::before {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .rn-map-frame::after {
        bottom: 0.5rem;
        left: 0.5rem;
    }
}
