/* ════════════════════════════════════════════════
   EverestScales Blog — Shared CSS
   Direct values only (no :root variables)
   Unique prefix: es-
════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.es-page-body {
  font-family: 'Barlow', sans-serif;
  background: #f2efe9;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* ── ADMIN BAR ── */
.es-adminbar {
  background: #d72b2b;
  padding: 9px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.es-adminbar-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.es-adminbar-links { display: flex; gap: 10px; }
.es-adminbar-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(0,0,0,0.22);
  padding: 6px 14px;
  transition: background 0.2s;
}
.es-adminbar-links a:hover { background: rgba(0,0,0,0.42); }



/* ── BREADCRUMB ── */
.es-breadcrumb {
  background: #111111;
  padding: 12px 48px;
  border-bottom: 1px solid #222222;
}
.es-breadcrumb-row {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.es-breadcrumb-row a,
.es-breadcrumb-row span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555555;
  text-decoration: none;
  transition: color 0.2s;
}
.es-breadcrumb-row a:hover { color: #d72b2b; }
.es-bc-sep { color: #333333; font-size: 10px; }
.es-bc-current { color: #d72b2b !important; }

/* ── CAT BADGE ── */
.es-cat-badge {
  display: inline-block;
  background: #d72b2b;
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 11px;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 960px) {
  .es-breadcrumb { padding: 10px 24px; }
  .es-adminbar { padding: 9px 24px; }
}

/* ════════════════════════════════════════════════
   NAVBAR — ev- prefix (matches index.html exactly)
════════════════════════════════════════════════ */

.ev-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2c2c2c;
  padding: 0 28px;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

/* Logo */
.ev-navbar__logo {
  flex-shrink: 0;
  display: flex;
  background-color: black;
  align-items: center;
}
.ev-navbar__logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links — desktop */
.ev-navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  height: 100%;
  flex: 1;
  justify-content: center;
}

.ev-navbar__item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ev-navbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  height: 100%;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #f0f0f0;
  text-decoration: none;
  position: relative;
  transition: 0.22s ease;
  white-space: nowrap;
}

/* Red underline on hover / active */
.ev-navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: #d72b2b;
  border-radius: 3px 3px 0 0;
  transition: 0.22s ease;
}
.ev-navbar__item:hover > .ev-navbar__link::after { width: 65%; }
.ev-navbar__item:hover > .ev-navbar__link { color: #fff; }

/* Active link */
.ev-navbar__link--active { color: #d72b2b !important; }
.ev-navbar__link--active::after { width: 65% !important; }

/* Chevron */
.ev-navbar__chevron {
  font-size: 10px;
  color: #aaa;
  transition: transform 0.22s ease, color 0.22s ease;
}
.ev-navbar__item--has-dropdown:hover .ev-navbar__chevron {
  transform: rotate(180deg);
  color: #d72b2b;
}
.ev-navbar__chevron--open {
  transform: rotate(180deg) !important;
  color: #d72b2b !important;
}

/* ── MEGA DROPDOWN — DESKTOP ── */
.ev-dropdown {
  display: grid;
  grid-template-columns: repeat(3, 210px);
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  border-top: 3px solid #d72b2b;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.ev-navbar__item--has-dropdown:hover .ev-dropdown,
.ev-navbar__item--has-dropdown:focus-within .ev-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ev-dropdown__col {
  padding-bottom: 14px;
  border-right: 1px solid #e8e8e8;
}
.ev-dropdown__col:last-child { border-right: none; }

.ev-dropdown__heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: #d72b2b;
  padding: 9px 14px;
  margin-bottom: 4px;
}

.ev-dropdown__list { list-style: none; }

.ev-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}
.ev-dropdown__item:hover {
  background: #fff3f3;
  color: #d72b2b;
  padding-left: 20px;
}

.ev-dropdown__icon {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 3px;
  background: #efefef;
  flex-shrink: 0;
}

/* ── RIGHT SECTION ── */
.ev-navbar__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ev-navbar__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ev-navbar__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ev-navbar__social-btn:hover {
  transform: scale(1.13);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.ev-navbar__social-btn--fb { background: #FF2525; }
.ev-navbar__social-btn--ig {
  /*background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);*/
  background:#FF2525;
}

/* ── HAMBURGER (hidden on desktop) ── */
.ev-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.22s ease;
}
.ev-hamburger:hover { background: rgba(255,255,255,0.08); }

.ev-hamburger__bar {
  display: block;
  width: 24px; height: 2px;
  background: #f0f0f0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.ev-hamburger--open .ev-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ev-hamburger--open .ev-hamburger__bar:nth-child(2) { opacity: 0; width: 0; }
.ev-hamburger--open .ev-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BACKDROP ── */
.ev-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ev-nav-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── TABLET & MOBILE (≤ 991px) ── */
@media (max-width: 991px) {
  .ev-navbar { height: 64px; padding: 0 20px; justify-content: space-between; }
  .ev-navbar__logo img { height: 70px; }

  .ev-navbar__links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    gap: 0;
    position: fixed;
    top: 64px; left: 0;
    width: 280px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #1e1e1e;
    z-index: 9999;
    padding: 12px 0 24px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.4);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .ev-navbar__links--open { transform: translateX(0); }
  .ev-nav-backdrop { display: block; }

  .ev-navbar__item { width: 100%; height: auto; flex-direction: column; align-items: flex-start; }

  .ev-navbar__link {
    width: 100%;
    height: 100%;
    padding: 13px 22px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    justify-content: space-between;
  }
  .ev-navbar__link::after { display: none; }
  .ev-navbar__item:hover > .ev-navbar__link { background: rgba(255,255,255,0.05); color: #fff; }

  .ev-dropdown {
    position: static !important;
    transform: none !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid #d72b2b;
    border-radius: 0;
    background: #272727;
  }
  .ev-navbar__item--has-dropdown:hover .ev-dropdown,
  .ev-navbar__item--has-dropdown:focus-within .ev-dropdown { display: none; }
  .ev-dropdown--mobile-open { display: grid !important; }

  .ev-dropdown__col { padding-bottom: 8px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .ev-dropdown__col:last-child { border-bottom: none; }
  .ev-dropdown__heading { font-size: 11px; padding: 8px 18px; }
  .ev-dropdown__item { padding: 8px 18px; color: #ccc; font-size: 13px; }
  .ev-dropdown__item:hover { background: rgba(215,43,43,0.12); color: #d72b2b; padding-left: 26px; }

  .ev-hamburger { display: flex; }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  .ev-navbar { height: 56px; padding: 0 14px; }
  .ev-navbar__logo img { height: 56px; }
  .ev-navbar__links { top: 56px; max-height: calc(100vh - 56px); width: 260px; }
  .ev-navbar__social-btn { width: 32px; height: 32px; font-size: 13px; }
  .ev-hamburger { width: 36px; height: 36px; }
}