@font-face {
  font-family: "Rubik";
  src:
          local("Rubik"),
          local("Rubik Regular"),
          local("Rubik-Regular");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src:
          local("Rubik Medium"),
          local("Rubik-Medium"),
          local("Rubik");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Rubik";
  src:
          local("Rubik Bold"),
          local("Rubik-Bold"),
          local("Rubik");
  font-weight: 700;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Rubik", Arial, sans-serif;
}

:root {
  --bg-main: #1f1a17;
  --bg-deep: #16110f;
  --panel-dark: #2b2521;
  --panel-mid: #342e2a;
  --brown-main: #8a6a4a;
  --brown-hover: #6f5338;
  --brown-line: #6f5a45;
  --gold-soft: #d7b58d;
  --paper-light: #d8c9a7;
  --paper-mid: #c4ad84;
  --text-main: #f5f1e8;
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html {
  -webkit-text-size-adjust: 100%;
  font-family: "Rubik", Arial, sans-serif;
}

body {
  direction: rtl;
  font-family: "Rubik", Arial, sans-serif;
  background:
          radial-gradient(circle at top, rgba(90, 63, 37, 0.18), transparent 30%),
          linear-gradient(to bottom, #241b17 0%, var(--bg-main) 28%, #171210 100%);
  color: var(--text-main);
  min-height: 100vh;
  font-size: clamp(15px, 0.35vw + 14px, 17px);
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: "Rubik", Arial, sans-serif;
}

.hidden {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -50px;
  right: 16px;
  z-index: 9999;
  background-color: var(--brown-main);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.ui-icon-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

.ui-icon-btn:hover,
.ui-icon-btn:focus-visible {
  background: none !important;
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.04);
}

.button-icon {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.header-icon-btn {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 28px);
  z-index: 5;
  width: clamp(56px, 5vw, 72px);
  height: clamp(56px, 5vw, 72px);
}

.header-icon-btn .button-icon {
  width: clamp(56px, 5vw, 72px);
}

.image-wide-btn {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.image-wide-btn:hover,
.image-wide-btn:focus-visible {
  background: none !important;
  filter: brightness(1.04);
}

.wide-button-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.header-opening-btn.image-wide-btn {
  width: min(304px, calc(100vw - 40px));
}

.header-opening-btn.image-wide-btn:hover,
.header-opening-btn.image-wide-btn:focus-visible {
  transform: translateX(-50%) translateY(-2px) scale(1.01);
}

.header-exposition-btn.image-wide-btn {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 28px);
  z-index: 3;
  width: min(176px, 24vw);
}

.header-exposition-btn.image-wide-btn:hover,
.header-exposition-btn.image-wide-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

body.video-mode .header-exposition-btn {
  display: none !important;
}

.closing-video-btn {
  width: min(304px, calc(100vw - 40px));
  display: block;
  margin: 0 auto;
}

.closing-video-btn:hover,
.closing-video-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.video-control-icon-btn {
  width: clamp(48px, 4vw, 54px);
  height: clamp(48px, 4vw, 54px);
  flex: 0 0 auto;
}

.video-control-icon-btn .button-icon {
  width: clamp(48px, 4vw, 54px);
}

.popup-exit-btn {
  width: clamp(48px, 4vw, 54px);
  height: clamp(48px, 4vw, 54px);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.popup-exit-btn .button-icon {
  width: clamp(48px, 4vw, 54px);
}

/* =========================
   HEADER
========================= */

.main-header {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--brown-line);
  background-color: #2c241f;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
}

.main-title,
.header-graphic-placeholder,
.header-graphic-placeholder-text {
  display: none;
}

.accessibility-buttons {
  position: absolute;
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(12px, 1.8vw, 20px);
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  z-index: 3;
}

.accessibility-buttons button {
  padding: 10px 16px;
  border: 1px solid rgba(255, 235, 205, 0.15);
  background:
          linear-gradient(to bottom, rgba(164, 126, 83, 0.96), rgba(126, 95, 63, 0.96));
  color: white;
  cursor: pointer;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(2px);
}

.accessibility-buttons button:hover,
.accessibility-buttons button:focus-visible {
  background:
          linear-gradient(to bottom, #7c5d3f, #65492f);
}

.opening-video-btn {
  background:
          linear-gradient(to bottom, #a17c53, #876744);
  color: white;
  border: 1px solid rgba(255, 239, 214, 0.14);
  border-radius: 12px;
  padding: clamp(14px, 1.5vw, 18px) clamp(22px, 2.3vw, 30px);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: bold;
  cursor: pointer;
  min-width: 0;
  box-shadow: var(--shadow-soft);
}

.opening-video-btn:hover,
.opening-video-btn:focus-visible {
  background:
          linear-gradient(to bottom, #7c5d3f, #65492f);
}

.header-opening-btn {
  position: absolute;
  bottom: clamp(10px, 1.4vw, 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(360px, calc(100vw - 48px));
  min-width: 0;
  padding: clamp(12px, 1.4vw, 16px) clamp(20px, 2.2vw, 28px);
  font-size: clamp(16px, 1.05vw, 18px);
  border-radius: 12px;
}

/* =========================
   GENERAL LAYOUT
========================= */

.home-page,
.video-page {
  width: min(94%, 1380px);
  margin: clamp(20px, 2.5vw, 30px) auto clamp(24px, 3vw, 40px);
}

/* =========================
   HOME PAGE
========================= */

.home-page {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 34px);
}

.videos-list-section {
  position: relative;
  padding: clamp(24px, 3vw, 42px) clamp(16px, 2.5vw, 32px) clamp(22px, 2.8vw, 34px);
  border: clamp(7px, 0.7vw, 10px) solid #b8854c;
  border-color: #6a3f1f #8b582e #9d6537 #7a4a24;
  background:
          linear-gradient(rgba(255, 240, 215, 0.08), rgba(255, 240, 215, 0.02)),
          radial-gradient(circle at 20% 15%, rgba(255, 230, 190, 0.18), transparent 18%),
          radial-gradient(circle at 80% 22%, rgba(255, 224, 176, 0.12), transparent 17%),
          radial-gradient(circle at 65% 70%, rgba(255, 224, 176, 0.08), transparent 20%),
          linear-gradient(135deg, #b97d49 0%, #c98a55 45%, #b06f3e 100%);
  border-radius: 8px;
  box-shadow:
          inset 0 0 0 5px rgba(245, 229, 196, 0.75),
          inset 0 0 0 6px rgba(67, 37, 18, 0.15),
          0 14px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.videos-list-section::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 1.6vw, 22px);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background: none;
}

.videos-list-section::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1vw, 14px);
  border: 1px solid rgba(255, 248, 228, 0.22);
  pointer-events: none;
  z-index: 0;
}

.videos-list-section h2,
.videos-section,
.featured-video-section {
  position: relative;
  z-index: 2;
}

.videos-list-section h2 {
  width: fit-content;
  margin: 0 auto clamp(18px, 2vw, 26px);
  padding: clamp(8px, 0.9vw, 10px) clamp(18px, 1.8vw, 24px);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: bold;
  color: #fff8e9;
  background: linear-gradient(to bottom, rgba(58, 34, 21, 0.92), rgba(34, 22, 16, 0.9));
  border: 1px solid rgba(245, 221, 184, 0.22);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.videos-section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(20px, 2vw, 30px) clamp(18px, 1.8vw, 28px);
  align-items: start;
  justify-items: center;
  padding: 10px 12px 14px;
}

.videos-section::before {
  content: none;
}

.video-card-button {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 250px;
  min-height: clamp(220px, 20vw, 248px);
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #d7c29b 0%, #bea276 100%);
  color: #352418;
  cursor: pointer;
  box-shadow:
          0 12px 22px rgba(0, 0, 0, 0.22),
          0 1px 0 rgba(255, 255, 255, 0.20) inset,
          0 -2px 0 rgba(88, 62, 35, 0.16) inset;
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  z-index: 2;
}

.video-card-button::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 16px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #b7b0a3, #6e665c);
  box-shadow:
          0 1px 2px rgba(0, 0, 0, 0.35),
          inset 0 1px 0 rgba(255, 255, 255, 0.28);
  z-index: 3;
}

.video-card-button::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(84, 58, 32, 0.26);
  border-radius: 2px;
  pointer-events: none;
}

.video-card-button:nth-child(1) { transform: rotate(-2.4deg) translateY(6px); }
.video-card-button:nth-child(2) { transform: rotate(1.4deg) translateY(-6px); }
.video-card-button:nth-child(3) { transform: rotate(-1deg) translateY(2px); }
.video-card-button:nth-child(4) { transform: rotate(2.2deg) translateY(-3px); }
.video-card-button:nth-child(5) { transform: rotate(1.8deg) translateY(-1px); }
.video-card-button:nth-child(6) { transform: rotate(-1.8deg) translateY(7px); }
.video-card-button:nth-child(7) { transform: rotate(0.8deg) translateY(-5px); }
.video-card-button:nth-child(8) { transform: rotate(-2.1deg) translateY(4px); }

.video-card-button:hover,
.video-card-button:focus-visible {
  transform: translateY(-7px) rotate(0deg) scale(1.02);
  box-shadow:
          0 18px 28px rgba(0, 0, 0, 0.30),
          0 1px 0 rgba(255, 255, 255, 0.20) inset,
          0 -2px 0 rgba(88, 62, 35, 0.16) inset;
  filter: saturate(1.04);
}

.card-default-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: clamp(220px, 20vw, 248px);
  padding: clamp(14px, 1.2vw, 18px) clamp(12px, 1.4vw, 16px) clamp(14px, 1.2vw, 18px);
  gap: clamp(10px, 1vw, 14px);
  transition: opacity 0.25s ease;
}

.card-thumbnail-frame {
  position: relative;
  width: clamp(148px, 13vw, 172px);
  aspect-ratio: 3 / 2;
  display: block;
  margin-top: 4px;
  border: 7px solid #f2eadc;
  border-bottom-width: 18px;
  background: linear-gradient(180deg, rgba(55, 43, 35, 0.95), rgba(30, 24, 20, 0.98));
  box-shadow:
          0 6px 12px rgba(0, 0, 0, 0.22),
          inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.card-thumbnail-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
          to bottom,
          rgba(28, 20, 16, 0.12),
          rgba(12, 9, 8, 0.16)
  );
}

.card-thumbnail-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-44%, -50%);
  width: 0;
  height: 0;
  border-top: clamp(14px, 1vw, 18px) solid transparent;
  border-bottom: clamp(14px, 1vw, 18px) solid transparent;
  border-left: clamp(22px, 1.5vw, 28px) solid rgba(245, 232, 205, 0.92);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.28));
}

.card-default-label {
  position: relative;
  z-index: 2;
  font-size: clamp(17px, 1.3vw, 22px);
  font-weight: bold;
  color: #3b2618;
  background: rgba(255, 248, 230, 0.42);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(108, 77, 46, 0.14);
  box-shadow: 0 2px 0 rgba(255,255,255,0.22) inset;
}

.card-hover-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1vw, 12px);
  padding: clamp(18px, 1.8vw, 24px) clamp(16px, 1.6vw, 20px) clamp(16px, 1.6vw, 20px);
  background: linear-gradient(180deg, rgba(43, 28, 19, 0.95), rgba(18, 13, 11, 0.97));
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  color: #f8f1e5;
  box-shadow:
          inset 0 0 0 1px rgba(255, 225, 178, 0.08),
          inset 0 0 34px rgba(0, 0, 0, 0.18);
}

.card-hover-title {
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: bold;
  line-height: 1.45;
  color: #f1d8b2;
}

.card-hover-description {
  font-size: clamp(13px, 0.8vw, 14px);
  line-height: 1.7;
  color: #f0e4d3;
}

.video-card-button:hover .card-hover-content,
.video-card-button:focus-visible .card-hover-content {
  opacity: 1;
}

.video-card-button:hover .card-default-content,
.video-card-button:focus-visible .card-default-content {
  opacity: 0.10;
}

.featured-video-section {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: clamp(18px, 1.8vw, 22px) clamp(18px, 2vw, 26px) clamp(20px, 2vw, 26px);
  text-align: center;
  background: linear-gradient(to bottom, rgba(56, 34, 22, 0.92), rgba(27, 19, 15, 0.94));
  border: 1px solid rgba(214, 181, 141, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.featured-video-section h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 1.8vw, 28px);
  color: #fff3dd;
}

.featured-video-section .opening-video-btn {
  min-width: 0;
  width: min(360px, calc(100vw - 56px));
}

/* =========================
   FOCUS
========================= */

.opening-video-btn:focus-visible,
.video-card-button:focus-visible,
.video-action-btn:focus-visible,
.close-popup-btn:focus-visible,
.accessibility-buttons button:focus-visible,
.footer-image-btn:focus-visible,
.progress-bar:focus-visible,
.volume-bar:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

/* =========================
   VIDEO PAGE
========================= */

.video-page {
  width: min(94%, 1280px);
  margin: clamp(20px, 2.5vw, 34px) auto clamp(24px, 3vw, 42px);
  direction: rtl;
  text-align: center;
}

.video-page-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(16px, 2vw, 24px);
  text-align: center;
  direction: rtl;
}

.video-page-top h2 {
  font-size: clamp(28px, 2.7vw, 44px);
  color: #fff2dc;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: 92%;
  line-height: 1.25;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.72);
}

.video-description-section {
  margin-bottom: clamp(16px, 2vw, 24px);
  direction: rtl;
  text-align: center;
}

.video-description-text {
  max-width: min(92%, 900px);
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  line-height: 1.8;
  font-size: clamp(18px, 1.25vw, 23px);
  font-weight: 400;
  text-align: center;
  direction: rtl;
  color: #f7ecdd;
  box-shadow: none;
}

.video-description-text.compact-description-box {
  width: auto;
  max-width: min(92%, 760px);
  margin: 0 auto;
  padding-inline: 0;
}

.video-mystery-section {
  max-width: min(92%, 900px);
  margin: clamp(14px, 1.8vw, 22px) auto clamp(20px, 2.2vw, 30px);
  padding: 0;
  direction: rtl;
  text-align: center;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-mystery-title {
  margin: 0 0 clamp(6px, 0.7vw, 10px);
  color: #f3d39b;
  font-size: clamp(20px, 1.4vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.58);
}

.video-mystery-text {
  max-width: min(92%, 860px);
  margin: 0 auto;
  color: #fff3dd;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 500;
  line-height: 1.75;
}

.video-player-section {
  margin-bottom: clamp(14px, 1.8vw, 18px);
  direction: rtl;
  text-align: center;
}

.video-player-box {
  position: relative;
  background:
          linear-gradient(to bottom, #6d4320 0%, #8e5b2f 14%, #5d381d 100%);
  border: 1px solid rgba(255, 233, 194, 0.15);
  border-radius: 12px;
  padding: clamp(10px, 1.2vw, 16px);
  width: 100%;
  box-shadow:
          0 18px 36px rgba(0, 0, 0, 0.34),
          inset 0 0 0 2px rgba(255, 232, 189, 0.08);
}

.video-player-box::before {
  content: "";
  position: absolute;
  inset: clamp(6px, 0.8vw, 10px);
  border: 1px solid rgba(255, 236, 204, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.video-player-box iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: none;
  border-radius: 4px;
  background-color: black;
  box-shadow:
          inset 0 0 0 5px #e2cfb0,
          0 8px 14px rgba(0,0,0,0.22);
  position: relative;
  z-index: 1;
}

#videoPlayerBox:fullscreen,
#videoPlayerBox:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

#videoPlayerBox:fullscreen::before,
#videoPlayerBox:-webkit-full-screen::before {
  display: none;
}

#videoPlayerBox:fullscreen iframe,
#videoPlayerBox:-webkit-full-screen iframe {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.custom-video-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1vw, 14px);
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2vw, 24px);
  background:
          linear-gradient(to bottom, #68411f, #845328 24%, #573519 100%);
  border: 1px solid rgba(255, 233, 194, 0.12);
  border-radius: 14px;
  padding: clamp(12px, 1.4vw, 16px) clamp(12px, 1.6vw, 18px);
  box-shadow:
          0 10px 20px rgba(0, 0, 0, 0.2),
          inset 0 1px 0 rgba(255,255,255,0.05);
  direction: ltr;
}

/* =========================
   RANGE BARS - VIDEO / VOLUME
========================= */

.progress-bar,
.volume-bar {
  --range-progress: 0%;
  --bar-height: clamp(18px, 1.8vw, 24px);
  --bar-border: clamp(3px, 0.35vw, 4px);
  --thumb-size: clamp(22px, 2vw, 28px);

  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: calc(var(--bar-height) + (var(--bar-border) * 2));
  border-radius: 999px;
  border: var(--bar-border) solid #8a5a33;
  background:
          linear-gradient(
                  to right,
                  #6a3419 0%,
                  #6a3419 var(--range-progress),
                  #000000 var(--range-progress),
                  #000000 100%
          );
  box-shadow:
          inset 0 2px 3px rgba(255, 255, 255, 0.06),
          inset 0 -2px 3px rgba(0, 0, 0, 0.45),
          0 1px 1px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  outline: none;
  padding: 0;
}

.progress-bar {
  flex: 1;
  min-width: clamp(140px, 28vw, 260px);
  direction: ltr;
}

.volume-bar {
  width: clamp(110px, 12vw, 140px);
  direction: ltr;
}

.progress-bar::-webkit-slider-runnable-track,
.volume-bar::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: var(--bar-height);
  background: transparent;
  border: none;
  border-radius: 999px;
}

.progress-bar::-webkit-slider-thumb,
.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  border: 3px solid #d6a86f;
  background:
          radial-gradient(circle at 35% 35%, #b87547 0%, #8a4f29 60%, #5f3318 100%);
  box-shadow:
          0 0 0 2px rgba(44, 22, 9, 0.35),
          0 3px 6px rgba(0, 0, 0, 0.35),
          inset 0 1px 2px rgba(255, 236, 209, 0.45);
  margin-top: calc((var(--bar-height) - var(--thumb-size)) / 2);
}

.progress-bar::-moz-range-track,
.volume-bar::-moz-range-track {
  height: var(--bar-height);
  background: #000000;
  border: none;
  border-radius: 999px;
}

.progress-bar::-moz-range-progress,
.volume-bar::-moz-range-progress {
  height: var(--bar-height);
  background: #6a3419;
  border: none;
  border-radius: 999px;
}

.progress-bar::-moz-range-thumb,
.volume-bar::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  border: 3px solid #d6a86f;
  background:
          radial-gradient(circle at 35% 35%, #b87547 0%, #8a4f29 60%, #5f3318 100%);
  box-shadow:
          0 0 0 2px rgba(44, 22, 9, 0.35),
          0 3px 6px rgba(0, 0, 0, 0.35),
          inset 0 1px 2px rgba(255, 236, 209, 0.45);
}

.progress-bar:focus-visible,
.volume-bar:focus-visible {
  outline: 3px solid #d7b58d;
  outline-offset: 4px;
}

.time-label {
  min-width: clamp(96px, 10vw, 120px);
  text-align: center;
  font-size: clamp(13px, 0.9vw, 15px);
  color: #fff0d3;
  font-weight: bold;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.video-action-btn {
  padding: clamp(10px, 1vw, 12px) clamp(14px, 1.4vw, 18px);
  border: none;
  background:
          linear-gradient(to bottom, #a27b50, #7d5a38);
  color: white;
  cursor: pointer;
  border-radius: 999px;
  font-size: clamp(14px, 0.95vw, 16px);
  min-width: 54px;
  box-shadow:
          0 5px 10px rgba(0, 0, 0, 0.18),
          inset 0 1px 0 rgba(255,255,255,0.08);
}

.video-action-btn:hover,
.video-action-btn:focus-visible {
  background:
          linear-gradient(to bottom, #7c5d3f, #65492f);
}

.video-action-btn.is-muted {
  background: #5c4632;
  box-shadow:
          inset 0 0 0 2px var(--gold-soft),
          0 5px 10px rgba(0, 0, 0, 0.18);
}

.video-action-btn.is-muted:hover,
.video-action-btn.is-muted:focus-visible {
  background: #5c4632;
}

/* =========================
   POPUPS
========================= */

.popup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.78);
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2vw, 24px);
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup:not(.hidden) {
  display: flex;
}

.popup-content {
  background:
          linear-gradient(to bottom, #9b5c1d 0%, #8d5319 100%);
  border: clamp(6px, 0.7vw, 8px) solid #c1843e;
  box-shadow:
          inset 0 0 0 3px rgba(255, 225, 179, 0.35),
          0 18px 36px rgba(0, 0, 0, 0.36);
  border-radius: 6px;
  width: min(100%, 940px);
  padding: clamp(28px, 3vw, 42px) clamp(18px, 3vw, 44px) clamp(24px, 2.5vw, 34px);
  position: relative;
  direction: rtl;
  text-align: center;
}

.popup-content h3 {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  font-size: clamp(24px, 2.2vw, 34px);
  text-align: center;
  color: #fff6e8;
  font-weight: normal;
}

.popup-content p {
  line-height: 1.78;
  font-size: clamp(16px, 1.15vw, 19px);
  text-align: center;
  direction: rtl;
  color: #fff8ef;
}

.exposition-title-row {
  display: grid;
  grid-template-columns: clamp(38px, 3vw, 46px) auto clamp(38px, 3vw, 46px);
  align-items: center;
  justify-content: center;
  column-gap: clamp(8px, 1vw, 14px);
  width: fit-content;
  max-width: calc(100% - 120px);
  margin: 0 auto clamp(16px, 1.8vw, 24px);
  direction: ltr;
}

.exposition-title-row #textPopupTitle {
  grid-column: 2;
  margin: 0;
  direction: rtl;
  text-align: center;
  white-space: nowrap;
}

.exposition-audio-block {
  grid-column: 1;
  position: static;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.exposition-title-balance {
  grid-column: 3;
  width: clamp(38px, 3vw, 46px);
  height: 1px;
}

.exposition-voice-btn {
  width: clamp(38px, 3vw, 46px);
  height: clamp(38px, 3vw, 46px);
  cursor: pointer;
}

.exposition-voice-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.exposition-voice-btn:hover,
.exposition-voice-btn:focus-visible {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.06);
}

.close-popup-btn {
  position: absolute;
  top: clamp(8px, 1vw, 14px);
  right: clamp(8px, 1vw, 14px);
  left: auto;
  background:
          radial-gradient(circle at 35% 35%, #f7e1a8 0%, #c49544 48%, #7b5325 100%);
  color: #4b2d16;
  border: 1px solid rgba(83, 50, 20, 0.45);
  border-radius: 50%;
  width: clamp(42px, 4vw, 48px);
  height: clamp(42px, 4vw, 48px);
  padding: 0;
  cursor: pointer;
  z-index: 4;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popup-btn:hover,
.close-popup-btn:focus-visible {
  filter: brightness(0.9);
}

.number-charts-popup .number-charts-content {
  width: min(96vw, 1100px);
  max-height: min(88vh, 820px);
  overflow-y: auto;
}

.number-charts-text {
  max-width: 900px;
  margin: 0 auto clamp(18px, 2vw, 26px);
}

.number-charts-text p {
  margin: 0 0 clamp(10px, 1vw, 14px);
  color: #fff8ef;
}

.number-charts-note {
  font-weight: 700;
  color: #fff2d6 !important;
}

.number-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

.number-chart-card {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.8vw, 12px);
  min-height: 100%;
  padding: clamp(14px, 1.5vw, 20px);
  border: 1px solid rgba(245, 216, 178, 0.32);
  border-radius: 14px;
  background:
          linear-gradient(to bottom, rgba(61, 40, 27, 0.62), rgba(37, 25, 20, 0.74));
  box-shadow:
          0 10px 22px rgba(0, 0, 0, 0.18),
          inset 0 1px 0 rgba(255, 232, 200, 0.08);
}

.number-chart-placeholder {
  min-height: clamp(130px, 14vw, 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(14px, 1.4vw, 20px);
  border: 2px dashed rgba(255, 232, 200, 0.34);
  border-radius: 12px;
  background:
          radial-gradient(circle at center, rgba(245, 216, 178, 0.12), transparent 62%),
          rgba(18, 13, 10, 0.38);
  color: #fff3dd;
}

.number-chart-placeholder span {
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 800;
}

.number-chart-placeholder small {
  color: rgba(255, 243, 221, 0.78);
  font-size: clamp(12px, 0.85vw, 14px);
  font-weight: 600;
}

.number-chart-image {
  width: 100%;
  height: clamp(180px, 16vw, 230px);
  object-fit: contain;
  object-position: center;
  display: block;
  padding: clamp(8px, 0.8vw, 12px);
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(255, 232, 200, 0.22);
  box-sizing: border-box;
  cursor: zoom-in;
  transition:
          transform 0.18s ease,
          filter 0.18s ease,
          box-shadow 0.18s ease;
}

.number-chart-image--story-frame {
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  background: transparent;
  object-fit: cover;
  border: 1px solid rgba(255, 232, 200, 0.22);
}

.number-chart-image:hover,
.number-chart-image:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
  box-shadow:
          0 10px 22px rgba(0, 0, 0, 0.28),
          0 0 20px rgba(215, 181, 141, 0.22);
}

.number-chart-card h4 {
  margin: 0;
  color: #f3d39b;
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 800;
}

.number-chart-card p {
  margin: 0;
  color: #fff8ef;
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.6;
}

.number-chart-credit {
  margin-top: auto !important;
  color: rgba(255, 248, 239, 0.74) !important;
  font-size: clamp(12px, 0.78vw, 13px) !important;
}

.image-zoom-popup {
  z-index: 1100;
}

.image-zoom-content {
  width: min(94vw, 1050px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  padding: clamp(22px, 2.4vw, 34px);
}

.image-zoom-content #imageZoomTitle {
  margin: 0 0 clamp(12px, 1.2vw, 18px);
  color: #f3d39b;
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.58);
}

.image-zoom-img {
  width: 100%;
  max-height: min(68vh, 640px);
  object-fit: contain;
  display: block;
  margin: clamp(14px, 1.5vw, 22px) auto 0;
  padding: clamp(10px, 1vw, 14px);
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid rgba(255, 232, 200, 0.28);
  box-shadow:
          0 14px 34px rgba(0, 0, 0, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.image-zoom-img--story-frame {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 232, 200, 0.28);
  object-fit: contain;
}
.image-zoom-credit {
  margin: clamp(10px, 1vw, 14px) 0 0;
  color: rgba(255, 248, 239, 0.78);
  font-size: clamp(12px, 0.82vw, 14px);
  line-height: 1.5;
  text-align: center;
}

/* =========================
   FOOTER
========================= */

.main-footer {
  margin-top: clamp(24px, 3vw, 38px);
  background: linear-gradient(180deg, rgba(51, 37, 31, 0.98), rgba(34, 25, 21, 0.98));
  border-top: 2px solid var(--brown-line);
  padding: clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
  box-shadow: inset 0 10px 20px rgba(255,255,255,0.02);
}

.footer-graphic-area {
  flex: 1.35;
  min-height: clamp(220px, 24vw, 300px);
  border: 1px solid rgba(215, 181, 141, 0.18);
  border-radius: 12px;
  background: linear-gradient(to bottom, rgba(42, 31, 27, 0.95), rgba(28, 22, 19, 0.98));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 1vw, 12px);
  overflow: hidden;
}

.footer-graphic-image {
  width: 100%;
  height: 100%;
  max-height: clamp(220px, 24vw, 300px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.footer-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.6vw, 18px) clamp(18px, 2vw, 24px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-panel-title {
  margin: 0 0 14px 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #f7f1e4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.footer-content-area {
  width: min(100%, 390px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-info-only {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(215, 181, 141, 0.20);
  border-radius: 18px;
  background: linear-gradient(
          to bottom,
          rgba(48, 35, 30, 0.94),
          rgba(26, 20, 18, 0.98)
  );
  padding: clamp(18px, 2vw, 24px) clamp(14px, 1.8vw, 20px) clamp(20px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 18px);
  box-shadow:
          inset 0 0 0 1px rgba(255, 220, 180, 0.04),
          0 10px 24px rgba(0, 0, 0, 0.18);
}

.footer-image-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.footer-image-btn:hover,
.footer-image-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  outline: none;
}

.footer-button-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  user-select: none;
  pointer-events: none;
}

.footer-image-btn.about-btn {
  margin-top: 2px;
}

.footer-image-btn.credits-btn {
  margin-top: 2px;
}

.footer-image-btn.vision-btn {
  margin-top: 2px;
}

.footer-image-btn:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
  border-radius: 12px;
}

/* =========================
   VIDEO MODE
========================= */

body.video-mode {
  background:
          radial-gradient(circle at top, rgba(52, 33, 21, 0.16), transparent 22%),
          linear-gradient(to bottom, #0c0908, #15100e 35%, #090707 100%);
}

body.video-mode .main-header {
  min-height: clamp(80px, 9vw, 96px);
  height: clamp(80px, 9vw, 96px);
  background: #050505;
  border-bottom: 1px solid #2b2521;
  overflow: visible;
}

body.video-mode .header-image {
  display: none;
}

body.video-mode .header-opening-btn {
  display: none !important;
}

body.video-mode .accessibility-buttons {
  top: clamp(10px, 1.2vw, 12px);
  right: clamp(12px, 1.4vw, 18px);
  gap: clamp(8px, 1vw, 10px);
}

body.video-mode .header-icon-btn {
  top: 50%;
  right: clamp(18px, 2vw, 28px);
  transform: translateY(-50%);
  width: clamp(52px, 4.5vw, 64px);
  height: clamp(52px, 4.5vw, 64px);
}

body.video-mode .header-icon-btn .button-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.video-mode .header-icon-btn:hover,
body.video-mode .header-icon-btn:focus-visible {
  transform: translateY(-50%) scale(1.03);
}

body.video-mode .video-page {
  margin-top: clamp(16px, 2vw, 24px);
}

body.video-mode .video-description-text,
body.video-mode .video-player-box,
body.video-mode .custom-video-controls {
  border-color: #5f4c39;
}

@media (max-width: 1024px) {
  .custom-video-controls {
    justify-content: center;
  }

  .main-footer {
    flex-direction: column;
  }

  .footer-panel {
    max-width: 100%;
  }

  .footer-content-area {
    width: min(100%, 420px);
  }
}

@media (max-width: 900px) {
  .videos-section {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .video-card-button {
    min-height: 236px;
  }

  .card-default-content {
    min-height: 236px;
  }

  .card-thumbnail-frame {
    width: 160px;
  }

  .footer-panel {
    padding: 10px 12px 18px;
  }

  .footer-panel-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }

  .footer-content-area {
    width: min(100%, 360px);
  }

  .footer-info-only {
    padding: 20px 16px 22px;
    gap: 16px;
    border-radius: 16px;
  }

  .number-charts-grid {
    grid-template-columns: 1fr;
  }

  .number-charts-popup .number-charts-content {
    width: min(96vw, 720px);
  }
}

@media (max-width: 768px) {
  .videos-list-section {
    border-width: 8px;
  }

  .video-page-top h2 {
    font-size: clamp(28px, 2.7vw, 44px);
    color: #fff2dc;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-width: 92%;
    line-height: 1.25;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.72);
  }

  .progress-bar {
    min-width: 100%;
  }

  .custom-video-controls {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .videos-section {
    grid-template-columns: 1fr;
  }

  .card-thumbnail-frame {
    width: 172px;
  }

  .accessibility-buttons {
    position: absolute;
    top: clamp(10px, 1.4vw, 16px);
    right: clamp(12px, 1.8vw, 20px);
    display: flex;
    gap: clamp(8px, 1vw, 12px);
    z-index: 3;
  }

  .header-opening-btn {
    width: min(320px, calc(100vw - 28px));
  }

  .featured-video-section .opening-video-btn {
    width: min(320px, calc(100vw - 40px));
  }

  .popup-content {
    width: 100%;
  }

  .video-player-box {
    padding: 10px;
  }

  .number-charts-btn {
    width: 100%;
    padding-inline: 14px;
  }

  .number-chart-placeholder {
    min-height: 120px;
  }
}

/* =========================
   FOOTER INFO / CREDITS
========================= */

.footer-info-text {
  direction: rtl;
  text-align: center;
  line-height: 1.62;
  font-size: clamp(16px, 1.05vw, 20px);
  color: #fff8ef;
  max-width: 860px;
  margin: 0 auto;
}

.credits-text {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.55;
  font-weight: 500;
}

.credit-line {
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.credit-line:last-child {
  margin-bottom: 0;
}

.credit-line strong {
  font-weight: 800;
}

.en-term {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
}

.credit-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credit-link:hover,
.credit-link:focus-visible {
  color: var(--gold-soft);
}

#footerInfoPopup.glossary-dialog-mode .popup-content {
  width: min(100%, 1080px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding:
          clamp(22px, 2.3vw, 30px)
          clamp(16px, 2.2vw, 28px)
          clamp(20px, 2vw, 28px);
}

#footerInfoPopup.glossary-dialog-mode .popup-content h3 {
  margin-bottom: clamp(12px, 1.2vw, 16px);
}

.glossary-text {
  max-width: 1000px;
  margin: 0 auto;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
  direction: rtl;
  text-align: right;
}

.glossary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 232, 200, 0.22);
  border-radius: 14px;
  background: rgba(32, 22, 17, 0.28);
  padding: clamp(10px, 0.9vw, 14px);
  box-shadow:
          0 8px 18px rgba(0, 0, 0, 0.16),
          inset 0 1px 0 rgba(255, 232, 200, 0.06);
}

.glossary-image {
  width: 100%;
  height: clamp(105px, 9vw, 135px);
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 8px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(255, 232, 200, 0.22);
  box-sizing: border-box;
  cursor: zoom-in;
  transition:
          transform 0.18s ease,
          filter 0.18s ease,
          box-shadow 0.18s ease;
}

.glossary-image--story-frame {
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: clamp(105px, 9vw, 135px);
  padding: 0;
  background: transparent;
  object-fit: cover;
}

.glossary-image:hover,
.glossary-image:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
  box-shadow:
          0 10px 22px rgba(0, 0, 0, 0.28),
          0 0 20px rgba(215, 181, 141, 0.22);
}

.glossary-item h4 {
  margin: 0;
  color: #f3d39b;
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 800;
}

.glossary-item p {
  margin: 0;
  color: #fff8ef;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.45;
  text-align: right;
}

.footer-image-btn.glossary-btn {
  margin-top: 2px;
}

@media (max-width: 950px) {
  .glossary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .glossary-list {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   END VIDEO ACTIONS
   כפתורי סיום מעל נגן Vimeo
================================================== */

.video-player-box {
  position: relative;
  overflow: hidden;
}

.video-end-actions {
  position: absolute;
  inset: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 22px);

  padding: clamp(18px, 2vw, 30px);
  text-align: center;
  direction: rtl;

  background:
          radial-gradient(circle at center, rgba(215, 181, 141, 0.14), transparent 55%),
          linear-gradient(to bottom, rgba(8, 6, 5, 0.62), rgba(5, 4, 3, 0.84));

  box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.55);
}

.video-end-message {
  margin: 0;
  color: #fff2d6;
  font-size: clamp(18px, 1.6vw, 28px);
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.78);
}

.video-end-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 18px);
  flex-wrap: wrap;
}

.video-discovery-box {
  width: min(92%, 680px);
  margin: 0;
  padding: clamp(14px, 1.5vw, 22px) clamp(16px, 2vw, 28px);
  border: 1px solid rgba(245, 216, 178, 0.34);
  border-radius: clamp(14px, 1.3vw, 22px);
  background:
          linear-gradient(to bottom, rgba(58, 34, 21, 0.86), rgba(20, 14, 11, 0.9));
  box-shadow:
          0 12px 30px rgba(0, 0, 0, 0.34),
          inset 0 1px 0 rgba(255, 232, 200, 0.08);
}

.video-discovery-title {
  margin: 0 0 clamp(6px, 0.7vw, 10px);
  color: #f3d39b;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.58);
}

.video-discovery-text {
  margin: 0;
  color: #fff3dd;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  direction: rtl;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.58);
}

.video-discovery-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  direction: rtl;
}

.video-discovery-list li {
  position: relative;
  padding-right: 1.25em;
  margin-bottom: 0.35em;
}

.video-discovery-list li:last-child {
  margin-bottom: 0;
}

.video-discovery-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #f3d39b;
  font-weight: 900;
}

.video-discovery-single-text {
  margin: 0;
  text-align: center;
  direction: rtl;
}

.video-discovery-actions {
  margin-top: clamp(12px, 1.2vw, 18px);
  display: flex;
  justify-content: center;
}

.number-charts-btn {
  border: 1px solid rgba(243, 211, 155, 0.72);
  border-radius: 999px;
  padding: clamp(9px, 0.9vw, 12px) clamp(22px, 2vw, 34px);
  cursor: pointer;
  color: #ffe4ae;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 800;
  background:
          linear-gradient(180deg, rgba(92, 55, 30, 0.72), rgba(35, 22, 16, 0.78));
  box-shadow:
          0 6px 14px rgba(0, 0, 0, 0.26),
          inset 0 1px 0 rgba(255, 232, 200, 0.12);
  transition:
          transform 0.18s ease,
          filter 0.18s ease,
          background 0.18s ease,
          box-shadow 0.18s ease;
}

.number-charts-btn:hover,
.number-charts-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.07);
  outline: 2px solid rgba(243, 211, 155, 0.72);
  outline-offset: 3px;
  background:
          linear-gradient(180deg, rgba(112, 68, 36, 0.82), rgba(45, 28, 18, 0.86));
  box-shadow:
          0 8px 18px rgba(0, 0, 0, 0.32),
          0 0 16px rgba(215, 181, 141, 0.18),
          inset 0 1px 0 rgba(255, 232, 200, 0.16);
}
.end-video-btn {
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition:
          transform 0.18s ease,
          filter 0.18s ease,
          box-shadow 0.18s ease,
          background 0.18s ease;
}

.next-video-btn {
  border: none;
  padding: clamp(12px, 1.1vw, 16px) clamp(28px, 2.7vw, 46px);
  color: #2b170c;
  font-size: clamp(17px, 1.2vw, 22px);
  background: linear-gradient(to bottom, #f3d39b, #c8914f);
  box-shadow:
          0 12px 26px rgba(0, 0, 0, 0.42),
          0 0 22px rgba(215, 181, 141, 0.22),
          inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.replay-video-btn {
  border: 1px solid rgba(243, 211, 155, 0.62);
  padding: clamp(9px, 0.9vw, 12px) clamp(20px, 2vw, 32px);
  color: #f3d39b;
  font-size: clamp(14px, 1vw, 18px);
  background: rgba(20, 14, 11, 0.42);
  box-shadow: none;
}

.next-video-btn:hover,
.next-video-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
  box-shadow:
          0 16px 30px rgba(0, 0, 0, 0.46),
          0 0 28px rgba(215, 181, 141, 0.34),
          inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.replay-video-btn:hover,
.replay-video-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
  outline: 2px solid rgba(243, 211, 155, 0.7);
  outline-offset: 3px;
  background: rgba(40, 27, 18, 0.58);
}

/* =========================
   ABOUT POPUP ONLY - FINAL
   מחזיר את צבעי האתר המקוריים
   ומסדר את לוגו HIT בצד ימין כמו בתבנית
========================= */

#footerInfoPopup.about-dialog-mode {
  background-color: rgba(0, 0, 0, 0.78);
}

#footerInfoPopup.about-dialog-mode .popup-content {
  background:
          linear-gradient(to bottom, #9b5c1d 0%, #8d5319 100%);
  border: clamp(6px, 0.7vw, 8px) solid #c1843e;
  box-shadow:
          inset 0 0 0 3px rgba(255, 225, 179, 0.35),
          0 18px 36px rgba(0, 0, 0, 0.36);
  border-radius: 6px;
  width: min(100%, 940px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 3vw, 42px) clamp(18px, 3vw, 44px) clamp(24px, 2.5vw, 34px);
  color: #fff8ef;
  text-align: center;
}

#footerInfoPopup.about-dialog-mode .popup-content h3 {
  margin-bottom: clamp(16px, 1.8vw, 24px);
  font-size: clamp(28px, 2.6vw, 40px);
  text-align: center;
  color: #fff6e8;
  font-weight: normal;
  line-height: normal;
}

#footerInfoPopup.about-dialog-mode .close-popup-btn.ui-icon-btn {
  position: absolute;
  top: clamp(8px, 1vw, 14px);
  right: clamp(8px, 1vw, 14px);
  left: auto;
  width: clamp(42px, 4vw, 48px);
  height: clamp(42px, 4vw, 48px);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

#footerInfoPopup.about-dialog-mode .close-popup-btn::before {
  content: none;
}

#footerInfoPopup.about-dialog-mode .close-popup-btn .button-icon {
  display: block;
}

#footerInfoPopup.about-dialog-mode .footer-info-text,
#footerInfoPopup.about-dialog-mode .about-template,
#footerInfoPopup.about-dialog-mode .about-project-header h4,
#footerInfoPopup.about-dialog-mode .about-project-header p,
#footerInfoPopup.about-dialog-mode .about-year,
#footerInfoPopup.about-dialog-mode .about-text-column p,
#footerInfoPopup.about-dialog-mode .about-org-text p,
#footerInfoPopup.about-dialog-mode .about-copyright {
  color: #fff8ef;
  background: transparent;
}

#footerInfoPopup.about-dialog-mode .about-template {
  direction: rtl;
  text-align: center;
  padding: 0;
}

#footerInfoPopup.about-dialog-mode .about-project-header h4 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 700;
}

#footerInfoPopup.about-dialog-mode .about-project-header p {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
}

#footerInfoPopup.about-dialog-mode .about-year {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
}

#footerInfoPopup.about-dialog-mode .about-faculty-link {
  margin: 0 0 28px;
}

#footerInfoPopup.about-dialog-mode .about-faculty-link a {
  color: #4b1f9b;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
}

/* אזור צוות הפרויקט + לוגו HIT */
#footerInfoPopup.about-dialog-mode .about-main-details {
  width: min(100%, 610px);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px;
  column-gap: 30px;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

/* הטקסט משמאל */
#footerInfoPopup.about-dialog-mode .about-text-column {
  grid-column: 1;
  direction: rtl;
  text-align: center;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.5;
}

#footerInfoPopup.about-dialog-mode .about-text-column p {
  margin: 0 0 6px;
}

#footerInfoPopup.about-dialog-mode .about-text-column strong {
  font-weight: 800;
}

/* הלוגו מימין */
#footerInfoPopup.about-dialog-mode .about-hit-logo {
  grid-column: 2;
  width: 180px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#footerInfoPopup.about-dialog-mode .hit-logo-img {
  width: 165px;
  max-width: 165px;
  height: auto;
  max-height: 120px;
  display: block;
  object-fit: contain;
  border: 5px solid #c1843e;
  box-sizing: border-box;
}

#footerInfoPopup.about-dialog-mode .about-org-details {
  width: min(100%, 560px);
  margin: 0 auto 16px;
  text-align: center;
}

#footerInfoPopup.about-dialog-mode .about-org-text p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
}

#footerInfoPopup.about-dialog-mode .about-copyright {
  margin: 14px 0 0;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 500;
}

@media (max-width: 640px) {
  #footerInfoPopup.about-dialog-mode .about-main-details {
    grid-template-columns: 1fr;
    row-gap: 14px;
    direction: rtl;
  }

  #footerInfoPopup.about-dialog-mode .about-text-column,
  #footerInfoPopup.about-dialog-mode .about-hit-logo {
    grid-column: 1;
  }

  #footerInfoPopup.about-dialog-mode .about-hit-logo {
    margin: 0 auto;
  }
}

.project-footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  direction: rtl;
  text-align: center;
  background: rgba(238, 238, 238, 0.98);
  color: #1f1f1f;
  font-family: "Rubik";
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  border-top: 2px solid rgba(111, 90, 69, 0.5);
  box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.7),
          0 -4px 12px rgba(0, 0, 0, 0.18);
}

.project-footer-note span {
  font-family: "Rubik";
}

.project-footer-info-link {
  border: none;
  background: transparent;
  padding: 0;
  color: #005eb8;
  font-family: "Rubik";
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.project-footer-info-link:hover,
.project-footer-info-link:focus-visible {
  color: #003f7f;
  outline: 2px solid rgba(0, 94, 184, 0.35);
  outline-offset: 3px;
}

.project-footer-separator {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
}