/*
Theme Name: Nextep Solution
Author: Nextep Team
Version: 2.0
Description: Business Deals Marketplace Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  --primary: #005c30;
  --accent: #d39b3b;
  --ink: #0f1a12;
  --ink-soft: #3c4a40;
  --muted: #6b7a6e;
  --border: rgba(0, 92, 48, 0.12);
  --surface: #ffffff;
  --surface-alt: #f5f8f3;
  --surface-strong: #eef3ed;
  --shadow-soft: 0 16px 40px rgba(15, 26, 18, 0.08);
  --shadow-hover: 0 20px 50px rgba(0, 92, 48, 0.18);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.nx-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.nx-section {
  padding: 72px 0;
}

.nx-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.nx-title {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 12px 0 14px;
}

.nx-subtitle {
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
  margin: 0;
}

.nx-btn-primary,
.nx-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.nx-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 92, 48, 0.2);
}

.nx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 92, 48, 0.25);
  background: #006a37;
}

.nx-btn-secondary {
  background: rgba(0, 92, 48, 0.08);
  color: var(--primary);
}

.nx-btn-secondary:hover {
  background: rgba(0, 92, 48, 0.15);
}

.nx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nx-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 92, 48, 0.08);
  color: var(--primary);
  border: 1px solid rgba(0, 92, 48, 0.2);
}

.nx-badge-accent {
  background: rgba(211, 155, 59, 0.12);
  color: #8a5c10;
  border-color: rgba(211, 155, 59, 0.3);
}

.nx-hero {
  position: relative;
  padding: 120px 0 80px;
  background: radial-gradient(circle at 10% 10%, rgba(0, 92, 48, 0.08), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(211, 155, 59, 0.15), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6f9f4 100%);
}

.nx-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.nx-hero-title {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 14px 0 18px;
}

.nx-hero-title span {
  color: var(--primary);
}

.nx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.nx-search-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.nx-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.nx-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

.nx-input:focus {
  outline: none;
  border-color: rgba(0, 92, 48, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 92, 48, 0.08);
}

.nx-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 92, 48, 0.08);
  backdrop-filter: blur(12px);
}

.nx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.nx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.nx-brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.nx-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 14px;
}

.nx-nav-links > a,
.nx-nav-links > button {
  color: var(--ink);
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 8px 4px;
}

.nx-nav-links > a:hover,
.nx-nav-links > button:hover {
  color: var(--primary);
}

.nx-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nx-dropdown {
  position: relative;
}

.nx-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.nx-dropdown:hover > .nx-dropdown-menu,
.nx-dropdown:focus-within > .nx-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nx-dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 14px;
}

.nx-dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.nx-submenu {
  position: relative;
}

.nx-submenu-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.nx-submenu:hover > .nx-submenu-menu,
.nx-submenu:focus-within > .nx-submenu-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nx-mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.nx-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.nx-mobile-menu a,
.nx-mobile-menu button {
  text-align: left;
}

.nx-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.nx-listing-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.nx-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.nx-listing-meta span {
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: 999px;
}

.nx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nx-section-header a {
  color: var(--primary);
  font-weight: 700;
}

.nx-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.nx-tile {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: transform 0.2s ease;
}

.nx-tile:hover {
  transform: translateY(-3px);
}

.nx-filter-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
}

.nx-filter-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 90px;
}

.nx-filter-panel h3 {
  margin: 16px 0 10px;
  font-size: 14px;
}

.nx-filter-panel label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.nx-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.nx-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.nx-chip {
  background: rgba(0, 92, 48, 0.08);
  border: 1px solid rgba(0, 92, 48, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.nx-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nx-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.nx-form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.nx-form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.nx-form-card textarea {
  resize: vertical;
}

.nx-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.nx-footer {
  background: #0c1c14;
  color: #e9f2ec;
  padding: 48px 0;
}

.nx-footer a {
  color: #e9f2ec;
}

.nx-auth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  min-height: 80vh;
}

.nx-auth-left {
  padding: 48px;
  background: linear-gradient(150deg, rgba(0, 92, 48, 0.95), rgba(0, 92, 48, 0.7));
  color: #ffffff;
}

.nx-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: #ffffff;
}

.nx-toggle {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 6px;
  gap: 6px;
}

.nx-toggle button {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}

.nx-toggle button.active {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 92, 48, 0.12);
  color: var(--primary);
}

.nx-auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

.nx-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nx-sticky-cta {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.nx-mobile-filter-toggle {
  display: none;
  margin-bottom: 16px;
}

.nx-filter-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 18, 0.4);
  z-index: 9999;
  padding: 20px;
}

.nx-filter-drawer.active {
  display: flex;
  align-items: flex-end;
}

.nx-filter-drawer .nx-filter-panel {
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  border-radius: 22px 22px 0 0;
}

.nx-admin-table th,
.nx-admin-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.nx-admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nx-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: nxFadeUp 0.7s ease forwards;
}

@keyframes nxFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .nx-nav-links {
    display: none;
  }

  .nx-mobile-toggle {
    display: inline-flex;
  }

  .nx-mobile-menu {
    display: flex;
  }

  .nx-filter-layout {
    grid-template-columns: 1fr;
  }

  .nx-filter-panel {
    position: static;
  }

  .nx-mobile-filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .nx-hero {
    padding-top: 100px;
  }

  .nx-section {
    padding: 56px 0;
  }
}
