:root {
    /* === BRAND === */
    --krl-blue: #374A9F;
    --krl-deep-navy: #1A1F2E;
    --krl-monolithic: #D9D9D9;

    /* === SURFACES === */
    --surface: #FFFFFF;
    --surface-soft: #F1F2F4;
    --surface-blue: #E7EBF3;
    --surface-dark: #1A1F2E;

    /* === BORDERS === */
    --border-subtle: #E7EBF3;
    --border-default: #D9D9D9;
    --border-strong: #6B6B6B;

    /* === TEXT === */
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #8F8F8F;
    --text-on-dark: #FFFFFF;

    /* === ACCENTS === */
    --accent: #374A9F;
    --eyebrow: #374A9F;
    --icon: #374A9F;
    --icon-muted: #6B6B6B;

    /* === BUTTONS === */
    --btn-bg: #374A9F;
    --btn-text: #FFFFFF;
    --btn-bg-hover: #1A1F2E;

    /* === SHADOWS === */
    --shadow-sm: 0 2px 8px rgba(26, 31, 46, 0.06);
    --shadow-md: 0 6px 24px rgba(26, 31, 46, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 31, 46, 0.12);
    --shadow-focus: 0 0 0 3px rgba(55, 74, 159, 0.12);

    /* === LEGACY ALIASES === */
    --krl-yellow: var(--krl-blue);
    --krl-eyebrow: var(--eyebrow);
    --krl-btn-text: var(--btn-text);
    --krl-card-radius: 14px;

    --font-body: "Manrope", sans-serif;
    --font-display: "Bebas Neue", "Manrope", sans-serif;

    /* Type scale (fluid) */
    --fs-display: clamp(3rem, 5.2vw + 1rem, 5rem);
    --fs-h1: clamp(2.25rem, 3.5vw + 1rem, 3.5rem);
    --fs-h2: clamp(1.75rem, 2vw + 1rem, 2.625rem);
    --fs-h3: clamp(1.375rem, 1vw + 0.875rem, 1.75rem);
    --fs-h4: clamp(1.125rem, 0.4vw + 1rem, 1.25rem);
    --fs-lead: clamp(1.0625rem, 0.4vw + 0.9rem, 1.1875rem);
    --fs-body: 1rem;
    --fs-body-sm: 0.9375rem;
    --fs-small: 0.8125rem;
    --fs-eyebrow: 0.935rem;

    /* Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 800;

    /* Line heights */
    --lh-tight: 1.05;
    --lh-snug: 1.2;
    --lh-heading: 1.3;
    --lh-body: 1.6;
    --lh-ui: 1.4;

    /* Letter spacing */
    --ls-tight: -0.01em;
    --ls-normal: 0;
    --ls-eyebrow: 0.12em;
    --ls-button: 0.06em;
}

/* Uniform 50px horizontal padding site-wide — full width containers */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-fluid {
    max-width: 100% !important;
    padding-right: 50px !important;
    padding-left: 50px !important;
}

button:not(.navbar-toggler):not([data-bs-toggle]),
a.btn,
input[type="submit"],
input[type="button"] {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

button:not(.navbar-toggler):not([data-bs-toggle]):hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--btn-bg-hover);
    color: var(--btn-text);
}

.section-eyebrow,
.overview-eyebrow,
.core-values-heading,
.safety-handbook-eyebrow,
.ngv2-label-text,
.ngv2-pub-tag,
.ng-event-tag,
.contact-kicker {
    text-align: left;
    color: var(--krl-eyebrow);
    font-family: var(--font-body);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    margin: 0;
}

.section-eyebrow-center {
    text-align: center;
}

.krl-btn {
    background: var(--krl-yellow);
    border: none;
    color: var(--krl-btn-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-medium);
    letter-spacing: normal;
    border-radius: 10px;
    line-height: 1;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.krl-btn:hover,
.krl-btn:focus,
.krl-btn:active {
    background: var(--btn-bg-hover);
    color: var(--btn-text);
    transition: background 0.25s ease, color 0.25s ease;
}

.krl-btn:visited {
    color: var(--krl-btn-text);
}

.krl-btn-sm {
    padding: 0 22px;
}

.krl-btn-md {
    padding: 0 48px;
}

.krl-btn-lg {
    padding: 0 36px;
    margin-top: 20px;
}

.krl-card {
    border: none;
    border-radius: var(--krl-card-radius);
    overflow: hidden;
}

.reveal-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-section.is-visible .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.is-visible .stagger-item:nth-child(1) {
    transition-delay: 0.06s;
}

.reveal-section.is-visible .stagger-item:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-section.is-visible .stagger-item:nth-child(3) {
    transition-delay: 0.18s;
}

.reveal-section.is-visible .stagger-item:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-section.is-visible .stagger-item:nth-child(5) {
    transition-delay: 0.3s;
}

.reveal-section.is-visible .stagger-item:nth-child(6) {
    transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {

    .reveal-section,
    .stagger-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.top-brand,
.workflow-tag,
.service-title,
.process-heading,
.overview-title,
.value-heading,
.presence-quote {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

.navbar-nav .nav-link {
    font-family: var(--font-body);
}

/* Top bar */
.top-bar {
    background: #FFFFFF;
    padding: 8px 0;
}

.contact-btn {
    background: var(--btn-bg);
    border: none;
    height: 52px;
    padding: 0 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-medium);
    letter-spacing: normal;
    color: var(--btn-text);
    border-radius: 10px;
}

.contact-btn:hover,
.contact-btn:focus,
.contact-btn:active {
    background: var(--btn-bg-hover) !important;
    color: var(--btn-text) !important;
    transition: background 0.25s ease, color 0.25s ease;
}

.contact-btn:visited {
    color: var(--btn-text);
}

.top-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.top-brand-logo {
    height: 52px;
    width: auto;
}

/* Navbar (merged into top bar) */
.navbar.top-bar {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1050;
    padding-top: 16px;
    padding-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: padding 0.35s ease, box-shadow 0.35s ease;
}

.navbar.top-bar.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 2px;
    padding: 6px 10px !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    line-height: 1.4;
    transition: color 0.25s ease, background 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--krl-blue) !important;
    background: #FFFFFF !important;
    border: 2px solid transparent !important;
}

.navbar-nav .nav-link.active {
    color: var(--krl-blue) !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: 2px solid transparent !important;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../images/hero-banner.jpg') no-repeat center center/cover;
    width: 100%;
    min-height: 80vh;
    height: 80vh;
    color: var(--surface-soft);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 31, 46, 0.72) 0%, rgba(26, 31, 46, 0.45) 50%, rgba(26, 31, 46, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    font-size: var(--fs-lead);
    font-weight: var(--fw-regular);
    color: var(--surface-soft);
    margin-bottom: 8px;
}

.hero-sub {
    font-size: 22px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    color: var(--surface-soft);
    margin-bottom: 36px;
    font-weight: var(--fw-regular);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-outline {
    background: transparent;
    border: 2px solid var(--krl-blue);
    color: var(--krl-blue);
}

.hero-btn-outline:hover,
.hero-btn-outline:focus {
    background: var(--krl-blue);
    color: var(--btn-text);
}

.btn-yellow {
    background: var(--btn-bg);
    border: none;
    border-radius: 10px;
    height: 52px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--btn-text);
}

.btn-yellow:hover,
.btn-yellow:focus,
.btn-yellow:active {
    background: var(--btn-bg-hover);
    color: var(--btn-text);
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-yellow:visited {
    color: var(--btn-text);
}

/* Company Overview Section */
.overview-section {
    background: #FFFFFF;
    padding: 70px 0;
}

.overview-image-wrap {
    width: 100%;
}

.overview-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
}

.overview-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.overview-row {
    --bs-gutter-x: 4rem;
    --bs-gutter-y: 2.5rem;
}

.overview-eyebrow {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.overview-title {
    margin: 0 0 14px;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    font-family: var(--font-display);
    letter-spacing: var(--ls-normal);
    line-height: var(--lh-snug);
    text-transform: uppercase;
}

.overview-text {
    color: var(--text-primary);
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    margin-bottom: 14px;
    text-align: left;
}

@media (max-width: 767.98px) {
    .overview-section {
        padding: 50px 0;
    }

    .overview-row {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }

    .overview-image {
        min-height: 260px;
        height: auto;
    }
}

@media (max-width: 575.98px) {
    .overview-image {
        min-height: 200px;
    }
}

/* Certificate Section */
.certificate-section {
    background: var(--surface-soft);
    padding: 60px 0;
}

.certificate-section.cert-dark {
    background: var(--surface-dark);
}

/* Shared split layout */
.cert-row {
    gap: 0;
}

.cert-text-col {
    padding-right: 48px;
}

.cert-eyebrow {
    margin-bottom: 16px;
}

.cert-lead {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 16px;
}

.cert-body {
    font-size: var(--fs-lead);
    color: var(--text-secondary);
    line-height: var(--lh-body);
    margin: 0;
}

.cert-highlight {
    color: var(--text-primary);
    font-style: italic;
}

/* V1 — Simple row + text below */
.cert-v1-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 24px;
    justify-content: center;
}

.cert-v1-img {
    height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border: 1px solid var(--border-default);
}

@media (max-width: 575.98px) {
    .cert-v1-logos {
        gap: 16px;
        justify-content: space-between;
    }

    .cert-v1-img:last-child {
        margin: 0 auto;
    }

    .cert-v1-img {
        height: 110px;
    }
}

/* V2 — Single glass card */
.cert-glass-card {
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.cert-glass-img {
    width: 160px;
    height: 120px;
    object-fit: contain;
    display: block;
}

/* V3 — Dark background */
.cert-lead-dark {
    color: #FFFFFF;
}

.cert-body-dark {
    color: rgba(255, 255, 255, 0.75);
}

.cert-eyebrow-dark {
    color: var(--krl-blue);
}

.cert-highlight-dark {
    color: var(--krl-blue);
    font-style: italic;
}

.cert-dark-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cert-dark-box {
    width: 200px;
    height: 140px;
    background: #FFFFFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-dark-img {
    width: 180px;
    height: 120px;
    object-fit: fill;
    display: block;
}

.iso-banner-box {
    padding: 28px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    margin-bottom: 4px;
}

.iso-cert-img {
    height: 160px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Template 2 — Individual Badges */
.iso-badges-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0 4px;
}

.iso-badge {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 160px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.iso-badge-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.certificate-text {
    color: var(--krl-blue);
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.7;
    text-align: justify;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 767.98px) {
    .iso-banner-box {
        padding: 16px 14px;
    }

    .certificate-text {
        font-size: 16px;
    }
}

/* Workflow Section */
.workflow-section {
    background: #FFFFFF;
    padding: 30px 0 0;
}

.workflow-eyebrow {
    margin: 0 0 50px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.workflow-card {
    position: relative;
    height: 255px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 24px;
}

.workflow-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.workflow-card-1 .workflow-card-bg {
    background-image: url('../images/Recover.png');
}

.workflow-card-2 .workflow-card-bg {
    background-image: url('../images/Recycle.png');
}

.workflow-card-3 .workflow-card-bg {
    background-image: url('../images/Reinforce.png');
}

.workflow-tagline {
    background: var(--surface-soft);
    color: var(--krl-blue);
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    padding: 18px 50px;
    margin-top: 40px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    letter-spacing: 1.2px;
    word-spacing: 5px;
}

@keyframes tag-slide-rtl {
    0% {
        opacity: 0;
        transform: translate(80%, -50%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.workflow-tag {
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    isolation: isolate;
    background: var(--krl-blue);
    -webkit-mask-image: url('../images/polygon-1.png');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../images/polygon-1.png');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    color: var(--krl-blue);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 13px 60px;
    border-radius: 0;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
}

.workflow-tag::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: #FFFFFF;
    -webkit-mask-image: url('../images/polygon-1.png');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('../images/polygon-1.png');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    z-index: -1;
}


.reveal-section.is-visible .workflow-card-1 .workflow-tag {
    animation: tag-slide-rtl 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}

.reveal-section.is-visible .workflow-card-2 .workflow-tag {
    animation: tag-slide-rtl 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}

.reveal-section.is-visible .workflow-card-3 .workflow-tag {
    animation: tag-slide-rtl 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards;
}

/* Services Cards Section */
.process-section {
    background: #FFFFFF;
    padding: 30px 0;
}

.process-heading {
    text-align: center;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    line-height: var(--lh-snug);
    font-weight: var(--fw-bold);
    margin: 0 0 28px;
}

.process-eyebrow {
    margin: 0 0 40px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.forged-tabs-wrap {
    width: 100%;
}

.forged-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin: 0 0 28px;
}

.forged-tabs .nav-link {
    border: none;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    line-height: 1.2;
}

.forged-tabs .nav-item:last-child .nav-link {
    border-right: none;
}

.forged-tabs .nav-link.active {
    background: var(--krl-blue);
    color: var(--text-primary);
    font-weight: 700;
}

.forged-tab-content .tab-pane {
    padding-top: 8px;
}

.forged-pane-title {
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    margin: 0 0 24px;
    line-height: var(--lh-snug);
}

.forged-service-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    background: var(--surface-soft);
    display: flex;
    flex-direction: column;
}

.forged-card-image {
    height: 282px;
    background: no-repeat center/cover;
}

.service-image-1 {
    background-image: url('../images/service-caring-slag.jpg');
    background-position: center center;
}

.service-image-2 {
    background-image: url('../images/service-sam.jpg');
    background-position: center center;
}

.service-image-3 {
    background-image: url('../images/service-metal-recovery.jpg');
    background-position: center center;
}

.service-image-4 {
    background-image: url('../images/service-slag-processing.jpg');
    background-position: center center;
}

/* Scrap tab specific images */
.service-image-scrap-mgmt {
    background-image: url('../images/service-scrap-processing.jpg');
    background-position: center center;
}

.service-image-scrap-proc {
    background-image: url('../images/service-gas-cutting.jpg');
    background-position: center center;
}

.service-image-scrap-logistics {
    background-image: url('../images/service-inplant-transport.jpg');
    background-position: center center;
}

.forged-card-body {
    padding: 30px 28px 28px;
    color: var(--text-primary);
    flex: 1;
}

.forged-card-title {
    color: var(--krl-blue);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    font-weight: var(--fw-semibold);
    margin: 0 0 18px;
}

.forged-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text-primary);
    font-size: 34px;
    line-height: 1.24;
    list-style-type: disc;
}

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

.forged-list li::marker {
    content: "■ ";
    font-size: 0.66em;
}

.forged-tab-content .forged-list li::marker {
    content: initial;
    font-size: 1em;
}

.forged-card-body p {
    font-size: var(--fs-body);
}

.iron-service-card .forged-card-image {
    height: 160px;
}

.iron-service-card .forged-card-body {
    padding: 18px 16px 16px;
}

.iron-service-card .forged-card-title {
    font-size: 17px;
    line-height: 1.15;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--krl-blue);
}

.iron-service-card .iron-list {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.45;
    padding-left: 18px;
}

.iron-service-card .iron-list li {
    margin-bottom: 5px;
}

.iron-service-card .iron-list li::marker {
    content: initial;
}

#iron-steel-pane .forged-pane-title,
#scrap-yard-pane .forged-pane-title,
#slag-recovery-pane .forged-pane-title {
    margin-bottom: 18px;
}

.forged-text-card {
    border-radius: 14px;
    background: #FFFFFF;
    border: 1px solid var(--krl-blue);
    padding: 24px 22px;
    color: var(--text-primary);
}

.forged-text-card h4 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.1;
    color: var(--text-primary);
}

.forged-text-card h5 {
    margin: 16px 0 4px;
    font-size: 18px;
    color: var(--text-primary);
}

.forged-text-card p {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--text-primary);
}

.scrap-logistics-card .scrap-main-title {
    font-size: 34px;
    margin-bottom: 4px;
}

.scrap-logistics-card>p {
    font-size: 18px;
    margin-bottom: 94px;
}

.scrap-logistics-card .scrap-divider {
    width: calc(100% + 44px);
    margin-left: -22px;
    border-top: 1px solid var(--krl-blue);
    margin-bottom: 96px;
}

.scrap-logistics-card h5 {
    font-size: 39px;
    margin: 0 0 10px;
    color: var(--text-primary);
}

.scrap-logistics-card .forged-list.compact-list {
    font-size: 36px;
    line-height: 1.32;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.forged-list.compact-list {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.45;
    padding-left: 20px;
}

.forged-list.compact-list li {
    margin-bottom: 4px;
}

/* Value Section */
.value-section {
    background: #FFFFFF;
    padding: 30px 0;
}

.services-footer-strip {
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 50px;
    flex-wrap: wrap;
    margin-top: 36px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

@media (max-width: 767.98px) {
    .services-footer-strip {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
    }

    .services-footer-strip .value-topline {
        text-align: center;
    }

    .page-index .services-footer-strip .value-topline {
        font-size: 22px;
    }
}

.value-topline {
    text-align: left;
    color: var(--krl-blue);
    font-size: 30px;
    font-family: var(--font-display);
    font-weight: 400;
    font-style: normal;
    margin: 0;
    background: none;
    letter-spacing: 1px;
    word-spacing: 3px;
    display: inline-block;
    width: fit-content;
    padding: 0;
}

.value-wrap {
    display: grid;
    grid-template-columns: 45% 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 60px;
    align-items: start;
}

.value-image {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 325px;
    border-radius: 8px;
    background: url('../images/value-section.jpg') no-repeat center/cover;
}

.value-eyebrow {
    grid-column: 2;
    grid-row: 1;
}

.value-content {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.value-eyebrow {
    color: var(--text-muted);
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

@media (max-width: 991.98px) {
    .value-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .value-eyebrow {
        order: 1;
        margin-bottom: 0;
    }

    .value-image {
        order: 2;
        width: 100%;
        height: 280px;
    }

    .value-content {
        order: 3;
        align-items: flex-start;
    }
}

.value-heading {
    color: var(--krl-blue);
    font-size: var(--fs-h3);
    line-height: var(--lh-heading);
    font-weight: var(--fw-semibold);
    margin: 0 0 16px;
    letter-spacing: 1.2px;
}

.value-heading strong {
    font-weight: 700;
}

.value-subtext {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 24px;
}

/* Clientele Section */
.clientele-section {
    background: var(--surface-blue);
    padding: 40px 0;
}

.clientele-title {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    margin: 0 0 24px;
    text-align: center;
}

.clientele-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
}

.clientele-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: client-slide 26s linear infinite;
    gap: 0;
}

.logo-item {
    min-width: 260px;
    text-align: center;
    line-height: 1.08;
    color: var(--text-primary);
    font-weight: 700;
    padding: 0 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.client-logo {
    width: 100%;
    max-width: 185px;
    max-height: 78px;
    object-fit: contain;
    display: block;
}

.logo-mark {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.logo-name {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.logo-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--krl-blue);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes client-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-blue {
    color: var(--text-primary);
}

.logo-teal {
    color: var(--krl-blue);
}

.logo-navy {
    color: var(--text-primary);
}

.logo-green {
    color: var(--krl-blue);
}

.logo-orange {
    color: var(--krl-blue);
}

/* Presence Quote Section */
.presence-section {
    background: #FFFFFF;
    padding: 0;
    text-align: left;
}

.presence-eyebrow {
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--krl-eyebrow);
    margin: 0 0 12px;
}

.presence-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: var(--surface-soft);
    padding: 18px 50px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.presence-quote {
    color: var(--krl-blue);
    font-size: 30px;
    line-height: 1.34;
    font-weight: 400;
    margin: 0;
    flex: 1;
}

/* Footer Section */
.site-footer {
    color: #FFFFFF;
    display: block;
    margin: 0;
    padding: 0;
}

/* Main footer with background image */
.footer-main {
    position: relative;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 0;
}

.footer-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/footer-photo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    z-index: 0;
}

.footer-main>* {
    position: relative;
    z-index: 1;
}

.footer-main-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 0 24px;
    flex: 1;
}

/* Left side */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.footer-logo-box {
    display: inline-block;
    margin-bottom: 12px;
    padding: 10px 16px;
    border-radius: var(--krl-card-radius);
}

.footer-company-logo {
    width: 140px;
    height: auto;
    display: block;
}

.footer-tagline {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 24px;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--krl-blue);
    color: #FFFFFF;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.footer-social-icons a:hover {
    background: var(--krl-deep-navy);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Right card */
.footer-card {
    display: flex;
    gap: 70px;
    background: rgba(55, 74, 159, 0.7);
    border-radius: 10px;
    padding: 44px 56px;
    min-width: 0;
    flex: 1;
    max-width: 640px;
}

.footer-card-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.footer-reach-label {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #FFFFFF;
    font-size: 15px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFFFFF;
    opacity: 0.75;
}

.footer-reach-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #FFFFFF;
    font-size: 15px;
    line-height: 1.6;
}

.footer-reach-item a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-reach-item a:hover {
    color: #FFFFFF;
    opacity: 0.75;
}

.footer-reach-icon {
    background: #FFFFFF;
    color: var(--krl-blue);
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ISO strip — inside bg image */
.footer-iso-strip {
    margin-top: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-iso-text {
    color: var(--surface-soft);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.03em;
}

/* Bottom strip — inside bg image */
.footer-bottom-strip {
    padding: 10px 0;
    margin-bottom: 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-text {
    color: #fff;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 991.98px) {
    .footer-card {
        gap: 48px;
        padding: 32px 36px;
        max-width: none;
    }

    .footer-company-logo {
        width: 150px;
    }
}

@media (max-width: 767.98px) {
    .footer-main-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-card {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .footer-main-inner {
        gap: 16px;
        padding: 28px 0 16px;
    }

    .footer-logo-box {
        padding: 8px 10px;
        margin-bottom: 8px;
    }

    .footer-company-logo {
        width: 120px;
    }

    .footer-social-icons a {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .footer-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px 18px;
    }

    .footer-card-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-reach-item {
        font-size: 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

@media (max-width: 1199.98px) {
    .process-heading {
        font-size: 34px;
    }

    .forged-pane-title {
        font-size: 48px;
    }

    .forged-card-title {
        font-size: 36px;
    }

    .forged-list {
        font-size: 26px;
    }

    .value-heading {
        font-size: 42px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #workflow-row .col-12:last-child {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .workflow-card {
        height: 160px;
    }

    .forged-tabs .nav-link {
        font-size: 17px;
        padding: 12px 14px;
    }

    .forged-pane-title {
        font-size: 40px;
    }

    .forged-card-image {
        height: 220px;
    }

    .forged-card-title {
        font-size: 30px;
    }

    .forged-list {
        font-size: 21px;
    }

    .value-heading {
        font-size: 38px;
        max-width: 100%;
    }

    .logo-item {
        min-width: 220px;
        padding: 0 24px;
    }

    .logo-mark {
        font-size: 30px;
    }

    .logo-name {
        font-size: 14px;
    }

    .logo-note {
        font-size: 11px;
    }

    .presence-quote {
        font-size: 31px;
        max-width: 900px;
    }


    .forged-text-card h4 {
        font-size: 24px;
    }

    .scrap-logistics-card .scrap-main-title {
        font-size: 28px;
    }

    .scrap-logistics-card>p {
        font-size: 16px;
        margin-bottom: 46px;
    }

    .scrap-logistics-card .scrap-divider {
        margin-bottom: 46px;
    }

    .scrap-logistics-card h5 {
        font-size: 30px;
    }

    .scrap-logistics-card .forged-list.compact-list {
        font-size: 28px;
    }
}

/* Mobile nav overlay — activates at Bootstrap's lg breakpoint */
@media (max-width: 991.98px) {

    /* Logo left, hamburger right */
    .navbar .container>.d-flex {
        width: 100%;
        justify-content: space-between;
    }

    .top-brand {
        order: -1;
        margin-left: 0 !important;
    }

    /* Hide the navbar-bar Contact Us on mobile — it lives inside the menu */
    .navbar .contact-btn {
        display: none !important;
    }

    /* Full-width dark overlay panel below the sticky bar */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface-dark);
        border-top: 3px solid var(--krl-blue);
        padding: 12px 24px 32px;
        z-index: 1049;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: var(--surface-soft) !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid rgba(55, 74, 159, 0.2) !important;
        border-radius: 0 !important;
        font-size: 18px;
        padding: 16px 4px !important;
        margin: 0 !important;
        letter-spacing: 0.04em;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none !important;
    }

    .navbar-nav .nav-link:hover {
        color: var(--krl-blue) !important;
        background: transparent !important;
    }

    .navbar-nav .nav-link.active {
        color: var(--krl-blue) !important;
        background: transparent !important;
    }

    .mobile-menu-cta {
        display: block;
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-cta .krl-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .mobile-menu-cta {
        display: none;
    }
}

@media (max-width: 767.98px) {

    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .navbar.top-bar {
        padding-top: 0;
        padding-bottom: 0;
    }

    .top-brand-logo {
        height: 75px;
    }

    .workflow-card {
        height: 190px;
    }

    .process-section {
        /* padding: 40px 0 52px; */
        padding: 0
    }

    .process-heading {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .forged-tabs {
        display: flex;
        width: 100%;
    }

    .forged-tabs .nav-link {
        font-size: 14px;
        padding: 10px;
    }

    .forged-pane-title {
        font-size: 31px;
        margin-bottom: 16px;
    }

    .forged-card-image {
        height: 190px;
    }

    .forged-card-body {
        padding: 18px 16px 20px;
    }

    .forged-card-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .forged-list {
        font-size: 18px;
        line-height: 1.3;
        padding-left: 20px;
    }

    .forged-list li {
        margin-bottom: 8px;
    }

    .forged-text-card {
        padding: 18px 15px;
    }

    .forged-text-card h4 {
        font-size: 21px;
    }

    .forged-text-card h5 {
        font-size: 16px;
    }

    .forged-list.compact-list {
        font-size: 14px;
    }

    .scrap-logistics-card .scrap-main-title {
        font-size: 22px;
    }

    .scrap-logistics-card>p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .scrap-logistics-card .scrap-divider {
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-bottom: 30px;
    }

    .scrap-logistics-card h5 {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .scrap-logistics-card .forged-list.compact-list {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .value-section {
        padding: 38px 0 50px;
    }

    .value-topline {
        margin-bottom: 0;
        font-size: 16px;
    }

    .value-heading {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .clientele-section {
        padding: 26px 0 34px;
    }

    .clientele-title {
        margin-bottom: 18px;
    }

    .logo-item {
        min-width: 180px;
        padding: 0 18px;
    }

    .logo-mark {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .logo-name {
        font-size: 12px;
    }

    .logo-note {
        font-size: 10px;
    }

    .presence-section {
        padding: 24px 0 0;
    }

    .hero {
        min-height: 480px;
        height: 480px;
    }

    .presence-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: calc(50vw - 50%);
        padding-right: calc(50vw - 50%);
        gap: 20px;
    }

    .presence-quote {
        font-size: 22px;
        line-height: 1.36;
        margin-bottom: 0;
    }

    .footer-main {
        padding: 36px 0;
    }
}

/* About Us Page */
.about-cover {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url('../images/contact-site-image\.jpg') no-repeat center/cover;
    padding: 56px 0;
    overflow: hidden;
}

.about-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(26 31 46 / 11%) 0%, rgb(77 85 107 / 58%) 100%);
}

.about-cover-content {
    position: relative;
    z-index: 1;
    text-align: left;
}

.about-page-tag {
    margin: 0 0 8px;
    color: var(--surface-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-main-title {
    margin: 0;
    color: var(--surface-soft);
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    text-transform: uppercase;
    letter-spacing: var(--ls-tight);
}

.about-split-section {
    background: #FFFFFF;
    padding: 58px 0;
}

.about-content-card {
    background: #FFFFFF;
    padding: 0;
    padding-right: 24px;
}

.about-quote {
    margin: 0 0 20px;
    color: var(--text-primary);
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    font-weight: var(--fw-semibold);
    font-family: var(--font-body);
    letter-spacing: var(--ls-normal);
}

.about-content-card h2 {
    margin: 0 0 14px;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    font-family: var(--font-display);
    letter-spacing: var(--ls-normal);
    line-height: var(--lh-snug);
    text-transform: none;
}


.about-content-card .about-quote {
    color: var(--text-primary);
    text-align: justify;
}

.about-split-section--dark .about-side-image {
    min-height: 400px;
}

/* What We Do — desktop grid */
@media (min-width: 992px) {
    .about-split-section--dark .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr;
        gap: 0;
    }

    .about-wwd-heading {
        grid-column: 1;
        grid-row: 1;
    }

    .about-wwd-text {
        grid-column: 1;
        grid-row: 2;
    }

    .about-wwd-image {
        grid-column: 2;
        grid-row: 1 / 3;
    }
}

/* What We Do — mobile order */
.about-wwd-h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 16px;
    padding: 0;
}

.about-split-section--dark {
    background: var(--surface-blue);
}

.about-split-section--dark .about-content-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-split-section--dark .about-content-card h2 {
    color: var(--krl-blue);
}

.about-legacy-title {
    text-align: left;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    margin: 0 auto 40px;
    font-family: var(--font-display);
    width: 100%;
}

.about-side-image {
    min-height: 420px;
    border-radius: 12px;
    width: 100%;
}

.about-side-image-1 {
    background: url('../images/founder\.jpg') no-repeat center/cover;
}

.about-founder-img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    border: 1px solid var(--border-default);
}

.about-side-image-2 {
    background: url('../images/what-we-do\.jpg') no-repeat center/cover;
}

.about-leader+.about-leader {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--krl-blue);
}

.about-leader h3 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.about-role {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Core Values Section */
.core-values-section {
    background: #FFFFFF;
    padding: 60px 0 70px;
}

.core-values-heading {
    margin: 0 0 40px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-align: left;
}

.leadership-section .section-eyebrow {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-align: left;
}

.core-values-section .section-eyebrow {
    margin-bottom: 36px;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-normal);
    font-family: var(--font-display);
    text-transform: none;
}

.core-value-card {
    background: var(--surface-soft);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.core-value-title {
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    color: #FFFFFF;
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 12px 22px;
    text-align: left;
    background: var(--krl-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.core-value-letter {
    color: #FFFFFF;
    font-size: 1.4em;
    font-weight: 800;
    line-height: 1;
}

.core-value-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 6px;
}

.core-value-card-body {
    padding: 20px 20px;
    flex: 1;
    background: var(--surface-soft);
}

.core-value-card-body p {
    font-size: var(--fs-body);
}


@media (max-width: 767.98px) {
    .core-values-section {
        padding: 40px 0 50px;
    }
}

/* Leadership Section */
.leadership-section {
    padding: 0px 0 80px 0;
}

.leadership-heading {
    text-align: left;
    margin: 8px 0 40px;
    color: var(--krl-blue);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    font-family: var(--font-display);
    letter-spacing: var(--ls-normal);
    line-height: var(--lh-snug);
}

.leader-card {
    background: var(--surface-soft);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    height: 100%;
}

.leader-card-image {
    width: 170px;
    min-width: 170px;
    flex-shrink: 0;
    overflow: hidden;
    padding: 16px 10px 16px 16px;
}

.leader-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.leader-card-body {
    padding: 10px 22px 20px 10px;
    flex: 1;
}

.leader-name {
    margin: 0 0 4px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    color: var(--text-primary);
}

.leader-role {
    margin: 0;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


@media (max-width: 991.98px) {
    .about-cover {
        min-height: 330px;
        padding: 42px 0;
    }

    .about-side-image {
        min-height: 360px;
    }

    .about-wwd-heading {
        order: 1;
    }

    .about-wwd-image {
        order: 2;
    }

    .about-wwd-text {
        order: 3;
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) {
    .about-cover {
        min-height: 270px;
        padding: 30px 0 26px;
    }

    .about-page-tag {
        font-size: 11px;
    }

    .about-split-section {
        padding: 36px 0;
    }

    .about-content-card {
        padding: 0;
    }

    .about-leader h3 {
        font-size: 20px;
    }

    .about-role {
        font-size: 16px;
    }

    .about-side-image {
        min-height: 250px;
    }

    .leader-card-image {
        width: 120px;
        min-width: 120px;
        padding: 12px 8px 12px 12px;
    }

    .leader-card-body {
        padding: 14px 14px 14px 8px;
    }

    .leader-name {
        font-size: 19px;
    }

    .leader-role {
        font-size: 11px;
        letter-spacing: 0.05em;
    }

}

@media (max-width: 575px) {
    .leader-card {
        flex-direction: column;
    }

    .leader-card-image {
        width: 100%;
        min-width: unset;
        padding: 16px 16px 0 16px;
    }

    .leader-card-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: top;
        border-radius: 8px;
    }

    .leader-card-body {
        padding: 16px;
    }
}

/* Safety Page */
.safety-cover {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url("../images/safety-cover\.jpg") no-repeat center / cover;
    padding: 56px 0;
    overflow: hidden;
}

.safety-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 31, 46, 0.82) 0%, rgba(26, 31, 46, 0.42) 60%, rgba(26, 31, 46, 0.18) 100%);
}

.safety-cover-content {
    position: relative;
    z-index: 1;
}

.safety-cover-title {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    color: #ffffff;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 10px;
    text-transform: uppercase;
}

.safety-cover-sub {
    margin: 12px 0 0;
    color: var(--surface-soft);
    font-size: 20px;
    font-weight: 500;
}

.safety-krl-mark {
    width: 104px;
    max-width: 100%;
    margin: 0 0 14px;
    filter: brightness(0) invert(1);
    display: block;
}

.safety-handbook-banner {
    background: var(--surface-soft);
    padding: 48px 0;
}

.safety-handbook-banner-inner {
    display: flex;
    align-items: stretch;
    min-height: 320px;
    background: var(--surface-soft);
    overflow: hidden;
}

.safety-handbook-img {
    width: 520px;
    min-width: 520px;
    min-height: 320px;
    flex-shrink: 0;
    background: url("../images/safety-cover\.jpg") no-repeat center / cover;
    border-radius: 4px;
    align-self: stretch;
}

.safety-handbook-body {
    flex: 1;
    padding: 0px 56px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.safety-handbook-eyebrow {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.safety-handbook-body h2 {
    margin: 0 0 10px;
    color: var(--krl-blue);
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
}

.safety-handbook-body p {
    margin: 0 0 16px;
    /* color: var(--text-primary); */
    font-size: 15px;
    line-height: 1.5;
}

.safety-handbook-body .safety-pill {
    color: var(--text-primary);
}

@media (max-width: 991.98px) {
    .safety-handbook-banner-inner {
        flex-direction: column;
    }

    .safety-handbook-img {
        width: 100%;
        min-width: unset;
        min-height: 280px;
    }

    .safety-handbook-body {
        padding: 28px 24px;
    }
}

.safety-fw-section {
    background: #ffffff;
    padding: 52px 0 60px;
}

.safety-fw-title {
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 36px;
}

.safety-fw-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.safety-fw-item {
    background: var(--surface-blue);
    border: 1px solid var(--krl-blue);
    border-radius: 14px;
    padding: 28px 26px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 100px;
    box-shadow: var(--shadow-sm);
}

.safety-fw-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.safety-fw-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
}

.safety-fw-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.safety-fw-sub {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .safety-fw-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .safety-fw-flow {
        grid-template-columns: 1fr;
    }
}

.safety-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.safety-pill {
    background: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 0 0 12px;
    line-height: 1.2;
    border-radius: 0;
    border-left: 3px solid var(--krl-blue);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Combined capabilities + EHS grid */
.safety-combined-section {
    padding: 60px 0 80px;
}

.safety-combined-heading {
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 36px;
    letter-spacing: var(--ls-normal);
}

.safety-combined-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: stretch;
}

/* Capability columns — matches iron-service-card */
.safety-cap-col {
    background: var(--surface-soft);
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.safety-cap-img {
    height: 160px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
}

.safety-cap-col-body {
    padding: 18px 16px 16px;
    flex: 1;
}

.safety-cap-col-body h3 {
    margin: 0 0 12px;
    color: var(--krl-blue);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--krl-blue);
}

.safety-cap-col-body p {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.safety-cap-col-body p:last-child {
    margin-bottom: 0;
}

/* Workforce cards — matches iron-service-card */
.safety-cap-card {
    background: var(--surface-blue);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.safety-capability-image {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    background-position-y: -130px;
}

.safety-capability-image-1 {
    background-image: url("../images/sop\.jpg");
}

.safety-capability-image-2 {
    background-image: url("../images/mis\.jpg");
}

.safety-capability-image-3 {
    background-image: url("../images/asset\.jpg");
}

.safety-capability-image-4 {
    background-image: url("../images/multi\.jpg");
}

.safety-workforce-image-1 {
    background-image: url("../images/in-house\.jpg");
}

.safety-workforce-image-2 {
    background-image: url("../images/expert\.jpg");
}

.safety-workforce-image-3 {
    background-image: url("../images/crisis\.jpg");
}

.safety-cap-card-body {
    padding: 24px 22px 26px;
}

.safety-cap-card-body h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--krl-blue);
    color: var(--krl-blue);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.safety-cap-card-body p {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

.safety-cap-card-body p:last-child {
    margin-bottom: 0;
}

.safety-ehs-card {
    background: var(--surface-soft);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.safety-ehs-card h3 {
    margin: 0;
    padding: 12px 10px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.safety-ehs-card ul {
    margin: 10px 0 0;
    padding: 0 16px 14px 30px;
    flex: 1;
}

.safety-ehs-card li {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.45;
}

.ehs-safety h3,
.ehs-health h3,
.ehs-environment h3,
.ehs-governance h3 {
    background: var(--krl-blue);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 14px 12px;
}

@media (max-width: 991.98px) {
    .safety-cover {
        min-height: 330px;
        padding: 42px 0;
    }
}

@media (max-width: 991.98px) {
    .safety-combined-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 0;
    }

    /* Space between pairs comes after each EHS row */
    .safety-combined-grid .safety-ehs-card {
        margin-bottom: 32px;
    }

    /* Pair caps with their EHS cards: cap1+cap2, ehs1+ehs2, cap3+cap4, ehs3+ehs4 */
    .safety-combined-grid>*:nth-child(1) {
        order: 1;
    }

    .safety-combined-grid>*:nth-child(2) {
        order: 2;
    }

    .safety-combined-grid>*:nth-child(3) {
        order: 5;
    }

    .safety-combined-grid>*:nth-child(4) {
        order: 6;
    }

    .safety-combined-grid>*:nth-child(5) {
        order: 3;
    }

    .safety-combined-grid>*:nth-child(6) {
        order: 4;
    }

    .safety-combined-grid>*:nth-child(7) {
        order: 7;
    }

    .safety-combined-grid>*:nth-child(8) {
        order: 8;
    }
}

@media (max-width: 767.98px) {
    .safety-combined-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    /* Space between pairs comes after each EHS card */
    .safety-combined-grid .safety-ehs-card {
        margin-bottom: 32px;
    }

    /* Interleave: cap1, ehs1, cap2, ehs2, cap3, ehs3, cap4, ehs4 */
    .safety-combined-grid>*:nth-child(1) {
        order: 1;
    }

    .safety-combined-grid>*:nth-child(2) {
        order: 3;
    }

    .safety-combined-grid>*:nth-child(3) {
        order: 5;
    }

    .safety-combined-grid>*:nth-child(4) {
        order: 7;
    }

    .safety-combined-grid>*:nth-child(5) {
        order: 2;
    }

    .safety-combined-grid>*:nth-child(6) {
        order: 4;
    }

    .safety-combined-grid>*:nth-child(7) {
        order: 6;
    }

    .safety-combined-grid>*:nth-child(8) {
        order: 8;
    }

    .safety-cover {
        min-height: 260px;
        padding: 30px 0 26px;
    }

    .safety-cover-sub {
        font-size: 16px;
    }

}

/* =========================================
   Page-Specific Overrides from Inline CSS 
   ========================================= */

/* Hero highlight color */
.hero-highlight {
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Contact address label */
.footer-reach-address-label {
    margin-top: 18px;
}

/* Scroll To Top */
#scrollToTop {
    position: fixed;
    bottom: 36px;
    right: 32px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--krl-blue);
    color: #FFFFFF;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease;
    pointer-events: none;
}

#scrollToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scrollToTop:hover {
    background: var(--btn-bg-hover);
    color: #FFFFFF;
}

/* Index Page */
.page-index .hero .krl-btn:hover,
.page-index .hero .krl-btn:focus,
.page-index .hero .krl-btn:active {
    color: #fff;
}

.page-aboutus .leader-card-image {
    width: 220px;
    min-width: 220px;
    padding: 16px 12px 16px 16px;
}

.page-aboutus .leader-card-image img {
    border-radius: 12px;
    height: 260px;
    object-fit: cover;
}

/* Contact Page */
.page-contact .contact-cover {
    min-height: 320px;
    background-image: linear-gradient(rgba(26, 31, 46, 0.55), rgba(26, 31, 46, 0.55)), url('../images/contact-hero\.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.page-contact .contact-cover-title {
    color: var(--surface-soft);
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
}

.page-contact .contact-panel {
    background: #FFFFFF;
    padding: 56px 0 32px;
}

.page-contact .contact-wrap {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    align-items: stretch;
}

.page-contact .contact-left {
    padding-right: 10px;
}

.page-contact .contact-kicker {
    margin: 0 0 8px;
}

.page-contact .contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
    font-weight: var(--fw-bold);
    color: var(--krl-blue);
    line-height: var(--lh-snug);
    margin-bottom: 20px;
    letter-spacing: var(--ls-normal);
    text-transform: uppercase;
}

.page-contact .contact-text {
    color: var(--text-primary);
    max-width: 680px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.55;
}

.page-contact .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.page-contact .contact-input,
.page-contact .contact-textarea,
.page-contact .contact-select {
    width: 100%;
    border: 1px solid var(--border-default);
    background: #FFFFFF;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.page-contact .contact-input:focus,
.page-contact .contact-textarea:focus,
.page-contact .contact-select:focus {
    outline: none;
    border-color: var(--krl-blue);
}

.page-contact .contact-input::placeholder,
.page-contact .contact-textarea::placeholder,
.page-contact .contact-select {
    color: var(--text-muted);
}

.page-contact .contact-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%), linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.page-contact .contact-textarea {
    margin-top: 12px;
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.page-contact .contact-consent {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

.page-contact .contact-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--krl-blue);
    flex-shrink: 0;
}

.page-contact .contact-submit {
    margin-top: 18px;
    text-transform: none;
    letter-spacing: 0.02em;
    height: 44px;
    padding: 0 26px;
    font-size: 14px;
}

.page-contact .contact-image {
    border-radius: var(--krl-card-radius);
    overflow: hidden;
    position: relative;
    min-height: 420px;
}

.page-contact .contact-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 991px) {
    .page-contact .contact-wrap {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-image {
        min-height: 440px;
    }
}

@media (max-width: 767px) {
    .page-contact .contact-panel {
        padding: 46px 0;
    }

    .page-contact .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-input,
    .page-contact .contact-textarea,
    .page-contact .contact-select {
        font-size: 16px;
    }
}

.page-contact .contact-details-section {
    padding: 32px 0 60px;
}

.page-contact .contact-details-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.page-contact .contact-details-kicker i {
    font-size: 13px;
    color: var(--krl-blue);
}

.page-contact .contact-details-kicker img {
    width: 24px;
    height: auto;
    opacity: 0.5;
}

.page-contact .contact-details-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
    font-weight: var(--fw-bold);
    color: var(--krl-blue);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-normal);
    text-transform: uppercase;
}

.page-contact .contact-details-group-title {
    font-size: 12px;
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    color: var(--text-primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
}

.page-contact .contact-address-card {
    background: var(--surface-soft);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.page-contact .contact-address-card:hover {
    box-shadow: 0 6px 24px rgba(26, 31, 46, 0.08);
    transform: translateY(-2px);
}

.page-contact .contact-address-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    line-height: 1.3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.page-contact .contact-address-branch-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.page-contact .contact-address-lines {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 14px;
}

.page-contact .contact-address-lines i {
    color: var(--krl-blue);
    margin-right: 4px;
    flex-shrink: 0;
}

.page-contact .contact-address-email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s;
}

.page-contact .contact-address-email:hover {
    color: var(--krl-blue);
}

.page-contact .contact-address-email i {
    color: var(--krl-blue);
    font-size: 13px;
    flex-shrink: 0;
}

.page-contact .contact-offices-group-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--krl-yellow);
    display: inline-block;
}

.page-contact .contact-address-card--hq {
    /* border-left: 4px solid var(--krl-yellow); */
    background: var(--surface-soft);
}

@media (max-width: 767px) {
    .page-contact .contact-details-section {
        padding: 46px 0;
    }
}

@media (max-width: 767px) {

    .page-contact .contact-input,
    .page-contact .contact-textarea,
    .page-contact .contact-select {
        font-size: 17px;
    }

    .page-contact .contact-image {
        min-height: 300px;
    }

    .page-contact .contact-left {
        padding-right: 0;
    }

    .page-contact .contact-submit {
        width: 100%;
    }

    .page-contact .contact-details-heading {
        margin-bottom: 28px;
    }
}

@media (max-width: 575px) {
    .page-contact .contact-cover {
        min-height: 180px;
    }

    .page-contact .contact-panel {
        padding: 32px 0 28px;
    }

    .page-contact .contact-image {
        min-height: 220px;
    }

    .page-contact .contact-title {
        margin-bottom: 12px;
    }

    .page-contact .contact-input,
    .page-contact .contact-textarea,
    .page-contact .contact-select {
        padding: 11px 14px;
        font-size: 15px;
    }

    .page-contact .contact-textarea {
        min-height: 120px;
    }

    .page-contact .contact-details-section {
        padding: 28px 0 40px;
    }

    .page-contact .contact-details-heading {
        margin-bottom: 20px;
    }

    .page-contact .contact-address-card {
        padding: 20px 16px;
    }

    .page-contact .contact-address-card-title {
        margin-bottom: 10px;
    }

    .page-contact .contact-address-lines {
        margin-bottom: 14px;
    }
}

/* =========================================
   Safety Page — Workforce Section + Font Scoping
   ========================================= */

.safety-workforce-section {
    background: var(--surface-soft);
    padding: 60px 0 80px;
}

.safety-workforce-section .section-eyebrow {
    margin-bottom: 32px;
}

.page-safety .safety-fw-icon {
    font-size: 45px;
}

@media (max-width: 575px) {

    /* Cover */
    .safety-cover {
        min-height: 180px;
        padding: 28px 0;
    }

    /* Operating Framework */
    .safety-fw-section {
        padding: 32px 0 36px;
    }

    .page-safety .safety-fw-title {
        margin-bottom: 20px;
    }

    .safety-fw-flow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .safety-fw-item {
        padding: 16px 14px;
        min-height: unset;
    }

    .page-safety .safety-fw-icon {
        font-size: 36px;
    }

    /* Handbook Banner */
    .safety-handbook-banner {
        padding: 28px 0;
    }

    .safety-handbook-img {
        min-height: 200px;
    }

    .safety-handbook-body {
        padding: 20px 16px;
    }

    .safety-pill-row {
        gap: 14px;
        margin-top: 14px;
    }

    /* Capabilities & EHS Grid */
    .safety-combined-section {
        padding: 32px 0 44px;
    }

    .page-safety .safety-combined-heading {
        margin-bottom: 20px;
    }

    .safety-cap-img {
        height: 130px;
    }

    .safety-cap-col-body {
        padding: 14px 14px 12px;
    }

    /* Workforce Section */
    .safety-workforce-section {
        padding: 32px 0 44px;
    }

    .safety-cap-card-body {
        padding: 14px 14px 12px;
    }
}

/* ==============================================
   SERVICES TABS — Spread variant (.tabs-spread)
   Used on home page Our Services + News page filters
   ============================================== */

.forged-tabs.tabs-spread {
    gap: 12px;
    flex-wrap: nowrap;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 36px;
    border: none;
}

.forged-tabs.tabs-spread .nav-item {
    flex: 1;
}

.forged-tabs.tabs-spread .nav-link {
    width: 100%;
    border-radius: 6px;
    background: var(--surface-soft);
    border: 1px solid #d2d3d4;
    padding: 16px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    transition: color 0.2s, background 0.2s;
}

.forged-tabs.tabs-spread .nav-link:hover {
    background: rgba(55, 74, 159, 0.12);
}

.forged-tabs.tabs-spread .nav-link.active {
    background: var(--krl-blue);
    color: #FFFFFF;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .forged-tabs.tabs-spread {
        flex-wrap: wrap;
        gap: 10px;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
    }

    .forged-tabs.tabs-spread .nav-item {
        flex: 0 0 calc(50% - 5px);
    }

    .forged-tabs.tabs-spread .nav-item:last-child {
        flex: 0 0 calc(50% - 5px);
        margin-left: auto;
        margin-right: auto;
    }

    .forged-tabs.tabs-spread .nav-link {
        width: 100%;
        border: 1px solid var(--border-default);
        border-radius: 6px;
        background: var(--surface-soft);
        text-align: center;
        padding: 14px 12px;
    }

    .forged-tabs.tabs-spread .nav-item:last-child .nav-link {
        border-right: 1px solid var(--border-default);
    }
}

/* ==============================================
   OPERATING FRAMEWORK v2 — CSS border serpentine
   ?fw=2  (gap between 4 cards = 16px × 3 = 48px)
   Arc positions use calc() to align with card centres
   ============================================== */

.fw2-wrapper {
    position: relative;
    padding: 72px 0;
}

.fw2-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.fw2-card {
    background: var(--border-default);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fw2-icon {
    font-size: 52px;
    color: var(--text-primary);
    opacity: 0.65;
    line-height: 1;
    margin-bottom: 16px;
}

.fw2-label {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.fw2-sub {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.45;
}

/* --- Arc connectors --- */
.fw2-arc {
    position: absolute;
    /* arc spans from centre of one card to centre of next:
       width = 1 card-width + 1 gap = (100% - 48px)/4 + 16px */
    width: calc((100% - 48px) / 4 + 16px);
    height: 44px;
    border: 2.5px solid var(--krl-blue);
    pointer-events: none;
    z-index: 2;
}

.fw2-arc-top {
    top: 28px;
    border-bottom: none;
    border-radius: 22px 22px 0 0;
}

.fw2-arc-bottom {
    bottom: 28px;
    border-top: none;
    border-radius: 0 0 22px 22px;
}

/* left edge = centre of source card */
.fw2-arc-12 {
    left: calc((100% - 48px) / 8);
}

.fw2-arc-23 {
    left: calc((100% - 48px) * 3 / 8 + 16px);
}

.fw2-arc-34 {
    left: calc((100% - 48px) * 5 / 8 + 32px);
}

/* Arrowheads — triangle at the right end of each arc */
.fw2-arc-top::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: -13px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 13px solid var(--krl-blue);
}

.fw2-arc-bottom::after {
    content: '';
    position: absolute;
    right: -7px;
    top: -13px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 13px solid var(--krl-blue);
}

@media (max-width: 767.98px) {
    .fw2-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .fw2-arc {
        display: none;
    }

    .fw2-wrapper {
        padding: 0;
    }
}


/* EHS card header variant — ehs=2: yellow bg, maroon text */
.ehs-yellow .ehs-safety h3,
.ehs-yellow .ehs-health h3,
.ehs-yellow .ehs-environment h3,
.ehs-yellow .ehs-governance h3 {
    background: var(--krl-blue);
    color: var(--text-primary);
}


/* Workforce card — subtitle + description */
.safety-cap-card-sub {
    margin: 0 0 10px;
    color: var(--krl-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.safety-cap-card-desc {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    text-align: justify;
}

/* =============================================
   CAREERS PAGE
   ============================================= */

/* Hero Cover */
.page-careers .careers-cover {
    position: relative;
    background: url('../images/banner/banner-careers.jpg') no-repeat center center / cover;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.careers-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.careers-cover-content {
    position: relative;
    z-index: 1;
    padding-bottom: 0;
}

.careers-cover-title {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: var(--lh-tight);
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: var(--ls-tight);
}

/* Intro Section */
.careers-intro-section {
    padding: 0;
    background: #FFFFFF;
}

.careers-intro-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.careers-intro-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 16px;
    padding: 0;
}

.careers-intro-text {
    font-size: var(--fs-lead);
    line-height: var(--lh-body);
    color: var(--text-primary);
    margin: 0 0 32px;
}

/* Why Work With Us */
.careers-why-section {
    background: var(--surface-blue);
    overflow: hidden;
    margin-top: 60px;
}

.careers-why-inner {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.careers-why-content {
    flex: 0 0 60%;
    order: 1;
    padding: 56px 60px;
    background: var(--surface-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.careers-why-photo {
    flex: 0 0 40%;
    order: 2;
}

.careers-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.careers-why-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 28px;
}

.careers-why-card {
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 24px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    min-height: 100px;
    height: 100%;
}

.careers-why-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.careers-why-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--krl-blue);
    margin: 0;
    line-height: 1.3;
}

.careers-why-card-desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
}

.careers-why-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 1;
}

/* How to Apply — 40/60 split */
.careers-how-section {
    background: var(--surface-soft);
    overflow: hidden;
}

.careers-how-inner {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

.careers-how-photo {
    flex: 0 0 40% !important;
    order: 2;
}

.careers-how-content {
    flex: 0 0 60%;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 60px;
    background: var(--surface-soft);
}

.careers-how-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 20px;
}

.careers-how-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin: 0 0 36px;
}

.careers-how-email {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.careers-how-email:hover {
    text-decoration: underline;
}

.careers-how-quote {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

/* Application Form — 50/50 split */
.careers-form-section {
    background: #FFFFFF;
    padding: 0;
    overflow: hidden;
}

.careers-form-split {
    display: flex;
    justify-content: center;
    min-height: 600px;
}

.careers-form-left {
    flex: none;
    width: 100%;
    padding: 70px 40px 80px;
}

.careers-form-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: var(--ls-normal);
    margin: 0 0 36px;
}

.careers-form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 12px;
    display: block;
}

.careers-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.page-careers .contact-input,
.page-careers .contact-select {
    width: 100%;
    border: 1px solid var(--krl-blue);
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.page-careers .contact-input::placeholder {
    color: var(--text-muted);
}

.page-careers .contact-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-primary) 50%), linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    padding-right: 42px;
    color: var(--text-muted);
    cursor: pointer;
}

.page-careers .contact-input:focus,
.page-careers .contact-select:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(26, 31, 46, 0.08);
}

.careers-file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.careers-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 50px;
    background: var(--surface-soft);
    border: 1px solid var(--krl-blue);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
}

.careers-file-input {
    display: none;
}

.careers-file-hint {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.careers-submit {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .careers-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .careers-intro-img {
        height: 300px;
    }

    .careers-how-quote {
        font-size: 26px;
    }

    .careers-how-inner {
        flex-direction: column;
        min-height: auto;
    }

    .careers-how-photo {
        flex: none !important;
        min-height: 280px;
    }

    .careers-how-content {
        flex: none;
        padding: 44px 32px;
    }

    .careers-why-inner {
        flex-direction: column;
        min-height: auto;
    }

    .careers-why-photo {
        flex: none;
        min-height: 280px;
        order: -1;
    }

    .careers-why-content {
        flex: none;
        padding: 44px 32px;
    }
}

@media (max-width: 991.98px) {
    .careers-form-split {
        flex-direction: column;
    }

    .careers-form-left {
        flex: none;
        padding: 50px 32px 60px;
    }

    .careers-form-image {
        flex: none;
        min-height: 280px;
        order: -1;
    }
}

@media (max-width: 767.98px) {
    .careers-intro-section {
        padding: 44px 0;
    }

    .careers-intro-img {
        height: 240px;
    }

    .careers-intro-title {
        font-size: 32px;
    }

    .careers-intro-text {
        font-size: 18px;
    }

    .careers-why-heading,
    .careers-how-heading {
        font-size: 32px;
    }

    .careers-how-quote {
        font-size: 22px;
    }

    .careers-how-content {
        padding: 36px 20px;
    }

    .careers-form-grid {
        grid-template-columns: 1fr;
    }

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

    .careers-why-content {
        padding: 36px 20px;
    }

    .careers-form-heading {
        font-size: 26px;
    }

    .careers-form-left {
        padding: 40px 20px 50px;
    }

    .careers-form-image {
        min-height: 220px;
    }
}

/* ============================================================
   CAREERS FORM — VERSION 2  (warm editorial split layout)
   ============================================================ */

.careers-form-v2 {
    background: var(--surface-soft);
    overflow: hidden;
}

.cfv2-inner {
    display: flex;
    min-height: 680px;
}

/* --- Left yellow panel --- */
.cfv2-panel {
    position: relative;
    flex: 0 0 36%;
    background: var(--surface-soft);
    display: flex;
    flex-direction: column;
    padding: 48px;
    overflow: hidden;
}

.cfv2-panel-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cfv2-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(-52deg,
            rgba(26, 31, 46, 0.055) 0px,
            rgba(26, 31, 46, 0.055) 1px,
            transparent 1px,
            transparent 26px);
    pointer-events: none;
}

.cfv2-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--text-primary);
    opacity: 0.15;
}

.cfv2-panel-eyebrow {
    position: absolute;
    top: 48px;
    left: 48px;
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: rgba(26, 31, 46, 0.55);
}

.cfv2-panel-headline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cfv2-line1 {
    font-family: var(--font-display);
    font-size: clamp(60px, 6.5vw, 96px);
    font-weight: 800;
    line-height: 0.88;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
}

.cfv2-line2 {
    font-family: var(--font-display);
    font-size: clamp(60px, 6.5vw, 96px);
    font-weight: 800;
    line-height: 0.88;
    color: rgba(26, 31, 46, 0.35);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
}

.cfv2-panel-bar {
    width: 36px;
    height: 3px;
    background: var(--text-primary);
    opacity: 0.4;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cfv2-panel-quote {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(26, 31, 46, 0.75);
    margin: 0;
    position: relative;
    z-index: 1;
}

.cfv2-panel-since {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(26, 31, 46, 0.4);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* --- Right form area --- */
.cfv2-form-wrap {
    flex: 1;
    background: #FFFFFF;
    padding: 48px 56px 70px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-left: 1px solid var(--border-default);
}

.cfv2-form-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    letter-spacing: var(--ls-normal);
    margin: 0 0 36px;
}

.cfv2-form-label {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 12px;
    display: block;
}

.cfv2-input,
.cfv2-select {
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 13px 18px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.cfv2-input::placeholder {
    color: var(--text-muted);
}

.cfv2-input:focus,
.cfv2-select:focus {
    border-color: var(--krl-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(55, 74, 159, 0.15);
}

.cfv2-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
        linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    background-color: var(--surface-soft);
    padding-right: 42px;
    color: var(--text-muted);
    cursor: pointer;
}

.cfv2-select:focus {
    background-color: #FFFFFF;
    color: var(--text-primary);
}

.cfv2-select option {
    background: #FFFFFF;
    color: var(--text-primary);
}

.cfv2-file-row {
    margin-bottom: 28px;
}

.cfv2-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 46px;
    background: var(--surface-soft);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-body);
}

.cfv2-file-btn:hover {
    border-color: var(--krl-blue);
    background: #FFFFFF;
}

.cfv2-file-hint {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.cfv2-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--fw-medium);
    letter-spacing: normal;
    text-transform: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cfv2-submit:hover {
    background: var(--surface-dark);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991.98px) {
    .cfv2-inner {
        flex-direction: column;
    }

    .cfv2-panel {
        flex: none;
        padding: 40px 32px 40px;
        justify-content: flex-end;
        min-height: 420px;
    }

    .cfv2-panel::after {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 3px;
    }

    .cfv2-panel-howto {
        position: static;
        margin-bottom: 28px;
    }

    .cfv2-panel-headline {
        margin-bottom: 24px;
    }

    .cfv2-panel-since {
        position: static;
        margin-top: 8px;
    }

    .cfv2-form-wrap {
        padding: 44px 32px 56px;
        border-left: none;
        border-top: 1px solid var(--border-default);
    }

    .careers-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .cfv2-form-wrap {
        padding: 36px 20px 48px;
    }

    .cfv2-panel {
        padding: 36px 20px 36px;
    }

    .careers-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CAREERS FORM — VERSION 3  (photo-right editorial split)
   ============================================================ */

.careers-form-v3 {
    background: var(--surface-soft);
    overflow: hidden;
}

.cfv3-inner {
    display: flex;
    min-height: 700px;
}

/* --- Left: form --- */
.cfv3-form-wrap {
    flex: 0 0 58%;
    background: #FFFFFF;
    padding: 56px 60px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.cfv3-form-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--krl-blue) 0%, var(--krl-blue) 55%, transparent 100%);
}

.cfv3-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--krl-eyebrow);
    margin-bottom: 14px;
}

.cfv3-form-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: var(--ls-normal);
    line-height: var(--lh-snug);
    margin: 0 0 40px;
}

.cfv3-form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--krl-blue);
    margin: 0 0 12px;
    display: block;
}

.cfv3-input,
.cfv3-select {
    width: 100%;
    background: var(--surface-soft);
    border: 1.5px solid var(--border-default);
    border-radius: 6px;
    padding: 13px 16px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-body);
}

.cfv3-input::placeholder {
    color: var(--text-muted);
}

.cfv3-input:focus,
.cfv3-select:focus {
    border-color: var(--krl-blue);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(55, 74, 159, 0.12);
}

.cfv3-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-primary) 50%),
        linear-gradient(135deg, var(--text-primary) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
    background-color: var(--surface-soft);
    padding-right: 42px;
    color: var(--text-muted);
    cursor: pointer;
}

.cfv3-select:focus {
    background-color: #FFFFFF;
    color: var(--text-primary);
}

.cfv3-select option {
    background: #FFFFFF;
    color: var(--text-primary);
}

.cfv3-file-row {
    margin-bottom: 28px;
}

.cfv3-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 46px;
    background: var(--surface-soft);
    border: 1.5px solid var(--border-default);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
    font-family: var(--font-body);
}

.cfv3-file-btn:hover {
    border-color: var(--krl-blue);
    background: #FFFFFF;
}

.cfv3-file-hint {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.cfv3-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-display);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cfv3-submit:hover {
    background: var(--surface-dark);
    transform: translateY(-1px);
}

/* --- Right: photo panel --- */
.cfv3-photo-panel {
    flex: 1;
    position: relative;
    background-image: url('../images/banner/banner-careers-photo.png');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cfv3-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(26, 31, 46, 0.15) 0%,
            rgba(26, 31, 46, 0.72) 100%);
}

.cfv3-photo-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
}

.cfv3-photo-tag {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--krl-blue);
    margin: 0 0 16px;
}

.cfv3-photo-statement {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 16px;
}

.cfv3-photo-sub {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .cfv3-inner {
        flex-direction: column;
    }

    .cfv3-photo-panel {
        flex: none;
        min-height: 300px;
        order: -1;
    }

    .cfv3-form-wrap {
        flex: none;
        padding: 48px 32px 56px;
    }

    .careers-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .cfv3-form-wrap {
        padding: 40px 20px 50px;
    }

    .cfv3-photo-panel {
        min-height: 220px;
    }

    .careers-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SERVICES PAGE  (services.php)
   ============================================================ */

.page-services .services-cover {
    position: relative;
    background: url('../images/banner/banner-services.jpg') no-repeat center center / cover;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.services-cover-overlay {
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.55); */
}

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

.services-cover-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.02em;
}

.services-listing-section {
    padding: 72px 0 80px;
    background: #FFFFFF;
}

.services-eyebrow {
    margin-bottom: 48px;
}

.services-category {
    margin-bottom: 56px;
}

.services-category:last-child {
    margin-bottom: 0;
}

.services-category-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    margin: 0 0 24px;
    letter-spacing: var(--ls-normal);
}

/* Service card images — /assets/images/services/ */
.svc-img-blast-furnace {
    background-image: url('../images/services/svc-blast-furnace.png');
    background-position: center center;
}

.svc-img-steel-meltshop {
    background-image: url('../images/services/svc-steel-meltshop.png');
    background-position: center center;
}

.svc-img-metal-recovery {
    background-image: url('../images/services/svc-metal-recovery.png');
    background-position: center center;
}

.svc-img-slag-processing {
    background-image: url('../images/services/svc-slag-processing.png');
    background-position: center center;
}

.svc-img-scrap-mgmt {
    background-image: url('../images/services/svc-scrap-mgmt.png');
    background-position: center center;
}

.svc-img-scrap-processing {
    background-image: url('../images/services/svc-scrap-processing.png');
    background-position: center center;
}

.svc-img-material-handling {
    background-image: url('../images/services/svc-material-handling.png');
    background-position: center center;
}

.svc-img-sustainability {
    background-image: url('../images/services/svc-sustainability.png');
    background-position: center center;
}

/* Responsive */
@media (max-width: 767.98px) {
    .services-cover-title {
        font-size: 44px;
    }

    .services-listing-section {
        padding: 48px 0 56px;
    }

    .services-category-heading {
        font-size: 22px;
    }
}

/* ============================================================
   SERVICES PAGE — VERSION 2  (split panel + slider)
   ============================================================ */

.sv2-section {
    background: var(--surface-soft);
}

.sv2-header {
    padding-top: 52px;
    padding-bottom: 28px;
}

.sv2-row {
    display: flex;
    align-items: stretch;
    min-height: 500px;
    border-top: 1px solid var(--border-default);
}

.sv2-row:last-child {
    border-bottom: 1px solid var(--border-default);
}

.sv2-row-reverse .sv2-cards-wrap {
    flex: 0 0 60%;
}

.sv2-thumb-sm {
    flex: 0 0 40%;
}

/* Left: tall image panel */
.sv2-thumb {
    flex: 0 0 40%;
    position: relative;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

.sv2-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(26, 31, 46, 0.82) 0%,
            rgba(26, 31, 46, 0.38) 55%,
            rgba(26, 31, 46, 0.12) 100%);
}

.sv2-thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 40px;
    z-index: 1;
}

.sv2-thumb-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--krl-yellow);
    margin-bottom: 10px;
}

.sv2-thumb-heading {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-normal);
    margin: 0;
}

/* Right: cards + slider */
.sv2-cards-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 44px 36px;
    background: #FFFFFF;
    overflow: hidden;
}

.sv2-slider-outer {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.sv2-track {
    display: flex;
    height: 100%;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.sv2-slide {
    flex-shrink: 0;
    height: 100%;
    padding-right: 16px;
    box-sizing: border-box;
}

.sv2-slide:last-child {
    padding-right: 0;
}

.sv2-card {
    background: var(--surface-soft);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sv2-card-img {
    height: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center center;
}

.sv2-card-body {
    padding: 22px 22px 24px;
    flex: 1;
}

.sv2-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--krl-blue);
    line-height: 1.25;
}

/* Navigation */
.sv2-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    flex-shrink: 0;
}

.page-services button.sv2-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--krl-blue);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.page-services button.sv2-btn:hover {
    background: var(--krl-deep-navy);
    color: #FFFFFF;
}

.page-services button.sv2-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    background: var(--krl-blue);
    color: #FFFFFF;
}

.sv2-counter {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(26, 31, 46, 0.45);
    min-width: 40px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .sv2-row {
        flex-direction: column;
        min-height: auto;
    }

    .sv2-thumb {
        flex: none;
        min-height: 280px;
    }

    .sv2-thumb-heading {
        font-size: 32px;
    }

    .sv2-cards-wrap {
        padding: 32px 24px 28px;
        min-height: 420px;
    }
}

@media (max-width: 575.98px) {
    .sv2-thumb {
        min-height: 240px;
    }

    .sv2-thumb-heading {
        font-size: 28px;
    }

    .sv2-cards-wrap {
        padding: 28px 16px 24px;
        min-height: 380px;
    }

    .sv2-card-img {
        height: 160px;
    }
}

/* ============================================================
   SERVICES PAGE — VERSION 3  (editorial full-width + landscape cards)
   ============================================================ */

.sv3-section {
    background: #FFFFFF;
}

/* Category section */
.sv3-cat {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--border-default);
}

.sv3-cat:last-child {
    border-bottom: none;
}

.sv3-cat-alt {
    background: var(--surface-blue);
}

/* Category heading group */
.sv3-cat-head {
    margin-bottom: 40px;
}

.sv3-cat-title-group {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    position: relative;
}

.sv3-cat-num {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    line-height: 0.8;
    color: var(--text-primary);
    opacity: 0.06;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    user-select: none;
    margin-top: -8px;
}

.sv3-eyebrow {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.sv3-cat-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    line-height: 1.05;
}

.sv3-rule {
    width: 220px;
    max-width: 100%;
    height: 3px;
    background: var(--krl-blue);
    border-radius: 2px;
}

/* Horizontal scroll row */
.sv3-scroll-row {
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 50px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--krl-blue) transparent;
    -webkit-overflow-scrolling: touch;
}

.sv3-scroll-row::-webkit-scrollbar {
    height: 4px;
}

.sv3-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.sv3-scroll-row::-webkit-scrollbar-thumb {
    background: var(--krl-blue);
    border-radius: 2px;
}

.sv3-scroll-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Carousel variant */
.sv3-carousel-wrap,
.sv3-grid-wrap {
    padding-bottom: 16px;
}

.sv3-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sv3-carousel .sv3-hcard {
    width: 100%;
    min-height: 240px;
}

.sv3-indicators {
    position: static;
    margin: 28px 0 0;
    justify-content: center;
}

.sv3-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-default);
    border: none;
    margin: 0 6px;
    opacity: 1;
    transition: background 0.2s;
}

.sv3-indicators button.active {
    background: var(--krl-blue);
}

@media (max-width: 991.98px) {
    .sv3-slide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Landscape card */
.sv3-hcard {
    display: flex;
    width: 420px;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-blue);
    box-shadow: 0 2px 16px rgba(26, 31, 46, 0.08);
    flex-shrink: 0;
    transition: box-shadow 0.22s, transform 0.22s;
    border: 1px solid #ddddde;
}

.sv3-cat-alt .sv3-hcard {
    background: #FFFFFF;
}

/* Marquee variant for Iron & Steel auto-scroll */
.sv3-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sv3-marquee-track {
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: sv3-marquee-scroll 40s linear infinite;
}

.sv3-marquee .sv3-hcard {
    width: 420px;
    margin-right: 24px;
}

@keyframes sv3-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.sv3-hcard-img {
    flex: 0 0 42%;
    background-size: cover;
    background-position: center center;
}

.sv3-hcard-body {
    flex: 1;
    padding: 20px 22px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sv3-hcard-title {
    font-size: 17px;
    line-height: 1.15;
    margin: 0 0 12px;
    text-transform: uppercase;
    text-align: center;
    color: var(--krl-blue);
    font-weight: 700;
    letter-spacing: 0.03em;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--krl-blue);
    flex-shrink: 0;
}

.sv3-hcard-body .forged-list {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.45;
    padding-left: 18px;
}

.sv3-hcard-body .forged-list li {
    margin-bottom: 5px;
}

.sv3-hcard-body .forged-list li::marker {
    content: initial;
    color: var(--krl-blue);
}

/* Responsive */
@media (max-width: 991.98px) {
    .sv3-cat {
        padding: 48px 0 40px;
    }

    .sv3-cat-num {
        font-size: 80px;
    }

    .sv3-cat-title {
        font-size: 28px;
    }

    .sv3-hcard {
        width: 340px;
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .sv3-cat-title-group {
        gap: 16px;
    }

    .sv3-cat-num {
        font-size: 60px;
    }

    .sv3-cat-title {
        font-size: 24px;
    }

    .sv3-scroll-track {
        flex-direction: column;
        width: 100%;
    }

    .sv3-scroll-row {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .sv3-hcard {
        width: 100%;
        height: auto;
        min-height: 150px;
    }

    .sv3-hcard-img {
        flex: 0 0 38%;
    }
}

/* ============================================================
   OPEN POSITIONS MODAL
   ============================================================ */

.op-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.op-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 36px 40px 28px;
    background: var(--krl-deep-navy);
    border-bottom: none;
}

.op-modal-eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--krl-eyebrow);
    margin: 0 0 6px;
}

.op-modal-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: var(--ls-normal);
    margin: 0;
}

.op-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
    transition: background 0.2s;
}

.op-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.op-modal-body {
    padding: 32px 40px;
    background: var(--surface-soft);
}

.op-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-default);
    transition: box-shadow 0.2s, transform 0.2s;
}

.op-card:hover {
    box-shadow: 0 6px 24px rgba(26, 31, 46, 0.1);
    transform: translateY(-2px);
}

.op-card-top {
    margin-bottom: 14px;
}

.op-tag {
    display: inline-block;
    background: var(--surface-blue);
    color: var(--krl-blue);
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid var(--krl-blue);
}

.op-card-title {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    color: var(--krl-blue);
    margin: 0 0 16px;
    line-height: var(--lh-heading);
    flex: 1;
}

.op-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.op-card-meta li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.op-card-meta li i {
    color: var(--krl-blue);
    font-size: 13px;
    flex-shrink: 0;
}

.op-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: var(--font-display);
    font-size: var(--fs-body-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
    align-self: flex-start;
}

.op-apply-btn:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-text);
}

.op-modal-footer {
    padding: 20px 40px 28px;
    background: var(--surface-soft);
    border-top: 1px solid var(--border-default);
}

.op-modal-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.op-modal-note a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.op-modal-note a:hover {
    color: var(--krl-blue);
}

@media (max-width: 575.98px) {
    .op-modal-header {
        padding: 28px 24px 22px;
    }

    .op-modal-body {
        padding: 24px 20px;
    }

    .op-modal-footer {
        padding: 16px 24px 24px;
    }

    .op-modal-title {
        font-size: 26px;
    }
}

/* ============================================================
   NEWS & GALLERY PAGE  (news.php)
   ============================================================ */

/* Hero */
.page-news .ng-cover {
    position: relative;
    background: url('../images/banner/banner-news.jpg') no-repeat center center / cover;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.ng-cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 31, 46, 0.55);
}

.ng-cover-content {
    position: relative;
    z-index: 1;
}

/* --- Newsletters: entries inside ngv2-pub-issues --- */
.ng-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-default);
    gap: 14px;
}

.ng-entry:first-child {
    border-top: 1px solid var(--border-default);
}

.ng-entry-title {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.ng-entry-link {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--krl-blue);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ng-entry-link:hover {
    color: var(--krl-deep-navy);
}

/* --- Events --- */
.ng-events-wrap {
    padding-top: 4px;
}

.ng-event-card {
    display: flex;
    gap: 14px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border-default);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ng-event-card:hover {
    box-shadow: 0 6px 24px rgba(26, 31, 46, 0.09);
    transform: translateY(-2px);
}

.ng-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--krl-blue);
    color: #FFFFFF;
    border-radius: 8px;
    padding: 16px 18px;
    flex-shrink: 0;
    min-width: 80px;
    min-height: 80px;
    text-align: center;
}

.ng-event-day {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: #FFFFFF;
    display: block;
}

.ng-event-month {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #FFFFFF;
    display: block;
    margin-top: 4px;
}

.ng-event-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ng-event-tag {
    margin: 0 0 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.ng-event-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: var(--krl-blue);
    text-transform: uppercase;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: 0.04em;
}

.ng-event-location {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ng-event-location i {
    color: var(--krl-blue);
}

/* --- Gallery grid --- */
.ng-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ng-gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: var(--border-default);
}

.ng-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ng-gallery-item:hover img {
    transform: scale(1.04);
}

/* Responsive (gallery grid inside album detail) */
@media (max-width: 991.98px) {
    .ng-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .ng-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ng-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* --- Gallery Albums (two-level) --- */
.ng-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ng-album-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ng-album-card:hover {
    box-shadow: 0 8px 28px rgba(26, 31, 46, 0.12);
    transform: translateY(-3px);
}

.ng-album-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
}

.ng-album-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(231, 235, 243, 0.28);
    transition: background 0.25s;
}

.ng-album-card:hover .ng-album-thumb::before {
    background: rgba(231, 235, 243, 0.08);
}

.ng-album-count {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--krl-blue);
    padding: 4px 10px;
    border-radius: 4px;
}

.ng-album-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 14px 16px;
    background: var(--surface-blue);
    letter-spacing: 0.02em;
}

/* Album detail */
.ng-album-detail {
    padding-top: 4px;
}

.ng-album-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    padding: 8px 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.ng-album-back:hover {
    border-color: var(--krl-blue);
    background: var(--surface-soft);
}

.ng-album-detail-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: var(--ls-normal);
    margin: 0 0 24px;
}

@media (max-width: 991.98px) {
    .ng-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .ng-albums-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ng-album-thumb {
        height: 140px;
    }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.krl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(26, 31, 46, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: lb-fade-in 0.2s ease;
}

@keyframes lb-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.krl-lightbox[hidden] {
    display: none;
}

.krl-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 64px 0;
    overflow: hidden;
}

.krl-lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    animation: lb-img-in 0.2s ease;
    user-select: none;
}

@keyframes lb-img-in {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.krl-lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.krl-lb-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.krl-lb-prev,
.krl-lb-next {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #FFFFFF;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 16px;
    transition: background 0.2s;
}

.krl-lb-prev:hover,
.krl-lb-next:hover {
    background: rgba(55, 74, 159, 0.12);
    color: var(--krl-blue);
}

.krl-lb-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 575.98px) {

    .krl-lb-prev,
    .krl-lb-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 0 8px;
    }

    .krl-lb-stage {
        padding: 56px 0;
    }
}

/* ============================================================
   NEWS & GALLERY — VERSION 2 (scroll-based editorial)
   ============================================================ */

/* Hero */
.page-news .ngv2-cover-overlay {
    background: linear-gradient(to top,
            rgba(26, 31, 46, 0.82) 0%,
            rgba(26, 31, 46, 0.35) 55%,
            rgba(26, 31, 46, 0.15) 100%);
}

.ngv2-cover-content {
    padding-bottom: 56px;
}

.ngv2-cover-eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
}

.ngv2-cover-title {
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    color: #FFFFFF;
    text-transform: uppercase;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin: 0 0 28px;
}

.ngv2-cover-nav {
    display: flex;
    gap: 28px;
}

.ngv2-cover-link {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.ngv2-cover-link:hover {
    color: var(--krl-blue);
}

/* Section shell */
.ngv2-section {
    padding: 56px 0 60px;
}

.ngv2-newsletters {
    background: #FFFFFF;
}

.ngv2-events {
    background: var(--surface-blue);
}

.ngv2-gallery-section {
    background: #FFFFFF;
}

/* Section header */
.ngv2-section-header {
    margin-bottom: 28px;
}

.ngv2-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ngv2-label-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--krl-blue);
    flex-shrink: 0;
}

.ngv2-label-text {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-align: left;
}

.contact-kicker {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-align: left;
}

.ngv2-section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
    font-weight: var(--fw-bold);
    color: var(--krl-blue);
    text-transform: uppercase;
    letter-spacing: var(--ls-normal);
    margin: 0;
    line-height: var(--lh-snug);
}

/* Publication cards */
.ngv2-pub-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ngv2-pub-card-top {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-top: none;
}

.ngv2-pub-card--monthly .ngv2-pub-card-top {
    border-top-color: transparent;
}

.ngv2-pub-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 14px 28px;
    background: var(--krl-blue);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ngv2-pub-card--monthly .ngv2-pub-tag {
    background: var(--krl-blue);
    color: #FFFFFF;
}

.ngv2-pub-title {
    display: none;
    letter-spacing: 0.03em;
}

.ngv2-pub-title-sub {
    font-weight: var(--fw-regular);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.02em;
}

.ngv2-pub-sub {
    flex: 1;
    margin: 0;
    padding: 14px 24px;
    background: var(--surface-blue);
    color: var(--krl-blue);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.ngv2-pub-issues {
    padding: 6px 22px 16px;
    flex: 1;
}

/* Responsive */
@media (max-width: 767.98px) {
    .page-news .ng-cover {
        min-height: 360px;
    }

    .ngv2-section {
        padding: 48px 0 56px;
    }

    .ngv2-cover-content {
        padding-bottom: 36px;
    }

    .ngv2-cover-nav {
        flex-wrap: wrap;
        gap: 16px 20px;
    }
}

.careers-how-openings-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s;
}

.careers-how-openings-btn:hover {
    color: var(--krl-blue);
    background: none;
}

.cfv2-panel-howto {
    position: relative;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(26, 31, 46, 0.85);
    margin: 0;
    z-index: 1;
}

.cfv2-openings-btn {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.cfv2-panel-email {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cfv2-panel-email:hover {
    color: rgba(26, 31, 46, 0.65);
}

/* === Unified inner-page hero/cover heights (about, safety, services, careers, news, contact) === */
.about-cover,
.safety-cover,
.page-contact .contact-cover,
.page-careers .careers-cover,
.page-services .services-cover,
.page-news .ng-cover,
/* Dynamic pages reuse the .hero markup but need the inner-page heights
   (not the homepage's 80vh splash). Same min-height steps as the typed
   inner pages above so visual rhythm stays consistent. */
.dynamic-page-stream .hero,
.block-hero {
    min-height: 420px;
    height: auto;
}

@media (max-width: 991.98px) {

    .about-cover,
    .safety-cover,
    .page-contact .contact-cover,
    .page-careers .careers-cover,
    .page-services .services-cover,
    .page-news .ng-cover,
    .dynamic-page-stream .hero,
    .block-hero {
        min-height: 320px;
        height: auto;
    }
}

@media (max-width: 575px) {

    .about-cover,
    .safety-cover,
    .page-contact .contact-cover,
    .page-careers .careers-cover,
    .page-services .services-cover,
    .page-news .ng-cover,
    .dynamic-page-stream .hero,
    .block-hero {
        min-height: 240px;
        height: auto;
    }
}
/* Vertically center news hero content (was flex-end) — match other inner pages */
.page-news .ng-cover {
    align-items: center;
}
.page-news .ngv2-cover-content {
    padding-bottom: 0;
}

/* ============================================================
   Page Builder (Phase 2A) — design utility classes
   Applied by resources/views/blocks/_design-wrapper.blade.php
   ============================================================ */

/* Block wrapper basics */
.pb-block { position: relative; }
.pb-block .pb-block-inner { position: relative; z-index: 1; }
.pb-bg-overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Padding scale (top + bottom independently) */
.pb-pt-none { padding-top: 0; }
.pb-pt-sm   { padding-top: 16px; }
.pb-pt-md   { padding-top: 32px; }
.pb-pt-lg   { padding-top: 64px; }
.pb-pt-xl   { padding-top: 96px; }
.pb-pb-none { padding-bottom: 0; }
.pb-pb-sm   { padding-bottom: 16px; }
.pb-pb-md   { padding-bottom: 32px; }
.pb-pb-lg   { padding-bottom: 64px; }
.pb-pb-xl   { padding-bottom: 96px; }

/* Alignment */
.pb-align-left   { text-align: left; }
.pb-align-center { text-align: center; }
.pb-align-right  { text-align: right; }
.pb-align-center .pb-figure,
.pb-align-center .pb-quote,
.pb-align-center .pb-stat,
.pb-align-center .krl-btn { margin-left: auto; margin-right: auto; }
.pb-align-right  .pb-figure,
.pb-align-right  .pb-quote,
.pb-align-right  .krl-btn { margin-left: auto; margin-right: 0; }

/* Per-device visibility */
@media (min-width: 992px) { .pb-hide-desktop { display: none !important; } }
@media (min-width: 576px) and (max-width: 991.98px) { .pb-hide-tablet { display: none !important; } }
@media (max-width: 575.98px) { .pb-hide-mobile { display: none !important; } }

/* Section max-widths */
.pb-section-inner { margin-left: auto; margin-right: auto; }
.pb-max-wide   { max-width: 1320px; padding-left: 16px; padding-right: 16px; }
.pb-max-narrow { max-width: 720px;  padding-left: 16px; padding-right: 16px; }
.pb-max-full   { max-width: none; padding-left: 0; padding-right: 0; }

/* Heading */
.pb-heading { margin: 0; font-family: var(--font-display, inherit); }

/* Image */
.pb-figure { margin: 0; }
.pb-img-full { width: 100%; height: auto; }
.pb-img-lg   { width: 75%;  height: auto; max-width: 100%; }
.pb-img-md   { width: 50%;  height: auto; max-width: 100%; }
.pb-img-sm   { width: 33%;  height: auto; max-width: 100%; }
.pb-img-caption { margin-top: 8px; }

/* Video */
.pb-video { position: relative; width: 100%; }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pb-aspect-16-9 { padding-bottom: 56.25%; }
.pb-aspect-4-3  { padding-bottom: 75%;    }
.pb-aspect-1-1  { padding-bottom: 100%;   }

/* Quote */
.pb-quote { margin: 0; padding: 24px 32px; border-left: 4px solid var(--krl-blue, #374A9F); background: rgba(55, 74, 159, 0.04); max-width: 720px; }
.pb-quote-text { font-size: 1.125rem; font-style: italic; line-height: 1.5; margin: 0 0 12px; }
.pb-quote-cite { font-size: 0.875rem; color: rgb(100 116 139); }
.pb-quote-author { font-weight: 600; color: rgb(15 23 42); }

/* Accordion (sits on top of Bootstrap's component, just minor branding) */
.pb-accordion .accordion-button:not(.collapsed) { background: rgba(55, 74, 159, 0.08); color: var(--krl-blue, #374A9F); }

/* FAQ */
.pb-faq-heading { margin-bottom: 1.5rem; }
.pb-faq-list { display: grid; gap: 24px; }
.pb-faq-question { font-weight: 600; color: var(--krl-blue, #374A9F); margin-bottom: 6px; font-size: 1.0625rem; }
.pb-faq-answer { margin: 0; color: rgb(71 85 105); line-height: 1.6; }

/* Stats */
.pb-stat { padding: 16px; }
.pb-stat-number { font-size: 2.5rem; font-weight: 700; color: var(--krl-blue, #374A9F); line-height: 1.1; letter-spacing: -0.02em; }
.pb-stat-label { font-size: 0.9375rem; color: rgb(71 85 105); margin-top: 4px; }

/* Button block tweaks (in addition to existing .krl-btn variants) */
.krl-btn-primary  { background: var(--krl-blue, #374A9F); color: #fff; border: 0; padding: 0.5rem 1.25rem; }
.krl-btn-outline  { background: transparent; color: var(--krl-blue, #374A9F); border: 2px solid var(--krl-blue, #374A9F); padding: 0.4375rem 1.1875rem; }
.krl-btn-ghost    { background: transparent; color: var(--krl-blue, #374A9F); border: 0; padding: 0.5rem 1.25rem; }
.krl-btn-sm { padding-top: 0.375rem; padding-bottom: 0.375rem; font-size: 0.875rem; }
.krl-btn-lg { padding-top: 0.75rem;  padding-bottom: 0.75rem;  font-size: 1.0625rem; }

/* ============================================================
   Industrial Editorial (Phase 2A.5)
   Aesthetic for the new `inner` page template + new component variants.
   Layered on top of existing KRL brand tokens — does not replace them.
   ============================================================ */

:root {
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --surface-cream: #F5F1EA;
    --surface-deepblack: #0E0F12;
    --hairline: rgba(15, 23, 42, 0.12);
    --hairline-strong: rgba(15, 23, 42, 0.32);
}

/* Typography utility — monospace metadata accents */
.ie-mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--krl-blue, #374A9F);
}

/* Section number indicators e.g. "02 / 04" */
.ie-section-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(15, 23, 42, 0.55);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ie-section-number::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--hairline-strong);
}

/* Hairline rules — structural beam aesthetic */
.ie-rule {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 0;
}
.ie-rule-strong {
    border-top: 1px solid var(--hairline-strong);
}
.ie-rule-vertical {
    width: 1px;
    background: var(--hairline);
    align-self: stretch;
}

/* Asymmetric grid: 12-column with named col spans for editorial rhythm */
.ie-grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}
.ie-col-1\/3       { grid-column: span 4;  }
.ie-col-2\/3       { grid-column: span 8;  }
.ie-col-1\/2       { grid-column: span 6;  }
.ie-col-narrow     { grid-column: 3 / span 6;  }   /* centred narrow */
.ie-col-narrow-l   { grid-column: 1 / span 7;  }   /* left-weighted */
.ie-col-narrow-r   { grid-column: 6 / span 7;  }   /* right-weighted */
.ie-col-full       { grid-column: 1 / -1;       }
.ie-col-meta       { grid-column: 1 / span 3;  }   /* sidebar metadata */
.ie-col-body       { grid-column: 4 / span 8;  }   /* main reading column */

@media (max-width: 991.98px) {
    .ie-grid-12 { grid-template-columns: 1fr; gap: 24px; }
    .ie-col-1\/3, .ie-col-2\/3, .ie-col-1\/2,
    .ie-col-narrow, .ie-col-narrow-l, .ie-col-narrow-r,
    .ie-col-meta, .ie-col-body { grid-column: 1 / -1; }
}

/* Display type — oversized editorial headline */
.ie-display-xl {
    font-family: 'Bebas Neue', var(--font-display, sans-serif);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.01em;
    font-size: clamp(3rem, 10vw, 9rem);
    margin: 0;
}
.ie-display-lg {
    font-family: 'Bebas Neue', var(--font-display, sans-serif);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.01em;
    font-size: clamp(2.25rem, 6vw, 5rem);
    margin: 0;
}

/* Inner-page surfaces */
body.page-inner-page,
.dynamic-page-stream--inner {
    background: var(--surface-cream);
    color: var(--surface-deepblack);
}
.dynamic-page-stream--inner .pb-block { background: transparent; }

/* Inner Hero — full-bleed, dramatic */
.ie-hero {
    position: relative;
    /* Matches the typed-page hero heights (.about-cover, .safety-cover) so
       a dynamic page on the inner template doesn't dwarf the rest of the
       site. Was 72vh — that calculated to ~585px on a 1080-tall viewport
       and visually dominated compared to the ~420px typed-page heroes. */
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: var(--surface-deepblack);
    color: #fff;
    overflow: hidden;
}
.ie-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(0.15) contrast(1.05);
}
.ie-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,15,18,0.78) 0%, rgba(14,15,18,0.35) 60%, rgba(14,15,18,0.78) 100%);
}
.ie-hero-content {
    position: relative; z-index: 1;
    width: 100%;
    padding: 56px 0 64px;
}
.ie-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
    display: inline-flex; align-items: center; gap: 12px;
}
.ie-hero-eyebrow::before {
    content: ''; width: 32px; height: 1px; background: rgba(255,255,255,0.55);
}
.ie-hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.005em;
    font-size: clamp(2.75rem, 8vw, 7rem);
    margin: 0 0 24px;
    max-width: 14ch;
}
.ie-hero-sub {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    max-width: 56ch;
    margin: 0 0 32px;
}
.ie-hero-meta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.18);
    display: flex; gap: 32px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.ie-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: #fff;
    color: var(--surface-deepblack);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 0;
    transition: all 200ms ease;
}
.ie-hero-cta:hover { background: var(--krl-blue, #374A9F); color: #fff; }
.ie-hero-cta::after { content: '→'; font-family: inherit; transition: transform 200ms ease; }
.ie-hero-cta:hover::after { transform: translateX(4px); }

/* ── Hero carousel (admin can add multiple background slides on a
   dynamic page; the heading/subtitle/button stay static, only the
   background cycles). Layered behind .hero-overlay so the existing
   overlay + text styling continues to work. ── */
.hero--carousel {
    position: relative;
    overflow: hidden;
    /* Re-assert the inner-page height so the absolute-positioned slide
       track has something to fill (the override block above gives this
       to .dynamic-page-stream .hero too, but defining it here makes the
       carousel work even if dropped elsewhere). */
    background: var(--surface-deepblack);
}
.hero-carousel-track {
    position: absolute; inset: 0; z-index: 0;
}
.hero-carousel-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}
/* Make sure the existing dark overlay sits above the slide track
   but below the text content. */
.hero--carousel .hero-overlay { z-index: 1; }
.hero--carousel > .container,
.hero--carousel > .container-fluid { position: relative; z-index: 2; }

/* Effect: fade — soft cross-fade between slides. */
.hero--effect-fade .hero-carousel-slide {
    transition: opacity 1200ms ease-in-out;
}
.hero--effect-fade .hero-carousel-slide.is-active { opacity: 1; }

/* Effect: slide — horizontal translate between slides. */
.hero--effect-slide .hero-carousel-slide {
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.45, 0, 0.2, 1);
    transform: translateX(8%);
}
.hero--effect-slide .hero-carousel-slide.is-active {
    opacity: 1;
    transform: translateX(0);
}

/* Effect: zoom — Ken-Burns slow zoom on the active slide. */
.hero--effect-zoom .hero-carousel-slide {
    transition: opacity 1200ms ease-in-out;
    transform: scale(1.05);
}
.hero--effect-zoom .hero-carousel-slide.is-active {
    opacity: 1;
    animation: hero-kenburns 8s ease-in-out forwards;
}
@keyframes hero-kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.12); }
}

/* Per-slide content overlay — stacks all slide content blocks in the same
   spot, only the .is-active one is visible. Cross-fades on slide change. */
.hero-content { position: relative; }
.hero--carousel .hero-content > .hero-carousel-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease;
}
.hero--carousel .hero-content > .hero-carousel-content.is-active {
    position: relative;       /* first/active item gets normal flow so the
                                 container has height */
    opacity: 1;
    pointer-events: auto;
}
/* Subtle pointer hint on the whole hero so users learn it's swipeable. */
.hero--carousel { touch-action: pan-y; }

/* Indicator dots, bottom-center. */
.hero-carousel-indicators {
    position: absolute;
    bottom: 18px; left: 0; right: 0;
    z-index: 3;
    display: flex; justify-content: center; gap: 8px;
}
.hero-carousel-dot {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}
.hero-carousel-dot:hover { background: rgba(255, 255, 255, 0.85); }
.hero-carousel-dot.is-active {
    background: #fff;
    transform: scale(1.25);
}

/* Mobile responsiveness for the inner-template hero so a 72vh banner
   doesn't dominate phone viewports. Mirrors the height pattern used on
   typed-page heroes (.about-cover, .safety-cover): 420 → 320 → 280 px. */
@media (max-width: 991.98px) {
    .ie-hero {
        min-height: 420px;
    }
    .ie-hero-content { padding: 48px 0 56px; }
}
@media (max-width: 767.98px) {
    .ie-hero {
        min-height: 320px;
    }
    .ie-hero-content { padding: 36px 0 44px; }
    .ie-hero-cta { padding: 14px 22px; font-size: 0.75rem; }
}
@media (max-width: 575.98px) {
    .ie-hero {
        min-height: 280px;
    }
    .ie-hero-content { padding: 28px 0 36px; }
    .ie-hero-headline { margin-bottom: 16px; }
    .ie-hero-sub { margin-bottom: 24px; }
}

/* Editorial heading block variant */
.pb-heading-editorial {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    font-size: clamp(2rem, 4.5vw, 4rem);
    margin: 0;
}
.pb-heading-editorial .pb-heading-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--krl-blue, #374A9F);
    margin-bottom: 16px;
}

/* Editorial pull-quote */
.pb-quote-editorial {
    margin: 0;
    padding: 48px 0;
    border-left: none;
    background: transparent;
    max-width: 640px;
    position: relative;
}
.pb-quote-editorial::before {
    content: '“';
    font-family: 'Bebas Neue', serif;
    font-size: 6rem;
    line-height: 0.8;
    color: var(--krl-blue, #374A9F);
    position: absolute;
    top: 16px; left: -8px;
    opacity: 0.3;
}
.pb-quote-editorial .pb-quote-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 16px;
    color: var(--surface-deepblack);
}
.pb-quote-editorial .pb-quote-cite {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15,23,42,0.55);
}

/* Editorial stats */
.pb-stat-editorial { padding: 32px 0; border-top: 1px solid var(--hairline-strong); text-align: left; }
.pb-stat-editorial .pb-stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    color: var(--surface-deepblack);
    letter-spacing: -0.02em;
}
.pb-stat-editorial .pb-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(15,23,42,0.55);
    margin-top: 12px;
}

/* Caption rule — used under hero, between blocks */
.ie-caption {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15,23,42,0.55);
}

/* Slider — leverages Bootstrap Carousel; just style content layer */
.pb-slider .carousel-item { min-height: 60vh; position: relative; display: flex; align-items: flex-end; }
.pb-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,15,18,0.8) 0%, rgba(14,15,18,0.4) 100%);
}
.pb-slide-content { position: relative; z-index: 1; padding: 64px 0 80px; color: #fff; }
.pb-slider .carousel-indicators [data-bs-target] {
    width: 32px; height: 2px; border-radius: 0;
    background: rgba(255,255,255,0.4);
}
.pb-slider .carousel-indicators .active { background: #fff; }

/* Carousel — CSS-only marquee */
.pb-carousel {
    overflow: hidden;
    position: relative;
}
.pb-carousel-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: pb-carousel-scroll var(--pb-carousel-duration, 30s) linear infinite;
}
.pb-carousel-pause-on-hover:hover .pb-carousel-track {
    animation-play-state: paused;
}
.pb-carousel-item {
    flex: 0 0 auto;
}
.pb-carousel-img {
    height: 56px; width: auto; max-width: none;
    filter: grayscale(0.85);
    opacity: 0.7;
    transition: filter 200ms ease, opacity 200ms ease;
}
.pb-carousel-item:hover .pb-carousel-img {
    filter: grayscale(0);
    opacity: 1;
}
@keyframes pb-carousel-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Tabs — uses Bootstrap nav-tabs; just brand it */
.pb-tabs-nav { border-bottom: 1px solid var(--hairline-strong); }
.pb-tabs-nav .nav-link {
    color: rgba(15,23,42,0.6);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    background: transparent;
}
.pb-tabs-nav .nav-link:hover { color: var(--krl-blue, #374A9F); }
.pb-tabs-nav .nav-link.active {
    color: var(--krl-blue, #374A9F);
    background: transparent;
    border-bottom-color: var(--krl-blue, #374A9F);
}
.pb-tabs-content { padding: 32px 0; }

/* Admin-added custom content (Custom Content tab) on typed pages —
   breathes around the rest of the page so it doesn't crash into the
   section above or the footer below. */
.page-extra-content { padding: 48px 0; }
@media (max-width: 768px) {
    .page-extra-content { padding: 32px 0; }
}
