/* ============================================================
   TTustle – Main Stylesheet  (style.css)
   ============================================================

   CHANGES FROM PREVIOUS VERSION:
   -------------------------------------------------------
   1. PADDING / WIDTH FIX:
      - --max-w raised from 1280px → 1400px
      - .container and .nav-inner padding-inline cut from
        2.5rem → 1.25rem so content sits closer to the screen
        edges and the "too much empty space on the sides" look
        is gone. On very wide monitors (>1400px) the container
        centres naturally with equal margins — that's correct.

   2. NAV PILL BUTTONS:
      - New .nav-pill class added (replaces plain text links).
      - Each link gets a subtle filled background, rounded pill
        shape, and three states:
          default  → faint bg, muted text
          :hover   → slightly darker bg, full text colour, lifts
          :active  → presses down (scale) like a real button
      - Transition covers background, colour, transform, shadow.

   3. ABOUT LINK:
      - No extra CSS needed — .nav-pill handles it automatically.
        "About" in footer uses existing .footer-col a styles.

   TABLE OF CONTENTS
   -----------------
   1.  CSS Custom Properties
   2.  Reset & Base
   3.  Utility (.container, .sr-only)
   4.  Buttons (.btn variants)
   5.  Navbar + Nav Pills  ← CHANGED
   6.  Hero
   7.  Navigation grid (2×2 cards)
   8.  Dual CTA
   9.  Footer
   10. Animations & scroll-reveal
   11. Responsive breakpoints
   ============================================================ */


/* ============================================================
   1. CSS Custom Properties
   ============================================================ */
:root {
  /* Brand */
  --coral:        #D85A30;
  --coral-dark:   #B84820;
  --coral-light:  #FAECE7;
  --coral-mid:    #993C1D;

  /* Semantic palette */
  --green-bg:     #EAF3DE;
  --green-text:   #3B6D11;
  --amber-text:   #BA7517;
  --blue-bg:      #E6F1FB;
  --blue-text:    #185FA5;
  --teal-bg:      #E1F5EE;
  --teal-text:    #0F6E56;

  /* Surfaces */
  --bg:           #F7F5F2;
  --bg-white:     #FFFFFF;
  --bg-card:      #FFFFFF;

  /* Text */
  --text:         #1A1816;
  --text-muted:   #6B6762;
  --text-faint:   #9E9A96;

  /* Borders */
  --border:       rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.18);

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  99px;  /* used for nav pills */

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Motion */
  --transition:   0.18s ease;

  /* Layout */
  --nav-h:        64px;

  /* ----------------------------------------------------------------
     CHANGE 1 – wider max-width + tighter side padding
     Old: --max-w 1280px, padding-inline 2.5rem
     New: --max-w 1400px, padding-inline 1.25rem
     Result: content fills much more of the screen on typical
     1080p and 1440p monitors without feeling cramped.
  ---------------------------------------------------------------- */
  --max-w:        1400px;
  --side-pad:     1.25rem;
}


/* ============================================================
   2. Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* Ensure [hidden] always wins over component-level display rules */
[hidden] { display: none !important; }


/* ============================================================
   3. Utility
   ============================================================ */

/* CHANGE: padding-inline now uses --side-pad (1.25rem) */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* Visually hidden but screen-reader accessible labels */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 4px 12px rgba(216,90,48,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn-outline:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

/* Log In in the navbar gets its own distinct coral-filled look */
.nav-links .btn-outline {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}
.nav-links .btn-outline:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  box-shadow: 0 4px 12px rgba(216,90,48,0.35);
}

.btn-white {
  background: #fff;
  color: var(--coral);
  border-color: #fff;
}
.btn-white:hover { background: var(--coral-light); }

.btn-lg { padding: 13px 26px; font-size: 15px; }


/* ============================================================
   5. Navbar  +  Nav Pills
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

/* CHANGE: padding-inline uses --side-pad to match .container */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* Logo wordmark */
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--coral); }

/* Link group wrapper */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;          /* tight gap — pills have their own padding */
}

.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-hover);
  background: var(--coral-light);
  color: var(--coral-mid);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.nav-profile-btn:hover {
  background: #F5C4B3;
  border-color: var(--coral);
}
.nav-profile-icon { font-size: 16px; }
.nav-profile-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



/* ------------------------------------------------------------------
   CHANGE 2 – .nav-pill  (new)
   Replaces plain text anchors in the navbar.

   Default state:
     - Transparent background (invisible pill shape)
     - Muted text colour so the links don't compete with the logo

   :hover state:
     - Background fills in with a very light warm tint
     - Text colour goes full dark
     - Slight upward lift (translateY -1px)
     - Subtle shadow appears beneath

   :active state:
     - Background deepens slightly (pressed feel)
     - Scale presses down to give tactile click feedback

   :focus-visible:
     - Coral outline ring for keyboard navigation (WCAG 2.4.7)
------------------------------------------------------------------ */
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  background: rgba(216, 90, 48, 0.08);
  border: 1px solid rgba(216, 90, 48, 0.14);
  cursor: pointer;
  text-decoration: none;
  /* Transition: bg colour, text colour, lift, shadow */
  transition:
    background  var(--transition),
    color       var(--transition),
    border-color var(--transition),
    transform   var(--transition),
    box-shadow  var(--transition);
}

.nav-pill:hover {
  background: rgba(216, 90, 48, 0.16);
  border-color: rgba(216, 90, 48, 0.30);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-pill:active {
  background: rgba(216, 90, 48, 0.22);
  border-color: rgba(216, 90, 48, 0.38);
  transform: scale(0.97) translateY(0);
  box-shadow: none;
}

/* Keyboard focus ring */
.nav-pill:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

/* Slight gap between the pill group and the Log In button */
.nav-links .btn-outline {
  margin-left: 8px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.hamburger.open span:nth-child(2) { opacity: 0;                                 }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   6. Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(216,90,48,0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(216,90,48,0.04) 0%, transparent 40%);
  pointer-events: none;
}

/* Subtle grid-line texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

/* Location badge pill */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral-light);
  color: var(--coral-mid);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(153,60,29,0.15);
}

/* Main headline */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--coral); }

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Search bar */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 640px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 0;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 200px;
}
.search-icon { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.search-field input {
  flex: 1; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text); background: transparent;
}
.search-field input::placeholder { color: var(--text-faint); }
.search-bar select {
  border: none; border-left: 1px solid var(--border); outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text); background: transparent;
  padding: 8px 12px; cursor: pointer;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800;
  color: var(--coral); letter-spacing: -0.5px; line-height: 1;
}
.stat-suffix { display: inline; }
.stat-label  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }


/* ============================================================
   7. Navigation grid (2×2)
   ============================================================ */
.nav-grid-section { padding: 4.5rem 0; }

.nav-grid-heading {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
}

/* 2 equal columns */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Individual card — full <a> element */
.nav-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color var(--transition),
    box-shadow   var(--transition),
    transform    var(--transition);
}
.nav-card:hover {
  border-color: var(--coral);
  box-shadow: 0 6px 24px rgba(216,90,48,0.10);
  transform: translateY(-3px);
}
.nav-card:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.nav-card-icon  { font-size: 32px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.nav-card-body  { flex: 1; }
.nav-card-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin-bottom: 6px; letter-spacing: -0.2px;
}
.nav-card-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.nav-card-arrow {
  font-size: 20px; color: var(--text-faint);
  flex-shrink: 0; align-self: center;
  transition: transform var(--transition), color var(--transition);
}
.nav-card:hover .nav-card-arrow {
  transform: translateX(5px);
  color: var(--coral);
}


/* ============================================================
   8. Dual CTA
   ============================================================ */
.dual-cta {
  background: var(--coral-dark);
  padding: 5rem 0;
  /* Subtle diagonal stripe texture */
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 12px
    );
}

.dual-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Full <a> card — translucent frosted glass on coral bg */
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  text-decoration: none;
  transition:
    background var(--transition),
    transform  var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}
.cta-card:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.cta-card:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
}
.cta-icon  { font-size: 36px; line-height: 1; }
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.3px;
}
.cta-card p  { font-size: 15px; color: rgba(255,255,255,0.80); line-height: 1.55; max-width: 320px; }
.cta-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 500; color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  transition: text-decoration-color var(--transition);
}
.cta-card:hover .cta-link { text-decoration-color: rgba(255,255,255,0.9); }


/* ============================================================
   9. Footer
   ============================================================ */
.footer {
  background: #161412;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-inner {
  display: flex; gap: 3rem; flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo { margin-bottom: 0.75rem; display: inline-block; color: rgba(255,255,255,0.90); }
.footer-brand .logo span { color: var(--coral); }
.footer-tagline { font-size: 13px; line-height: 1.6; max-width: 240px; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; min-width: 120px; }
.footer-col h4 {
  font-size: 12px; font-weight: 500; color: #fff;
  margin-bottom: 0.25rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.50); transition: color var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.90); }
.footer-bottom {
  padding: 1.25rem 1.5rem; text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.28);
}


/* ============================================================
   10. Animations & scroll-reveal
   ============================================================ */

/* Hero entrance animations */
.animate-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.55s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal — driven by IntersectionObserver in main.js */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   11. Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --max-w: 100%; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Even tighter padding on small screens */
  :root { --side-pad: 1rem; }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }

  /* Pills go full-width in the drawer */
  .nav-pill {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  /* Remove extra margin on Log In in drawer */
  .nav-links .btn-outline { margin-left: 0; margin-top: 4px; }

  .hamburger { display: flex; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { letter-spacing: -1px; }

  .search-bar { flex-direction: column; padding: 10px; }
  .search-bar select { border-left: none; border-top: 1px solid var(--border); padding: 8px 0; }

  .hero-stats { gap: 1.25rem; }
  .stat-divider { display: none; }

  /* Stack cards to single column */
  .nav-grid        { grid-template-columns: 1fr; }
  .dual-cta-inner  { grid-template-columns: 1fr; }
  .cta-card        { padding: 2rem 1.5rem; }

  .footer-inner  { gap: 2rem; }
  .footer-links  { gap: 2rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-grid-section { padding: 2.5rem 0; }
  .nav-grid-heading { font-size: 22px; }
  .nav-card {
    padding: 1.25rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-card-arrow { display: none; }
}




/* ============================================================
   14. Auth / Login Page
   ============================================================ */

/* Full-height centred layout */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--side-pad);
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs */
.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.auth-blob--1 {
  width: 500px; height: 500px;
  background: rgba(216,90,48,0.12);
  top: -120px; right: -100px;
}
.auth-blob--2 {
  width: 400px; height: 400px;
  background: rgba(216,90,48,0.07);
  bottom: -100px; left: -80px;
}

/* The card itself */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

/* Logo inside card */
.auth-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.auth-logo span { color: var(--coral); }

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.75rem;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.auth-tab:hover:not(.active) {
  color: var(--text);
}

/* Panel show/hide */
.auth-panel { display: block; }
.auth-panel.hidden { display: none; }

/* Welcome line */
.auth-welcome {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-hover);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn-google:hover {
  background: var(--bg);
  border-color: var(--text-faint);
  box-shadow: var(--shadow-sm);
}
.btn-google:active { transform: scale(0.98); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
  color: var(--text-faint);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forgot-link {
  font-size: 12px;
  color: var(--coral);
  text-decoration: none;
  transition: opacity var(--transition);
  /* Support both <a> and <button> */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.forgot-link:hover { opacity: 0.75; }
.forgot-link:disabled { opacity: 0.5; cursor: not-allowed; }

/* Inputs */
.form-group input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(216,90,48,0.12);
}
.form-group input.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

/* Password field with toggle */
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 42px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.pw-toggle:hover { color: var(--text-muted); }
.eye-icon { width: 16px; height: 16px; }

/* Password strength bar */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  white-space: nowrap;
  min-width: 40px;
}

/* Field errors */
.field-error {
  font-size: 12px;
  color: #C0392B;
  min-height: 16px;
}

/* Full-width button */
.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

/* Terms line */
.auth-terms {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}
.auth-terms a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Switch link */
.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.link-btn {
  background: none;
  border: none;
  color: var(--coral);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { opacity: 0.8; }

/* ── Dark mode overrides for auth page ── */




/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }
}

/* ============================================================
   15. Sign Up Page  (signup.html)
   ============================================================ */

/* Full-height split layout: pitch left | form right */
.signup-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left: pitch panel ── */
.signup-pitch {
  background: var(--coral);
  /* Same diagonal stripe as dual-cta */
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 14px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

/* Soft radial glow inside pitch panel */
.signup-pitch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.signup-pitch-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  color: #fff;
}

.signup-pitch-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 2.5rem;
  text-decoration: none;
}
.signup-pitch-logo span { color: rgba(255,255,255,0.65); }

.signup-pitch-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
  color: #fff;
}

.signup-pitch-inner > p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Perks list */
.signup-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.signup-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.perk-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.signup-perks li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.signup-perks li strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.signup-perks li span {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

/* Social proof strip */
.signup-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.20);
}
.proof-avatars {
  display: flex;
  font-size: 18px;
  letter-spacing: -4px;
}
.signup-social-proof p {
  font-size: 13px;
  color: rgba(255,255,255,0.80);
}
.signup-social-proof strong { color: #fff; }

/* ── Right: form panel ── */
.signup-form-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem var(--side-pad);
  overflow: hidden;
  background: var(--bg);
}

/* Auth card on signup page — slightly wider than login */
.signup-form-panel .auth-card {
  max-width: 480px;
}

/* Card header */
.signup-card-header {
  margin-bottom: 1.5rem;
}
.signup-card-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 4px;
}
.signup-card-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.inline-link {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: opacity var(--transition);
}
.inline-link:hover { opacity: 0.75; }

/* Two-column name row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Account type radio cards */
.account-type-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.account-type-option {
  cursor: pointer;
}
.account-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.account-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: var(--bg);
  text-align: center;
  transition:
    border-color var(--transition),
    background   var(--transition),
    box-shadow   var(--transition);
  cursor: pointer;
}
.account-type-option input:checked + .account-type-card {
  border-color: var(--coral);
  background: var(--coral-light);
  box-shadow: 0 0 0 3px rgba(216,90,48,0.10);
}
.account-type-card:hover {
  border-color: var(--coral);
}
.account-type-icon  { font-size: 22px; line-height: 1; }
.account-type-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.account-type-desc  {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Signup page mobile ── */
@media (max-width: 768px) {
  .signup-page {
    grid-template-columns: 1fr;
  }
  .signup-pitch {
    display: none; /* hide the pitch panel entirely on mobile */
  }
  .signup-form-panel {
    padding: 2rem 1.25rem 3rem;
    min-height: calc(100vh - var(--nav-h));
    align-items: flex-start;
  }
  .signup-form-panel .auth-card {
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================================
   16. About Page  (about.html)
   ============================================================ */

/* ── Hero ── */
.about-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 15%, rgba(216,90,48,0.07) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(216,90,48,0.04) 0%, transparent 45%);
  pointer-events: none;
}

/* Reuse the grid texture from the homepage hero */
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.about-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
}
.about-hero-content h1 em {
  font-style: normal;
  color: var(--coral);
}

.about-hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}


/* ── Shared section label + header ── */
.about-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.about-section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.about-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}
.about-section-header p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ── Story section ── */
.about-story {
  padding: 5rem 0;
  background: var(--bg);
}

.about-story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-story-text .about-section-label {
  display: block;
  margin-bottom: 0.75rem;
}

.about-story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-story-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-story-text p:last-child { margin-bottom: 0; }

/* Right visual: stacked accent cards */
.about-story-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.story-card:hover {
  border-color: var(--coral);
  box-shadow: 0 6px 20px rgba(216,90,48,0.09);
  transform: translateY(-2px);
}

/* Stagger each card slightly right */
.story-card--mid { margin-left: 1.5rem; }
.story-card--bot { margin-left: 3rem; }

.story-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.story-card div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.story-card strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.story-card span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ── Values ── */
.about-values {
  padding: 5rem 0;
  background: var(--bg-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.value-card:hover {
  border-color: var(--coral);
  box-shadow: 0 6px 24px rgba(216,90,48,0.09);
  transform: translateY(-3px);
}

.value-card-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 0.6rem;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── Stats strip ── */
.about-stats-section {
  background: var(--coral-dark);
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 12px
    );
  padding: 4rem 0;
}

.about-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Reuse .stat-num from homepage, just override colour for dark bg */
.about-stats-section .stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.about-stats-section .stat-suffix {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  vertical-align: top;
  margin-top: 4px;
}
.about-stats-section .stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.about-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}


/* ── Team ── */
.about-team {
  padding: 5rem 0;
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  border-color: var(--coral);
  box-shadow: 0 6px 24px rgba(216,90,48,0.09);
  transform: translateY(-3px);
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral-light);
  border: 2px solid rgba(216,90,48,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}

.team-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.team-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .about-story-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story-card--mid,
  .story-card--bot { margin-left: 0; }

  .values-grid    { grid-template-columns: 1fr 1fr; }
  .team-grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-hero { padding: 3rem 0 3rem; }
  .about-hero-content h1 { letter-spacing: -1px; }

  .about-stats-inner { gap: 2rem; }
  .about-stat-divider { display: none; }
}

@media (max-width: 600px) {
  .values-grid  { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
}

/* ============================================================
   17. Browse Jobs Page  (browse-jobs.html)
   ============================================================ */

/* ── Page header ── */
.browse-header {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.browse-header-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 10%, rgba(216,90,48,0.06) 0%, transparent 50%),
    radial-gradient(circle at 5%  90%, rgba(216,90,48,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.browse-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.browse-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.browse-header-text { max-width: 640px; }

.browse-header-text h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
}
.browse-header-text h1 em { font-style: normal; color: var(--coral); }

.browse-header-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Search bar inside header ── */
.browse-search { max-width: 720px; }

.browse-search-bar {
  /* Override homepage defaults for a more horizontal, wide layout */
  max-width: none;
  flex-wrap: nowrap;
  align-items: center;
}

.browse-search-bar .btn {
  flex-shrink: 0;
  margin-right: 2px;
}

/* ── Main layout: sidebar + results ── */
.browse-main {
  padding: 2.5rem 0 4rem;
}

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Sidebar ── */
.browse-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
}

.sidebar-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.sidebar-block-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.sidebar-clear-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--coral);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background var(--transition);
}
.sidebar-clear-btn:hover { background: var(--coral-light); }

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  transition: background var(--transition);
  user-select: none;
}
.filter-option:hover { background: var(--bg); }
.filter-option input { accent-color: var(--coral); flex-shrink: 0; cursor: pointer; }
.filter-option span { flex: 1; }

.filter-count {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-faint);
  background: var(--bg);
  border-radius: 99px;
  padding: 1px 7px;
  flex-shrink: 0;
}

.sidebar-reset-btn {
  width: 100%;
  font-size: 13px;
  padding: 9px;
}

/* ── Results bar ── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 1rem;
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
}
.results-count strong { color: var(--text); font-weight: 600; }

.sort-select {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-card);
  padding: 7px 10px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--coral); }

/* ── Active filter chips ── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
  min-height: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--coral-light);
  color: var(--coral-mid);
  border: 1px solid rgba(153,60,29,0.18);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px 4px 10px;
}

.filter-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--coral-mid);
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 2px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.filter-chip-remove:hover { color: var(--coral-dark); }

/* ── Job cards grid ── */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.job-card:hover {
  border-color: var(--coral);
  box-shadow: 0 6px 24px rgba(216,90,48,0.09);
  transform: translateY(-2px);
}

/* Urgent left border accent */
.job-card--urgent {
  border-left: 3px solid #E85420;
}

.job-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Category badges */
.job-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  border: 1px solid transparent;
}

.job-cat-badge--plumbing    { background: var(--blue-bg);  color: var(--blue-text);  border-color: rgba(24,95,165,0.18); }
.job-cat-badge--electrical  { background: #FFF8E6;          color: var(--amber-text); border-color: rgba(186,117,23,0.18);}
.job-cat-badge--cleaning    { background: var(--teal-bg);  color: var(--teal-text);  border-color: rgba(15,110,86,0.18); }
.job-cat-badge--tutoring    { background: #F0EEFF;          color: #5840C9;           border-color: rgba(88,64,201,0.18); }
.job-cat-badge--landscaping { background: var(--green-bg); color: var(--green-text); border-color: rgba(59,109,17,0.18); }
.job-cat-badge--catering    { background: #FFF0ED;          color: var(--coral-mid);  border-color: rgba(153,60,29,0.18); }
.job-cat-badge--carpentry   { background: #FDF3E7;          color: #9A5E1A;           border-color: rgba(154,94,26,0.18); }
.job-cat-badge--it          { background: #EAF1FF;          color: #2A5CB8;           border-color: rgba(42,92,184,0.18); }
.job-cat-badge--mechanics   { background: #F2F2F2;          color: #555;              border-color: rgba(0,0,0,0.12);     }

/* Urgent badge */
.job-badge-urgent {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #FFE8E0;
  color: #C13A12;
  border: 1px solid rgba(193,58,18,0.22);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

/* Budget display */
.job-budget {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--coral-dark);
  white-space: nowrap;
}

/* Title */
.job-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin: 0;
}
.job-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.job-title a:hover { color: var(--coral); }
.job-title a:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 2px; }

/* Description snippet */
.job-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Meta row: location, time, type */
.job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.job-meta-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--text-faint);
}

.job-meta-type {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.job-meta-type--ongoing {
  background: var(--teal-bg);
  border-color: rgba(15,110,86,0.18);
  color: var(--teal-text);
}

/* Card footer: poster + CTA */
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.job-poster {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.job-poster-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-light);
  border: 1px solid rgba(216,90,48,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--coral-mid);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Small button variant */
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ── Empty state ── */
.browse-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.browse-empty-icon { font-size: 40px; line-height: 1; }

.browse-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.browse-empty p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 340px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2rem;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.page-btn:hover:not(:disabled):not(.page-btn--active) {
  background: var(--bg);
  border-color: var(--coral);
  color: var(--coral);
}
.page-btn--active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-btn svg { width: 16px; height: 16px; }

.page-ellipsis {
  font-size: 14px;
  color: var(--text-faint);
  padding: 0 4px;
  user-select: none;
}

/* ── Mobile filter button (fab) ── */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  align-items: center;
  gap: 7px;
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(216,90,48,0.40);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.mobile-filter-btn:hover  { background: var(--coral-dark); transform: translateY(-1px); }
.mobile-filter-btn:active { transform: scale(0.97); }
.mobile-filter-btn svg    { width: 16px; height: 16px; }

/* ── Filter overlay (mobile) ── */
.filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 149;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.filter-overlay.open { display: block; }

/* ============================================================
   18. Hire a Pro Page (hire.html)
   ============================================================ */

/* ── Hero Section ── */
.hire-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hire-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(216,90,48,0.06) 0%, transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(216,90,48,0.04) 0%, transparent 45%);
  pointer-events: none;
}

.hire-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hire-hero-inner {
  position: relative;
  z-index: 1;
}

.hire-hero-text {
  max-width: 680px;
}

.hire-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.hire-hero-text h1 em {
  font-style: normal;
  color: var(--coral);
}

.hire-hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FEATURED PROS SECTION ── */
.featured-pros {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--coral-light) 100%);
  border-bottom: 1px solid var(--border);
}

.featured-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.featured-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--coral-dark);
  margin-bottom: 0.5rem;
}

.featured-header p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Featured Card - larger, more prominent */
.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  border: 1px solid rgba(216, 90, 48, 0.2);
  position: relative;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(216, 90, 48, 0.15);
  border-color: var(--coral);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #5D3A1A;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-card-inner {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-light), var(--coral));
  border: 3px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(216, 90, 48, 0.3);
}

.featured-info {
  flex: 1;
}

.featured-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.featured-category {
  font-size: 12px;
  color: var(--coral);
  font-weight: 600;
  display: inline-block;
  background: var(--coral-light);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.featured-stats {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.featured-stat svg {
  width: 14px;
  height: 14px;
  color: var(--coral);
}

.featured-stat strong {
  color: var(--text);
  font-weight: 700;
}

.featured-quote {
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--coral);
  line-height: 1.6;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.featured-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.featured-location svg {
  width: 12px;
  height: 12px;
}

.featured-contact-btn {
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.featured-contact-btn:hover {
  background: var(--coral-dark);
  transform: scale(1.02);
}

/* ── Search + Filters Section ── */
.hire-filters-section {
  padding: 1.5rem 0 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 45;
  backdrop-filter: blur(8px);
  background: rgba(247, 245, 242, 0.92);
}

.hire-filters-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hire-search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-white);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 0;
  box-shadow: var(--shadow-sm);
}

.hire-search-field {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-width: 180px;
}

.hire-search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  background: transparent;
}

.hire-search-bar select {
  flex: 0.8;
  border: none;
  border-left: 1px solid var(--border);
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
}

.hire-search-bar .btn {
  flex-shrink: 0;
  margin-right: 2px;
}

/* Results bar */
.hire-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hire-results-count {
  font-size: 13px;
  color: var(--text-muted);
}

.hire-results-count strong {
  color: var(--coral);
  font-weight: 700;
}

.hire-sort select {
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 28px 6px 12px;
  background: var(--bg-card);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}

.hire-sort select:focus {
  border-color: var(--coral);
}

/* ── Pros Grid ── */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

/* Professional Card */
.pro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  cursor: pointer;
}

.pro-card:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 28px rgba(216, 90, 48, 0.12);
  transform: translateY(-3px);
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pro-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral-light);
  border: 2px solid rgba(216, 90, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--coral-mid);
  flex-shrink: 0;
}

.pro-info {
  flex: 1;
}

.pro-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
  color: var(--text);
}

.pro-badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
}

.pro-category {
  font-size: 12px;
  color: var(--coral);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Stats row */
.pro-stats {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pro-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.pro-stat svg {
  width: 14px;
  height: 14px;
  color: var(--coral);
}

.pro-stat strong {
  color: var(--text);
  font-weight: 600;
}

/* Bio */
.pro-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer with location + contact */
.pro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.pro-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.pro-location svg {
  width: 12px;
  height: 12px;
}

.pro-contact-btn {
  background: var(--coral-light);
  color: var(--coral-dark);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.pro-contact-btn:hover {
  background: var(--coral);
  color: #fff;
}

/* Rating stars */
.pro-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star-filled {
  color: #FFB800;
}

.star-half {
  color: #FFB800;
  position: relative;
}

.star-empty {
  color: #E0E0E0;
}

.rating-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.review-count {
  font-size: 11px;
  color: var(--text-faint);
}

/* ── Empty State ── */
.hire-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.hire-empty-icon {
  font-size: 48px;
  line-height: 1;
}

.hire-empty-state h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.hire-empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 340px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hire-search-bar {
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
  }
  
  .hire-search-field {
    background: var(--bg-white);
    border: 1.5px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 10px 12px;
  }
  
  .hire-search-bar select {
    background: var(--bg-white);
    border: 1.5px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 10px 12px;
  }
  
  .hire-search-bar .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hire-results-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pros-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hire-hero {
    padding: 2rem 0 2rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .featured-stats {
    justify-content: center;
  }
  
  .featured-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .featured-contact-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   19. Post a Job Page (post-job.html)
   ============================================================ */

/* ── Hero ── */
.post-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.post-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(216,90,48,0.06) 0%, transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(216,90,48,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.post-hero-inner  { position: relative; z-index: 1; }
.post-hero-text   { max-width: 680px; }
.post-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}
.post-hero-text h1 em { font-style: normal; color: var(--coral); }
.post-hero-text p     { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ── Form section layout ── */
.post-form-section { padding: 3rem 0 5rem; background: var(--bg); }

.post-form-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.post-form-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── Progress indicator ── */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}
.progress-step.active    { color: var(--coral); }
.progress-step.completed { color: var(--green-text); }
.step-number {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  transition: all var(--transition);
}
.progress-step.active .step-number    { background: var(--coral);      color: #fff; }
.progress-step.completed .step-number { background: var(--green-text); color: #fff; }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }

/* ── Form steps ── */
.form-step { padding: 2rem; }
.form-step--hidden { display: none; }

.form-step h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
}

/* ── Form groups ── */
.form-group { margin-bottom: 1.25rem; }
.form-group--hidden { display: none; }

.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.required { color: var(--coral); font-size: 12px; }
.optional  { color: var(--text-faint); font-size: 12px; font-weight: normal; }

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(216,90,48,0.1);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #C0392B; }

.field-hint  { display: block; font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.field-error { display: block; font-size: 11px; color: #C0392B; margin-top: 4px; min-height: 18px; }

/* ── Radio & checkbox ── */
.radio-group  { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 4px; }
.radio-option {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.radio-option input[type="radio"] {
  accent-color: var(--coral);
  width: 16px; height: 16px; cursor: pointer;
}
.checkbox-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.checkbox-option input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--coral); cursor: pointer;
}
.checkbox-option a { color: var(--coral); text-decoration: underline; }

/* ── Budget inputs ── */
.budget-input-group {
  display: flex; align-items: center;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}
.budget-input-group .currency {
  padding: 0 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  border-right: 1px solid var(--border);
}
.budget-input-group input {
  border: none; padding: 11px 10px; width: 100%;
}
.budget-input-group input:focus { box-shadow: none; }

.budget-range { display: flex; align-items: center; gap: 10px; }
.budget-range .budget-input-group { flex: 1; }
.range-sep { color: var(--text-muted); font-size: 14px; }

/* ── Pro posting notice (shown for pro/both account types) ── */
.pro-posting-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--coral-light);
  border: 1px solid rgba(216,90,48,0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.pro-notice-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.pro-posting-notice strong { display: block; font-size: 13px; font-weight: 600; color: var(--coral-dark); margin-bottom: 4px; }
.pro-posting-notice p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Form navigation ── */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.form-navigation .btn { min-width: 120px; }

/* ── Tips sidebar ── */
.post-tips { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.tips-card {
  background: var(--coral-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(216,90,48,0.2);
}
.tips-icon  { font-size: 32px; margin-bottom: 0.75rem; }
.tips-card h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  margin-bottom: 1rem;
  color: var(--coral-dark);
}
.tips-card ul  { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.tips-card li  { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.5; }
.tips-card li strong { color: var(--text); }
.tips-note {
  font-size: 12px; color: var(--coral-mid);
  background: rgba(255,255,255,0.6);
  padding: 10px; border-radius: var(--radius-sm);
  margin-top: 0.5rem; text-align: center;
}

/* ── Success state ── */
.post-success { text-align: center; padding: 3rem 2rem; }
.post-success-icon { font-size: 64px; margin-bottom: 1rem; }
.post-success h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--green-text);
}
.post-success p { color: var(--text-muted); margin-bottom: 1.5rem; }
.post-success .btn + .btn { margin-left: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-form-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .post-tips { position: static; order: 2; }
}
@media (max-width: 768px) {
  .post-hero    { padding: 2rem 0 1.5rem; }
  .form-progress { padding: 1rem; }
  .progress-step .step-label { display: none; }
  .form-step    { padding: 1.25rem; }
  .form-step h2 { font-size: 18px; }
  .radio-group  { flex-direction: column; gap: 0.5rem; }
  .form-navigation { flex-direction: column; }
  .form-navigation .btn { width: 100%; }
  .budget-range { flex-direction: column; }
  .range-sep    { display: none; }
}
@media (max-width: 480px) {
  .form-progress { justify-content: center; gap: 0.5rem; }
  .progress-line { display: none; }
  .step-number   { width: 28px; height: 28px; font-size: 12px; }
}


/* ============================================================
   20. How It Works Page (how-it-works.html)
   ============================================================ */

/* ── Hero Section ── */
.how-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.how-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(216,90,48,0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(216,90,48,0.04) 0%, transparent 45%);
  pointer-events: none;
}

.how-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.how-hero-inner {
  position: relative;
  z-index: 1;
}

.how-hero-text {
  max-width: 680px;
}

.how-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.how-hero-text h1 em {
  font-style: normal;
  color: var(--coral);
}

.how-hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── 3-Step Process Section ── */
.steps-section {
  padding: 4rem 0;
  background: var(--bg);
}

.steps-header {
  text-align: center;
  margin-bottom: 3rem;
}

.steps-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.steps-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--coral);
  box-shadow: 0 12px 32px rgba(216, 90, 48, 0.1);
}

.step-number-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.step-number-large {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  color: rgba(216, 90, 48, 0.15);
  line-height: 1;
}

.step-icon {
  position: absolute;
  bottom: 0;
  right: -10px;
  font-size: 32px;
  background: var(--coral-light);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--coral);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  transition: gap var(--transition);
}

.step-link:hover {
  gap: 10px;
}

/* ── Detailed Breakdown Section ── */
.detailed-breakdown {
  padding: 5rem 0;
  background: var(--bg-white);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.breakdown-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
}

.breakdown-card:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 24px rgba(216, 90, 48, 0.08);
}

.breakdown-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--coral-light);
}

.breakdown-icon {
  font-size: 48px;
  margin-bottom: 0.5rem;
}

.breakdown-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
}

.breakdown-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.breakdown-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.breakdown-list li:last-child {
  border-bottom: none;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--green-bg);
  color: var(--green-text);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.breakdown-list li div {
  flex: 1;
}

.breakdown-list li strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}

.breakdown-list li span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.breakdown-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── Comparison Table ── */
.comparison-section {
  padding: 5rem 0;
  background: var(--bg);
}

.comparison-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.comparison-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.comparison-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--coral-light);
  font-weight: 600;
  color: var(--coral-dark);
  font-size: 14px;
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table td:first-child {
  font-weight: 500;
  background: rgba(247, 245, 242, 0.5);
}

.ttustle-col {
  color: var(--green-text);
  background: rgba(59, 109, 17, 0.05);
}

.traditional-col {
  color: var(--coral-mid);
  background: rgba(216, 90, 48, 0.03);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ── FAQ Section ── */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-white);
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.faq-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--coral);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--coral-light);
}

.faq-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem 1.25rem;
}

.faq-answer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.browse-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .step-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .how-hero {
    padding: 2rem 0 2rem;
  }
  
  .steps-section {
    padding: 3rem 0;
  }
  
  .detailed-breakdown,
  .comparison-section,
  .faq-section {
    padding: 3rem 0;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 1rem;
    font-size: 12px;
  }
  
  .step-number-large {
    font-size: 56px;
  }
  
  .step-icon {
    width: 48px;
    height: 48px;
    font-size: 26px;
    right: -5px;
  }
}

@media (max-width: 600px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.75rem;
  }
  
  .comparison-table th:first-child,
  .comparison-table td:first-child {
    font-size: 11px;
  }
  
  .breakdown-card {
    padding: 1.5rem;
  }
  
  .breakdown-header h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pro-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .pro-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .pro-contact-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── Browse page responsive ── */
@media (max-width: 960px) {
  .browse-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes a full-height drawer from the left */
  .browse-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    padding: 5rem 1rem 2rem;
    z-index: 150;
    transition: left 0.28s ease;
    border-right: 1px solid var(--border);
    gap: 0.85rem;
  }
  .browse-sidebar.open { left: 0; }

  .mobile-filter-btn { display: inline-flex; }

  .browse-search-bar { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .browse-header { padding: 2.5rem 0 2rem; }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .job-card-top { flex-wrap: wrap; }
  .job-budget { margin-left: 0; }

  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .job-card-footer .btn { width: 100%; justify-content: center; }
}
/* ── Featured Job Card ── */
.job-card--featured {
  border-color: var(--coral) !important;
  background: linear-gradient(135deg, rgba(216,90,48,0.04) 0%, rgba(216,90,48,0.01) 100%);
  box-shadow: 0 0 0 3px rgba(216,90,48,0.12);
}
.job-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

/* ============================================================
   MOBILE RESPONSIVE OVERHAUL
   Comprehensive fixes for all pages on phones / small screens
   ============================================================ */

/* ── Navbar: always show bell outside hamburger for logged-in users ── */
#tt-notif-bell {
  /* Always visible in nav, never inside the drawer */
  order: -1;
}

/* On mobile, keep bell + profile outside the drawer */
@media (max-width: 768px) {
  /* Pull bell and profile button OUTSIDE the nav drawer */
  .nav-inner {
    position: relative;
  }

  /* Bell and profile slot shown inline next to hamburger */
  .nav-mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 10px;
  }

  /* Notification panel: ensure it opens upward-safe on small screens */
  .tt-notif-panel {
    right: -60px !important;
    width: 290px !important;
    max-height: 60vh;
    overflow-y: auto;
  }

  /* ── General layout fixes ── */
  .container {
    padding-inline: 1rem;
  }

  /* ── Hero section ── */
  .hero {
    padding: 2rem 0 2rem;
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: -1px;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 1.5rem;
  }
  .hero-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Search bar stacks nicely */
  .search-bar {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    border-radius: var(--radius-md);
  }
  .search-field {
    min-width: unset;
    width: 100%;
    padding: 4px 10px;
  }
  .search-bar select {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    width: 100%;
    border-radius: 0;
  }
  .search-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 11px;
  }

  /* Stats strip wraps cleanly */
  .hero-stats {
    gap: 1rem;
    margin-top: 1.75rem;
    justify-content: flex-start;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 12px; }

  /* ── Nav grid (homepage 2x2 cards) ── */
  .nav-grid-section { padding: 2rem 0; }
  .nav-grid-heading { font-size: 20px; margin-bottom: 1.25rem; }
  .nav-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nav-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .nav-card-icon { font-size: 26px; }
  .nav-card-title { font-size: 16px; }
  .nav-card-desc { font-size: 13px; }
  .nav-card-arrow { display: none; }

  /* ── Dual CTA ── */
  .dual-cta { padding: 2.5rem 0; }
  .dual-cta-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta-card {
    padding: 1.75rem 1.25rem;
    gap: 0.5rem;
  }
  .cta-icon { font-size: 28px; }
  .cta-card h3 { font-size: 18px; }
  .cta-card p { font-size: 14px; }

  /* ── Footer ── */
  .footer { padding: 2.5rem 0 0; }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
  .footer-brand { min-width: unset; }
  .footer-tagline { max-width: 100%; font-size: 13px; }
  .footer-links {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .footer-col { min-width: 120px; gap: 0.5rem; }
  .footer-col h4 { font-size: 11px; margin-bottom: 0.1rem; }
  .footer-col a { font-size: 13px; }
  .footer-bottom {
    padding: 1rem;
    font-size: 11px;
  }

  /* ── About Page ── */
  .about-hero { padding: 2rem 0 2rem; }
  .about-hero-content h1 {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -1px;
    line-height: 1.1;
  }
  .about-hero-sub { font-size: 14px; }

  .about-story { padding: 2.5rem 0; }
  .about-story-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .story-card--mid,
  .story-card--bot { margin-left: 0; }
  .about-story-text h2 { font-size: clamp(20px, 5vw, 26px); }
  .about-story-text p { font-size: 14px; }

  .about-values { padding: 2.5rem 0; }
  .values-grid { grid-template-columns: 1fr; gap: 12px; }
  .value-card { padding: 1.5rem 1.25rem; }
  .value-card-icon { font-size: 28px; margin-bottom: 0.75rem; }
  .value-card h3 { font-size: 15px; }
  .value-card p { font-size: 13px; }

  .about-stats-section { padding: 2rem 0; }
  .about-stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .about-stat-divider { display: none; }
  .about-stats-section .stat-num { font-size: 28px; }
  .about-stats-section .stat-label { font-size: 12px; }

  .about-team { padding: 2.5rem 0; }
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .team-card { padding: 1.5rem 1.25rem; }

  .about-section-header { margin-bottom: 1.75rem; }
  .about-section-header h2 { font-size: clamp(20px, 5vw, 26px); }
  .about-section-header p { font-size: 14px; }

  /* ── Browse Jobs Page ── */
  .browse-header { padding: 2rem 0 1.5rem; }
  .browse-header-text h1 {
    font-size: clamp(24px, 6vw, 32px);
    letter-spacing: -0.5px;
  }
  .browse-header-text p { font-size: 14px; }

  .browse-search-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .browse-search-bar .search-field { min-width: 100%; }
  .browse-search-bar select {
    flex: 1;
    min-width: 140px;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
  }
  .browse-search-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .browse-main { padding: 1.25rem 0 3rem; }

  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .job-card-top { flex-wrap: wrap; }
  .job-budget { margin-left: 0; }
  .job-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .job-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile filter button visible */
  .mobile-filter-btn { display: inline-flex; }

  /* ── Hire Page ── */
  .hire-hero { padding: 2rem 0 2rem; }
  .hire-hero-inner h1 {
    font-size: clamp(24px, 6vw, 32px);
    letter-spacing: -0.5px;
  }

  .hire-search-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hire-search-field { min-width: 100%; }
  #hireCategory,
  #hireRegion { width: 100%; }
  #hireSearchBtn { width: 100%; }

  .hire-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pros-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .featured-header { margin-bottom: 1.25rem; }

  /* ── Pro card mobile ── */
  .pro-card-header {
    flex-direction: row;
    align-items: flex-start;
  }
  .pro-footer {
    flex-direction: column;
    gap: 10px;
  }
  .pro-contact-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Profile / My-Jobs pages ── */
  .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .profile-sidebar-card { position: static !important; }

  .my-jobs-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* ── Post Job Page ── */
  .post-job-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .post-job-sidebar { position: static !important; }

  /* ── How It Works ── */
  .how-hero { padding: 2rem 0 2rem; }
  .steps-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .faq-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .breakdown-grid { grid-template-columns: 1fr !important; }

  /* ── Shop Page ── */
  .shop-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .shop-hero { padding: 2rem 0 1.75rem; }

  /* ── Auth pages ── */
  .auth-page { padding: 2rem 1rem; align-items: flex-start; }
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* ── Help/Legal pages ── */
  .legal-hero { padding: 2rem 0 1.5rem; }
  .legal-hero h1 { font-size: clamp(22px, 6vw, 32px); }
  .legal-body { padding-bottom: 3rem; }

  .help-body { padding-bottom: 3rem; }

  .safety-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .safety-card { padding: 1.25rem; }

  /* ── Job Detail Page ── */
  .job-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .job-detail-sidebar { position: static !important; }

  /* ── View Profile Page ── */
  .view-profile-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .view-profile-sidebar { position: static !important; }

  /* ── Section padding reductions ── */
  .featured-pros { padding: 2.5rem 0; }
  .hire-filters-section { padding: 1.25rem 0; }
  .hire-results-section { padding: 1.25rem 0 3rem; }
  .nav-grid-section { padding: 2rem 0; }
}

/* Extra small screens (< 400px) */
@media (max-width: 400px) {
  :root { --side-pad: 0.875rem; }

  .hero h1 { font-size: clamp(24px, 9vw, 32px); }
  .nav-pill { font-size: 13px; padding: 9px 10px; }
  .cta-card h3 { font-size: 16px; }
  .about-stats-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .auth-card { padding: 1.5rem 1rem; }
  .footer-links { flex-direction: column; gap: 1.25rem; }
  .tt-notif-panel { width: 260px !important; right: -40px !important; }
}



/* ============================================================
   CRITICAL MOBILE OVERFLOW FIX
   Prevents horizontal scroll / zoomed-out layout on mobile
   ============================================================ */

/* Lock the page width to the viewport — nothing can overflow it */
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Prevent any single element from blowing out the page width */
* {
  min-width: 0;
  box-sizing: border-box;
}

/* Clamp all text so long unbroken strings (wwwwww...) don't overflow */
.job-desc,
.job-title,
.pro-bio,
.browse-header-text p,
.nav-card-desc {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── The core browse-layout fix ──
   On ≤960px the sidebar becomes position:fixed so it's OUT of the
   normal flow. But the grid still has 2 columns unless we force 1fr.
   We also need the results column to span the full width.         */
@media (max-width: 960px) {
  .browse-layout {
    grid-template-columns: 1fr !important;
    display: block !important; /* belt-and-suspenders: block fills 100% */
    width: 100%;
  }

  /* The fixed sidebar must NOT contribute any width to the page */
  .browse-sidebar {
    /* Already position:fixed — just ensure it can't create overflow */
    max-width: 280px;
  }

  /* Results section takes full width */
  .browse-results {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  /* Job cards must never overflow their container */
  .job-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .job-grid {
    width: 100%;
    min-width: 0;
  }

  /* Active filter chips must wrap, not push width */
  .active-filters {
    flex-wrap: wrap;
    width: 100%;
    overflow: hidden;
  }
}

/* ── Browse header search bar full-width fix ── */
@media (max-width: 768px) {
  .browse-header {
    width: 100%;
    overflow: hidden;
  }

  .browse-header-inner {
    width: 100%;
    overflow: hidden;
  }

  .browse-search {
    width: 100%;
    max-width: 100%;
  }

  .browse-search-bar {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
  }

  .browse-search-bar .search-field {
    width: 100%;
    min-width: 0;
  }

  .browse-search-bar select {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 10px;
  }

  .browse-search-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Fix the job card description overflow (the wwwwww problem) */
  .job-desc {
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
  }

  /* Contain job card internals */
  .job-card {
    overflow: hidden;
  }

  .job-card-top {
    flex-wrap: wrap;
    min-width: 0;
  }

  /* Meta row wraps cleanly */
  .job-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ── Navbar always full-width ── */
.navbar, .nav-inner {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Footer full-width on mobile ── */
@media (max-width: 768px) {
  .footer {
    width: 100%;
    overflow: hidden;
  }

  .footer-inner {
    width: 100%;
    flex-direction: column;
  }
}

/* ============================================================
   NAVBAR RESPONSIVE FIX
   Prevents pills from wrapping/overflowing on medium screens
   ============================================================ */

/* At 1100px pills start getting tight — reduce padding + font */
@media (max-width: 1100px) {
  .nav-pill {
    font-size: 13px;
    padding: 5px 10px;
  }
  .nav-links { gap: 2px; }
}

/* At 900px collapse to hamburger — don't let nav wrap */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-white, #fff);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    gap: 3px;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }

  .nav-pill {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 10px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    color: var(--text);
    width: 100%;
    text-align: left;
  }
  .nav-pill:last-of-type { border-bottom: none; }
  .nav-pill:hover {
    background: rgba(216, 90, 48, 0.07);
    transform: none;
    box-shadow: none;
  }

  .nav-links .btn-outline {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .hamburger { display: flex; }
}