/* =====================================================================
   Premium header + custom dropdowns (loaded after wdm.css / wdm-v2.css)
   ===================================================================== */

/* ---------- announcement bar ---------- */
.wdm-top { position: relative; z-index: 1001; background: linear-gradient(90deg, #12142b 0%, #3a0d1a 45%, #b10f26 100%); color: #e9eaf4; font-size: 13px; font-weight: 600; overflow: hidden;
  transition: max-height .4s var(--wdm-ease), opacity .3s; max-height: 44px; }
.wdm-top.is-gone { max-height: 0; opacity: 0; }
.wdm-top::after { content: ''; position: absolute; top: 0; left: -30%; width: 22%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-20deg); animation: wdm-bar-shine 6s ease-in-out infinite; }
@keyframes wdm-bar-shine { 0%, 55% { left: -30%; } 100% { left: 130%; } }
.wdm-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; position: relative; z-index: 1; }
.wdm-top__msg { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wdm-top__msg > i { color: #ffd166; margin-right: 6px; }
.wdm-top a { color: #fff !important; }
.wdm-top__msg a { text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.wdm-top__right { display: flex; gap: 18px; }
.wdm-top__right a { opacity: .9; } .wdm-top__right a:hover { opacity: 1; }
.wdm-top__right i { margin-right: 5px; }
.wdm-top__x { background: transparent; border: 0; color: #fff; opacity: .7; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.wdm-top__x:hover { opacity: 1; background: rgba(255,255,255,.12); }
@media (max-width: 767px) { .wdm-top__right { display: none; } .wdm-top { font-size: 12px; } }

/* ---------- header ---------- */
.wdm-header { background: rgba(255,255,255,.82) !important; -webkit-backdrop-filter: saturate(200%) blur(20px); backdrop-filter: saturate(200%) blur(20px); border-bottom: 1px solid rgba(240,221,225,.7); transition: box-shadow .3s, background .3s; }
.wdm-header.is-scrolled { background: rgba(255,255,255,.94) !important; box-shadow: 0 10px 34px rgba(160,20,40,.12); }
.wdm-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #ef4a5e 30%, #d81830 60%, #3b6cf6, transparent); opacity: 0; transition: opacity .3s; }
.wdm-header.is-scrolled::after { opacity: .85; }
.wdm-header__in { height: 80px; transition: height .3s var(--wdm-ease); }
.wdm-header.is-scrolled .wdm-header__in { height: 68px; }
.wdm-logo img { height: 48px; transition: height .3s var(--wdm-ease), transform .3s; }
.wdm-header.is-scrolled .wdm-logo img { height: 42px; }
.wdm-logo:hover img { transform: scale(1.03); }

/* pill nav with sliding indicator */
.wdm-navwrap { flex: 1; display: flex; justify-content: center; }
.wdm-nav { position: relative; gap: 2px !important; padding: 5px !important; background: rgba(255,255,255,.75); border: 1px solid var(--wdm-line-2); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(160,20,40,.08), inset 0 1px 0 #fff; }
.wdm-nav__bar { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--wdm-red-50); border: 1px solid var(--wdm-red-100);
  transition: left .35s var(--wdm-ease), width .35s var(--wdm-ease), opacity .25s; opacity: 0; z-index: 0; pointer-events: none; }
.wdm-nav > li { position: relative; z-index: 1; }
.wdm-nav > li > a { padding: 10px 17px !important; font-weight: 700 !important; font-size: 14.5px !important; background: transparent !important; border-radius: 999px; gap: 8px !important; color: var(--wdm-ink-2) !important; }
.wdm-nav > li > a > i:first-child { font-size: 12.5px; color: var(--wdm-muted); transition: color .25s, transform .35s var(--wdm-ease); }
.wdm-nav > li > a:hover, .wdm-nav > li > a.active, .wdm-nav > li:hover > a { color: var(--wdm-red) !important; }
.wdm-nav > li > a:hover > i:first-child, .wdm-nav > li > a.active > i:first-child { color: var(--wdm-red); transform: translateY(-1px) rotate(-8deg); }
.wdm-nav > li > a.active { background: linear-gradient(135deg, #f0213a, #b10f26) !important; color: #fff !important; box-shadow: 0 8px 18px rgba(216,24,48,.32); }
.wdm-nav > li > a.active > i:first-child { color: #fff; }
.wdm-caret { font-size: 9px !important; margin-left: 2px; transition: transform .3s var(--wdm-ease); }
.wdm-nav > li:hover .wdm-caret { transform: rotate(180deg); }

/* mega dropdown */
.wdm-mega { position: absolute; top: calc(100% + 16px); left: 50%; width: 560px; transform: translate(-50%, 10px); opacity: 0; visibility: hidden; transition: all .28s var(--wdm-ease);
  background: #fff; border: 1px solid var(--wdm-line-2); border-radius: 24px; padding: 14px; box-shadow: 0 30px 70px rgba(160,20,40,.2), 0 2px 6px rgba(18,20,43,.05); }
.wdm-mega::before { content: ''; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; background: #fff; border-left: 1px solid var(--wdm-line-2); border-top: 1px solid var(--wdm-line-2); transform: translateX(-50%) rotate(45deg); }
.wdm-nav > li.has-mega::after { content: ''; position: absolute; left: -20px; right: -20px; top: 100%; height: 22px; }
.wdm-nav > li.has-mega:hover > .wdm-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.wdm-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.wdm-mega__item { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 16px; color: var(--wdm-ink) !important; transition: background .2s, transform .25s var(--wdm-ease); }
.wdm-mega__item:hover { background: var(--wdm-red-50); transform: translateX(3px); }
.wdm-mega__ic { width: 42px; height: 42px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--wdm-red-50); color: var(--wdm-red); border: 1px solid var(--wdm-red-100); transition: all .3s var(--wdm-ease); }
.wdm-mega__item:hover .wdm-mega__ic { background: var(--wdm-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(216,24,48,.3); }
.wdm-mega__item b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.wdm-mega__item small { display: block; font-size: 12px; font-weight: 600; color: var(--wdm-muted); margin-top: 2px; }
.wdm-mega__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 13px 16px; border-radius: 16px; background: linear-gradient(90deg, #12142b, #3a0d1a 55%, #b10f26);
  color: #fff !important; font-weight: 700; font-size: 13.5px; }
.wdm-mega__foot i { transition: transform .3s var(--wdm-ease); } .wdm-mega__foot:hover i.fa-arrow-right { transform: translateX(5px); }

/* right side */
.wdm-header__cta { gap: 10px !important; }
.wdm-iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--wdm-line-2); background: #fff; color: var(--wdm-ink); font-size: 15px; cursor: pointer; transition: all .25s var(--wdm-ease); }
.wdm-iconbtn:hover { color: var(--wdm-red); border-color: var(--wdm-red); box-shadow: 0 8px 18px rgba(216,24,48,.16); }
.wdm-user { position: relative; }
.wdm-user__btn { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1.5px solid var(--wdm-line-2); background: #fff; font: 700 14px var(--wdm-font); color: var(--wdm-ink); cursor: pointer; transition: .25s; }
.wdm-user__btn:hover { border-color: var(--wdm-red); box-shadow: 0 8px 18px rgba(216,24,48,.16); }
.wdm-user__btn > i { font-size: 10px; color: var(--wdm-muted); transition: transform .3s; }
.wdm-user.is-open .wdm-user__btn > i { transform: rotate(180deg); }
.wdm-user__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--wdm-grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; }
.wdm-user__menu { position: absolute; right: 0; top: calc(100% + 12px); width: 240px; background: #fff; border: 1px solid var(--wdm-line-2); border-radius: 20px; padding: 8px; box-shadow: 0 26px 60px rgba(160,20,40,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--wdm-ease); }
.wdm-user.is-open .wdm-user__menu { opacity: 1; visibility: visible; transform: none; }
.wdm-user__head { padding: 12px 14px; border-bottom: 1px solid var(--wdm-line); margin-bottom: 6px; }
.wdm-user__head b { display: block; color: var(--wdm-ink); } .wdm-user__head small { color: var(--wdm-muted); font-weight: 600; }
.wdm-user__menu a, .wdm-user__menu button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 11px 14px; border-radius: 13px; font: 700 14px var(--wdm-font); color: var(--wdm-ink-2) !important; cursor: pointer; text-align: left; }
.wdm-user__menu a:hover, .wdm-user__menu button:hover { background: var(--wdm-red-50); color: var(--wdm-red) !important; }
.wdm-user__menu i { width: 18px; color: var(--wdm-red); }

/* search overlay */
.wdm-search { position: fixed; inset: 0; z-index: 1200; background: rgba(18,20,43,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh;
  opacity: 0; visibility: hidden; transition: all .3s; }
.wdm-search.is-open { opacity: 1; visibility: visible; }
.wdm-search__box { width: min(640px, 92vw); background: #fff; border-radius: 26px; padding: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.3); transform: translateY(-16px) scale(.98); transition: transform .35s var(--wdm-ease); }
.wdm-search.is-open .wdm-search__box { transform: none; }
.wdm-search__form { display: flex; align-items: center; gap: 14px; border: 2px solid var(--wdm-red); border-radius: 18px; padding: 0 16px; box-shadow: 0 0 0 5px rgba(216,24,48,.1); }
.wdm-search__form > i { color: var(--wdm-red); font-size: 18px; }
.wdm-search__form input { flex: 1; border: 0; outline: 0; padding: 18px 0; font: 600 17px var(--wdm-font); color: var(--wdm-ink); background: transparent; }
.wdm-search__form kbd { font: 700 11px var(--wdm-font); background: var(--wdm-soft-2); border: 1px solid var(--wdm-line-2); border-radius: 8px; padding: 4px 8px; color: var(--wdm-muted); }
.wdm-search__pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--wdm-muted); font-weight: 700; }
.wdm-search__pop a { padding: 7px 14px; border-radius: 999px; background: var(--wdm-red-50); color: var(--wdm-red) !important; font-weight: 700; border: 1px solid var(--wdm-red-100); }
.wdm-search__pop a:hover { background: var(--wdm-red); color: #fff !important; }

/* mobile drawer links */
.wdm-mobile a.wdm-m-link { display: flex !important; align-items: center; gap: 14px; padding: 14px 8px !important; font-weight: 700; }
.wdm-mobile a.wdm-m-link i { width: 36px; height: 36px; border-radius: 12px; background: var(--wdm-red-50); color: var(--wdm-red); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

@media (max-width: 1199px) { .wdm-nav > li > a > i:first-child { display: none; } .wdm-nav > li > a { padding: 10px 14px !important; } }
@media (max-width: 991px) {
  .wdm-navwrap { display: none; }
  .wdm-header__in { height: 68px; }
  .wdm-header__cta { margin-left: auto; }
  .wdm-user__name { display: none; }
  .wdm-user__btn { padding: 5px; } .wdm-user__btn > i { display: none; }
}

/* ---------- v2: clean minimal navbar (overrides the pill style above) ---------- */
.wdm-header { background: rgba(255,255,255,.92) !important; border-bottom: 1px solid var(--wdm-line); }
.wdm-header::after { display: none; }
.wdm-header__in { height: 76px; }
.wdm-header.is-scrolled .wdm-header__in { height: 66px; }
.wdm-header.is-scrolled { box-shadow: 0 6px 24px rgba(18,20,43,.07); }
.wdm-nav { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 6px !important; }
.wdm-nav__bar { display: none; }
.wdm-nav > li > a { position: relative; padding: 12px 16px !important; font-weight: 600 !important; font-size: 15px !important; color: var(--wdm-ink-2) !important; background: transparent !important; box-shadow: none !important; border-radius: 10px; }
.wdm-nav > li > a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--wdm-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--wdm-ease); }
.wdm-nav > li > a:hover, .wdm-nav > li:hover > a { color: var(--wdm-ink) !important; }
.wdm-nav > li > a:hover::after, .wdm-nav > li:hover > a::after { transform: scaleX(1); }
.wdm-nav > li > a.active { color: var(--wdm-red) !important; background: transparent !important; box-shadow: none !important; }
.wdm-nav > li > a.active::after { transform: scaleX(1); }
.wdm-nav > li > a > i:first-child { display: none !important; }
.wdm-nav > li > a .wdm-caret { display: inline-block !important; font-size: 9px; margin-left: 6px; }
.wdm-mega { top: calc(100% + 12px); border-radius: 18px; width: 520px; box-shadow: 0 24px 60px rgba(18,20,43,.14); }
.wdm-mega__foot { background: var(--wdm-red-50); color: var(--wdm-red) !important; border: 1px solid var(--wdm-red-100); }
.wdm-iconbtn { border: 0; background: transparent; width: 42px; height: 42px; }
.wdm-iconbtn:hover { background: var(--wdm-red-50); box-shadow: none; }
