/* =========================================================
   RAHBAN TIR
   SERVICES - RAIL
========================================================= */

.rail-page {
    direction: rtl;
    background: #f5f7fa;
    color: #102f52;
    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.rail-hero {
    position: relative;
    min-height: 610px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            120deg,
            #082c52 0%,
            #123e72 55%,
            #1d548d 100%
        );

    overflow: hidden;
}

.rail-hero::before,
.rail-hero::after {
    content: "";
    position: absolute;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
}

.rail-hero::before {
    width: 620px;
    height: 620px;

    right: -330px;
    top: -350px;
}

.rail-hero::after {
    width: 450px;
    height: 450px;

    left: -270px;
    bottom: -290px;
}

.rail-hero-container {
    position: relative;
    z-index: 2;

    width: min(1240px, 94%);
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;

    padding: 80px 0;
}

.rail-hero-content {
    color: #fff;
}

.rail-eyebrow {
    display: inline-flex;
    align-items: center;

    padding: 8px 17px;
    margin-bottom: 20px;

    border-radius: 30px;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.15);

    color: rgba(255,255,255,.88);

    font-size: 11px;
    font-weight: 800;
}

.rail-hero h1 {
    margin: 0 0 20px;

    color: #fff;

    font-size: clamp(32px, 4vw, 53px);

    line-height: 1.55;
    font-weight: 900;
}

.rail-hero h1 span {
    color: #ef3438;
}

.rail-hero-content > p {
    max-width: 590px;

    margin: 0 0 30px;

    color: rgba(255,255,255,.80);

    font-size: 13px;
    line-height: 2.3;
}

.rail-hero-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.rail-btn-primary,
.rail-btn-secondary {
    min-height: 48px;

    padding: 0 26px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.rail-btn-primary {
    background: #ef3438;
    color: #fff;

    box-shadow:
        0 12px 30px rgba(239,52,56,.25);
}

.rail-btn-primary:hover {
    background: #d92a30;
    transform: translateY(-2px);
}

.rail-btn-secondary {
    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.28);

    color: #fff;
}

.rail-btn-secondary:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-2px);
}


/* =========================================================
   TRAIN VISUAL
========================================================= */

.rail-hero-visual {
    position: relative;

    min-height: 390px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.rail-glow {
    position: absolute;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background: rgba(255,255,255,.055);
}


/* Rails */

.rail-track {
    position: absolute;

    bottom: 70px;

    width: 540px;
    height: 50px;
}

.rail-track::before,
.rail-track::after {
    content: "";

    position: absolute;

    right: 0;
    left: 0;

    height: 5px;

    border-radius: 5px;

    background: #263f59;
}

.rail-track::before {
    top: 5px;
}

.rail-track::after {
    bottom: 5px;
}

.rail-track span {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 4px;

    background: #8d9baa;
}

.rail-track span:nth-child(1) {
    right: 35px;
}

.rail-track span:nth-child(2) {
    right: 100px;
}


/* Train */

.rail-train {
    position: relative;

    z-index: 4;

    width: 530px;
    height: 190px;

    transform: translateY(-12px);
}


/* Locomotive */

.rail-locomotive {
    position: absolute;

    left: 25px;
    bottom: 63px;

    width: 145px;
    height: 105px;

    border-radius: 18px 7px 5px 5px;

    background:
        linear-gradient(
            145deg,
            #285e8e,
            #0d3157
        );

    border-bottom: 5px solid #ef3438;

    box-shadow:
        0 15px 30px rgba(0,0,0,.22);
}

.rail-front-window {
    position: absolute;

    left: 12px;
    top: 18px;

    width: 35px;
    height: 37px;

    border-radius: 10px 3px 3px 3px;

    background:
        linear-gradient(
            145deg,
            #c5dce9,
            #527795
        );
}

.rail-loco-window {
    position: absolute;

    right: 17px;
    top: 18px;

    width: 58px;
    height: 37px;

    border-radius: 4px;

    background:
        linear-gradient(
            145deg,
            #bdd6e5,
            #456c8a
        );
}

.rail-light {
    position: absolute;

    left: 4px;
    bottom: 12px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 15px rgba(255,255,255,.75);
}


/* Wagons */

.rail-wagon {
    position: absolute;

    bottom: 63px;

    width: 105px;
    height: 88px;

    border-radius: 5px;

    background:
        linear-gradient(
            145deg,
            #edf2f5,
            #c7d2da
        );

    border-bottom: 5px solid #173e69;

    box-shadow:
        0 12px 25px rgba(0,0,0,.16);
}

.rail-wagon span {
    position: absolute;

    top: 34px;
    right: 0;
    left: 0;

    text-align: center;

    color: rgba(16,47,82,.42);

    font-size: 10px;

    font-weight: 900;
}

.rail-wagon:nth-of-type(2) {
    left: 180px;
}

.rail-wagon:nth-of-type(3) {
    left: 290px;
}

.rail-wagon:nth-of-type(4) {
    left: 400px;
}


/* Wheels */

.rail-wheel {
    position: absolute;

    bottom: 35px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #091d31;

    border: 6px solid #40566b;
}

.rail-wheel::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 7px;
    height: 7px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: #b7c1c9;
}

.rail-wheel.rw1 {
    left: 48px;
}

.rail-wheel.rw2 {
    left: 115px;
}

.rail-wheel.rw3 {
    left: 198px;
}

.rail-wheel.rw4 {
    left: 265px;
}

.rail-wheel.rw5 {
    left: 308px;
}

.rail-wheel.rw6 {
    left: 375px;
}

.rail-wheel.rw7 {
    left: 418px;
}

.rail-wheel.rw8 {
    left: 485px;
}


/* =========================================================
   STATS
========================================================= */

.rail-stats {
    position: relative;
    z-index: 6;

    width: min(1050px, 90%);

    margin: -45px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 15px 45px rgba(10,40,70,.12);
}

.rail-stat {
    padding: 25px 15px;

    text-align: center;

    border-left:
        1px solid #edf0f3;
}

.rail-stat:last-child {
    border-left: none;
}

.rail-stat strong {
    display: block;

    margin-bottom: 6px;

    color: #173b6d;

    font-size: 25px;

    font-weight: 900;
}

.rail-stat span {
    color: #7a8795;

    font-size: 10px;
}


/* =========================================================
   MAIN
========================================================= */

.rail-main {
    width: min(1200px, 94%);

    margin: auto;

    padding: 90px 0;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.rail-section-title {
    text-align: center;

    margin-bottom: 42px;
}

.rail-section-title > span,
.rail-small-title {
    color: #ef3438;

    font-size: 10px;

    font-weight: 900;
}

.rail-section-title h2 {
    margin: 8px 0 10px;

    color: #102f52;

    font-size: 30px;

    font-weight: 900;
}

.rail-section-title p {
    max-width: 680px;

    margin: auto;

    color: #758292;

    font-size: 12px;

    line-height: 2;
}


/* =========================================================
   SERVICES
========================================================= */

.rail-services-section {
    margin-bottom: 90px;
}

.rail-services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.rail-card {
    position: relative;

    padding: 28px 24px;

    background: #fff;

    border:
        1px solid #e7edf2;

    border-radius: 15px;

    box-shadow:
        0 8px 28px rgba(16,47,82,.05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.rail-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 25px;

    width: 45px;
    height: 3px;

    border-radius:
        0 0 5px 5px;

    background: #ef3438;
}

.rail-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 18px 38px rgba(16,47,82,.12);
}

.rail-card-icon {
    width: 57px;
    height: 57px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border-radius: 14px;

    background: #edf4fb;

    color: #173b6d;

    font-size: 23px;
}

.rail-card h3 {
    margin: 0 0 10px;

    color: #102f52;

    font-size: 16px;

    font-weight: 900;
}

.rail-card p {
    margin: 0;

    color: #758292;

    font-size: 11px;

    line-height: 2;
}


/* =========================================================
   ROUTES
========================================================= */

.rail-routes {
    position: relative;

    padding: 55px 35px;

    margin-bottom: 90px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0c3158,
            #174777
        );

    overflow: hidden;
}

.rail-routes::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    left: -170px;
    bottom: -220px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.08);
}

.rail-routes-heading {
    position: relative;
    z-index: 2;

    text-align: center;

    margin-bottom: 45px;
}

.rail-routes-heading span {
    color: #ff5558;

    font-size: 10px;

    font-weight: 900;
}

.rail-routes-heading h2 {
    margin: 8px 0;

    color: #fff;

    font-size: 29px;

    font-weight: 900;
}

.rail-routes-heading p {
    margin: 0;

    color: rgba(255,255,255,.68);

    font-size: 11px;
}

.rail-route-flow {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        1fr 70px 1fr 70px 1fr 70px 1fr;

    align-items: center;

    gap: 10px;
}

.rail-route-point {
    padding: 22px 10px;

    text-align: center;

    background:
        rgba(255,255,255,.07);

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 13px;
}

.rail-route-point strong {
    display: block;

    margin-bottom: 5px;

    color: #fff;

    font-size: 16px;
}

.rail-route-point span {
    color: rgba(255,255,255,.60);

    font-size: 9px;
}

.rail-route-line {
    position: relative;

    height: 2px;

    background: rgba(255,255,255,.20);
}

.rail-route-line::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 8px;
    height: 8px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background: #ef3438;
}


/* =========================================================
   ADVANTAGES
========================================================= */

.rail-advantages {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 60px;

    margin-bottom: 90px;
}

.rail-advantages-content h2 {
    margin: 10px 0 18px;

    color: #102f52;

    font-size: 31px;

    line-height: 1.6;

    font-weight: 900;
}

.rail-advantages-content > p {
    margin-bottom: 25px;

    color: #758292;

    font-size: 12px;

    line-height: 2.1;
}

.rail-benefits {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 13px;
}

.rail-benefits > div {
    padding: 16px;

    background: #fff;

    border:
        1px solid #e7edf2;

    border-radius: 10px;
}

.rail-benefits strong {
    display: block;

    margin-bottom: 5px;

    color: #173b6d;

    font-size: 12px;
}

.rail-benefits span {
    color: #7a8795;

    font-size: 9px;
}


/* Visual */

.rail-advantages-visual {
    position: relative;

    min-height: 350px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #0c3158,
            #1d548d
        );

    overflow: hidden;
}

.rail-map-lines {
    position: absolute;

    inset: 0;

    opacity: .18;

    background-image:
        linear-gradient(
            30deg,
            transparent 47%,
            #fff 48%,
            transparent 49%
        ),
        linear-gradient(
            150deg,
            transparent 47%,
            #fff 48%,
            transparent 49%
        );

    background-size: 90px 90px;
}

.rail-location {
    position: relative;
    z-index: 2;

    width: 210px;
    height: 210px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.18);

    box-shadow:
        0 0 0 24px rgba(255,255,255,.03),
        0 0 0 52px rgba(255,255,255,.02);
}

.rail-location-inner {
    width: 125px;
    height: 125px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-radius: 50%;

    background: #ef3438;

    color: #fff;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 900;
}

.rail-pin {
    position: absolute;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 0 5px
        rgba(255,255,255,.15);
}

.rail-pin.p1 {
    top: 45px;
    right: 65px;
}

.rail-pin.p2 {
    bottom: 55px;
    left: 65px;
}

.rail-pin.p3 {
    top: 80px;
    left: 45px;
}


/* =========================================================
   PROCESS
========================================================= */

.rail-process {
    margin-bottom: 90px;
}

.rail-process-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;
}

.rail-process-grid::before {
    content: "";

    position: absolute;

    top: 45px;

    right: 10%;
    left: 10%;

    height: 2px;

    background: #dce4eb;

    z-index: 0;
}

.rail-process-item {
    position: relative;
    z-index: 1;

    padding: 20px 10px;

    text-align: center;
}

.rail-process-item b {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    background: #173b6d;

    color: #fff;

    font-size: 15px;

    border: 5px solid #f5f7fa;
}

.rail-process-item h3 {
    margin: 0 0 7px;

    color: #102f52;

    font-size: 13px;
}

.rail-process-item p {
    margin: 0;

    color: #7a8795;

    font-size: 9px;

    line-height: 1.9;
}


/* =========================================================
   CTA
========================================================= */

.rail-cta {
    position: relative;

    padding: 60px 30px;

    text-align: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ef3438,
            #d9272c
        );

    box-shadow:
        0 18px 45px
        rgba(239,52,56,.18);

    overflow: hidden;
}

.rail-cta::before,
.rail-cta::after {
    content: "";

    position: absolute;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 50%;
}

.rail-cta::before {
    width: 280px;
    height: 280px;

    right: -140px;
    top: -180px;
}

.rail-cta::after {
    width: 220px;
    height: 220px;

    left: -100px;
    bottom: -150px;
}

.rail-cta > div {
    position: relative;
    z-index: 2;
}

.rail-cta span {
    color: rgba(255,255,255,.70);

    font-size: 10px;
    font-weight: 900;
}

.rail-cta h2 {
    max-width: 700px;

    margin: 10px auto 12px;

    color: #fff;

    font-size: 29px;

    line-height: 1.6;

    font-weight: 900;
}

.rail-cta p {
    max-width: 650px;

    margin: 0 auto 25px;

    color: rgba(255,255,255,.82);

    font-size: 12px;

    line-height: 2;
}

.rail-cta a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 28px;

    border-radius: 9px;

    background: #fff;

    color: #d9272c;

    text-decoration: none;

    font-size: 11px;

    font-weight: 900;

    transition: .2s ease;
}

.rail-cta a:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0,0,0,.12);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .rail-hero-container,
    .rail-advantages {
        grid-template-columns: 1fr;
    }

    .rail-hero-content {
        text-align: center;
    }

    .rail-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .rail-hero-actions {
        justify-content: center;
    }

    .rail-services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .rail-process-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .rail-process-grid::before {
        display: none;
    }

    .rail-route-flow {
        grid-template-columns:
            1fr 45px 1fr 45px 1fr;
    }

    .rail-route-flow
    .rail-route-point:last-child {
        grid-column: 2 / 5;

        width: 50%;

        margin: 10px auto 0;
    }
}


@media (max-width: 650px) {

    .rail-hero {
        min-height: auto;
    }

    .rail-hero-container {
        width: 92%;

        padding: 55px 0;
    }

    .rail-hero h1 {
        font-size: 30px;
    }

    .rail-hero-content > p {
        font-size: 11px;
    }

    .rail-hero-visual {
        min-height: 270px;
    }

    .rail-train {
        transform: scale(.66);
    }

    .rail-stats {
        width: 92%;

        grid-template-columns: 1fr;

        margin-top: -15px;
    }

    .rail-stat {
        border-left: none;

        border-bottom:
            1px solid #edf0f3;
    }

    .rail-stat:last-child {
        border-bottom: none;
    }

    .rail-main {
        width: 92%;

        padding: 65px 0;
    }

    .rail-services-grid {
        grid-template-columns: 1fr;
    }

    .rail-routes {
        padding: 40px 18px;
    }

    .rail-route-flow {
        grid-template-columns: 1fr;
    }

    .rail-route-line {
        width: 2px;
        height: 35px;

        margin: auto;
    }

    .rail-route-flow
    .rail-route-point:last-child {
        grid-column: auto;

        width: auto;

        margin: 0;
    }

    .rail-advantages-content h2 {
        font-size: 26px;
    }

    .rail-benefits {
        grid-template-columns: 1fr;
    }

    .rail-process-grid {
        grid-template-columns: 1fr;
    }

    .rail-cta {
        padding: 45px 20px;
    }

    .rail-cta h2 {
        font-size: 25px;
    }
}