/* Nile Future for Drilling — sections added on top of the Trax theme. */

.nfd-intro {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.nfd-lead {
    font-size: 18px;
    line-height: 1.7;
}

.nfd-check-list {
    list-style: none;
    padding: 0;
}

.nfd-check-list li {
    margin-bottom: 10px;
}

.nfd-check-list i {
    width: 22px;
}

.nfd-region-title {
    border-left: 4px solid #b49556;
    padding-left: 12px;
    font-weight: 500;
}

.nfd-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nfd-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.nfd-rig-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}

.nfd-client-logo {
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
}

.nfd-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b49556;
    border: 1px solid #b49556;
    border-radius: 20px;
    padding: 2px 12px;
}

.nfd-badge-dark {
    color: #ffffff;
    background: #26313c;
    border-color: #26313c;
}

.nfd-spec-table th {
    width: 42%;
    color: #26313c;
    font-weight: 600;
    font-size: 14px;
}

.nfd-spec-table td {
    font-size: 14px;
}

.nfd-market {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.03);
}

.nfd-market .nfd-badge {
    margin-bottom: 14px;
}

.nfd-market.is-planned {
    border-style: dashed;
    border-color: #b49556;
}

.nfd-callout {
    border-left: 4px solid #b49556;
    background: #f6f7f8;
    padding: 22px 26px;
    border-radius: 0 6px 6px 0;
}

.nfd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.nfd-step {
    position: relative;
    text-align: center;
    padding: 26px 16px 20px;
    border: 1px solid #ececec;
    border-radius: 6px;
}

.nfd-step i {
    display: block;
    font-size: 26px;
}

.nfd-step h5 {
    font-size: 16px;
    margin: 8px 0;
}

.nfd-step p {
    font-size: 14px;
}

.nfd-step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: #b49556;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.nfd-contact a {
    color: #ffffff;
}

.nfd-contact a:hover {
    color: #b49556;
}

.nfd-contact i {
    width: 20px;
    color: #b49556;
}

.nfd-contact .bottom5 {
    margin-bottom: 5px;
}

.nfd-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* ---------- Shared ---------- */
.nfd-illustration img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
}

.nfd-panel {
    background: #26313c;
    border-radius: 8px;
    padding: 24px 26px;
}

.nfd-quote {
    border-left: 4px solid #b49556;
    padding-left: 18px;
}

.nfd-check-list li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.nfd-value {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-left: 4px solid #26313c;
    border-radius: 6px;
    padding: 22px 24px;
}

.nfd-value i,
.nfd-highlight i {
    font-size: 24px;
    margin-bottom: 12px;
}

.nfd-value h5,
.nfd-highlight h5 {
    font-size: 17px;
    margin-bottom: 8px;
}

.nfd-flag {
    display: inline-block;
    width: 18px;
    height: 12px;
    vertical-align: -1px;
    margin-right: 4px;
    border: 1px solid #dddddd;
    background: linear-gradient(#ff0000 50%, #ffffff 50%);
}

/* ---------- Fleet progression (the up/down path from the company profile) ---------- */
.nfd-progression {
    display: grid;
    grid-template-columns: repeat(var(--steps, 4), 1fr);
    max-width: 900px;
    margin: 0 auto;
    height: 260px;
    position: relative;
}

.nfd-progression-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 18px 12px;
    background: none;
    border: 2px solid #26313c;
    margin-left: -2px;
    color: #26313c;
    cursor: pointer;
    transition: background 0.25s ease;
}

.nfd-progression-step strong {
    font-size: 20px;
}

.nfd-progression-step span {
    font-size: 13px;
    color: #696969;
}

.nfd-progression-step:hover,
.nfd-progression-step:focus-visible {
    background: rgba(180, 149, 86, 0.1);
    outline: none;
}

.nfd-progression-step.is-up {
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    height: 62%;
    align-self: start;
}

.nfd-progression-step.is-down {
    border-top: 0;
    border-radius: 0 0 14px 14px;
    height: 62%;
    align-self: end;
    justify-content: flex-end;
}

.nfd-progression::before,
.nfd-progression::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #26313c;
    top: 62%;
    transform: translate(-50%, -50%);
}

.nfd-progression::before {
    left: 0;
    margin-left: -1px;
}

.nfd-progression::after {
    left: 100%;
    margin-left: -2px;
}

@media (max-width: 767px) {
    .nfd-progression {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
    }

    .nfd-progression::before,
    .nfd-progression::after {
        display: none;
    }

    .nfd-progression-step.is-up,
    .nfd-progression-step.is-down {
        height: auto;
        margin: 0;
        border: 2px solid #26313c;
        border-left-width: 6px;
        border-radius: 8px;
        justify-content: center;
    }
}

/* ---------- Rig cards ---------- */
.nfd-rig {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.nfd-rig:focus-visible {
    outline: 3px solid #b49556;
    outline-offset: 2px;
}

.nfd-rig-media {
    position: relative;
    background: #f6f7f8;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.nfd-rig-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nfd-rig:hover .nfd-rig-media img {
    transform: scale(1.05);
}

.nfd-rig-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(38, 49, 60, 0.85);
    color: #ffffff;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 12px;
}

.nfd-rig-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nfd-rig-body h4 {
    font-size: 19px;
}

.nfd-rig-desc {
    font-size: 14px;
}

.nfd-rig-specs {
    list-style: none;
    padding: 0;
    font-size: 13px;
}

.nfd-rig-specs li {
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
}

.nfd-rig-specs span {
    display: block;
    color: #26313c;
    font-weight: 600;
}

.nfd-rig-more {
    margin-top: auto;
    color: #b49556;
    font-weight: 600;
    font-size: 14px;
}

.nfd-rig-more i {
    transition: transform 0.25s ease;
}

.nfd-rig:hover .nfd-rig-more i {
    transform: translateX(4px);
}

/* ---------- Rig details popup ---------- */
.nfd-rig-modal .modal-content {
    border: 0;
    border-radius: 10px;
}

.nfd-rig-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: #eeeeee;
    padding: 22px 26px;
}

.nfd-rig-modal .modal-title {
    font-size: 24px;
    margin: 0;
}

.nfd-rig-modal .modal-body {
    padding: 26px;
}

.nfd-rig-carousel {
    background: #f6f7f8;
    border-radius: 8px;
    overflow: hidden;
}

.nfd-rig-carousel .carousel-item img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    cursor: zoom-in;
}

.nfd-rig-carousel .carousel-control-prev-icon,
.nfd-rig-carousel .carousel-control-next-icon {
    background-color: rgba(38, 49, 60, 0.75);
    border-radius: 50%;
    background-size: 55%;
    width: 38px;
    height: 38px;
}

.nfd-rig-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nfd-rig-thumbs button {
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    background: #f6f7f8;
    opacity: 0.65;
}

.nfd-rig-thumbs button.active,
.nfd-rig-thumbs button:hover {
    border-color: #b49556;
    opacity: 1;
}

.nfd-rig-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nfd-zoom-hint {
    font-size: 13px;
    color: #8a8a8a;
}

.nfd-spec-table thead th {
    background: #26313c;
    color: #ffffff;
    font-size: 14px;
}

/* ---------- Markets footprint hub ---------- */
.nfd-hub {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.nfd-hub-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nfd-hub-lines line {
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 0.35;
    stroke-dasharray: 1 1;
}

.nfd-hub-center,
.nfd-hub-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.nfd-hub-center {
    left: 50%;
    top: 50%;
    width: 44%;
    aspect-ratio: 1;
    padding: 16px;
    background: #26313c;
    border: 2px solid #b49556;
    box-shadow: 0 0 0 8px rgba(180, 149, 86, 0.15);
    font-size: 12px;
    line-height: 1.4;
}

.nfd-hub-center strong {
    font-size: 14px;
    margin-bottom: 6px;
    color: #b49556;
}

.nfd-hub-node {
    width: 22%;
    aspect-ratio: 1;
    background: #1b2229;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 6px;
}

.nfd-hub-node small {
    font-size: 10px;
    color: #b49556;
}

.nfd-hub-node.is-planned {
    border: 2px dashed #b49556;
}

@media (max-width: 480px) {
    .nfd-hub-center {
        font-size: 10px;
        padding: 10px;
    }

    .nfd-hub-center strong,
    .nfd-hub-node {
        font-size: 11px;
    }
}

.nfd-market-list {
    list-style: none;
    padding: 0;
    color: #ffffff;
}

.nfd-market-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nfd-next-market {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid #b49556;
    padding: 18px 20px;
    border-radius: 0 6px 6px 0;
    color: #ffffff;
}

.nfd-next-market i {
    margin-top: 4px;
}

/* ---------- Highlights ---------- */
.nfd-highlight {
    border-top: 3px solid #b49556;
    padding-top: 16px;
}

/* ---------- Indonesia roadmap ---------- */
.nfd-roadmap {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.nfd-roadmap::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 10px;
    bottom: 10px;
    border-left: 2px dashed #b9b9b9;
}

.nfd-roadmap li {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.nfd-roadmap li > div {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    padding: 16px 18px;
    flex: 1;
}

.nfd-roadmap h5 {
    font-size: 16px;
    margin-bottom: 6px;
}

.nfd-roadmap-num {
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #26313c;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
    position: relative;
    z-index: 1;
}

/* ---------- Logistics road ---------- */
/* Each stop spans the full height: text + pin above the road, or pin + text below it. */
.nfd-road {
    --lane: 150px;
    --road: 34px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nfd-road::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--lane);
    height: var(--road);
    background:
        linear-gradient(90deg, #6d7781 0 50%, transparent 50%) center / 34px 3px repeat-x,
        #e1e3e6;
    border-radius: 17px;
}

.nfd-road-stop {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    height: calc(var(--lane) * 2 + var(--road));
}

.nfd-road-stop.is-above {
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: calc(var(--lane) + var(--road) + 4px);
}

.nfd-road-stop.is-below {
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding-top: calc(var(--lane) + var(--road) + 4px);
}

.nfd-road-text h5 {
    font-size: 17px;
    margin: 0 0 4px;
}

.nfd-road-text p {
    font-size: 13px;
    max-width: 200px;
    margin: 0 auto;
}

.nfd-road-pin {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #26313c;
    color: #ffffff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    margin: 10px 0 6px;
}

.nfd-road-stop.is-below .nfd-road-pin {
    transform: rotate(135deg);
    margin: 6px 0 10px;
}

.nfd-road-pin i {
    transform: rotate(45deg);
    font-size: 19px;
}

.nfd-road-stop.is-below .nfd-road-pin i {
    transform: rotate(-135deg);
}

@media (max-width: 767px) {
    .nfd-road {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-left: 34px;
    }

    .nfd-road::before {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 14px;
        height: auto;
        background: #e1e3e6;
    }

    .nfd-road-stop,
    .nfd-road-stop.is-above,
    .nfd-road-stop.is-below {
        height: auto;
        padding: 0;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 14px;
        text-align: left;
    }

    .nfd-road-stop .nfd-road-pin,
    .nfd-road-stop.is-below .nfd-road-pin {
        transform: rotate(45deg);
        margin: 0;
    }

    .nfd-road-stop .nfd-road-pin i,
    .nfd-road-stop.is-below .nfd-road-pin i {
        transform: rotate(-45deg);
    }

    .nfd-road-text p {
        margin: 0;
    }
}

/* ---------- Popup must sit above the fixed navbar ---------- */
body.modal-open .site-header,
body.modal-open .site-header .navbar {
    z-index: 1030 !important;
}

.nfd-rig-carousel {
    background: #ffffff;
    border: 1px solid #eeeeee;
}

body.modal-open .back-top {
    display: none;
}

@media (max-width: 575px) {
    .nfd-rig-carousel .carousel-item img {
        height: 240px;
    }

    .nfd-rig-modal .modal-footer {
        flex-wrap: nowrap;
    }

    .nfd-rig-modal .modal-footer .button {
        flex: 1;
        padding-left: 10px;
        padding-right: 10px;
    }
}

.nfd-progression {
    margin-bottom: 50px;
}

/* ---------- Route map ---------- */
.nfd-map {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.nfd-map img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.nfd-map:hover img {
    transform: scale(1.03);
}

.nfd-map-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(27, 34, 41, 0.85);
    color: #ffffff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 18px;
}

.nfd-map-legend {
    background: #1b2229;
    border: 1px solid rgba(90, 170, 255, 0.35);
    border-radius: 8px;
    padding: 26px;
    color: #ffffff;
}

.nfd-stops {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nfd-stops li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 14px;
}

.nfd-stops li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 11px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.nfd-stops li:first-child::before,
.nfd-stops li:last-child::before {
    background: #e53935;
    border-color: #e53935;
}

.nfd-stops li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 21px;
    height: calc(100% - 12px);
    border-left: 2px dashed rgba(255, 255, 255, 0.5);
}

.nfd-distances > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.nfd-distances dt {
    font-weight: 400;
    color: #9fc7ee;
}

.nfd-distances dt i {
    width: 18px;
}

.nfd-distances dd {
    margin: 0;
    font-weight: 600;
}

/* ---------- Supply assurances & mobilization chain ---------- */
.nfd-assurances {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px 24px;
}

.nfd-assurances i {
    margin-right: 6px;
}

.nfd-chain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px 18px;
}

.nfd-chain-arrow {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3e5e8;
    color: #26313c;
    font-size: 20px;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
    margin-bottom: 14px;
}

.nfd-chain-step h5 {
    font-size: 16px;
    margin-bottom: 4px;
}

.nfd-chain-step p {
    font-size: 14px;
}
