/* =============================================================
   AWARDS & CERTIFICATIONS — DETAIL PAGE
   Figma node 6363:16569 (1920px frame, 1rem = 19px)
   ============================================================= */

:root {
  --aw-band-bg: #edf7ff;
  /* Space above the blue band (site header + Figma's white gap: 244px).
     Reduce this if your header is NOT position: fixed/absolute. */
  --aw-top-offset: 12.842rem;
}

body.dark-theme {
  --aw-band-bg: var(--bg-light);
}

/* ── Hero ─────────────────────────────────────────────────── */
.aw-detail-hero {
  padding-top: 6rem;
  background-color: var(--body-bg-white);
}

.aw-detail-hero.page-reveal-hero {
  overflow: visible;
}

/* Light-blue band that holds title + share button */
.aw-hero-band {
  background-color: var(--aw-band-bg);
  padding: 3.158rem 0 1.737rem;          /* 60px top, 33px gap to image */
}

.aw-hero-band-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.aw-detail-title {
  max-width: 56.421rem;                   /* 1072px */
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 3.158rem;                    /* 60px */
  line-height: 1.1667;                    /* 70px */
  color: var(--base-dark);
}

/* Share button & popover wrapper */
.aw-share-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 20;
}

/* Share button — 52px circle, translucent white, #d2d2d2 border */
.aw-share-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.737rem;                        /* 52px */
  height: 2.737rem;
  border-radius: 50%;
  border: 1.238px solid #d2d2d2;
  background-color: rgba(255, 255, 255, 0.7);
  color: #241e20;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}

.aw-share-btn:hover,
.aw-share-wrap.open .aw-share-btn {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.aw-share-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

body.dark-theme .aw-share-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--border-gray);
  color: var(--base-dark);
}

body.dark-theme .aw-share-btn:hover,
body.dark-theme .aw-share-wrap.open .aw-share-btn {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #084b81;
}

/* Share popover container */
.aw-share-popover {
  position: absolute;
  top: calc(100% + 0.579rem);
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  gap: 0.421rem;
  padding: 0.474rem 0.632rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

[dir="rtl"] .aw-share-popover {
  transform-origin: top left;
}

.aw-share-wrap.open .aw-share-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.aw-share-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.105rem;                        /* 40px */
  height: 2.105rem;
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: #f8fafc;
  color: #334155;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.aw-share-option:hover {
  transform: translateY(-2px);
}

.aw-share-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.14);
  color: #25d366;
}

.aw-share-instagram:hover {
  background-color: rgba(214, 36, 159, 0.14);
  color: #d6249f;
}

.aw-share-x:hover {
  background-color: rgba(16, 24, 40, 0.1);
  color: #101828;
}

.aw-share-linkedin:hover {
  background-color: rgba(10, 102, 194, 0.14);
  color: #0a66c2;
}

.aw-share-copy:hover,
.aw-share-copy.copied {
  background-color: rgba(8, 75, 129, 0.12);
  color: var(--primary-blue);
}

body.dark-theme .aw-share-popover {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

body.dark-theme .aw-share-option {
  background-color: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

body.dark-theme .aw-share-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

body.dark-theme .aw-share-instagram:hover {
  background-color: rgba(214, 36, 159, 0.22);
  color: #f472b6;
}

body.dark-theme .aw-share-x:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

body.dark-theme .aw-share-linkedin:hover {
  background-color: rgba(10, 102, 194, 0.25);
  color: #60a5fa;
}

body.dark-theme .aw-share-copy:hover,
body.dark-theme .aw-share-copy.copied {
  background-color: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

/* ── Banner image (overlaps the band by 233px) ───────────── */
.aw-banner-wrap {
  background: linear-gradient(
    to bottom,
    var(--aw-band-bg) 0,
    var(--aw-band-bg) 12.263rem,          /* 233px */
    transparent 12.263rem
  );
}

.aw-banner {
  width: 100%;
  max-width: 58rem;                       /* 1102px */
  margin: 0 auto;
  border-radius: 0.632rem;                /* 12px */
  overflow: hidden;
  background-color: var(--bg-light);
  aspect-ratio: 1102 / 1243;              /* remove this line to keep each image's natural ratio */
}

.aw-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.632rem;
}

/* ── Content ─────────────────────────────────────────────── */
.aw-detail-content-section {
  padding: 3.842rem 0 4.211rem;           /* 73px top, 80px bottom */
  background-color: var(--body-bg-white);
}

.aw-detail-content {
  /* max-width: 62.526rem; */
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.053rem;                    /* 20px */
  line-height: 1.5;                       /* 30px */
}

.aw-detail-content > :first-child {
  margin-top: 0;
}

.aw-detail-content p {
  margin: 0 0 1.579rem;                   /* 30px */
}

.aw-detail-content h2,
.aw-detail-content h3,
.aw-detail-content h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 1.579rem 0 1rem;                /* 19px below heading */
}

.aw-detail-content h2 { font-size: 1.263rem; }   /* 24px */
.aw-detail-content h3 { font-size: 1.1rem; }
.aw-detail-content h4 { font-size: 1.053rem; }

.aw-detail-content ul,
.aw-detail-content ol {
  margin: 0 0 1.579rem;
  padding-inline-start: 1.4rem;
}

.aw-detail-content ul { list-style: disc; }
.aw-detail-content ol { list-style: decimal; }
.aw-detail-content li { margin-bottom: 0.4rem; }

.aw-detail-content strong,
.aw-detail-content b { font-weight: 600; }

.aw-detail-content a { text-decoration: none; }
.aw-detail-content a:hover { text-decoration: underline; }

.aw-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.632rem;
  margin: 0.5rem 0 1.579rem;
}

.aw-detail-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin-bottom: 1.579rem;
}

.aw-detail-content th,
.aw-detail-content td {
  border: 1px solid var(--border-gray);
  padding: 0.5rem 0.8rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .aw-detail-title { font-size: 2.6rem; }
}

@media (max-width: 991px) {
  :root { --aw-top-offset: 9rem; }
  .aw-detail-title { font-size: 2.2rem; line-height: 1.2; }
  .aw-banner-wrap {
    background: linear-gradient(to bottom, var(--aw-band-bg) 0,
      var(--aw-band-bg) 6rem, transparent 6rem);
  }
}

@media (max-width: 600px) {
  :root { --aw-top-offset: 7rem; }
  .aw-hero-band { padding: 2rem 0 1.4rem; }
  .aw-hero-band-inner { gap: 1rem; }
  .aw-detail-title { font-size: 1.7rem; }
  .aw-share-btn { width: 2.4rem; height: 2.4rem; }
  .aw-detail-content { font-size: 1rem; }
  .aw-detail-content-section { padding: 2.2rem 0 3rem; }
}