@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/Montserrat-Regular.woff2");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat-Bold";
  src: url("../fonts/Montserrat/Montserrat-Bold.woff2");
  font-display: swap;
}

:root {
  --font-family-base: "Montserrat", sans-serif;
  --font-family-bold: "Montserrat-Bold", sans-serif;
  --color-primary: #cb130b;
  --color-primary-dark: #9e0f08;
  --color-dark: #0f1112;
  --color-dark-mid: #1a1d1e;
  --color-gray: #2a2a2a;
  --color-gray-light: #f5f5f5;
  --color-white: #ffffff;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base & Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-weight: 400;
  direction: ltr;
  overflow-x: hidden;
  background-color: var(--color-white);
  color: var(--color-gray);
  line-height: 1.8;
}

a,
a:hover {
  text-decoration: none;
}

p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.95;
  color: var(--color-gray);
  text-align: justify;
  margin-bottom: 22px;
}

/* ── Reading Progress Bar ── */
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.08);
  z-index: 99999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  transition: width 0.12s ease-out;
}

#progress-bar.reading {
  animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ── Loader ── */
#arij-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#arij-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hero Banner ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/main-banner.jpg");
  background-size: cover;
  background-position: center top;
  transform: scale(1.04);
  transition: transform 12s ease-out;
  will-change: transform;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 13, 0.97) 0%,
    rgba(10, 12, 13, 0) 40%,
    rgba(10, 12, 13, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  width: 100%;
  padding: 60px 24px 100px;
  text-align: center;
  animation: fadeUp 1s 0.3s both;
}

.hero h1 {
  font-family: var(--font-family-bold);
  color: var(--color-white);
  font-size: 38px;
  font-weight: 900;
  line-height: 50px;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.highlight-txt {
  color: var(--color-primary);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.hero-meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 10;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
}

.banner-source {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 10;
  margin: 0;
  color: rgb(255 255 255 / 0.7);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  direction: ltr;
}

/* ── Article Layout & Lead Box ── */

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 60px 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 60px;
}
.section-heading-bar {
  width: 5px;
  height: 36px;
  border-radius: 3px;
  background: var(--color-primary);
  flex-shrink: 0;
}
.section-heading h2 {
  font-family: var(--font-family-bold);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.3;
}

.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.lead-box {
  font-family: var(--font-family-bold);
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-left: 5px solid var(--color-primary);
  border-radius: 12px 0 0 12px;
  padding: 22px 22px 22px 18px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.lead-box::before {
  content: "«";
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 80px;
  color: var(--color-primary);
  opacity: 0.07;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.lead-box p {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 0 !important;
}
.white {
  color: white !important;
}
.fancybox__caption {
  text-align: center !important;
}

/* ── Gallery Card Component ── */
.figure-container-one-source {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.figure-container-one-source .gallery-figure {
  margin-bottom: 0;
}
.gallery-figure-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.gallery-figure-container .gallery-figure {
  display: flex;
  max-width: 50%;
}

.gallery-figure {
  margin: 40px auto;
  padding: 0;
  max-width: 100%;
}

.gallery-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #eee;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.gallery-card__frame {
  position: relative;
  overflow: hidden;
  background: #f0efee;
  display: block;
  line-height: 0;
}

.gallery-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card__zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-card__caption,
.figure-source {
  display: block;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #444;
  line-height: 1.65;
  text-align: center;
}

/* ── Potential Reach Chart ── */
.chart-container {
  margin: 40px auto;
  padding: 0;
  max-width: 100%;
}

.reach-chart-card {
  background: var(--color-white);
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  padding: 18px 20px 14px;
}

.reach-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.reach-chart-header h3 {
  font-family: var(--font-family-bold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.4;
}

.reach-chart-metric {
  font-family: var(--font-family-bold);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.reach-chart-metric span {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray);
}

.reach-chart-canvas-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}

.reach-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-gray);
}

.reach-chart-legend-line {
  width: 22px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Animations & Reveal ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.box-text {
  --box-line: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 24px 24px 24px 78px;
  background-color: #f7f7f7;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--box-line) - 1px),
    #e4e4e4 calc(var(--box-line) - 1px),
    #e4e4e4 var(--box-line)
  );
  border: 1px solid #e2e2e2;
  border-radius: 0;
  box-shadow:
    0 1px 0 #ededed,
    0 10px 24px -18px rgba(15, 17, 18, 0.45);
}
.box-text::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52px;
  width: 1px;
  background: rgba(203, 19, 11, 0.35);
}
.box-text p {
  font-weight: 400;
  font-size: 18px;
  line-height: var(--box-line);
  color: var(--color-dark);
  margin-bottom: 0 !important;
}
.box-text-source {
  font-family: var(--font-family-bold);
  font-size: 16px;
  font-weight: 700 !important;
  color: var(--color-primary);
  line-height: var(--box-line);
  margin-bottom: 0 !important;
}
.box-text h3 {
  font-family: var(--font-family-bold);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-dark);
  line-height: var(--box-line);
  margin-bottom: 0;
}
.box-text--note p:last-of-type {
  font-weight: 400;
}
.iframe-container {
  max-width: 60%;
  margin: 30px auto;
}
.iframe-container iframe {
  width: 100%;
}

.scroll-section {
  position: relative;
  overflow: visible !important;
  min-height: 100vh;
}
.scroll-section::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
.scroll-section .scroll-img {
  position: sticky;
  top: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  height: 100vh !important;
  z-index: 0;
}
.scroll-content {
  height: auto;
  overflow-y: unset;
  padding: 80px 15px;
  background: rgb(10 16 15 / 0%);
  position: relative;
  z-index: 2;
  width: 50%;
  margin: auto;
}
.scroll-content h2 {
  font-family: var(--font-family-bold);
  margin-bottom: 25px;
}
.scroll-content h2,
.scroll-content p {
  color: white !important;
}

.shared-with-div {
  border-top: 1px solid #e2e2e2;
  width: 100%;
  margin: 75px auto;
  padding: 28px;
  background-color: #e2e2e21c;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.shared-lang-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.shared-lang-wrapper h6 {
  font-family: var(--font-family-bold);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
}
.shared-lang-wrapper h6::before {
  content: "";
  display: flex;
  background-color: #b4031b;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.shared-links-wrapper {
  display: flex;
}
.shared-links-wrapper span {
  display: flex;
  max-width: 90%;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}
.shared-links-wrapper a:not(:last-child) {
  border-right: 2px solid #b4031b;
  padding-right: 10px;
}
.shared-links-wrapper a {
  color: #1a1a1a !important;
}

.investigation-tags-container {
  width: 100%;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
  margin: 0 auto 32px auto;
}
.investigation-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  max-width: 100%;
  margin: auto;
  gap: 8px;
}
.investigation-tags-wrapper a {
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 6px 15px;
  color: #b4031b;
  background-color: transparent;
  border: 1px solid #b4031b;
  border-radius: 7px;
  transition: all 0.5s;
}
.investigation-tags-wrapper a:hover {
  color: white;
  background-color: #b4031b;
  border: 1px solid #b4031b;
  transition: all 0.5s;
}
strong {
  font-family: var(--font-family-bold);
}
.transcript-link {
  text-align: center;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 50px auto;
  color: #2a2a2a;
  text-decoration: underline !important;
}
.mb-100{
  margin-bottom: 100px !important;
}
.inv-lang-link-wrapper{
  display: flex;
  gap: 8px;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}
.inv-lang-link{
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 4px 12px;
  color: white;
  background-color: #b4031b;
  border: 1px solid #b4031b;
  border-radius: 7px;
  transition: all 0.5s;
  transform: scale(1);
}
.inv-lang-link:hover{
   transition: all 0.5s;
   transform: scale(0.9);
}

/* ── Responsive Styles ── */
@media (max-width: 768px) {
  .scroll-content {
    width: 100%;
  }
  .iframe-container {
    max-width: 100%;
    width: 100%;
  }

  .article-wrapper {
    padding: 40px 18px 60px;
  }

  p {
    text-align: left !important;
  }

  .box-text {
    padding: 20px 16px 20px 56px;
  }

  .box-text::before {
    left: 36px;
  }

  .reach-chart-canvas-wrap {
    height: 240px;
  }

  .reach-chart-header {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
.reach-chart-header h3{
  font-size: 14px;
}
  .reach-chart-metric {
    font-size: 12px;
  }
  .transcript-link{font-size: 14px;}
  .scroll-content h2{line-height: 34px;}
  .shared-with-div{
    padding: 28px 5px;
  }
  .shared-lang-wrapper h6::before{width: 9px;}
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
    line-height: 38px;
  }

  .gallery-figure {
    max-width: 100%;
  }
  .iframe-container iframe {
    height: 300px;
  }
}
