/* ==========================================================================
   sector-occupational-safety.css — Dedicated Stylesheet for Occupational Safety
   ========================================================================== */

/* ============ SECTOR PAGE HERO ============ */
.page-hero {
    position: relative;
    height: 500px;
    background: var(--dark-green);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* --- Hero Background & Overlay --- */
.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1b4332 0%, rgba(27,67,50,0.5) 50%, rgba(0,0,0,0) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 56px;
    text-align: right;
}

/* --- Breadcrumb Navigation --- */
.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 500;
}

.page-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-hero__breadcrumb a:hover {
    color: #fff;
}

.page-hero__breadcrumb .crumb {
    color: rgba(255, 255, 255, 0.75);
}

.page-hero__breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.page-hero__breadcrumb .current {
    color: var(--green-500);
    font-weight: 600;
}

/* --- Hero Title & Subtitle --- */
.page-hero__title {
    font-weight: 900;
    font-size: 60px;
    line-height: 60px;
    color: #fff;
}

.page-hero__subtitle {
    max-width: 576px;
    margin: 12px 0 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 28px;
}

/* ============ SECTOR CONTENT SECTION ============ */
.occ-safety-section {
    padding: 64px 0;
}

/* ============ HIERARCHY OF CONTROLS PYRAMID (RTL FLOW) ============ */
.pyramid-wrap,
.pyramid-col,
.pyramid-row {
    direction: rtl;
    text-align: right;
}

.pyramid-wrap {
    display: flex;
    justify-content: center;
    padding-top: 56px;
}

.pyramid-col {
    max-width: 512px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.pyramid-row {
    display: flex;
    justify-content: center;
    padding-top: 12px;
}

.pyramid-row:first-child {
    padding-top: 0;
}

.pyramid-bar {
    direction: rtl;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    width: 100%;
}

.pyramid-bar__num {
    order: 1; 
    font-weight: 700;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.pyramid-bar__label {
    order: 2; 
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-align: right;
}

/* ============ STATS BAR — PREMIUM UPGRADE (desktop only) ============
   Scoped strictly to .stats-green (only present on this page).

   Every rule below is paint-only: backgrounds, colors, text-shadow, and
   absolutely-positioned decorative lines. None of it changes the box
   model — no new elements, no padding/margin/font-size changes on the
   original nodes — so .stats-green keeps EXACTLY its original height,
   padding, number size, and spacing. Only the surface look changes.

   The "%" sign gets its own span at runtime (added by
   js/sector-occupational-safety-stats.js, which does not touch the
   existing counter animation in main.js) so it can be styled slightly
   smaller than the digits — purely cosmetic, zero layout impact, and
   matches the number's own size by default so nothing changes until the
   desktop query below applies.

   The 1025px breakpoint intentionally matches the existing
   `@media (max-width:1024px)` rule in responsive.css that switches
   .stats-green__grid to a single column, so none of this reaches the
   tablet/phone layout — mobile stays pixel-identical to the original. */

.stats-green__suffix{
    font-size: 1em;
    font-weight: inherit;
}

@media (min-width: 1025px){

  .stats-green{
    position: relative;
    background: linear-gradient(155deg, #14342a 0%, #1f4d3a 55%, #163a2c 100%);
    overflow: hidden;
  }

  .stats-green::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(420px 220px at 8% -15%, rgba(82,183,136,0.14), transparent 65%),
      radial-gradient(420px 220px at 95% 120%, rgba(82,183,136,0.12), transparent 65%);
    pointer-events: none;
  }

  .stats-green::after{
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(82,183,136,0.5), transparent);
  }

  .stats-green__grid{ position: relative; z-index: 1; }

  .stats-green__grid > div{ position: relative; }

  .stats-green__grid > div:not(:first-child)::before{
    content: "";
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: -16px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18), transparent);
  }

  .stats-green__num{
    position: relative;
    letter-spacing: -0.01em;
    text-shadow: 0 0 18px rgba(82,183,136,0.35);
  }

  .stats-green__suffix{
    font-size: 0.6em;
    font-weight: 700;
    margin-right: 2px;
    opacity: 0.9;
  }

  .stats-green__label{ position: relative; }

  .stats-green__label::before{
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -3px);
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green-500), rgba(82,183,136,0));
  }

}

@media (max-width: 550px) {
    .page-hero {
        height: 430px;
    }

    .page-hero__bg {
        object-position: 25% center;
    }
}

@media (max-width: 550px) {
    .stats-green {
        background: #05271a !important;
    }
}