/* ================================================
   HIKE EDUCATION - PREMIUM CUSTOM HEADER CSS
   Child Theme: hike-child
   File: assets/css/header.css
================================================ */

/* ================================================
   TOP BAR â€” scroll pe hide hoga
================================================ */
.hike-topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #0d1b3e;
  border-bottom: 2px solid #c0922a;
  z-index: 1000001;
  transition: transform 0.35s ease;
}
.hike-topbar.hide {
  transform: translateY(-100%);
}
.hike-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hike-topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hike-topbar-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.hike-topbar-link:hover { color: #fff !important; }
.hike-topbar-link svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: #c0922a;
}
.hike-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hike-topbar-social-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.hike-topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hike-social-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.hike-social-icon svg { width: 14px; height: 14px; }
.hike-social-icon:hover { transform: translateY(-2px); }
.hike-social-fb:hover  { background: #1877f2; }
.hike-social-ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.hike-social-li:hover  { background: #0a66c2; }
.hike-social-x:hover   { background: #000; }
.hike-social-yt:hover  { background: #ff0000; }

/* ================================================
   VARIABLES
================================================ */
:root {
  --hike-blue: #1a3c8f;
  --hike-red: #c0392b;
  --hike-dark: #0d1b3e;
  --hike-white: #ffffff;
  --hike-gray: #f4f6fb;
  --hike-text: #2c3e50;
  --hike-muted: #7f8c9a;
  --hike-border: #e8ecf4;
  --hike-shadow: 0 8px 32px rgba(26,60,143,0.13);
  --hike-radius: 12px;
  --hike-header-h: 72px;
  --hike-topbar-h: 38px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ===== HIDE OLD HEADER ===== */
header.site-header,
.elementor-location-header,
#masthead,
.main-navigation {
  display: none !important;
}

body {
  padding-top: calc(var(--hike-header-h) + var(--hike-topbar-h)) !important;
  font-family: var(--font) !important;
}

/* ===== BASE HEADER ===== */
.hike-header {
  position: fixed;
  top: var(--hike-topbar-h);
  left: 0;
  width: 100%;
  height: var(--hike-header-h);
  background: var(--hike-white);
  z-index: 999999;
  border-bottom: 1px solid var(--hike-border);
  transition: top 0.35s ease, box-shadow 0.3s ease, background 0.3s ease;
}
/* Jab topbar hide ho, header top:0 pe aa jaye */
.hike-header.topbar-hidden {
  top: 0;
}
.hike-header.scrolled {
  box-shadow: var(--hike-shadow);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
}

.hike-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

/* ===== LOGO ===== */
.hike-logo { flex-shrink: 0; }
.hike-logo a { display: flex; align-items: center; }
.hike-logo img { height: 42px; width: auto; display: block; }

/* ===== NAV â€” CENTER ===== */
.hike-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hike-nav-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hike-nav-item { position: relative; }

.hike-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hike-text) !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hike-nav-link:hover {
  color: var(--hike-blue) !important;
  background: var(--hike-gray);
}

.hike-arrow {
  width: 15px; height: 15px;
  transition: transform 0.25s ease;
  color: var(--hike-muted);
}
.hike-nav-item:hover .hike-arrow {
  transform: rotate(180deg);
  color: var(--hike-blue);
}

/* ===== DROPDOWN BASE ===== */
.hike-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--hike-white);
  border: 1px solid var(--hike-border);
  border-radius: var(--hike-radius);
  box-shadow: var(--hike-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 1000;
  pointer-events: none;
}
/* Invisible bridge â€” cursor gap fix */
.hike-nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 0;
  width: 100%; height: 14px;
}
.hike-nav-item:hover .hike-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
/* Arrow tip */
.hike-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--hike-white);
  border-left: 1px solid var(--hike-border);
  border-top: 1px solid var(--hike-border);
}
.hike-dropdown-inner { padding: 20px; }
.hike-dropdown-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hike-muted); margin: 0 0 14px 0;
}

/* ===== COLLEGES DROPDOWN ===== */
.hike-dropdown-colleges {
  width: 520px; left: 0;
  transform: translateY(-8px);
}
.hike-nav-item:hover .hike-dropdown-colleges { transform: translateY(0); }
.hike-dropdown-colleges::before { left: 60px; transform: rotate(45deg); }

.hike-colleges-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hike-college-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.hike-college-card:hover {
  background: var(--hike-gray);
  border-color: var(--hike-border);
  transform: translateX(3px);
}
.hike-college-icon {
  font-size: 20px;  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hike-gray); border-radius: 8px; flex-shrink: 0;
}
.hike-college-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--hike-text); }
.hike-college-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--hike-blue); background: rgba(26,60,143,0.08);
  padding: 1px 7px; border-radius: 20px; margin-top: 2px;
}

/* ===== COURSES DROPDOWN ===== */
.hike-dropdown-courses {
  width: 680px; left: -80px;
  transform: translateY(-8px);
}
.hike-nav-item:hover .hike-dropdown-courses { transform: translateY(0); }
.hike-dropdown-courses::before { left: 140px; transform: rotate(45deg); }

.hike-courses-layout { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 16px; }
.hike-course-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hike-muted); margin: 0 0 12px 0;
}
.hike-section-badge {
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.05em;
}
.hike-section-badge.pg { background: var(--hike-blue); color: #fff; }
.hike-section-badge.ug { background: var(--hike-red); color: #fff; }

.hike-course-list { display: flex; flex-direction: column; gap: 3px; }
.hike-course-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.hike-course-item:hover { background: var(--hike-gray); border-color: var(--hike-border); }
.hike-course-item:hover .hike-item-arrow { opacity: 1; transform: translateX(0); }
.hike-course-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hike-course-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--hike-text); }
.hike-course-desc { display: block; font-size: 11px; color: var(--hike-muted); margin-top: 1px; }
.hike-item-arrow {
  width: 14px; height: 14px; color: var(--hike-blue);
  margin-left: auto; opacity: 0;
  transform: translateX(-4px); transition: all 0.2s; flex-shrink: 0;
}

/* Course Banner */
.hike-course-banner {
  background: linear-gradient(145deg, var(--hike-blue), #2851b8);
  border-radius: 10px; overflow: hidden; position: relative;
}
.hike-course-banner::before {
  content: 'ðŸŽ“'; position: absolute;
  right: -10px; top: -10px; font-size: 60px; opacity: 0.15;
}
.hike-course-banner-inner { padding: 18px; }
.hike-banner-tag {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  padding: 3px 10px; border-radius: 20px; display: inline-block;
}
.hike-course-banner-inner h4 { font-size: 18px; font-weight: 800; color: #fff; margin: 10px 0 4px 0; }
.hike-course-banner-inner p { font-size: 12px; color: rgba(255,255,255,0.75); margin: 0 0 14px 0; }
.hike-banner-btn {
  display: inline-block; background: #fff;
  color: var(--hike-blue) !important;
  font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: 6px;
  text-decoration: none !important; transition: all 0.2s;
}
.hike-banner-btn:hover { background: var(--hike-gray); transform: translateX(3px); }

/* ===== MORE DROPDOWN ===== */
.hike-dropdown-more {
  width: 340px; right: 0; left: auto;
  transform: translateY(-8px);
}
.hike-nav-item:hover .hike-dropdown-more { transform: translateY(0); }
.hike-dropdown-more::before { left: auto; right: 30px; transform: rotate(45deg); }

.hike-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hike-more-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none !important;
  border: 1px solid transparent; transition: all 0.2s ease;
}
.hike-more-item:hover {
  background: var(--hike-gray);
  border-color: var(--hike-border);
  transform: translateX(3px);
}
.hike-more-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,60,143,0.07);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--hike-blue);
}
.hike-more-icon svg {
  width: 18px; height: 18px;
}
.hike-more-item:hover .hike-more-icon {
  background: var(--hike-blue);
  color: #fff;
}
.hike-more-name { display: block; font-size: 13px; font-weight: 600; color: var(--hike-text); }
.hike-more-desc { display: block; font-size: 11px; color: var(--hike-muted); }

/* ===== ACTION BUTTONS ===== */
.hike-header-actions {
  display: flex; align-items: center;
  gap: 10px; flex-shrink: 0;
}
.hike-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  font-family: var(--font); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap; text-decoration: none !important; border: none;
}
.hike-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.hike-btn-predictor {
  background: linear-gradient(135deg, #1a3c8f, #2851b8);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 14px rgba(26,60,143,0.35);
}
.hike-btn-predictor:hover {
  background: linear-gradient(135deg, #0f2a6e, #1a3c8f);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,60,143,0.45);
}
.hike-btn-expert {
  background: var(--hike-red); color: #fff !important;
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
}
.hike-btn-expert:hover {
  background: #a93226; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.4);
}

/* ===== HAMBURGER ===== */
.hike-hamburger {
  display: none; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 1.5px solid var(--hike-border);
  border-radius: 8px; cursor: pointer; padding: 8px; transition: all 0.2s;
}
.hike-hamburger:hover { background: var(--hike-gray); }
.hike-hamburger span {
  display: block; height: 2px;
  background: var(--hike-text); border-radius: 2px; transition: all 0.3s ease;
}
.hike-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hike-hamburger.open span:nth-child(2) { opacity: 0; }
.hike-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.hike-mobile-menu {
  display: none; position: fixed;
  top: var(--hike-header-h); left: 0;
  width: 100%; height: calc(100vh - var(--hike-header-h));
  background: var(--hike-white); overflow-y: auto;
  z-index: 999998;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.hike-mobile-menu.open { transform: translateX(0); }
.hike-mobile-inner { padding: 16px; }
.hike-mobile-item { border-bottom: 1px solid var(--hike-border); }
.hike-mobile-toggle {
  width: 100%; display: flex;
  align-items: center; justify-content: space-between;
  padding: 16px 8px; background: none; border: none;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--hike-text); cursor: pointer;
}
.hike-mobile-toggle svg { width: 18px; height: 18px; transition: transform 0.25s; }
.hike-mobile-toggle.open svg { transform: rotate(180deg); }
.hike-mobile-sub {
  display: none; padding: 0 8px 12px;
  flex-direction: column; gap: 2px;
}
.hike-mobile-sub.open { display: flex; }
.hike-mobile-sub a {
  display: block; padding: 10px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--hike-text) !important;
  text-decoration: none !important;
  border-radius: 8px; transition: all 0.2s;
}
.hike-mobile-sub a:hover {
  background: var(--hike-gray);
  color: var(--hike-blue) !important;
  padding-left: 18px;
}
.hike-mobile-buttons {
  padding: 20px 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.hike-mobile-buttons .hike-btn {
  width: 100%; justify-content: center; padding: 13px; font-size: 14px;
}

/* ===== MOBILE BUTTONS â€” Full width with icons ===== */
.hike-mobile-buttons {
  padding: 20px 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hike-mobile-buttons .hike-btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
  border-radius: 10px;
}
.hike-mobile-buttons .hike-btn-predictor {
  background: var(--hike-gray);
  color: var(--hike-blue) !important;
  border: 2px solid var(--hike-blue);
  font-weight: 700;
}
.hike-mobile-buttons .hike-btn-expert {
  background: var(--hike-red);
  color: #fff !important;
  font-weight: 700;
}

/* ===== MOBILE SOCIALS ===== */
.hike-mobile-socials {
  padding: 16px 8px 24px;
  border-top: 1px solid var(--hike-border);
  margin-top: 4px;
}
.hike-mobile-socials-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hike-muted);
  margin: 0 0 12px 0;
}
.hike-mobile-socials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hike-msocial {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  border: 1.5px solid var(--hike-border);
  color: var(--hike-text) !important;
}
.hike-msocial svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.hike-msocial:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hike-msocial-fb  { border-color: #1877f2; }
.hike-msocial-fb svg  { color: #1877f2; }
.hike-msocial-fb:hover  { background: #1877f2; color: #fff !important; }
.hike-msocial-fb:hover svg { color: #fff; }

.hike-msocial-ig  { border-color: #e1306c; }
.hike-msocial-ig svg  { color: #e1306c; }
.hike-msocial-ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366); color: #fff !important; }
.hike-msocial-ig:hover svg { color: #fff; }

.hike-msocial-li  { border-color: #0a66c2; }
.hike-msocial-li svg  { color: #0a66c2; }
.hike-msocial-li:hover  { background: #0a66c2; color: #fff !important; }
.hike-msocial-li:hover svg { color: #fff; }

.hike-msocial-yt  { border-color: #ff0000; }
.hike-msocial-yt svg  { color: #ff0000; }
.hike-msocial-yt:hover  { background: #ff0000; color: #fff !important; }
.hike-msocial-yt:hover svg { color: #fff; }

.hike-msocial-x   { border-color: #000; }
.hike-msocial-x svg   { color: #000; }
.hike-msocial-x:hover   { background: #000; color: #fff !important; }
.hike-msocial-x:hover svg { color: #fff; }

/* ===== EXPERT POPUP ===== */
.hike-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,62,0.6);
  z-index: 9999999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.hike-popup-overlay.open { opacity: 1; visibility: visible; }
.hike-popup {
  background: var(--hike-white); border-radius: 16px;
  padding: 36px; width: 90%; max-width: 460px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 64px rgba(13,27,62,0.2);
}
.hike-popup-overlay.open .hike-popup { transform: scale(1) translateY(0); }
.hike-popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--hike-gray); border: none; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--hike-text); transition: all 0.2s;
}
.hike-popup-close:hover { background: var(--hike-red); color: #fff; }
.hike-popup-header { text-align: center; margin-bottom: 24px; }
.hike-popup-icon { font-size: 44px; margin-bottom: 12px; }
.hike-popup-header h3 { font-size: 22px; font-weight: 800; color: var(--hike-dark); margin: 0 0 6px 0; }
.hike-popup-header p { font-size: 14px; color: var(--hike-muted); margin: 0; }
.hike-popup-body a { color: var(--hike-blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hike-nav { display: none; }

  /* Dono buttons header se hide â€” sirf mobile menu mein dikhenge */
  .hike-header-actions .hike-btn-expert,
  .hike-header-actions .hike-btn-predictor { display: none; }

  .hike-hamburger { display: flex; }
  .hike-mobile-menu { display: block; }
  .hike-header-inner { gap: 0; }
  .hike-header-actions { margin-left: auto; gap: 8px; }
}

@media (max-width: 768px) {
  .hike-topbar { display: none; }
  body { padding-top: var(--hike-header-h) !important; }
  .hike-header { top: 0 !important; }
}

@media (max-width: 480px) {
  .hike-header-inner { padding: 0 16px; }
  .hike-logo img { height: 34px; }
}
/* Mobile toggle active/focus black fix */
.hike-mobile-toggle:focus,
.hike-mobile-toggle:active,
.hike-mobile-toggle:focus-visible {
  background: none !important;
  outline: none !important;
  color: var(--hike-text) !important;
  -webkit-tap-highlight-color: transparent;
}

.hike-mobile-item:active,
.hike-mobile-item:focus {
  background: none !important;
}

/* iOS/Android tap highlight hatao */
* {
  -webkit-tap-highlight-color: transparent;
}
/* Predictor button SVG icon fix */
.hike-btn-predictor svg {
  display: inline-block !important;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #fff !important;
  stroke: #fff !important;
}
/* ===== COLLEGES — 3 column grid ===== */
.hike-colleges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}

.hike-college-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.hike-college-icon svg {
  width: 38px; height: 38px;
}

.hike-college-card {
  padding: 8px 10px;
  gap: 9px;
}
.hike-college-name { font-size: 12.5px; }

/* View All card */
.hike-college-viewall .hike-college-name {
  color: var(--hike-blue);
  font-weight: 700;
}
.hike-college-viewall {
  border: 1.5px dashed var(--hike-blue) !important;
  background: rgba(26,60,143,0.03);
}

/* Dropdown wider for 3 cols */
.hike-dropdown-colleges {
  width: 580px;
}

/* ===== COURSE PATHS ===== */
.hike-course-paths {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hike-path-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: var(--hike-gray);
  border-radius: 7px;
  font-size: 12px;
}
.hike-path-from {
  font-weight: 700;
  color: var(--hike-blue);
  font-size: 12px;
  min-width: 42px;
}
.hike-path-to {
  font-weight: 700;
  color: var(--hike-red);
  font-size: 12px;
}
.hike-path-item svg {
  color: var(--hike-muted);
  flex-shrink: 0;
}