/* ============================================
   SapnaHub — Vibrant Student Design System
============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-xlight: #eff6ff;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --green: #059669;
  --green-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fef2f2;
  --orange: #ea580c;
  --cyan: #0891b2;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;

  --grad-hero:   linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
  --grad-blue:   linear-gradient(135deg, #2563eb, #6366f1);
  --grad-pink:   linear-gradient(135deg, #ec4899, #8b5cf6);
  --grad-green:  linear-gradient(135deg, #059669, #0891b2);
  --grad-orange: linear-gradient(135deg, #ea580c, #d97706);
  --grad-warm:   linear-gradient(135deg, #f59e0b, #ef4444);

  --s1: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --s2: 0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --s3: 0 8px 32px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.06);
  --sb: 0 4px 24px rgba(37,99,235,.35);

  --r: 16px; --r-sm: 10px; --r-lg: 24px; --r-xl: 32px;
  --px: 72px; --nav-h: 70px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--surface);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  /* Critical: prevent horizontal overflow on all devices */
  max-width: 100vw;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── NAVBAR ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px); height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 0 rgba(226,232,240,0.8), 0 4px 20px rgba(15,23,42,.04);
}
.logo { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 800; font-size: 23px; line-height: 1; flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.logo .l1 { color: var(--blue); }
.logo .l2 { color: var(--text); }
.logo-tag { font-size: 10px; font-weight: 500; color: var(--text-3); display: block; margin-top: 2px; letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 8px; transition: all 0.18s; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); background: var(--blue-xlight); }
.nav-links a.active { color: var(--blue); background: var(--blue-xlight); font-weight: 600; }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.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); }

/* Mobile menu */

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15,23,42,.10);
  width: 100%; overflow-y: auto;
  position: sticky; top: var(--nav-h); z-index: 999;
  max-height: calc(100vh - var(--nav-h));
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px var(--px); font-size: 15px; font-weight: 500;
  color: var(--text-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; white-space: nowrap;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); background: var(--blue-xlight); }
.mob-actions { padding: 14px var(--px); display: flex; gap: 10px; }
.mob-actions .btn { flex: 1; justify-content: center; }

/* User dropdown */
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1.5px solid var(--border); border-radius: 40px; background: var(--surface); cursor: pointer; transition: all .2s; font-family: 'Inter',sans-serif; }
.user-trigger:hover { border-color: var(--blue); box-shadow: var(--sb); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar-init { width: 32px; height: 32px; border-radius: 50%; background: var(--grad-blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-name-nav { font-size: 13px; font-weight: 600; color: var(--text); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chevron { color: var(--text-3); transition: transform .2s; flex-shrink: 0; }
.user-menu.open .user-chevron { transform: rotate(180deg); }
.user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r); min-width: 220px; box-shadow: var(--s3); z-index: 2000; opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none; transition: all .18s cubic-bezier(.34,1.56,.64,1); }
.user-menu.open .user-dropdown { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.ud-header { padding: 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.ud-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ud-av-i { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-blue); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ud-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ud-email { font-size: 11px; color: var(--text-3); margin-top: 1px; word-break: break-all; }
.ud-links { padding: 8px; }
.ud-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; text-decoration: none; transition: all .15s; }
.ud-link:hover { background: var(--bg); color: var(--blue); }
.ud-link.logout { color: var(--red); }
.ud-link.logout:hover { background: var(--red-light); }
.ud-divider { height: 1px; background: var(--border); margin: 4px 8px; }

/* ── BUTTONS ── */
.btn { padding: 10px 22px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: 'Inter',sans-serif; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; letter-spacing: 0.2px; text-decoration: none; white-space: nowrap; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xlight); }
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: var(--sb); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.45); filter: brightness(1.08); }
.btn-white { background: #fff; color: var(--blue); font-weight: 700; box-shadow: var(--s2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--s3); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; box-shadow: 0 4px 20px rgba(139,92,246,.35); }
.btn-purple:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 8px; border-left: 4px solid; word-break: break-word; }
.alert-success { background: var(--green-light); color: #065f46; border-color: var(--green); }
.alert-error   { background: var(--red-light);   color: #991b1b; border-color: var(--red); }
.alert-info    { background: var(--blue-xlight);  color: var(--blue-dark); border-color: var(--blue); }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ── HERO ── */
.page-hero {
  background: var(--grad-hero);
  padding: 56px var(--px) 48px;
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: -120px; right: -100px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.page-hero::after  { content: ''; position: absolute; bottom: -80px; left: -60px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.page-hero h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -1px; position: relative; z-index: 1; word-break: break-word; }
.page-hero h1 .accent { background: linear-gradient(135deg, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 28px; max-width: 600px; position: relative; z-index: 1; }

/* ── SEARCH BAR ── */
.search-bar {
  display: flex; background: #fff; border: none; border-radius: var(--r);
  overflow: hidden; box-shadow: 0 8px 40px rgba(15,23,42,.22);
  max-width: 720px; width: 100%; transition: box-shadow .2s;
  position: relative; z-index: 1;
}
.search-bar:focus-within { box-shadow: 0 8px 40px rgba(37,99,235,.28); }
.search-input { display: flex; align-items: center; gap: 10px; padding: 0 18px; flex: 1; min-width: 0; }
.search-input input { border: none; outline: none; font-size: 15px; font-family: 'Inter',sans-serif; color: var(--text); width: 100%; background: transparent; padding: 16px 0; font-weight: 500; min-width: 0; }
.search-input input::placeholder { color: var(--text-3); font-weight: 400; }
.search-icon { color: var(--text-3); flex-shrink: 0; }
.search-divider { width: 1px; background: var(--border); margin: 12px 0; flex-shrink: 0; }
.search-bar .btn-primary { border-radius: 0 var(--r) var(--r) 0; padding: 16px 22px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }

/* ── SECTIONS ── */
.section { padding: 72px var(--px); }
.section-alt { background: #f8faff; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; }
.section-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.6px; word-break: break-word; }
.view-all { color: var(--blue); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all 0.2s; border: 2px solid var(--blue-light); padding: 9px 18px; border-radius: 40px; background: var(--blue-xlight); flex-shrink: 0; }
.view-all:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }

/* ── WHY BANNER ── */
.why-banner { background: var(--grad-blue); padding: 52px var(--px); position: relative; overflow: hidden; }
.why-banner::before { content: ''; position: absolute; top: -80px; right: -60px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%); border-radius: 50%; }
.why-banner::after  { content: ''; position: absolute; bottom: -60px; left: -40px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, transparent 65%); border-radius: 50%; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; z-index: 1; }
.why-item { text-align: center; }
.why-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; border: 1.5px solid rgba(255,255,255,0.2); transition: transform 0.2s; flex-shrink: 0; }
.why-item:hover .why-icon { transform: translateY(-4px); background: rgba(255,255,255,0.22); }
.why-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.why-desc  { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* ── CTA STRIP ── */
.cta-strip { background: linear-gradient(135deg, #fdf4ff 0%, #fef3c7 50%, #fce7f3 100%); border-top: 1px solid #f5d0fe; border-bottom: 1px solid #fde68a; padding: 52px var(--px); text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; top: -60px; left: -40px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 65%); border-radius: 50%; }
.cta-strip::after  { content: ''; position: absolute; bottom: -60px; right: -40px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 65%); border-radius: 50%; }
.cta-strip h2 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 32px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 10px; position: relative; z-index: 1; word-break: break-word; }
.cta-strip h2 span { background: var(--grad-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-strip p { color: var(--text-2); font-size: 16px; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-strip .cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FEATURE CARDS ── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r); padding: 28px 24px; text-align: center; transition: all 0.25s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: var(--r) var(--r) 0 0; transition: opacity 0.2s; opacity: 0.7; }
.feature-card.fc-blue::before  { background: var(--grad-blue); }
.feature-card.fc-pink::before  { background: var(--grad-pink); }
.feature-card.fc-green::before { background: var(--grad-green); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--s3); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.feature-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-desc { color: var(--text-2); font-size: 13px; line-height: 1.7; }

/* ── JOB / INTERNSHIP CARDS ── */
.cards-grid { display: grid; gap: 20px; }
.cards-grid.col-4 { grid-template-columns: repeat(4,1fr); }
.cards-grid.col-3 { grid-template-columns: repeat(3,1fr); }
.cards-grid.col-2 { grid-template-columns: repeat(2,1fr); }
.cards-list { display: flex; flex-direction: column; gap: 16px; }

.jcard {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 22px;
  transition: all 0.25s cubic-bezier(.34,1.3,.64,1);
  display: flex; flex-direction: column;
  position: relative; text-decoration: none; color: inherit;
  overflow: hidden; min-width: 0; /* prevents card overflow */
}
.jcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-blue); opacity: 0; transition: opacity 0.2s; }
.jcard:hover { border-color: var(--blue); box-shadow: var(--s3); transform: translateY(-4px); }
.jcard:hover::before { opacity: 1; }
.jcard-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; min-width: 0; }
.co-logo { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; padding: 6px; box-shadow: var(--s1); }
.co-logo img { width: 100%; height: 100%; object-fit: contain; }
.co-logo-wrap { display: inline-flex; flex-shrink: 0; }
.jcard-info { flex: 1; min-width: 0; overflow: hidden; }
.jcard-title { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 3px; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.3; word-break: break-word; }
.jcard-company { color: var(--text-3); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.jcard-stats { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.jstat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-3); margin-bottom: 3px; }
.jstat-val { font-size: 13px; font-weight: 800; color: var(--text); word-break: break-word; }
.jcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; flex-wrap: wrap; gap: 8px; }
.time-ago { font-size: 11px; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.apply-btn { background: var(--grad-blue); color: #fff; border: none; border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Inter',sans-serif; transition: all 0.2s; text-decoration: none; display: inline-block; box-shadow: 0 2px 8px rgba(37,99,235,.3); white-space: nowrap; flex-shrink: 0; }
.apply-btn:hover { transform: translateY(-1px); box-shadow: var(--sb); filter: brightness(1.1); }

/* ── BADGES ── */
.badge { background: var(--bg); color: var(--text-2); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; border: 1.5px solid var(--border); }
.badge-blue   { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.badge-green  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.badge-amber  { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.badge-red    { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.badge-purple { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.badge-pink   { background: #fdf2f8; color: #9d174d; border-color: #fbcfe8; }
.new-pill { display: inline-block; background: linear-gradient(135deg, #059669, #0891b2); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 20px; vertical-align: middle; letter-spacing: 0.3px; white-space: nowrap; }

/* ── COMPANIES ── */
.co-section-header { text-align: center; margin-bottom: 36px; }
.co-section-header .section-label { display: block; margin-bottom: 8px; }
.co-section-header .section-title { font-size: 30px; }
.co-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.co-chip { height: 88px; background: var(--surface); border-radius: var(--r); border: 1.5px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 10px; cursor: pointer; gap: 6px; transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s; box-shadow: var(--s1); overflow: hidden; }
.co-chip:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(37,99,235,.15); border-color: var(--blue); }
.co-chip img { max-width: 100%; max-height: 36px; object-fit: contain; filter: grayscale(25%); transition: filter 0.22s, transform 0.22s; }
.co-chip:hover img { filter: grayscale(0%); transform: scale(1.05); }
.co-initial { width: 44px; height: 44px; border-radius: 12px; color: #fff; font-family: 'Plus Jakarta Sans',sans-serif; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: var(--text); }
label .req { color: var(--red); }
.req { color: var(--red); }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=tel],
.form-group input[type=password], .form-group input[type=url], .form-group input[type=date],
.form-group input[type=number], .form-group select, .form-group textarea,
input.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--r-sm);
  font-size: 16px; /* 16px prevents iOS zoom — never go below */
  font-family: 'Inter',sans-serif; color: var(--text); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none; /* fix iOS select styling */
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-3); }
.form-group input[readonly] { background: var(--bg); color: var(--text-2); cursor: not-allowed; }
.form-group textarea { resize: vertical; min-height: 96px; }

/* ── CONTENT CARDS ── */
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r); padding: 28px; margin-bottom: 20px; box-shadow: var(--s1); overflow: hidden; }
.card-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Static pages */
.content-section { padding: 64px var(--px); background: #f8faff; min-height: 60vh; }
.content-container { max-width: 880px; margin: 0 auto; }
.content-header { text-align: center; margin-bottom: 40px; }
.content-header h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 38px; font-weight: 800; margin-bottom: 10px; background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; word-break: break-word; }
.content-header p { color: var(--text-2); font-size: 15px; }
.content-body { background: var(--surface); border-radius: var(--r-lg); padding: 44px; border: 1.5px solid var(--border); box-shadow: var(--s2); overflow: hidden; }
.content-body h2 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 20px; font-weight: 800; margin: 28px 0 12px; color: var(--text); }
.content-body h2:first-child { margin-top: 0; }
.content-body p { color: var(--text-2); font-size: 15px; line-height: 1.85; margin-bottom: 16px; word-break: break-word; }
.content-body p strong { color: var(--text); }
.content-body ul { margin: 12px 0 16px 20px; color: var(--text-2); }
.content-body ul li { margin-bottom: 8px; line-height: 1.8; }
.mission-box { margin-top: 36px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); border: 1.5px solid #c7d2fe; border-radius: var(--r); padding: 28px; }
.mission-box h2 { color: var(--indigo); margin-top: 0; }
.mission-box p:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
.site-footer { background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%); color: #fff; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-blue); }
.footer-main { padding: 64px var(--px) 48px; display: grid; grid-template-columns: 260px 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { color: #64748b; font-size: 13px; margin: 16px 0; line-height: 1.9; }
.footer-col h4 { font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { color: #64748b; font-size: 14px; transition: color 0.2s; font-weight: 500; }
.footer-col ul li a:hover { color: #fff; }
.footer-col p { color: #475569; font-size: 13px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px var(--px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: #475569; }

/* ── AUTH ── */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: linear-gradient(160deg, #f0f4ff 0%, #faf5ff 50%, #fdf2f8 100%); }
.auth-card { background: var(--surface); width: 100%; max-width: 440px; border-radius: var(--r-xl); padding: 44px 40px; box-shadow: 0 20px 60px rgba(15,23,42,.12); border: 1.5px solid var(--border); }
.auth-card h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 4px; background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-subtitle { text-align: center; color: var(--text-2); font-size: 14px; margin-bottom: 28px; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 2px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; font-family: 'Inter',sans-serif; cursor: pointer; transition: all .2s; text-decoration: none; -webkit-appearance: none; }
.btn-google:hover { border-color: var(--blue); box-shadow: var(--sb); background: #fafbff; transform: translateY(-1px); }
.divider-line { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.divider-line::before, .divider-line::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-line span { color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; background: #f1f5f9; }
.admin-sidebar { width: 240px; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; }
.admin-brand { padding: 6px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: all 0.15s; white-space: nowrap; }
.admin-nav a:hover { background: var(--blue-xlight); color: var(--blue); }
.admin-nav a.active { background: var(--grad-blue); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.admin-main { flex: 1; padding: 28px 36px; min-width: 0; overflow-x: hidden; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.admin-top h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 26px; font-weight: 800; word-break: break-word; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r); padding: 20px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--s1); transition: transform .2s, box-shadow .2s; min-width: 0; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--s2); }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.stat-ic.b { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.stat-ic.g { background: linear-gradient(135deg, #d1fae5, #f0fdf4); }
.stat-ic.a { background: linear-gradient(135deg, #fef3c7, #fffbeb); }
.stat-ic.i { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.stat-val { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 24px; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--text-3); font-weight: 600; margin-top: 3px; }

.data-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--s1); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-3); padding: 14px 16px; text-align: left; border-bottom: 2px solid var(--border); background: #f8faff; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8faff; }
.data-table .actions { display: flex; gap: 6px; max-width: none; overflow: visible; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; color: var(--text-2); text-decoration: none; font-size: 14px; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-xlight); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,10,30,0.6); z-index: 3000; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(6px); }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 580px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 24px 80px rgba(15,23,42,.25); animation: modalIn 0.28s cubic-bezier(.34,1.4,.64,1); border: 1.5px solid var(--border); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-header { padding: 20px 22px 16px; border-bottom: 1.5px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, #f8faff, #fff); position: sticky; top: 0; z-index: 1; }
.modal-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 800; word-break: break-word; }
.modal-close { background: var(--bg); border: 1.5px solid var(--border); cursor: pointer; width: 32px; height: 32px; border-radius: 8px; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; transition: all 0.2s; line-height: 1; }
.modal-close:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 14px 22px 20px; border-top: 1.5px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }

.pill { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; white-space: nowrap; }
.pill-blue  { background: #dbeafe; color: #1d4ed8; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-green { background: #d1fae5; color: #065f46; }
.pill-red   { background: #fee2e2; color: #991b1b; }
.pill-gray  { background: var(--bg); color: var(--text-2); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty svg { margin: 0 auto 14px; opacity: 0.3; }
.empty p { font-size: 15px; margin-bottom: 18px; font-weight: 500; }

/* ============================================
   RESPONSIVE — single clean cascade
============================================ */

/* Large desktop */
@media (min-width: 1600px) { :root { --px: 120px; } }
@media (min-width: 1440px) { :root { --px: 96px; } }

/* Wide */
@media (max-width: 1280px) {
  :root { --px: 48px; }
  .cards-grid.col-4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1/-1; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .co-grid { grid-template-columns: repeat(4,1fr); }
}

/* Tablet */
@media (max-width: 1024px) {
  :root { --px: 28px; }
  .cards-grid.col-3 { grid-template-columns: repeat(2,1fr); }
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1/-1; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --px: 16px; --nav-h: 60px; }

  /* Nav */
  .nav { padding: 0 var(--px); }
  .nav-links, .nav-actions { display: none !important; }
  .hamburger { display: flex !important; }

  /* Hero */
  .page-hero { padding: 28px var(--px) 24px; text-align: left; }
  .page-hero h1 { font-size: 26px; letter-spacing: -0.5px; }
  .page-hero p { font-size: 14px; }

  /* Search bar stacks */
  .search-bar { flex-direction: column; max-width: 100%; border-radius: var(--r-sm); box-shadow: 0 4px 20px rgba(15,23,42,.15); }
  .search-input { padding: 0 14px; border-bottom: 1px solid var(--border); }
  .search-input:last-of-type { border-bottom: none; }
  .search-input input { padding: 13px 0; font-size: 15px; }
  .search-divider { display: none; }
  .search-bar .btn-primary { border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 13px; width: 100%; font-size: 14px; }

  /* Sections */
  .section { padding: 32px var(--px); }
  .section-top { gap: 6px; }
  .section-title { font-size: 20px; }
  .view-all { font-size: 12px; padding: 7px 14px; }

  /* All grids → 1 col */
  .cards-grid.col-4,
  .cards-grid.col-3,
  .cards-grid.col-2 { grid-template-columns: 1fr; gap: 10px; }

  /* Cards */
  .jcard { padding: 14px; border-radius: 12px; }
  .jcard-top { gap: 10px; margin-bottom: 10px; }
  .jcard-title { font-size: 13px; }
  .jcard-badges { gap: 4px; margin-bottom: 10px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .apply-btn { font-size: 11px; padding: 6px 12px; }

  /* Why banner */
  .why-banner { padding: 28px var(--px); }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-icon { width: 42px; height: 42px; font-size: 18px; margin-bottom: 10px; }
  .why-title { font-size: 13px; }
  .why-desc { font-size: 12px; }

  /* Feature cards */
  .feature-grid { grid-template-columns: 1fr; }

  /* CTA strip */
  .cta-strip { padding: 32px var(--px); }
  .cta-strip h2 { font-size: 22px; }
  .cta-strip p { font-size: 14px; }
  .cta-strip .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-strip .cta-btns .btn { width: 100%; }

  /* Companies */
  .co-section-header .section-title { font-size: 22px; }
  .co-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .co-chip { height: 66px; padding: 8px; }
  .co-chip img { max-height: 28px; }
  .co-initial { width: 34px; height: 34px; font-size: 15px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 12px; }

  /* Content pages */
  .content-section { padding: 24px var(--px) 36px; }
  .content-header h1 { font-size: 24px; }
  .content-body { padding: 20px 16px; border-radius: var(--r); }
  .content-body h2 { font-size: 17px; }
  .content-body p { font-size: 14px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px var(--px) 24px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px var(--px); gap: 4px; }
  .footer-copy { font-size: 12px; }

  /* Auth */
  .auth-wrap { padding: 20px var(--px); align-items: flex-start; padding-top: 28px; }
  .auth-card { padding: 24px 18px; border-radius: var(--r); }
  .auth-card h1 { font-size: 21px; }

  /* Buttons */
  .btn-lg { padding: 12px 22px; font-size: 14px; }

  /* Pill/badge */
  .pill { font-size: 10px; padding: 3px 9px; }

  /* Admin → horizontal tab bar */
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 900;
    flex-direction: row; overflow-x: auto; overflow-y: hidden;
    padding: 0; border-right: none; border-bottom: 2px solid var(--border);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-brand { display: none; }
  .admin-nav {
    flex-direction: row; flex: none; gap: 0;
    padding: 0; width: max-content; align-items: stretch;
  }
  .admin-nav a {
    white-space: nowrap; padding: 14px 14px; font-size: 12px;
    border-radius: 0; border-bottom: 3px solid transparent;
    margin-bottom: -2px; gap: 5px;
    background: transparent !important; box-shadow: none !important;
    color: var(--text-2) !important;
  }
  .admin-nav a svg { width: 14px; height: 14px; }
  .admin-nav a.active { border-bottom-color: var(--blue); color: var(--blue) !important; font-weight: 700 !important; }
  .admin-nav a:hover { background: var(--bg) !important; color: var(--blue) !important; }
  .admin-nav > div {
    display: flex; flex-direction: row; gap: 0;
    padding-top: 0; border-top: none; margin-top: 0; align-items: stretch;
  }
  .admin-main { padding: 16px var(--px); }

  /* Admin stats → 2 col */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 12px 10px; gap: 10px; border-radius: 10px; }
  .stat-val { font-size: 20px; }
  .stat-ic { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }
  .stat-lbl { font-size: 10px; }

  /* Admin tables → horizontal scroll */
  .data-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 520px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .data-table th { font-size: 10px; }
  .data-table td { font-size: 12px; }

  /* Modal → bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: var(--r) var(--r) 0 0;
    max-width: 100%; max-height: 90vh;
    animation: modalUp 0.3s cubic-bezier(.34,1.2,.64,1);
  }
  @keyframes modalUp { from { transform: translateY(100%); } to { transform: none; } }
  .modal-header { padding: 16px 16px 12px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 12px 16px 20px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --px: 14px; }

  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 13px; }

  .auth-card { padding: 22px 14px; }
  .jcard { padding: 12px; }
  .card { padding: 14px; }

  .stats-grid { gap: 6px; }
  .stat-val { font-size: 18px; }

  .admin-main { padding: 14px var(--px); }
  .admin-nav a { padding: 12px 10px; font-size: 11px; }
  .admin-nav a svg { display: none; } /* icons too cramped on tiny phones */

  .footer-main { grid-template-columns: 1fr; gap: 20px; padding: 28px var(--px) 20px; }
  .co-grid { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .co-chip { height: 58px; }

  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-banner { padding: 24px var(--px); }
  .why-item { display: flex; align-items: flex-start; text-align: left; gap: 12px; }
  .why-icon { margin: 0; flex-shrink: 0; width: 38px; height: 38px; font-size: 16px; }

  .cta-strip h2 { font-size: 20px; }

  .section { padding: 28px var(--px); }
  .section-title { font-size: 18px; }
}

/* Very small phones */
@media (max-width: 360px) {
  :root { --px: 12px; }
  .page-hero h1 { font-size: 20px; }
  .nav { height: 56px; }
  .jcard-title { font-size: 12px; }
}

/* iOS input zoom prevention */
@supports (-webkit-touch-callout: none) {
  input[type=text], input[type=email], input[type=tel],
  input[type=password], input[type=url], input[type=date],
  input[type=number], select, textarea {
    font-size: 16px !important;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}












































































