@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #02a95c;
  --primary-hover: #018e4d;
  --primary-light: #e6f6ee;
  --dark: #2b2b2b;
  --dark-light: #4d4d4d;
  --light: #f8fafc;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-accent {
  color: var(--dark);
}

/* Hamburger toggle for mobile */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--gray-100);
  color: var(--dark);
}

/* Mobile-first: nav-links acts as mobile drawer menu */
.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nav-links.open {
  display: flex;
}

.nav-links .btn {
  width: 100%;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark);
  border-color: var(--gray-300);
}

.btn-secondary:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-500);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-text {
  background: transparent;
  color: var(--dark-light);
  border: none;
  padding: 0.5rem 1rem;
}

.btn-text:hover {
  color: var(--dark);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background-color: var(--danger-hover);
}

/* Hero Section (Mobile First) */
.hero {
  background: linear-gradient(135deg, #f0faf4 0%, #e6f6ee 100%);
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero-buttons .btn {
  width: 100%;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Section Header (Mobile First) */
.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.section-title h2 {
  font-size: 1.5rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

/* Category Filter (Mobile First: Horizontally scrollable row) */
#category-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

#category-filter::-webkit-scrollbar {
  display: none;
}

#category-filter .category-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Layout Grid (Mobile First: 1 Column) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Campaign Card */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

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

.card-img-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
  background-color: var(--gray-100);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(2, 169, 92, 0.9);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.progress-container {
  margin-top: auto;
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  height: 6px;
  background-color: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.card-footer {
  padding: 0.85rem 1.25rem;
  background-color: var(--light);
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modals & Forms (Mobile First) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 0.5rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.hidden {
  display: none !important;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--gray-100);
  color: var(--dark);
}

.modal-body {
  padding: 1.25rem 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark-light);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-footer .btn {
  flex: 1;
}

/* Campaign Detail Page (Mobile First) */
.campaign-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.detail-main {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  background-color: var(--gray-100);
}

.detail-content {
  padding: 1.25rem 1rem;
}

.detail-category {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.detail-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.detail-desc {
  font-size: 0.95rem;
  color: var(--dark-light);
  line-height: 1.6;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-box {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
}

.donation-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.donation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.donation-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.donation-amount {
  font-weight: 700;
  color: var(--primary);
}

/* User Dashboard & Withdrawals (Mobile First) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.balance-card {
  background: linear-gradient(135deg, #02a95c 0%, #018649 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.balance-title {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.balance-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.balance-converted {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
}

/* Admin Panel (Mobile First) */
.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-sidebar {
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 0.75rem;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.admin-sidebar h3 {
  display: none;
}

.admin-sidebar::-webkit-scrollbar {
  display: none;
}

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--dark-light);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.admin-content {
  flex-grow: 1;
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
}

/* Table Responsiveness Wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  white-space: nowrap;
}

th {
  background-color: var(--light);
  color: var(--dark-light);
  font-weight: 600;
  padding: 0.6rem 0.85rem;
  border-bottom: 2px solid var(--gray-200);
}

td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

tr:hover td {
  background-color: var(--light);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-pending {
  background-color: #fef3c7;
  color: #d97706;
}

/* Phone Mockup / STK Push Dialog (Mobile-friendly width) */
.phone-mockup-wrapper {
  background-color: #1a1a1a;
  border-radius: 40px;
  width: 300px;
  height: auto;
  aspect-ratio: 300 / 540;
  max-width: 100%;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 0 3px 2px rgba(255,255,255,0.2);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 4px solid #333;
}

.phone-screen {
  background-color: #f0f0f0;
  flex-grow: 1;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.phone-speaker {
  width: 90px;
  height: 16px;
  background-color: #1a1a1a;
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.stk-push-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  z-index: 20;
}

.stk-push-box {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  border: 1px solid #ccc;
  animation: slideUp 0.3s ease-out;
}

.stk-header {
  background-color: #2b2b2b;
  color: #fff;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.stk-body {
  padding: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

.stk-message {
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 500;
}

.stk-pin-input {
  width: 110px;
  padding: 0.4rem;
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0.4em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.stk-footer {
  display: flex;
  border-top: 1px solid #eee;
}

.stk-btn {
  flex: 1;
  padding: 0.6rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.stk-btn-cancel {
  color: var(--danger);
  border-right: 1px solid #eee;
}

.stk-btn-cancel:hover {
  background-color: #fff0f0;
}

.stk-btn-ok {
  color: var(--primary);
}

.stk-btn-ok:hover {
  background-color: var(--primary-light);
}

/* Animations */
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Toast Notification (Simple Alert banner) */
.alert-banner {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}


/* ==========================================================================
   MEDIA QUERIES (DESKTOP & TABLET ENHANCEMENTS)
   ========================================================================== */

/* Tablet displays and up */
@media (min-width: 768px) {
  .nav-container {
    padding: 0.75rem 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
    gap: 0.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    box-shadow: none;
    padding: 0;
    border: none;
    gap: 1.5rem;
    width: auto;
  }

  .nav-links .btn {
    width: auto;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    width: auto;
  }

  .hero-buttons .btn {
    width: auto;
  }

  .container {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .search-wrapper {
    width: 240px;
  }

  #category-filter {
    flex-wrap: wrap !important;
    overflow-x: visible;
    padding-bottom: 0;
    margin-bottom: 2rem;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .form-footer .btn {
    flex: initial;
  }

  .campaign-detail {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
  }

  .detail-img {
    max-height: 450px;
  }

  .detail-content {
    padding: 2rem;
  }

  .detail-title {
    font-size: 1.85rem;
  }

  .detail-meta-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .detail-desc {
    font-size: 1.05rem;
  }

  .sidebar-box {
    padding: 1.5rem;
  }

  .donation-list {
    max-height: 300px;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .donation-item {
    padding: 0.6rem;
  }

  .admin-layout {
    flex-direction: row;
    gap: 2rem;
  }

  .admin-sidebar {
    width: 250px;
    flex-direction: column;
    overflow-x: visible;
    gap: 0.5rem;
  }

  .admin-sidebar h3 {
    display: block;
  }

  .admin-nav-item {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .admin-content {
    padding: 2rem;
  }

  table {
    font-size: 0.9rem;
  }

  td, th {
    padding: 1rem;
  }

  .phone-mockup-wrapper {
    width: 320px;
    padding: 12px;
    border: 4px solid #333;
    aspect-ratio: 320 / 580;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .phone-speaker {
    width: 100px;
    height: 18px;
  }

  .stk-push-overlay {
    padding: 1rem;
  }

  .stk-body {
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
  }

  .stk-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .modal-content {
    border-radius: var(--radius-lg);
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Larger Desktop screens and up */
@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
  }

  .balance-card {
    padding: 2rem;
  }

  .balance-value {
    font-size: 2.5rem;
  }
}

/* Add to your CSS file - this ensures the hamburger shows on mobile */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-light);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.menu-toggle:hover {
  background-color: var(--gray-100);
  color: var(--dark);
}

/* Mobile-first: nav-links acts as mobile drawer menu */
.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nav-links.open {
  display: flex;
}

/* Tablet displays and up */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    box-shadow: none;
    padding: 0;
    border: none;
    gap: 1.5rem;
    width: auto;
  }

  .nav-links.open {
    display: flex;
  }
}