/* Missing header styles reconstructed - Premium UI Version */

/* ============================================================
   WG HEADING UTILITY CLASSES
   Replaces h1-h6 tags with <p class="wg-hN"> for clean control.
   Bold font weights, no browser default margin/sizing.
   ============================================================ */
.wg-h1, .wg-h2, .wg-h3, .wg-h4, .wg-h5, .wg-h6 {
  margin: 0;
  padding: 0;
  line-height: 1.25;
  font-family: "Urbanist", "Roboto", sans-serif;
}
.wg-h1 { font-size: 2.25rem; font-weight: 800; }
.wg-h2 { font-size: 1.75rem; font-weight: 700; }
.wg-h3 { font-size: 1.35rem; font-weight: 700; }
.wg-h4 { font-size: 1.1rem;  font-weight: 700; }
.wg-h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.wg-h6 { font-size: 0.9rem;  font-weight: 600; }

.header-nav .nav-menu {
  position: relative;
  background-color: transparent !important; /* Make header transparent */
}

/* White Pill for Logo */
.logo-wrapper .main-logo {
  background-color: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header Text Styling for Dark Background */
.header-nav .navbar-nav > li > a,
.topbar-right a,
.topbar-left {
  color: #ffffff !important;
}
.header-nav .navbar-nav > li > i {
  color: #ffffff !important;
}

.topbar {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Force intermediate elements to be static so the absolute positioned mega-menu aligns to .nav-menu */
.header-nav .nav-menu .row,
.header-nav .nav-menu .col-xl-9,
.header-nav .nav-menu .col-lg-9,
.header-nav .nav-menu .nav-wrapper,
.header-nav .nav-menu nav,
.header-nav .nav-menu .navbar-nav,
.header-nav .menu-item-has-children.menu_full_width {
  position: static !important;
}

.header-nav .menu-item-has-children {
  position: relative;
}

.header-nav .submenu-wrapper {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background-color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  min-width: 250px;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden; /* For inner rounded corners */
}

.header-nav .menu-item-has-children.menu-open > .submenu-wrapper {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.header-nav .menu_full_width .submenu-wrapper {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto;
}

/* Base Icon Box */
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Domains Dropdown */
.wg-domains-dropdown {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.wg-domains-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  background-color: #ffffff;
}

.wg-domains-top-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.wg-domains-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  border-left: 3px solid transparent;
  background-color: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease, border-left-color 0.2s ease;
  position: relative;
}
.wg-domains-card:hover {
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.wg-domains-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.icon-box.blue-bg { background-color: #eff6ff; color: #2563eb; }
.icon-box.green-bg { background-color: #ecfdf5; color: #10b981; }
.icon-box.orange-bg { background-color: #fff7ed; color: #f97316; }
.icon-box.yellow-bg { background-color: #fefce8; color: #eab308; }
.blue-icon { stroke: #2563eb; }
.green-icon { stroke: #10b981; }
.orange-icon { stroke: #f97316; }
.yellow-icon { stroke: #eab308; }

.card-content h4 {
  margin: 0 0 8px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.card-content p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}

.wg-domains-divider {
  height: 1px;
  background-color: #f1f5f9;
  margin: 8px 0 24px 0;
}

.wg-domains-bottom-row {
  display: flex;
  gap: 40px;
}

.wg-domains-features, .wg-domains-pair {
  flex: 1;
}

/* Nav dropdown item titles — bold & strong */
.card-content .nav-item-title,
.nav-item-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.3 !important;
  font-family: "Urbanist", "Roboto", sans-serif !important;
  letter-spacing: -0.2px !important;
}

/* Nav dropdown sub-titles (Email Hosting, Google Workspace etc) */
.nav-sub-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a3280 !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.3 !important;
}

/* Section labels (KEY FEATURES, PAIR WITH etc) */
.section-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  letter-spacing: 2px !important;
  margin-bottom: 16px !important;
  text-transform: uppercase !important;
  padding-bottom: 8px !important;
  border-bottom: 2px solid #e8f0fe !important;
  display: block !important;
}

.features-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 24px !important;
  row-gap: 12px !important;
}
.features-list li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 0 !important;
}
.features-list li svg {
  flex-shrink: 0;
  stroke: #10b981;
}

.pair-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pair-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  margin-left: -10px;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.pair-item:hover {
  background-color: #f8fafc;
}
.pair-item .icon-box.mini {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.pair-text h6 {
  margin: 0 0 4px 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0c1832 !important;
}
.pair-text span {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

.wg-domains-right {
  flex: 1;
  background-color: #f8fafc;
  border-left: 1px solid #f1f5f9;
  padding: 32px 40px;
}

.ext-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 30px;
}
.ext-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}
.ext-name {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0c1832 !important;
  letter-spacing: -0.3px !important;
}
.ext-price {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
.ext-price.ext-free {
  color: #059669 !important;
  background: #ecfdf5 !important;
}
.ext-search-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2563eb !important;
  font-weight: 600 !important;
  font-size: 14px;
}
.ext-search-link:hover {
  text-decoration: underline;
}

/* Hosting Mega Menu */
.wg-hosting-dropdown {
  display: flex;
  width: 100%;
}
/* Wraps VPS Plans + One-Click Apps so the Trending box can span their full
   combined width at the bottom, instead of being confined to one column. */
.wg-hosting-left {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.wg-hosting-left-cols {
  display: flex;
}
.wg-hosting-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 24px 40px;
  background-color: #ffffff;
}
.wg-hosting-col:nth-child(2) {
  padding: 24px 40px 24px 20px;
}
.wg-hosting-col:last-child {
  padding: 24px;
  background-color: #f8fafc;
  border-left: 1px solid #f1f5f9;
}

.wg-hosting-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wg-trending-box {
  /* Sits directly in .wg-hosting-left, not inside a padded .wg-hosting-col,
     so its own margin recreates the columns' left/right padding — this is
     what lets it span the full combined width of both columns. */
  margin: 10px 20px 20px 40px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px;
}
.wg-trending-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}
.wg-trending-label span {
  font-size: 12px;
}
/* Equal left/right columns, one trending item each. */
.wg-trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Trending items carry BOTH classes in the markup — class="wg-hosting-card
   wg-trending-item" — so they get every layout rule below (display, icon
   sizing, title/description typography, the row-height min-height, the
   theme !important overrides, all of it) from the exact same single
   definition as every other menu item. Nothing about card layout is
   redefined here; only the trending-specific border/hover accent is added
   on top. This is deliberate: a parallel, hand-duplicated ruleset for one
   variant is exactly how "icon and text not aligned" kept recurring — one
   ruleset updated, the copy quietly left behind. Do not re-introduce a
   separate .wg-trending-item layout block; add new shared card behavior to
   .wg-hosting-card instead so both variants stay identical by construction. */
.wg-trending-item {
  background-color: #ffffff !important;
  border-color: #ffedd5 !important;
}
.wg-trending-item:hover {
  background-color: #ffffff !important;
  border-color: #fb923c !important;
  box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.25);
}
.wg-hosting-card {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  /* Every card in every mega-menu list is forced to the same height,
     regardless of whether its description wraps to one or two lines —
     otherwise columns with a different mix of short/long descriptions
     drift out of row-for-row alignment with each other (VPS Plans vs
     One-Click Apps, Email & Productivity vs Business Email Platforms). */
  min-height: 84px;
  box-sizing: border-box;
}
.wg-hosting-card:hover {
  background-color: #f8fafc;
}
.wg-hosting-card .icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  /* Source icon assets vary wildly: some are solid, edge-to-edge glyphs,
     others (wordpress-logo.png, the GitLab mark, Zoho's outline mark) carry
     a lot of empty canvas margin baked in. A shared tinted chip behind every
     icon plus `contain` (never cropping) keeps them reading as one
     consistent visual weight no matter how a given asset was exported. */
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wg-hosting-card .icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.wg-hosting-card .icon-wrapper img.icon-fit-contain {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin: 6px;
}
.wg-hosting-card .card-content {
  margin-top: -10px;
}
.wg-hosting-card .box-title {
  font-weight: 600 !important;
  font-size: 17px !important;
  color: #0f172a !important;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px !important;
  font-family: "Urbanist", "Roboto", sans-serif !important;
  letter-spacing: -0.2px !important;
}
.wg-hosting-card .description {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
}
.badge {
  font-size: 10px !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  display: inline-block;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue { background-color: #eff6ff; color: #2563eb !important; }
.badge-indigo { background-color: #eef2ff; color: #4f46e5 !important; }
.badge-teal { background-color: #f0fdfa; color: #0d9488 !important; }
.badge-hot { background-color: #fef2f2; color: #dc2626 !important; }
.badge-purple { background-color: #faf5ff; color: #9333ea !important; }

.wg-hosting-promo-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 12px;
  padding: 24px;
  color: white;
  display: flex;
  flex: 1;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.promo-tag {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tag-dot {
  width: 6px;
  height: 6px;
  background-color: #38bdf8;
  border-radius: 50%;
}
.promo-heading {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin: 0 0 8px 0 !important;
  color: white !important;
  line-height: 1.3 !important;
}
.promo-sub {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-bottom: 16px !important;
  line-height: 1.5 !important;
}
.promo-img-wrap {
  margin-bottom: 16px;
  position: relative;
  flex: 1 1 0;
  min-height: 120px;
}
.promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
}
.promo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: white !important;
  text-decoration: none;
  font-weight: 600 !important;
  margin-top: auto;
  font-size: 14px;
}
.promo-arrow {
  transition: transform 0.2s;
}
.promo-link:hover .promo-arrow {
  transform: translateX(4px);
}


/* ============================================================
   MOBILE / TABLET LAYOUT SAFETY NET
   Several ported Elementor widget wraps carry desktop-only
   inline margin/width values (leftover from the original export)
   that don't get reset at narrow viewports, pushing whole
   sections off-center (extra gap on one side, clipped on the
   other). Force these structural wraps to always fit their
   parent exactly below desktop widths.
   ============================================================ */
@media (max-width: 1024px) {
  .elementor-widget-wrap,
  .e-con,
  .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}
/* Small status pills next to the titles in the Domains dropdown */
.wg-domains-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}
.wg-domains-badge-green { background: #dcfce7; color: #166534; }
.wg-domains-badge-blue { background: #dbeafe; color: #1e40af; }
.wg-domains-badge-yellow { background: #fef9c3; color: #854d0e; }
