/* Public site layout */
.jg-public-nav {
  background: #0b1220 !important;
  min-height: var(--jg-header-height);
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.jg-public-nav .navbar-brand,
.jg-public-nav .jg-brand {
  color: #fff !important;
  font-size: 1.45rem;
}

.jg-public-nav .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 0.9rem !important;
  border-radius: var(--jg-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jg-public-nav .nav-link:hover,
.jg-public-nav .nav-link.active {
  background: rgba(21, 94, 239, 0.35);
  color: #fff !important;
}

.jg-public-nav .navbar-nav {
  align-items: center;
  gap: 0.35rem;
}

.jg-public-nav .jg-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.jg-public-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.jg-public-nav .navbar-toggler-icon {
  filter: invert(1);
}

/* Public bottom nav */
.jg-bottom-nav,
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--jg-bottom-nav-height);
  background: var(--jg-surface);
  border-top: 1px solid var(--jg-border);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  z-index: 1002;
  padding: 0.35rem 0.25rem;
  justify-content: space-around;
  align-items: stretch;
}

.jg-bottom-nav a,
.bottom-nav a {
  flex: 1;
  color: var(--jg-text-muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  gap: 0.15rem;
  border-radius: var(--jg-radius-sm);
  transition: all var(--jg-transition);
  max-width: 80px;
}

.jg-bottom-nav a i,
.bottom-nav a i {
  font-size: 1.2rem;
}

.jg-bottom-nav a:hover,
.jg-bottom-nav a.active_menu,
.jg-bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav .active_menu {
  color: var(--jg-primary);
  background: var(--jg-primary-light);
}

@media (max-width: 991.98px) {
  .jg-bottom-nav,
  .bottom-nav {
    display: flex;
  }

  body.jg-has-bottom-nav,
  body {
    padding-bottom: calc(var(--jg-bottom-nav-height) + 8px);
  }

  .jg-public-nav .navbar-toggler {
    display: none !important;
  }

  .jg-public-nav .navbar-collapse {
    display: none !important;
  }
}

/* Footer */
.jg-footer,
#adv-footer .footer {
  background: #0b1220 !important;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 3rem;
}

.jg-footer h4,
.jg-footer h5,
#adv-footer .footer h4,
#adv-footer .footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.jg-footer a,
#adv-footer .footer-link,
#adv-footer .footer-text {
  color: rgba(255, 255, 255, 0.7) !important;
}

.jg-footer a:hover,
#adv-footer .footer-link:hover {
  color: #fff !important;
}

#adv-footer .footer {
  border-top: none;
}

/* Hero */
.jg-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(245, 158, 11, 0.18), transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(29, 78, 216, 0.35), transparent 55%),
    linear-gradient(145deg, #0b1220 0%, #1e3a8a 55%, #1d4ed8 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.jg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.jg-hero .jg-container,
.jg-hero .container,
.jg-hero .container-fluid {
  position: relative;
  z-index: 1;
}

.jg-hero-brand {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.jg-hero-brand span {
  color: var(--jg-accent);
}

.jg-hero-lead {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.jg-search-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--jg-radius-lg);
  padding: 0.75rem;
  box-shadow: var(--jg-shadow-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.jg-search-panel .form-control,
.jg-search-panel .form-select {
  border: 1px solid var(--jg-border);
  border-radius: var(--jg-radius-sm);
  min-height: 48px;
  flex: 1 1 160px;
}

.jg-search-panel .jg-btn,
.jg-search-panel .btn {
  min-height: 48px;
  flex: 0 0 auto;
}

/* Category tiles — professional listing cards */
.jg-cat-section {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(21, 94, 239, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 35% at 100% 20%, rgba(245, 179, 1, 0.08), transparent 55%),
    #f5f7fb;
}

.jg-section-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--jg-primary-light);
  color: var(--jg-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jg-cat-section .container {
  overflow: visible;
}

.jg-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.jg-slider-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.2rem 0.15rem 0.65rem;
  flex: 1;
  min-width: 0;
}

.jg-slider-track::-webkit-scrollbar {
  display: none;
}

.jg-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--jg-border);
  background: #fff;
  color: var(--jg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: var(--jg-shadow);
}

.jg-slider-btn:hover {
  background: var(--jg-primary-light);
}

.jg-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.jg-cat-grid,
.jg-cat-slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.2rem 0.1rem 0.55rem;
}

.jg-cat-grid::-webkit-scrollbar,
.jg-cat-slider::-webkit-scrollbar {
  display: none;
}

.jg-cat-tile {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 0.7rem !important;
  min-height: 68px;
  width: 230px;
  flex: 0 0 230px;
  scroll-snap-align: start;
  padding: 0.75rem 0.85rem !important;
  background: #fff !important;
  border: 1px solid #e6ebf2 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
  text-decoration: none !important;
  text-align: left !important;
  color: var(--jg-text) !important;
  flex-direction: unset !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.jg-cat-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.jg-cat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.1);
  color: var(--jg-text);
}

.jg-cat-tile:hover::before,
.jg-cat-tile.is-featured::before {
  background: linear-gradient(180deg, var(--jg-primary), var(--jg-accent));
}

.jg-cat-tile.is-featured {
  border-color: rgba(21, 94, 239, 0.18);
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.jg-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef4ff, #f8fafc);
  border: 1px solid #e4ecf8;
  color: var(--jg-primary);
  flex-shrink: 0;
}

.jg-cat-icon i {
  font-size: 1.35rem;
  line-height: 1;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  border-radius: 0;
}

.jg-cat-tile.is-featured .jg-cat-icon {
  background: linear-gradient(145deg, #155eef, #3b82f6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.28);
}

.jg-cat-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.2rem !important;
  min-width: 0;
  text-align: left !important;
}

.jg-cat-copy strong {
  display: block !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.jg-cat-copy em {
  display: block !important;
  font-style: normal !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--jg-text-muted) !important;
}

.jg-cat-arrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
  color: #667085;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.jg-cat-tile:hover .jg-cat-arrow {
  background: var(--jg-primary);
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 991.98px) {
  .jg-slider-btn {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .jg-cat-tile {
    min-height: 64px;
    width: 200px;
    flex-basis: 200px;
    padding: 0.7rem 0.75rem;
  }

  .jg-cat-icon {
    width: 34px;
    height: 34px;
  }
}

/* Responsive content safety */
.jg-layout-public img,
.jg-layout-public video,
.jg-layout-public iframe {
  max-width: 100%;
  height: auto;
}

.jg-layout-public .table-responsive,
.jg-layout-public table {
  max-width: 100%;
}

.jg-layout-public .container,
.jg-layout-public .container-fluid {
  overflow-x: clip;
}

.jg-layout-public .jg-cat-section .container,
.jg-layout-public .jg-home-section .container,
.jg-layout-public.jg-home-page .container,
.jg-layout-public.jg-home-page .container-fluid {
  overflow: visible;
}

.jg-layout-public .jg-co-layout,
.jg-layout-public .jg-co-grid,
.jg-layout-public .jg-auth-page,
.jg-layout-public .jg-auth-shell {
  overflow: visible;
}

.jg-layout-public:has(.jg-auth-page) .jg-footer,
.jg-layout-public:has(.jg-auth-page) #adv-footer .footer {
  margin-top: 1.25rem;
}

@media (max-width: 767.98px) {
  .jg-layout-public .jg-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .jg-layout-public .jg-search-panel {
    flex-direction: column;
  }
  .jg-layout-public .jg-search-panel .jg-btn {
    width: 100%;
  }
}
