/* Fonts */
@font-face { 
  font-family: 'APRegular'; 
  src: url('fonts/APRegular.otf') format('opentype'); 
}
@font-face { 
  font-family: 'APSemiCondensedBold'; 
  src: url('fonts/APSemiCondensedBold.otf') format('opentype'); 
  font-weight: bold; 
}
*, *::before, *::after { 
  box-sizing: border-box; 
}

/* Base page styles + gradient */
body {
  margin: 0; 
  padding: 0;
  font-family: 'APRegular', system-ui, sans-serif;
  color: #333; 
  line-height: 1.6;

  /* Default: fixed header spacing for non-hero pages */
  padding-top: 98px;

  /* Subtle modern gradient (visible on all pages) */
  background-color: #ffffff;
  background: linear-gradient(135deg, #F6F8FB 0%, #EEF1F6 60%, #E8ECF2 100%);
}



/* Remove the old dimming overlay so it doesn't flatten the gradient */
body::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background: rgba(0, 0, 0, .35) !important;
}

/* Ensure pages WITH a hero remove the top padding so the hero fills below the fixed header */
body:has(#hero) {
  padding-top: 0;
}

/* Only pages WITHOUT a hero get the photographic background under the gradient */
body:not(:has(#hero)) {
}

/* Ensure hero pages don't show fallback background */
body:has(#hero) {
}

/* ENPS hero layout and media */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: #000;
}

.hero.overlay-only {
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.4) 0%, rgba(36, 59, 85, 0.35) 100%);
}
.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
}

.hero__content.loaded {
  animation: heroFadeIn 0.5s ease-out forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}
.hero__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
@media (max-width: 640px) {
  .hero__inner { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; /* rely on poster */ }
}

/* Bottom-centered scroll cue on ENPS hero */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform .15s ease;
}

/* Position Release Notes button in highlights section */
.highlights .hero__scroll-cue {
  position: relative;
  left: 50%;
  bottom: auto;
}

.hero__scroll-cue:hover {
  transform: translateX(-50%) translateY(-2px);
}
.hero__scroll-cue-label {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.hero__scroll-cue svg {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  stroke: #111;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.15s ease;
}
.hero__scroll-cue:hover svg {
  background: #ffffff;
}

#release-notes {
  min-height: calc(100vh - var(--header-height, 98px));
}

/* Shared container for highlights and release notes */
.container {
  max-width: calc(1300px + 624px);
  margin: 0 auto 30px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 312px;
  padding-right: 312px;
}

/* Release notes panels */
.container > .release-group {
  background: #ffffff;
  padding: 3rem;
  padding-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.06);
}

/* Patch release styling */
.container.patch-release > .release-group {
  border-left: 4px solid #ff6b35;
  background: #fffbf9;
}

.patch-indicator {
  font-size: 0.75em;
  color: #ff6b35;
  font-weight: 500;
  margin-left: 0.5em;
}

/* Hide sidebars by default on hero pages until JS determines visibility */
body:has(#hero) .sidebar-base {
  opacity: 0;
  pointer-events: none;
}

/* Show sidebars when JS adds this class */
body:has(#hero) .sidebar-base.show-sidebar {
  opacity: 1;
  pointer-events: auto;
}

/* Hide sidebars during hero even when show-sidebar is present */
body:has(#hero) .sidebar-base.show-sidebar.before-hero {
  opacity: 0;
  pointer-events: none;
}

/* Background image controlled by JavaScript */
body.show-background::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-image) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
}

/* === SHARED SIDEBAR BASE === */
.sidebar-base {
  position: fixed;
  width: 280px;
  max-height: calc(100vh - var(--header-height, 98px) - 32px);
  background: rgba(43, 47, 54, 0.2);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 50;
  overflow-y: hidden;
  padding: 16px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity .2s ease-in-out;
}

.sidebar-base.before-hero {
  opacity: 0;
  pointer-events: none;
}

.sidebar-base.hidden {
  display: none;
}

/* === SIDEBAR === */
.sidebar {
  left: 16px;
  top: calc(var(--header-height, 98px) + 16px);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.sidebar-section h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.help-button {
  background: none;
  border: none;
  color: #e8e8e8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.help-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.help-button .icon {
  display: block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.help-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
}

.help-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.help-close:hover {
  background: #f0f0f0;
  color: #333;
}

.help-content .icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
  margin-right: 4px;
  filter: none;
}

.help-content .icon-summary {
  background-image: url('./assets/site/icon-summary.svg');
}

.help-content .icon-notes {
  background-image: url('./assets/site/icon-notes.svg');
}

.help-content .icon-image {
  background-image: url('./assets/site/icon-image.svg');
}

.help-content .icon-ids {
  background-image: url('./assets/site/icon-ids.svg');
}

.help-content .icon-filters {
  background-image: url('./assets/site/icon-filters.svg');
}

.help-content .icon-mode {
  background-image: url('./assets/site/icon-mode.svg');
}

.help-content .icon-grouping {
  background-image: url('./assets/site/icon-grouping.svg');
}

.help-content .icon-share {
  background-image: url('./assets/site/icon-share.svg');
}

.sidebar .toggle-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e8e8e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sidebar .toggle-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.sidebar .toggle-link.active-toggle,
.sidebar .toggle-link.active-filter {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.sidebar .toggle-link .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

.icon-filters {
  background-image: url('assets/site/icon-filters.svg');
}

.icon-ids {
  background-image: url('assets/site/icon-ids.svg');
}

.icon-summary {
  background-image: url('assets/site/icon-summary.svg');
}

.icon-mode {
  background-image: url('assets/site/icon-mode.svg');
}

.icon-share {
  background-image: url('assets/site/icon-share.svg');
}

.icon-image {
  background-image: url('assets/site/icon-image.svg');
}

.icon-lock {
  background-image: url('assets/site/icon-lock.svg');
}

.icon-grouping {
  background-image: url('assets/site/icon-grouping.svg');
}

.icon-notes {
  background-image: url('assets/site/icon-notes.svg');
}

.icon-help {
  background-image: url('assets/site/icon-help.svg');
}

.icon-expand-all {
  background-image: url('assets/site/icon-expand-all.svg');
}

.icon-expand {
  background-image: url('assets/site/icon-expand.svg');
}

.icon-collapse {
  background-image: url('assets/site/icon-collapse.svg');
}

.sidebar .toggle-link img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
}

.sidebar .toggle-link svg,
.sidebar .toggle-link svg path {
  fill: #e8e8e8 !important;
}

.sidebar .toggle-link:hover img {
  opacity: 1;
}

/* Remove body margin */
body {
  margin-left: 0;
}



/* === FILTER MENU === */
.filter-menu {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 8px;
}

.filter-menu.show {
  display: block;
}

.filter-menu label {
  display: block;
  padding: 6px 0;
  color: #e8e8e8;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.filter-menu label:hover {
  color: #ffffff;
}

.filter-menu input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #1a202c;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.clear-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e8e8e8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;
  text-align: left;
}
.clear-filters:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.clear-filters .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: 'APSemiCondensedBold', system-ui, sans-serif;
}

.top-heading {
  max-width: 1000px; 
  margin: 0 auto 2rem;
}

/* Hero pills + lead */
.hero-lead {
  margin: 10px 0 12px;
  color: #e5e7eb;          /* soft light for readability on dark overlay */
  line-height: 1.4;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #d1d5db;
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(55, 65, 81, 0.8);
}

.release-note {
  display: flex; 
  gap: 1rem;
  margin: 2rem 0; 
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.note-main { 
  flex: 1; 
}
.note-extra { 
  width: 50px; 
  padding: 0.5rem; 
}

.meta-tags {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5rem; 
  margin-bottom: 0.5rem;
}

.meta-tags span {
  font-size: 0.75rem; 
  padding: 0.05em 0.6em;
  border-radius: 4px; 
  background: #d8d8d8;
  color: #3f3f3f;
  border: 1px solid transparent;
}

/* ID tags: hidden by default; show only when body.ids-on */
.meta-tags .tag-id {
  display: none;
  background-color: #fdfdfd !important; /* near-white background */
  color: #222 !important;               /* dark text for readability */
  border: 1px solid #e6e6e6 !important; /* subtle border */
}
body.ids-on .meta-tags .tag-id {
  display: inline-flex;                 /* visible when toggled on */
  align-items: center;
}

/* Toggle button active style (Show IDs) */
#toggle-ids.active-toggle {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

/* Component tags (explicit colors to override the generic span style) */
.meta-tags .tag-component {
  border: 1px solid #d5d5d5;
}
.meta-tags .tag-component-client {
  background-color: #3a79e5 !important; /* blue */
  color: #fdfdfd !important;            /* near-white text */
  border: 1px solid #316bd0 !important; /* slightly darker border */
}
.meta-tags .tag-component-server {
  background-color: #f69e15 !important; /* orange */
  color: #fdfdfd !important;            /* near-white text */
  border: 1px solid #de8b10 !important; /* slightly darker border */
}
.meta-tags span.tag-component-other {
  background-color: #e9e9e9 !important; /* neutral gray */
  color: #333 !important;
  border: 1px solid #d5d5d5 !important;
}

/* Nested component tags */
.meta-tags span.tag-component-nested {
  font-size: 0.7rem;
  opacity: 0.9;
  margin-left: 8px;
}

/* UPDATED: Feature area tag color */
.tag-area-feat {
  background-color: #f0f615 !important; /* bright yellow-green */
  color: #111111 !important;            /* near-black text */
  border: 1px solid #d9e013;            /* slightly darker border */
}

/* Tech Notes area tag (near-black with white text) */
.tag-area-tech {
  background-color: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

/* Documentation area tag (pink per request) */
.tag-area-doc {
  background-color: #ffc4c4 !important;
  color: #333333 !important;
  border: 1px solid #f2a9a9 !important;
}

/* Fix area (unchanged) */
.tag-area-bug {
  background-color: #9effaf !important;
}

/* ENPS version group metadata line under H1 */
.group-version-meta {
  margin: -6px 0 12px 0;
  font-size: 14px;
  color: #7a7a7a;
}

/* Release overview block styling (label, lead, two-column bullets) */
.group-overview {
  margin: 6px 0 14px;
}
.group-overview .label {
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 6px;
  color: #7a7a7a;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.group-overview .lead {
  margin: 0 0 6px;
  color: #2b2b2b; /* readable on light panels */
  line-height: 1.35;
}
.group-overview ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
  column-gap: 28px;
}
.group-overview li {
  margin: 4px 0;
  break-inside: avoid;
  position: relative;
  padding-left: 12px;
  font-weight: 800;
}
.group-overview li::before {
  content: '★';
  position: absolute;
  left: -8px;
  color: #1ea1e1;
}
/* Two-column bullets on wide screens; single column on narrow screens */
@media (min-width: 900px) {
  .group-overview ul { column-count: 2; }
}
@media (max-width: 899px) {
  .group-overview ul { column-count: 1; }
}

.release-note h2 {
  margin: 0.5rem 0 0.25rem; 
  font-size: 1.2rem;
}

.description {
  margin-top: 0.5rem;
}

.description.collapsed {
  display: none;
}

pre, code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  white-space: pre-wrap;
}

.tip, .note, .warning, .message {
  background-position: 16px 12px;
  background-repeat: no-repeat;
  line-height: 24px;
  overflow: hidden;
  padding: 10px 0 10px 60px;
  margin: 20px 0 8px 0;
}

.tip > p, .note > p, .warning > p, .message > p {
  margin-top: 10px;
}

.tip {
  border-left: 4px solid #48ff00;
  background-image: url('assets/site/box-tip.svg');
}

.note {
  border-left: 4px solid #0059ff;
  background-image: url('assets/site/box-note.svg');
}

.warning {
  border-left: 4px solid red;
  background-image: url('assets/site/box-warning.svg');
}

.message {
  border-left: 4px solid #000000;
  background-image: url('assets/site/box-message.svg');
}

kbd {
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  padding: 2px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background: #f5f5f5;
}

img { 
  padding-left: 30px; 
  max-width: 100%; 
  height: auto;
}

.toggle-img {
  display: block; 
  margin: 0.5rem 0;
}

.page-header {
  font-family: 'APRegular', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  position: fixed; /* Keep the header fixed at the top */
  top: 0;
  left: 0;
  right: 0;
  height: 98px;
  background-color: #1d1d1d; /* Background color */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align items to the left */
  z-index: 10000; /* Ensure it stays above other content */
  color: white; /* Text color for contrast */
  padding: 0 20px; /* Add padding to the sides */
}





/* Active state styling for main Filter button */
#toggle-filter.active-filter {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}



/* Active state for Show Release Overview button */
#toggle-overviews.active-toggle {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

/* Hide release overviews when toggled off */
body:not(.overviews-on) .group-overview {
  display: none;
}

/* Hide release notes when toggled off */
body:not(.release-notes-on) .release-note {
  display: none;
}

/* === ACTIVE FILTERS === */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 2px 6px 2px 8px;
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
}

.filter-pill-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.filter-pill-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.range-pill {
  background: rgba(255, 165, 0, 0.15);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ffa500;
}

.filter-menu.show ~ .active-filters {
  display: none;
}

.clear-filters.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #8a8f98 !important;
}

.clear-all-pill {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.3);
  color: #ffffff;
  cursor: pointer;
}

/* === HIGHLIGHTS SECTION === */
.highlights {
  margin-top: 60px;
  margin-bottom: 60px;
}

.highlight-item {
  display: flex;
  gap: 60px;
  align-items: stretch;
  margin-bottom: 40px;
  padding: 40px;
  background: rgba(43, 47, 54, 0.2);
  backdrop-filter: blur(2px);
  border-radius: 8px;
}

.highlight-text {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

.highlight-text h2 {
  margin: 0 0 16px 0;
  font-size: 1.8rem;
  color: #ffffff;
}

.highlight-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8e8e8;
}

.highlight-text ul,
.highlight-text ol {
  margin: 0;
  padding-left: 1.5em;
  color: #e8e8e8;
}

.highlight-text li {
  margin: 0.5em 0;
  color: #e8e8e8;
}

.highlight-text kbd {
  color: #333;
}

.highlight-media {
  flex: 1;
  min-width: 0;
}

.highlight-media video,
.highlight-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
}

.video-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
}

.video-overlay::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.video-icon {
  width: 64px;
  height: 64px;
  fill: white;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.video-overlay.playing {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper:not(:fullscreen):not(:-webkit-full-screen):not(:-moz-full-screen):not(:-ms-fullscreen):hover .video-overlay.playing {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-wrapper:fullscreen .video-overlay.playing.show-controls,
.video-wrapper:-webkit-full-screen .video-overlay.playing.show-controls,
.video-wrapper:-moz-full-screen .video-overlay.playing.show-controls,
.video-wrapper:-ms-fullscreen .video-overlay.playing.show-controls {
  opacity: 1;
}

.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  width: 0;
  background: #1ea1e1;
  transition: none;
  transform-origin: left;
}

.video-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  z-index: 10;
  pointer-events: auto;
}

.video-wrapper:hover .video-fullscreen-btn {
  opacity: 1;
}

.video-wrapper:fullscreen .video-fullscreen-btn,
.video-wrapper:-webkit-full-screen .video-fullscreen-btn,
.video-wrapper:-moz-full-screen .video-fullscreen-btn,
.video-wrapper:-ms-fullscreen .video-fullscreen-btn {
  opacity: 0;
  transition: opacity 0.3s ease 1s;
}

.video-wrapper:fullscreen .video-fullscreen-btn.show-controls,
.video-wrapper:-webkit-full-screen .video-fullscreen-btn.show-controls,
.video-wrapper:-moz-full-screen .video-fullscreen-btn.show-controls,
.video-wrapper:-ms-fullscreen .video-fullscreen-btn.show-controls {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.video-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-fullscreen-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

@media (max-width: 900px) {
  .highlight-item {
    flex-direction: column;
    gap: 30px;
  }
  
  .highlight-item.text-right {
    flex-direction: column;
  }
  
  .highlight-text {
    order: 1;
  }
  
  .highlight-media {
    order: 2;
  }
}