/*
   Soyqirim Hero Timeline - WordPress integration
   Scope: only page template page-hero-test.php
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Crimson+Pro:wght@300;400;600;700&display=swap');

body.page-template-page-hero-test {
  --qhero-bg: #070705;
  --qhero-header: #050504;
  --qhero-gold: #c8a050;
  --qhero-gold-light: #e8c874;
  --qhero-gold-soft: rgba(200, 160, 80, .36);
  --qhero-red: #99151f;
  --qhero-text: #f4eee4;
  --qhero-muted: rgba(244, 238, 228, .74);
  --qhero-faint: rgba(244, 238, 228, .46);
  --qhero-display: 'Cormorant Garamond', Georgia, serif;
  --qhero-body: 'Crimson Pro', Georgia, serif;
  --qhero-ease: cubic-bezier(.4, 0, .2, 1);
  background: var(--qhero-bg) !important;
}

body.page-template-page-hero-test,
body.page-template-page-hero-test .super_container {
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-template-page-hero-test .qsmk-hero-test-main {
  background: var(--qhero-bg);
  min-height: 100vh;
}

/* Hide footer on the test page only. Remove this when the full homepage is ready. */
body.page-template-page-hero-test .qsmk-footer {
  display: none !important;
}

/* ============================================================
   Scoped real WordPress header styling for this test page
   Menu content still comes from Appearance -> Menus.
   ============================================================ */

body.page-template-page-hero-test .header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--qhero-header) !important;
  border-bottom: 1px solid rgba(200, 160, 80, .22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42);
}

body.page-template-page-hero-test .top_bar,
body.page-template-page-hero-test .header_container {
  background: var(--qhero-header) !important;
}

body.page-template-page-hero-test .top_bar {
  border-bottom: 1px solid rgba(200, 160, 80, .12);
}

body.page-template-page-hero-test .top_bar_content {
  min-height: 34px !important;
}

body.page-template-page-hero-test .top_bar_contact_list li,
body.page-template-page-hero-test .top_bar_contact_list li div,
body.page-template-page-hero-test .top_bar_contact_list li i {
  color: rgba(244, 238, 228, .72) !important;
  font-size: 13px !important;
  letter-spacing: .04em;
}

body.page-template-page-hero-test .header_container {
  min-height: 80px !important;
}

body.page-template-page-hero-test .header_content {
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
  gap: clamp(18px, 2vw, 32px) !important;
}

body.page-template-page-hero-test .logo_container {
  flex: 0 0 96px !important;
  width: 96px !important;
  max-width: 96px !important;
  min-width: 96px !important;
}

body.page-template-page-hero-test .qsmk-header-logo {
  width: 74px !important;
  max-width: 74px !important;
  height: auto !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .38));
}

body.page-template-page-hero-test .main_nav_contaner {
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
}

body.page-template-page-hero-test .main_nav {
  gap: 0 !important;
}

body.page-template-page-hero-test .main_nav > li {
  margin-inline-end: clamp(14px, 1.35vw, 24px) !important;
}

body.page-template-page-hero-test .main_nav > li > a {
  color: #f5f0e8 !important;
  font-family: Arial, sans-serif !important;
  font-size: clamp(13px, .9vw, 16px) !important;
  font-weight: 800 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

body.page-template-page-hero-test .main_nav > li > a:hover,
body.page-template-page-hero-test .main_nav > li.current-menu-item > a,
body.page-template-page-hero-test .main_nav > li.current_page_item > a {
  color: var(--qhero-gold-light) !important;
}

body.page-template-page-hero-test .main_nav .sub-menu,
body.page-template-page-hero-test .main_nav li ul {
  background: rgba(5, 5, 4, .98) !important;
  border: 1px solid rgba(200, 160, 80, .22) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46) !important;
  min-width: 270px !important;
}

body.page-template-page-hero-test .main_nav .sub-menu li a,
body.page-template-page-hero-test .main_nav li ul li a {
  background: transparent !important;
  color: rgba(244, 238, 228, .82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

body.page-template-page-hero-test .main_nav .sub-menu li a:hover,
body.page-template-page-hero-test .main_nav li ul li a:hover {
  background: rgba(200, 160, 80, .08) !important;
  color: var(--qhero-gold-light) !important;
}

body.page-template-page-hero-test .qsmk-desktop-lang-list {
  border-color: rgba(200, 160, 80, .28) !important;
}

body.page-template-page-hero-test .qsmk-desktop-lang-item a {
  color: rgba(244, 238, 228, .68) !important;
  background: transparent !important;
}

body.page-template-page-hero-test .qsmk-desktop-lang-item.is-active a,
body.page-template-page-hero-test .qsmk-desktop-lang-item a:hover {
  background: var(--qhero-red) !important;
  color: #fff !important;
}

body.page-template-page-hero-test .hamburger {
  color: var(--qhero-gold-light) !important;
  border: 1px solid rgba(200, 160, 80, .42);
  border-radius: 999px;
  width: 50px;
  height: 50px;
}

/* Mobile/tablet drawer for existing WordPress menu */
@media (max-width: 1175px) {
  body.page-template-page-hero-test .menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    background: rgba(5, 5, 4, .98) !important;
    color: var(--qhero-text) !important;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .5s ease, visibility 0s linear .65s !important;
    overflow-y: auto !important;
  }

  body.page-template-page-hero-test.qsmk-menu-open .menu,
  body.page-template-page-hero-test .menu.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1), opacity .5s ease !important;
  }

  body.page-template-page-hero-test .menu .menu_content {
    width: 100% !important;
    padding: 92px 28px 38px !important;
  }

  body.page-template-page-hero-test .mobile_nav > li,
  body.page-template-page-hero-test #mm > li {
    border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  }

  body.page-template-page-hero-test .mobile_nav > li > a,
  body.page-template-page-hero-test #mm > li > a {
    color: var(--qhero-text) !important;
    font-size: clamp(18px, 4.2vw, 25px) !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
    padding-block: 18px !important;
  }

  body.page-template-page-hero-test .mobile_nav li ul li a,
  body.page-template-page-hero-test .mobile_nav .sub-menu li a,
  body.page-template-page-hero-test #mm li ul li a,
  body.page-template-page-hero-test #mm .sub-menu li a {
    color: rgba(244, 238, 228, .72) !important;
    font-size: 15px !important;
    padding-block: 9px !important;
  }

  body.page-template-page-hero-test .submenu-toggle {
    background: rgba(200, 160, 80, .08) !important;
    color: var(--qhero-gold-light) !important;
  }

  body.page-template-page-hero-test .menu_close {
    top: 28px !important;
    right: 28px !important;
    width: 48px !important;
    height: 48px !important;
    border: 1px solid rgba(200, 160, 80, .46);
    border-radius: 999px;
    color: var(--qhero-gold-light) !important;
  }

  body.page-template-page-hero-test .menu_close i {
    color: var(--qhero-gold-light) !important;
  }

  body.page-template-page-hero-test.lang-ar .menu,
  body.page-template-page-hero-test.qsmk-rtl .menu {
    transform: translateX(-100%) !important;
    direction: rtl;
  }

  body.page-template-page-hero-test.lang-ar.qsmk-menu-open .menu,
  body.page-template-page-hero-test.qsmk-rtl.qsmk-menu-open .menu,
  body.page-template-page-hero-test.lang-ar .menu.active,
  body.page-template-page-hero-test.qsmk-rtl .menu.active {
    transform: translateX(0) !important;
  }
}

/* ============================================================
   Hero slider
   ============================================================ */

.qsmk-timeline-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--qhero-bg);
  color: var(--qhero-text);
  font-family: var(--qhero-body);
  isolation: isolate;
  padding-top: 114px;
}

.qsmk-hero-bgs,
.qsmk-hero-bg,
.qsmk-hero-overlay,
.qsmk-hero-grain {
  position: absolute;
  inset: 0;
}

.qsmk-hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1.25s var(--qhero-ease), transform 8s ease;
  z-index: 1;
}

.qsmk-hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.qsmk-hero-bg.is-exiting {
  opacity: 0;
  transform: scale(.985);
  transition-duration: .9s;
}

.qsmk-hero-overlay {
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.12) 0%, rgba(0,0,0,.46) 62%, rgba(0,0,0,.76) 100%),
    linear-gradient(to bottom, rgba(5,5,4,.18) 0%, rgba(5,5,4,.28) 40%, rgba(5,5,4,.86) 100%),
    linear-gradient(to right, rgba(5,5,4,.62) 0%, rgba(5,5,4,.08) 34%, rgba(5,5,4,.08) 66%, rgba(5,5,4,.62) 100%);
  pointer-events: none;
}

.qsmk-hero-grain {
  z-index: 3;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.qsmk-hero-progress {
  position: absolute;
  top: 114px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--qhero-gold), rgba(200, 160, 80, .2));
  z-index: 60;
}

.qsmk-hero-counter {
  position: absolute;
  top: clamp(150px, 18vh, 188px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 128px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(244, 238, 228, .9);
  background: rgba(7, 7, 5, .32);
  border: 1px solid rgba(200, 160, 80, .12);
  font-family: var(--qhero-display);
  font-size: 16px;
  letter-spacing: .14em;
}

.qsmk-hero-ring {
  position: absolute;
  inset: -11px 28px auto auto;
  width: 76px;
  height: 76px;
  opacity: .42;
  pointer-events: none;
}

.qsmk-hero-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.qsmk-hero-ring circle {
  fill: none;
  stroke: var(--qhero-gold);
  stroke-width: 1;
  stroke-dasharray: 195;
  stroke-dashoffset: 195;
}

.qsmk-counter-slash {
  color: var(--qhero-gold);
  font-size: 26px;
  transform: rotate(18deg);
  opacity: .8;
}

.qsmk-hero-contents {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

.qsmk-hero-slide {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: min(820px, calc(100vw - 44px));
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s linear .55s;
}

.qsmk-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease;
}

.qsmk-slide-label,
.qsmk-slide-year,
.qsmk-slide-desc,
.qsmk-slide-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .75s ease, transform .75s ease;
}

.qsmk-hero-slide.is-active .qsmk-slide-label,
.qsmk-hero-slide.is-active .qsmk-slide-year,
.qsmk-hero-slide.is-active .qsmk-slide-desc,
.qsmk-hero-slide.is-active .qsmk-slide-link {
  opacity: 1;
  transform: translateY(0);
}

.qsmk-slide-label {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--qhero-gold-light);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .42em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.8);
  white-space: nowrap;
}

.qsmk-slide-year {
  display: block;
  color: rgba(255,255,255,.92);
  font-family: var(--qhero-display);
  font-size: clamp(82px, 10vw, 156px);
  font-weight: 300;
  line-height: .82;
  letter-spacing: -.045em;
  text-shadow: 0 4px 34px rgba(0,0,0,.86), 0 1px 0 rgba(255,255,255,.08);
}

.qsmk-slide-desc {
  max-width: 760px;
  margin: 28px auto 0;
  color: #fff;
  font-family: var(--qhero-body);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.55;
  text-shadow: 0 3px 12px rgba(0,0,0,.96), 0 0 28px rgba(0,0,0,.82);
}

.qsmk-slide-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 210px;
  min-height: 56px;
  margin-top: 34px;
  padding: 0 34px;
  border: 1px solid rgba(200, 160, 80, .72);
  color: var(--qhero-gold-light);
  background: rgba(7, 7, 5, .50);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .36em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.qsmk-slide-link:hover,
.qsmk-slide-link:focus {
  background: rgba(200,160,80,.16);
  color: #fff;
  transform: translateY(-2px);
}

.qsmk-side-control {
  position: absolute;
  top: 54%;
  z-index: 22;
  border: 0;
  background: transparent;
  color: rgba(244, 238, 228, .9);
  cursor: pointer;
  padding: 16px 24px;
  font-family: var(--qhero-display);
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0,0,0,.9);
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

.qsmk-side-control:hover,
.qsmk-side-control:focus {
  color: var(--qhero-gold-light);
  transform: translateY(-2px);
}

.qsmk-side-control--prev { left: clamp(24px, 5vw, 108px); }
.qsmk-side-control--next { right: clamp(24px, 5vw, 108px); }

.qsmk-cursor-arrow {
  position: fixed;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(200,160,80,.52);
  background: rgba(7,7,5,.36);
  color: var(--qhero-gold-light);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 25px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}

.qsmk-cursor-arrow.is-visible {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.qsmk-hero-social {
  position: absolute;
  left: 50%;
  bottom: 142px;
  transform: translateX(-50%);
  z-index: 24;
  display: flex;
  gap: 12px;
}

.qsmk-hero-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200,160,80,.38);
  color: rgba(244,238,228,.8);
  background: rgba(7,7,5,.38);
  text-decoration: none;
  font: 700 19px/1 Arial, sans-serif;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.qsmk-hero-social a:hover,
.qsmk-hero-social a:focus {
  color: #fff;
  border-color: var(--qhero-gold-light);
  background: rgba(200,160,80,.16);
}

.qsmk-swipe-hint {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 197px;
  transform: translateX(-50%);
  z-index: 24;
  color: rgba(200,160,80,.64);
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: .32em;
  text-transform: uppercase;
  pointer-events: none;
}

.qsmk-timeline-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 23;
  padding: 0 clamp(46px, 8vw, 132px);
}

.qsmk-timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 88px;
}

.qsmk-timeline-ruler {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  height: 1px;
  background: rgba(244,238,228,.32);
  pointer-events: none;
}

.qsmk-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 0;
  background: var(--qhero-gold-light);
  transition: width .55s var(--qhero-ease);
}

.qsmk-timeline-node {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  max-width: 130px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: rgba(244,238,228,.52);
}

.qsmk-timeline-thumb {
  width: 82px;
  height: 48px;
  border: 1px solid rgba(200,160,80,.22);
  background: rgba(0,0,0,.38);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.qsmk-timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: grayscale(.35);
  display: block;
  transition: opacity .25s ease, filter .25s ease;
}

.qsmk-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244,238,228,.42);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.qsmk-timeline-year {
  color: inherit;
  font-family: var(--qhero-display);
  font-size: 15px;
  letter-spacing: .18em;
}

.qsmk-timeline-node.is-active {
  color: var(--qhero-gold-light);
}

.qsmk-timeline-node.is-active .qsmk-timeline-thumb {
  border-color: var(--qhero-gold-light);
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(200,160,80,.22), 0 12px 28px rgba(0,0,0,.45);
}

.qsmk-timeline-node.is-active .qsmk-timeline-thumb img {
  opacity: 1;
  filter: none;
}

.qsmk-timeline-node.is-active .qsmk-timeline-dot {
  background: var(--qhero-gold-light);
  transform: scale(1.85);
  box-shadow: 0 0 13px rgba(232,200,116,.58);
}

/* RTL hero behavior */
.qsmk-timeline-hero[data-dir="rtl"] {
  direction: rtl;
}

.qsmk-timeline-hero[data-dir="rtl"] .qsmk-slide-desc,
.qsmk-timeline-hero[data-dir="rtl"] .qsmk-slide-label {
  letter-spacing: normal;
}

.qsmk-timeline-hero[data-dir="rtl"] .qsmk-side-control--prev { right: clamp(24px, 5vw, 108px); left: auto; }
.qsmk-timeline-hero[data-dir="rtl"] .qsmk-side-control--next { left: clamp(24px, 5vw, 108px); right: auto; }

/* Responsive */
@media (max-width: 1175px) {
  .qsmk-timeline-hero {
    padding-top: 96px;
  }
  .qsmk-hero-progress { top: 96px; }
}

@media (max-width: 900px) {
  .qsmk-timeline-hero {
    min-height: 780px;
  }

  .qsmk-hero-counter {
    top: 128px;
    width: 112px;
    height: 56px;
  }

  .qsmk-hero-slide {
    top: 45%;
    width: min(620px, calc(100vw - 34px));
  }

  .qsmk-slide-label {
    font-size: 10px;
    letter-spacing: .30em;
    white-space: normal;
  }

  .qsmk-slide-year {
    font-size: clamp(70px, 18vw, 112px);
  }

  .qsmk-slide-desc {
    font-size: 17px;
    line-height: 1.48;
  }

  .qsmk-side-control {
    top: auto;
    bottom: 158px;
    font-size: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(200,160,80,.42);
    background: rgba(7,7,5,.42);
  }

  .qsmk-side-control--prev { left: 34px; }
  .qsmk-side-control--next { right: 34px; }

  .qsmk-side-control--prev::before,
  .qsmk-side-control--next::before {
    font-size: 24px;
    color: var(--qhero-gold-light);
  }
  .qsmk-side-control--prev::before { content: '\2190'; }
  .qsmk-side-control--next::before { content: '\2192'; }

  .qsmk-cursor-arrow { display: none !important; }
  .qsmk-swipe-hint { display: block; }

  .qsmk-hero-social { bottom: 136px; }
  .qsmk-swipe-hint { bottom: 192px; }

  .qsmk-timeline-nav {
    bottom: 22px;
    padding-inline: 28px;
  }

  .qsmk-timeline-track { min-height: 70px; }
  .qsmk-timeline-ruler { bottom: 31px; }
  .qsmk-timeline-thumb { width: 58px; height: 34px; }
  .qsmk-timeline-year { display: none; }
}

@media (max-width: 560px) {
  .qsmk-timeline-hero {
    min-height: 760px;
  }

  .qsmk-hero-slide {
    top: 45%;
  }

  .qsmk-slide-desc {
    font-size: 16px;
    line-height: 1.45;
  }

  .qsmk-slide-link {
    min-width: 190px;
    min-height: 52px;
    margin-top: 26px;
  }

  .qsmk-hero-social {
    bottom: 126px;
  }

  .qsmk-swipe-hint {
    bottom: 182px;
  }

  .qsmk-side-control {
    bottom: 134px;
    width: 48px;
    height: 48px;
  }

  .qsmk-side-control--prev { left: 22px; }
  .qsmk-side-control--next { right: 22px; }

  .qsmk-timeline-nav {
    padding-inline: 20px;
  }

  .qsmk-timeline-thumb {
    width: 48px;
    height: 29px;
  }
}

@media (max-height: 700px) {
  .qsmk-timeline-hero { min-height: 680px; }
  .qsmk-hero-counter { top: 124px; }
  .qsmk-hero-slide { top: 45%; }
  .qsmk-slide-year { font-size: clamp(58px, 14vh, 105px); }
  .qsmk-slide-desc { font-size: 16px; max-width: 660px; }
  .qsmk-swipe-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qsmk-hero-bg,
  .qsmk-hero-slide,
  .qsmk-slide-label,
  .qsmk-slide-year,
  .qsmk-slide-desc,
  .qsmk-slide-link,
  .qsmk-timeline-fill,
  body.page-template-page-hero-test .menu {
    transition: none !important;
  }
}

/* ============================================================
   STEP 2 WORDPRESS INTEGRATION FIXES
   Stronger scoped header reset for qsmk2 real header on Hero Test.
   Keeps the menu admin-controlled; only changes the visual layer.
   ============================================================ */

html body.page-template-page-hero-test .header,
html body.page-template-page-hero-test .header *,
html body.page-template-page-hero-test .top_bar,
html body.page-template-page-hero-test .top_bar_container,
html body.page-template-page-hero-test .top_bar_content,
html body.page-template-page-hero-test .header_container,
html body.page-template-page-hero-test .header_container .container,
html body.page-template-page-hero-test .header_container .row,
html body.page-template-page-hero-test .header_container .col,
html body.page-template-page-hero-test .header_content {
  box-sizing: border-box;
}

html body.page-template-page-hero-test .header,
html body.page-template-page-hero-test .top_bar,
html body.page-template-page-hero-test .top_bar_container,
html body.page-template-page-hero-test .top_bar_content,
html body.page-template-page-hero-test .header_container,
html body.page-template-page-hero-test .header_container .container,
html body.page-template-page-hero-test .header_container .row,
html body.page-template-page-hero-test .header_container .col,
html body.page-template-page-hero-test .header_content {
  background: #050504 !important;
  background-color: #050504 !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.page-template-page-hero-test .header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  border-bottom: 1px solid rgba(200,160,80,.22) !important;
}

html body.page-template-page-hero-test .top_bar {
  height: 38px !important;
  min-height: 38px !important;
  border-bottom: 1px solid rgba(200,160,80,.16) !important;
  overflow: visible !important;
}

html body.page-template-page-hero-test .top_bar .container,
html body.page-template-page-hero-test .header_container .container {
  width: min(1500px, calc(100vw - 88px)) !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html body.page-template-page-hero-test .top_bar_content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
}

html body.page-template-page-hero-test .top_bar_contact_list {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.page-template-page-hero-test .top_bar_contact_list li {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.page-template-page-hero-test .top_bar_contact_list li i,
html body.page-template-page-hero-test .top_bar_contact_list li div {
  color: rgba(244,238,228,.78) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
}

html body.page-template-page-hero-test .top_bar_contact_list li div {
  margin-left: 8px !important;
}

html body.page-template-page-hero-test .header_container {
  height: 88px !important;
  min-height: 88px !important;
  border-bottom: 1px solid rgba(200,160,80,.08) !important;
  overflow: visible !important;
}

html body.page-template-page-hero-test .header_content {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 26px !important;
  height: 88px !important;
  min-height: 88px !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body.page-template-page-hero-test .logo_container {
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  overflow: visible !important;
}

html body.page-template-page-hero-test .qsmk-logo-link,
html body.page-template-page-hero-test .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  height: 88px !important;
  background: transparent !important;
}

html body.page-template-page-hero-test .qsmk-header-logo,
html body.page-template-page-hero-test .custom-logo {
  display: block !important;
  width: 76px !important;
  max-width: 76px !important;
  height: auto !important;
  background: transparent !important;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,.48)) !important;
}

html body.page-template-page-hero-test .main_nav_contaner {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

html body.page-template-page-hero-test .main_nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  white-space: nowrap !important;
}

html body.page-template-page-hero-test .main_nav > li {
  position: relative !important;
  margin: 0 22px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

html body.page-template-page-hero-test .main_nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 88px !important;
  padding: 0 !important;
  color: #f4eee4 !important;
  background: transparent !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .055em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.72) !important;
}

html body.page-template-page-hero-test .main_nav > li > a:hover,
html body.page-template-page-hero-test .main_nav > li.current-menu-item > a,
html body.page-template-page-hero-test .main_nav > li.current_page_item > a {
  color: #e8c874 !important;
}

html body.page-template-page-hero-test .main_nav .sub-menu,
html body.page-template-page-hero-test .main_nav li ul {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  display: none !important;
  min-width: 270px !important;
  margin: 0 !important;
  padding: 12px !important;
  background: #080705 !important;
  border: 1px solid rgba(200,160,80,.32) !important;
  box-shadow: 0 22px 50px rgba(0,0,0,.6) !important;
  z-index: 100000 !important;
}

html body.page-template-page-hero-test .main_nav li:hover > .sub-menu,
html body.page-template-page-hero-test .main_nav li:hover > ul,
html body.page-template-page-hero-test .main_nav li:focus-within > .sub-menu,
html body.page-template-page-hero-test .main_nav li:focus-within > ul {
  display: block !important;
}

html body.page-template-page-hero-test .main_nav .sub-menu li,
html body.page-template-page-hero-test .main_nav li ul li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body.page-template-page-hero-test .main_nav .sub-menu li a,
html body.page-template-page-hero-test .main_nav li ul li a {
  display: block !important;
  padding: 16px 18px !important;
  color: rgba(244,238,228,.86) !important;
  background: rgba(200,160,80,.045) !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

html body.page-template-page-hero-test .main_nav .sub-menu li a:hover,
html body.page-template-page-hero-test .main_nav li ul li a:hover {
  color: #e8c874 !important;
  background: rgba(200,160,80,.12) !important;
}

html body.page-template-page-hero-test .desktop_lang_switcher,
html body.page-template-page-hero-test .top_bar .navic {
  margin-left: auto !important;
  background: transparent !important;
}

html body.page-template-page-hero-test .qsmk-desktop-lang-list {
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1px solid rgba(200,160,80,.24) !important;
  background: transparent !important;
}

html body.page-template-page-hero-test .qsmk-desktop-lang-item a {
  height: 38px !important;
  min-width: 48px !important;
  color: rgba(244,238,228,.72) !important;
  background: transparent !important;
  font-weight: 800 !important;
}

html body.page-template-page-hero-test .qsmk-desktop-lang-item.is-active a,
html body.page-template-page-hero-test .qsmk-desktop-lang-item a:hover {
  background: #99151f !important;
  color: #fff !important;
}

html body.page-template-page-hero-test .qsmk-timeline-hero {
  min-height: 100vh !important;
  padding-top: 126px !important;
}

@media (max-width: 1320px) {
  html body.page-template-page-hero-test .main_nav > li { margin-right: 14px !important; }
  html body.page-template-page-hero-test .main_nav > li > a { font-size: 13px !important; letter-spacing: .04em !important; }
}

@media (max-width: 1175px) {
  html body.page-template-page-hero-test .top_bar .container,
  html body.page-template-page-hero-test .header_container .container {
    width: calc(100vw - 40px) !important;
  }

  html body.page-template-page-hero-test .header_container,
  html body.page-template-page-hero-test .header_content {
    height: 78px !important;
    min-height: 78px !important;
  }

  html body.page-template-page-hero-test .logo_container,
  html body.page-template-page-hero-test .qsmk-logo-link,
  html body.page-template-page-hero-test .custom-logo-link {
    height: 78px !important;
    width: 78px !important;
    flex-basis: 78px !important;
  }

  html body.page-template-page-hero-test .qsmk-header-logo,
  html body.page-template-page-hero-test .custom-logo {
    width: 66px !important;
    max-width: 66px !important;
  }

  html body.page-template-page-hero-test .main_nav_contaner {
    display: none !important;
  }

  html body.page-template-page-hero-test .hamburger {
    display: flex !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border: 1px solid rgba(200,160,80,.46) !important;
    border-radius: 999px !important;
    color: #e8c874 !important;
    background: transparent !important;
  }

  html body.page-template-page-hero-test .qsmk-timeline-hero {
    padding-top: 116px !important;
  }
}

@media (max-width: 767px) {
  html body.page-template-page-hero-test .top_bar {
    height: 34px !important;
    min-height: 34px !important;
  }

  html body.page-template-page-hero-test .top_bar_content {
    height: 34px !important;
    min-height: 34px !important;
  }

  html body.page-template-page-hero-test .top_bar_contact_list li:first-child {
    display: none !important;
  }

  html body.page-template-page-hero-test .qsmk-desktop-lang-item a {
    height: 34px !important;
    min-width: 42px !important;
  }

  html body.page-template-page-hero-test .header_container,
  html body.page-template-page-hero-test .header_content {
    height: 72px !important;
    min-height: 72px !important;
  }

  html body.page-template-page-hero-test .qsmk-timeline-hero {
    padding-top: 106px !important;
  }
}

/* URL-based language fallback helpers: if WP does not add correct body classes,
   this keeps Arabic drawer legible once data-dir='rtl' is printed by the template. */
html[dir="rtl"] body.page-template-page-hero-test .main_nav,
html body.page-template-page-hero-test.qsmk-rtl .main_nav,
html body.lang-ar.page-template-page-hero-test .main_nav {
  direction: rtl !important;
}
