﻿/* ============================================================
   NAV & HEADER FIX — logo size, verify btn, text colors
   ============================================================ */

/* ---- Logo ---- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- Verify Certificate Button ---- */
.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-verify:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.5);
}
.btn-verify i { font-size: 12px; }

/* ---- Header Actions ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Hero trust strip text ---- */
.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.hero-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-trust-strip span i { color: #4ade80; font-size: 12px; }

/* ---- Hero badge ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fcd34d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ---- Hero Title ---- */
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff !important;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-title span { color: #f59e0b !important; }

/* ---- Hero Subtitle ---- */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 520px;
}

/* ---- Hero Tags ---- */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.hero-tag i { font-size: 11px; color: #fbbf24; }

/* ---- Hero Buttons ---- */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1a1a !important;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(245,158,11,0.45);
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(245,158,11,0.6);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ---- Mobile Nav Fix ---- */
@media (max-width: 768px) {
  .main-nav.open {
    overflow-y: auto;
    max-height: calc(100vh - 72px);
  }
  .dropdown-menu {
    border-radius: 0 !important;
    padding: 0 0 0 12px !important;
  }
  .dropdown-menu li a {
    padding: 11px 14px !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid #eef2ff;
  }
  .btn-verify {
    font-size: 12px;
    padding: 7px 12px;
  }
  .logo-img {
    height: 42px;
  }
  .btn-hero-primary, .btn-hero-outline {
    padding: 10px 20px;
    font-size: 13px;
  }
  .hero-title { font-size: 1.8rem; }
}


/* ---- Force dropdown ONLY on hover (fix active class issue) ---- */
.main-nav > ul > li > .dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}
.main-nav > ul > li:hover > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  transform: translateY(0) !important;
}

/* ---- DROPDOWN GAP BRIDGE FIX ----
   style.css mein top: calc(100% + 8px) hai — iss 8px gap se
   cursor guzarte waqt li:hover toot jaata hai aur dropdown band ho jaata hai.
   Pseudo-element bridge iss gap ko fill karta hai. ---- */
.main-nav > ul > li.has-dropdown {
  position: relative;
}
.main-nav > ul > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px; /* 8px gap + 6px buffer */
  background: transparent;
  z-index: 1049;
}
/* Mega dropdown gap bridge */
.main-nav > ul > li.mega-parent::after {
  height: 14px;
  width: 100vw;
  left: -50vw;
}
/* Keep dropdown open when hovering the bridge */
.main-nav > ul > li.has-dropdown:hover::after {
  display: block;
}
/* ---- MEGA DROPDOWN SPECIFIC GAP FIX ----
   Only .has-dropdown > a gets full height — NOT the Verify Certificate button ---- */

/* Only dropdown trigger links fill header height */
.main-nav > ul > li.has-dropdown {
  display: flex !important;
  align-items: center !important;
}
.main-nav > ul > li.has-dropdown > a {
  display: flex !important;
  align-items: center !important;
  height: 66px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Mega dropdown bridge */
.main-nav > ul > li.mega-parent::after {
  width: 300px !important;
  left: 0 !important;
  height: 8px !important;
}