/* ================================================
   OPPORTUNITIESNE — MAIN STYLESHEET  v2
   Mobile-first · Modern · Dark-mode ready
   ================================================ */

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

:root {
  --primary:    #2563eb;
  --primary-d:  #1d4ed8;
  --primary-l:  #eff6ff;
  --primary-rgb: 37, 99, 235;
  --accent:     #f97316;
  --accent-d:   #ea6c00;
  --green:      #16a34a;
  --green-l:    #f0fdf4;
  --red:        #dc2626;
  --red-l:      #fff1f2;
  --purple:     #7c3aed;
  --purple-l:   #faf5ff;
  --yellow:     #d97706;
  --yellow-l:   #fffbeb;
  --teal:       #0d9488;
  --teal-l:     #f0fdfa;

  --bg:         #f4f6fb;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --border-m:   #cbd5e1;
  --text:       #0f172a;
  --text-m:     #475569;
  --text-l:     #94a3b8;

  --header-bg:  rgba(255, 255, 255, .82);
  --hero-grad:  linear-gradient(135deg, #0f1e4d 0%, #16308f 45%, #2563eb 100%);

  --badge-blue-bg:   #dbeafe;  --badge-blue-tx:   #1d4ed8;
  --badge-green-bg:  #dcfce7;  --badge-green-tx:  #15803d;
  --badge-orange-bg: #ffedd5;  --badge-orange-tx: #c2410c;
  --badge-red-bg:    #fee2e2;  --badge-red-tx:    #b91c1c;
  --badge-purple-bg: #ede9fe;  --badge-purple-tx: #6d28d9;
  --badge-teal-bg:   #ccfbf1;  --badge-teal-tx:   #0f766e;
  --badge-yellow-bg: #fef9c3;  --badge-yellow-tx: #a16207;
  --badge-gray-bg:   #f1f5f9;  --badge-gray-tx:   #475569;

  --hl-bg:      #fff7ed;
  --hl-border:  #fed7aa;
  --disc-bg:    #fffbeb;
  --disc-bd:    #fde68a;
  --disc-tx:    #92400e;
  --mark-bg:    #fef08a;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.06);
  --shadow:     0 2px 6px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.07);
  --shadow-md:  0 4px 12px rgba(15,23,42,.08), 0 16px 40px rgba(15,23,42,.12);
  --shadow-glow: 0 0 0 3px rgba(var(--primary-rgb), .14);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --primary:    #3b82f6;
  --primary-d:  #60a5fa;
  --primary-l:  rgba(59, 130, 246, .14);
  --primary-rgb: 59, 130, 246;
  --green-l:    rgba(22, 163, 74, .14);
  --red-l:      rgba(220, 38, 38, .14);
  --purple-l:   rgba(124, 58, 237, .14);
  --yellow-l:   rgba(217, 119, 6, .14);
  --teal-l:     rgba(13, 148, 136, .14);

  --bg:         #0b1120;
  --surface:    #111a2e;
  --surface-2:  #16203a;
  --border:     #1f2c47;
  --border-m:   #2c3b5c;
  --text:       #e6ecf7;
  --text-m:     #9fb0ca;
  --text-l:     #64748b;

  --header-bg:  rgba(11, 17, 32, .8);
  --hero-grad:  linear-gradient(135deg, #0c1533 0%, #12245f 45%, #1d4ed8 100%);

  --badge-blue-bg:   rgba(59,130,246,.16);  --badge-blue-tx:   #93c5fd;
  --badge-green-bg:  rgba(34,197,94,.15);   --badge-green-tx:  #86efac;
  --badge-orange-bg: rgba(249,115,22,.15);  --badge-orange-tx: #fdba74;
  --badge-red-bg:    rgba(239,68,68,.15);   --badge-red-tx:    #fca5a5;
  --badge-purple-bg: rgba(139,92,246,.16);  --badge-purple-tx: #c4b5fd;
  --badge-teal-bg:   rgba(20,184,166,.15);  --badge-teal-tx:   #5eead4;
  --badge-yellow-bg: rgba(234,179,8,.14);   --badge-yellow-tx: #fde047;
  --badge-gray-bg:   rgba(148,163,184,.14); --badge-gray-tx:   #cbd5e1;

  --hl-bg:      rgba(249,115,22,.09);
  --hl-border:  rgba(249,115,22,.28);
  --disc-bg:    rgba(234,179,8,.08);
  --disc-bd:    rgba(234,179,8,.25);
  --disc-tx:    #fcd34d;
  --mark-bg:    rgba(250,204,21,.35);

  --shadow-sm:  0 1px 2px rgba(0,0,0,.3);
  --shadow:     0 2px 6px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
  --shadow-md:  0 4px 12px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

::selection { background: rgba(var(--primary-rgb), .25); }

/* Accessible focus rings */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-m); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-l); }

/* ================================================
   SCROLL PROGRESS BAR
   ================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 500; transition: width .08s linear;
}

/* ================================================
   ALERT / TICKER BAR
   ================================================ */
.alert-bar { background: #0c1224; color: #f8fafc; padding: 7px 0; font-size: .8rem; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.06); }
.alert-inner { display: flex; align-items: center; gap: 12px; }
.alert-tag {
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; font-weight: 700;
  font-size: .72rem; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
  letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px;
}
.alert-tag::before {
  content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.alert-ticker { overflow: hidden; white-space: nowrap; flex: 1; }
.alert-ticker span { display: inline-block; animation: ticker 32s linear infinite; padding-left: 100%; }
.alert-ticker:hover span { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ================================================
   HEADER — glass, sticky
   ================================================ */
.site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200; padding: 12px 0 10px;
  transition: box-shadow .25s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-row { display: flex; align-items: center; gap: 12px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-weight: 800; font-size: .85rem; padding: 6px 10px;
  border-radius: var(--radius-sm); letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .35);
}
.logo-mark.sm { font-size: .75rem; padding: 4px 7px; }
.logo-text { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text); }
.logo-text strong { color: var(--primary); font-weight: 800; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); cursor: pointer;
  color: var(--text-m); transition: all .2s; flex-shrink: 0; margin-left: auto;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-m); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav menu */
.main-nav { display: none; flex-direction: column; padding: 10px 0 4px; gap: 2px; }
.main-nav.open { display: flex; animation: navSlide .25s ease; }
@keyframes navSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--text-m); padding: 8px 13px;
  border-radius: 50px; cursor: pointer; background: none; border: none;
  width: 100%; text-align: left; transition: all .18s; font-family: var(--font);
}
.nav-link:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }

/* Dropdown */
.nav-more { position: relative; }
.nav-more-btn { display: flex; align-items: center; gap: 4px; }
.nav-dropdown {
  display: none; flex-direction: column; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); margin-top: 4px;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown a { font-size: .85rem; padding: 8px 12px; color: var(--text-m); border-radius: var(--radius-sm); transition: all .15s; }
.nav-dropdown a:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }

/* Search */
.search-wrap { margin-top: 10px; }
.search-form {
  display: flex; align-items: center; background: var(--surface-2);
  border: 2px solid var(--border); border-radius: 50px;
  padding: 4px 4px 4px 16px; transition: all .25s;
}
.search-form:focus-within { border-color: var(--primary); background: var(--surface); box-shadow: var(--shadow-glow); }
.search-icon { font-size: 1rem; color: var(--text-l); flex-shrink: 0; display: inline-flex; }
.search-icon svg { width: 17px; height: 17px; }
.search-form input { flex: 1; border: none; background: transparent; font-size: .9rem; padding: 7px 10px; outline: none; color: var(--text); font-family: var(--font); min-width: 0; }
.search-form input::placeholder { color: var(--text-l); }
.search-form button {
  background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff; border: none;
  border-radius: 50px; padding: 9px 22px; font-size: .88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: var(--font); transition: all .2s;
}
.search-form button:hover { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(var(--primary-rgb), .4); }

/* ================================================
   MAIN CONTENT AREA
   ================================================ */
.site-main { padding: 24px 0 48px; }

/* ================================================
   HERO SECTION — gradient mesh + glow
   ================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-grad);
  border-radius: var(--radius-lg); padding: 44px 24px 38px; margin-bottom: 32px;
  color: #fff; text-align: center;
  box-shadow: 0 20px 60px -20px rgba(30, 58, 138, .5);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.22), transparent 65%);
  top: -220px; right: -140px; pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px, 35px) scale(1.15); } }
.hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #e0eaff; font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 16px; border-radius: 50px; margin-bottom: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1.22; margin-bottom: 12px; letter-spacing: -.02em; }
.hero h1 span {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: .95rem; opacity: .88; margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-stat {
  text-align: center; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 12px 20px; min-width: 108px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all .25s;
}
.hero-stat:hover { background: rgba(255,255,255,.14); transform: translateY(-3px); }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fbbf24; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: .74rem; opacity: .82; letter-spacing: .02em; }

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.section-head h2 .icon { font-size: 1.1rem; }
.view-all {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  border: 1px solid var(--border); border-radius: 50px; padding: 5px 16px;
  white-space: nowrap; transition: all .2s; background: var(--surface);
}
.view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3); }

/* ================================================
   CATEGORY CARDS
   ================================================ */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.cat-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 10px 14px; text-align: center;
  color: var(--text); transition: all .22s cubic-bezier(.2,.7,.3,1.2); display: block; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 3px 3px 0 0; opacity: .9;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); text-decoration: none; }
.cat-card .icon {
  font-size: 1.7rem; margin: 0 auto 8px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--surface-2); transition: transform .25s;
}
.cat-card:hover .icon { transform: scale(1.12) rotate(-4deg); }
.cat-card .name { font-size: .8rem; font-weight: 600; color: var(--text); display: block; line-height: 1.3; }
.cat-card .count { font-size: .72rem; color: var(--text-l); margin-top: 3px; display: block; }

/* Colored category accents */
.cat-card.blue::before   { background: var(--primary); }
.cat-card.green::before  { background: var(--green); }
.cat-card.orange::before { background: var(--accent); }
.cat-card.purple::before { background: var(--purple); }
.cat-card.teal::before   { background: var(--teal); }
.cat-card.red::before    { background: var(--red); }
.cat-card.yellow::before { background: var(--yellow); }
.cat-card.blue .icon   { background: var(--primary-l); }
.cat-card.green .icon  { background: var(--green-l); }
.cat-card.orange .icon { background: var(--yellow-l); }
.cat-card.purple .icon { background: var(--purple-l); }
.cat-card.teal .icon   { background: var(--teal-l); }
.cat-card.red .icon    { background: var(--red-l); }
.cat-card.yellow .icon { background: var(--yellow-l); }

/* ================================================
   LISTING CARDS
   ================================================ */
.listing-list { display: flex; flex-direction: column; gap: 12px; }

.listing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: all .22s ease; border-left: 4px solid transparent; position: relative;
}
.listing-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--border-m);
  border-left-color: var(--primary); transform: translateY(-2px);
}
.listing-card.featured { border-left-color: var(--accent); }
.listing-card.featured::after {
  content: '★ Featured'; position: absolute; top: 12px; right: 14px;
  font-size: .66rem; font-weight: 700; color: var(--accent);
  letter-spacing: .05em; text-transform: uppercase;
}

.listing-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.listing-card h3 { font-size: .97rem; font-weight: 600; line-height: 1.45; }
.listing-card h3 a { color: var(--text); transition: color .15s; }
.listing-card h3 a:hover { color: var(--primary); text-decoration: none; }
.listing-card .org { font-size: .82rem; color: var(--text-m); margin-top: 3px; }

.listing-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: .78rem; color: var(--text-m); }
.listing-meta span { display: flex; align-items: center; gap: 4px; }

.new-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  font-size: .64rem; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0; letter-spacing: .05em;
  animation: newPulse 2s ease-in-out infinite;
}
@keyframes newPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); } }

/* ================================================
   BADGES / TAGS
   ================================================ */
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.badge-blue   { background: var(--badge-blue-bg);   color: var(--badge-blue-tx); }
.badge-green  { background: var(--badge-green-bg);  color: var(--badge-green-tx); }
.badge-orange { background: var(--badge-orange-bg); color: var(--badge-orange-tx); }
.badge-red    { background: var(--badge-red-bg);    color: var(--badge-red-tx); }
.badge-purple { background: var(--badge-purple-bg); color: var(--badge-purple-tx); }
.badge-teal   { background: var(--badge-teal-bg);   color: var(--badge-teal-tx); }
.badge-yellow { background: var(--badge-yellow-bg); color: var(--badge-yellow-tx); }
.badge-gray   { background: var(--badge-gray-bg);   color: var(--badge-gray-tx); }

/* Deadline indicator */
.deadline { font-size: .78rem; font-weight: 600; }
.deadline.urgent { color: var(--red); }
.deadline.soon   { color: var(--yellow); }
.deadline.ok     { color: var(--green); }
.deadline.expired { color: var(--text-l); text-decoration: line-through; }

/* ================================================
   FEATURED / HIGHLIGHT STRIP
   ================================================ */
.highlight-strip {
  background: var(--hl-bg); border: 1px solid var(--hl-border);
  border-radius: var(--radius); padding: 15px 18px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.highlight-strip .hl-icon { font-size: 1.6rem; flex-shrink: 0; }
.highlight-strip h4 { font-size: .92rem; font-weight: 700; color: var(--badge-orange-tx); }
.highlight-strip p  { font-size: .82rem; color: var(--text-m); margin-top: 2px; }

/* ================================================
   SIDEBAR
   ================================================ */
.page-layout { display: flex; flex-direction: column; gap: 24px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.sidebar-card:hover { box-shadow: var(--shadow); }
.sidebar-card-head { background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff; padding: 11px 16px; font-size: .88rem; font-weight: 700; }
.sidebar-card-head.green  { background: linear-gradient(135deg, #16a34a, #0d9488); }
.sidebar-card-head.orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.sidebar-card-head.purple { background: linear-gradient(135deg, #7c3aed, #db2777); }
.sidebar-card-body { padding: 12px 16px; }

.sidebar-list { display: flex; flex-direction: column; }
.sidebar-list a {
  font-size: .83rem; color: var(--text); padding: 9px 0;
  border-bottom: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center; gap: 8px; transition: all .15s;
}
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--primary); text-decoration: none; padding-left: 4px; }
.sidebar-list .s-badge { font-size: .7rem; background: var(--primary-l); color: var(--primary); padding: 1px 8px; border-radius: 20px; flex-shrink: 0; }

/* ================================================
   NEWSLETTER STRIP
   ================================================ */
.newsletter-strip {
  position: relative; overflow: hidden;
  background: var(--hero-grad); color: #fff; padding: 40px 0; margin-top: 32px;
}
.newsletter-strip::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.newsletter-inner { position: relative; display: flex; flex-direction: column; gap: 18px; }
.newsletter-text h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.newsletter-text p  { font-size: .88rem; opacity: .85; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 11px 18px;
  border: 2px solid rgba(255,255,255,.3); border-radius: 50px;
  background: rgba(255,255,255,.12); color: #fff; font-size: .9rem;
  outline: none; font-family: var(--font); transition: all .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { border-color: #fff; background: rgba(255,255,255,.2); }
.newsletter-form button {
  background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; border: none;
  border-radius: 50px; padding: 11px 26px; font-size: .9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: var(--font); transition: all .2s;
}
.newsletter-form button:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(249,115,22,.4); transform: translateY(-1px); }

/* ================================================
   FOOTER
   ================================================ */
.site-footer { background: #0c1224; color: #94a3b8; padding: 52px 0 0; }
.footer-grid { display: grid; gap: 32px; }
.footer-about p  { font-size: .85rem; line-height: 1.7; margin-top: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; font-family: var(--font-display); }
.footer-logo:hover { text-decoration: none; }
.social-links { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.social-btn { font-size: .78rem; padding: 6px 15px; border: 1px solid #26334f; border-radius: 20px; color: #94a3b8; transition: all .2s; }
.social-btn:hover { border-color: var(--primary); color: #fff; background: rgba(var(--primary-rgb), .15); text-decoration: none; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 14px; font-family: var(--font-display); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94a3b8; font-size: .84rem; transition: all .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; padding-left: 3px; }

.footer-states { border-top: 1px solid #1a2440; padding: 18px 0; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-states-label { font-size: .78rem; color: #64748b; white-space: nowrap; }
.footer-states a { font-size: .78rem; color: #64748b; border: 1px solid #1a2440; border-radius: 20px; padding: 3px 12px; transition: all .2s; }
.footer-states a:hover { color: #fff; border-color: #475569; text-decoration: none; }

.footer-bottom { border-top: 1px solid #1a2440; padding: 18px 0 20px; text-align: center; }
.footer-bottom p { font-size: .8rem; margin-bottom: 4px; }
.footer-bottom .disclaimer { color: #475569; font-size: .75rem; }

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), #4f46e5); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), .45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(var(--primary-rgb), .55); }
.back-to-top svg { width: 18px; height: 18px; }

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.65,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .alert-ticker span, .hero::after, .new-badge { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ================================================
   PAGINATION
   ================================================ */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; justify-content: center; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; color: var(--text-m);
  background: var(--surface); transition: all .18s;
}
.pagination a:hover { background: var(--primary-l); color: var(--primary); border-color: var(--primary); text-decoration: none; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; box-shadow: 0 3px 10px rgba(var(--primary-rgb), .35); }

/* ================================================
   UTILITY
   ================================================ */
.mt-1 { margin-top: 8px; }   .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.ml-1 { margin-left: 8px; }
.text-muted { color: var(--text-l); } .text-center { text-align: center; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ================================================
   DESKTOP — 768px+
   ================================================ */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav   { display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; margin-left: auto; }
  .nav-link   { width: auto; }
  .theme-toggle { margin-left: 0; order: 10; }

  .nav-more { position: relative; }
  .nav-more:hover .nav-dropdown { display: flex; position: absolute; top: 100%; right: 0; min-width: 210px; z-index: 300; margin-top: 6px; animation: navSlide .2s ease; }

  .search-wrap { margin-top: 12px; }
  .search-form { max-width: 640px; margin: 0 auto; }

  .hero { padding: 60px 32px 52px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { gap: 18px; }

  .category-grid { grid-template-columns: repeat(6, 1fr); }

  .page-layout { flex-direction: row; align-items: flex-start; }
  .page-layout .main-content { flex: 1; min-width: 0; }
  .sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 96px; }

  .newsletter-inner { flex-direction: row; align-items: center; justify-content: space-between; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .category-grid { grid-template-columns: repeat(9, 1fr); }
}

/* ================================================
   CATEGORY PAGE EXTRAS
   ================================================ */
.breadcrumb { display:flex; align-items:center; gap:6px; font-size:.82rem; color:var(--text-l); flex-wrap:wrap; }
.breadcrumb a { color:var(--text-m); }
.breadcrumb a:hover { color:var(--primary); text-decoration:none; }
.breadcrumb span { color:var(--text-l); }

.cat-header { display:flex; align-items:center; gap:16px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); }
.cat-header-icon { font-size:2.8rem; flex-shrink:0; }
.cat-header h1 { font-family:var(--font-display); font-size:1.35rem; font-weight:700; margin-bottom:4px; }
.cat-header p  { font-size:.87rem; color:var(--text-m); }

.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; box-shadow:var(--shadow-sm); }
.filter-group { display:flex; flex-direction:column; gap:4px; }
.filter-group label { font-size:.75rem; font-weight:600; color:var(--text-l); text-transform:uppercase; letter-spacing:.04em; }
.filter-group select, .filter-group input[type=text] { border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; font-size:.85rem; color:var(--text); background:var(--surface-2); outline:none; font-family:var(--font); transition:all .18s; }
.filter-group select:focus, .filter-group input:focus { border-color:var(--primary); box-shadow:var(--shadow-glow); }
.filter-group button { background:var(--primary); color:#fff; border:none; border-radius:var(--radius-sm); padding:8px 16px; font-size:.85rem; font-weight:600; cursor:pointer; font-family:var(--font); transition:all .18s; }
.filter-group button:hover { background:var(--primary-d); }
.filter-search { flex:1; min-width:180px; }
.filter-search input { width:100%; }
.filter-clear { font-size:.82rem; color:var(--red); border:1px solid var(--red); border-radius:20px; padding:4px 12px; align-self:flex-end; white-space:nowrap; transition:all .18s; }
.filter-clear:hover { background:var(--red-l); text-decoration:none; }

/* ================================================
   REGION TABS (horizontal pill strip)
   ================================================ */
.region-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.region-tab {
    display:inline-block; padding:6px 16px; border-radius:20px;
    font-size:.82rem; font-weight:600; border:1.5px solid var(--border);
    color:var(--text-m); background:var(--surface); white-space:nowrap;
    transition:all .18s;
}
.region-tab:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-l); text-decoration:none; }
.region-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); box-shadow:0 3px 10px rgba(var(--primary-rgb),.3); }

/* Vertical region tabs (sidebar) */
.region-tabs-v { display:flex; flex-direction:column; gap:4px; }
.region-tab-v {
    display:block; padding:8px 12px; border-radius:var(--radius-sm);
    font-size:.83rem; font-weight:500; color:var(--text-m); border:1px solid var(--border);
    background:var(--surface); transition:all .18s;
}
.region-tab-v:hover { background:var(--primary-l); color:var(--primary); border-color:var(--primary); text-decoration:none; }
.region-tab-v.active { background:var(--primary); color:#fff; border-color:var(--primary); font-weight:600; }

/* ================================================
   PAGINATION — prev/next labels + ellipsis
   ================================================ */
.pag-prev, .pag-next {
    padding:0 14px; min-width:auto; font-size:.82rem; font-weight:600; border-radius:var(--radius-sm);
    white-space:nowrap; height:38px; display:inline-flex; align-items:center;
}
.pag-ellipsis {
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:38px; color:var(--text-l); font-size:.85rem; pointer-events:none;
    border:none !important; background:transparent !important;
}
.pagination .disabled {
    border-color:var(--border); color:var(--text-l); background:var(--surface-2);
    cursor:default; pointer-events:none;
}
.pag-info {
    text-align:center; font-size:.78rem; color:var(--text-l); margin-top:10px;
}

/* ================================================
   LISTING DETAIL PAGE
   ================================================ */
.detail-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius-lg); box-shadow:var(--shadow);
    overflow:hidden;
}

/* Header */
.detail-header { padding:26px 24px 0; border-bottom:1px solid var(--border); padding-bottom:20px; }
.detail-header-top { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.detail-title { font-family:var(--font-display); font-size:1.3rem; font-weight:800; line-height:1.35; color:var(--text); letter-spacing:-.01em; }
.detail-org { font-size:.9rem; color:var(--text-m); margin-top:6px; }

/* Quick-info strip */
.detail-meta-strip {
    display:flex; flex-wrap:wrap; gap:0;
    border-bottom:1px solid var(--border);
}
.dms-item {
    flex:1; min-width:140px; padding:14px 20px;
    border-right:1px solid var(--border);
}
.dms-item:last-child { border-right:none; }
.dms-item.urgent .dms-value { color:var(--red); font-weight:700; }
.dms-item.ok     .dms-value { color:var(--green); font-weight:700; }
.dms-item.expired .dms-value { color:var(--text-l); text-decoration:line-through; }
.dms-label { display:block; font-size:.7rem; font-weight:700; text-transform:uppercase;
             letter-spacing:.06em; color:var(--text-l); margin-bottom:3px; }
.dms-value { font-size:.88rem; font-weight:600; color:var(--text); }

/* Apply CTA */
.detail-cta { padding:20px 24px; display:flex; flex-wrap:wrap; gap:10px; align-items:center;
              border-bottom:1px solid var(--border); background:var(--surface-2); }
.detail-cta-bottom { border-top:1px solid var(--border); border-bottom:none; background:var(--surface-2); }
.btn-apply {
    display:inline-block; background:linear-gradient(135deg, var(--primary), #4f46e5); color:#fff;
    font-weight:700; font-size:.9rem; padding:12px 30px; border-radius:50px;
    border:none; cursor:pointer; text-decoration:none; transition:all .2s;
}
.btn-apply:hover { filter:brightness(1.1); color:#fff; text-decoration:none; box-shadow:0 6px 20px rgba(var(--primary-rgb),.4); transform:translateY(-1px); }
.btn-notif {
    display:inline-block; background:var(--surface); color:var(--text);
    font-weight:600; font-size:.9rem; padding:11px 24px; border-radius:50px;
    border:1.5px solid var(--border); text-decoration:none; transition:all .18s;
}
.btn-notif:hover { border-color:var(--primary); color:var(--primary); text-decoration:none; }
.detail-cta-note { font-size:.78rem; color:var(--text-l); }
.expired-banner {
    background:var(--red-l); color:var(--red); border:1px solid var(--red);
    border-radius:var(--radius-sm); padding:10px 18px; font-size:.85rem; font-weight:600;
}

/* Sections */
.detail-section { padding:22px 24px; border-bottom:1px solid var(--border); }
.detail-section:last-child { border-bottom:none; }
.detail-section-title { font-family:var(--font-display); font-size:1rem; font-weight:700; color:var(--text); margin-bottom:14px; }

/* Description body */
.detail-body { font-size:.9rem; line-height:1.75; color:var(--text); }
.detail-body h2,.detail-body h3 { font-size:1rem; font-weight:700; margin:18px 0 8px; }
.detail-body ul,.detail-body ol { padding-left:20px; margin:10px 0; }
.detail-body ul { list-style: disc; }
.detail-body ol { list-style: decimal; }
.detail-body li  { margin-bottom:5px; }
.detail-body p   { margin-bottom:10px; }
.detail-body table { width:100%; border-collapse:collapse; font-size:.85rem; }
.detail-body td,.detail-body th { border:1px solid var(--border); padding:8px 12px; text-align:left; }
.detail-body th { background:var(--surface-2); font-weight:600; }

/* Important dates table */
.detail-table { width:100%; border-collapse:collapse; font-size:.88rem; }
.detail-table th { background:var(--primary); color:#fff; padding:10px 14px; text-align:left; font-size:.8rem; letter-spacing:.04em; }
.detail-table td { padding:10px 14px; border-bottom:1px solid var(--border); color:var(--text); }
.detail-table tr:last-child td { border-bottom:none; }
.detail-table tr:nth-child(even) td { background:var(--surface-2); }

/* Tags */
.tag-list { display:flex; flex-wrap:wrap; gap:6px; }
.tag-chip {
    display:inline-block; background:var(--surface-2); color:var(--text-m);
    border:1px solid var(--border); border-radius:20px; padding:4px 12px;
    font-size:.75rem; font-weight:500; transition:all .15s;
}
.tag-chip:hover { background:var(--primary-l); color:var(--primary); border-color:var(--primary); text-decoration:none; }

/* Detail footer */
.detail-footer {
    padding:14px 24px; background:var(--surface-2); border-top:1px solid var(--border);
    display:flex; flex-wrap:wrap; gap:16px; font-size:.78rem; color:var(--text-l);
}
.detail-footer a { color:var(--text-m); }
.detail-footer a:hover { color:var(--primary); }

/* Deadline sidebar box */
.deadline-box.urgent .sidebar-card-head { background:linear-gradient(135deg, #dc2626, #ef4444); }
.deadline-box.ok     .sidebar-card-head { background:linear-gradient(135deg, #16a34a, #0d9488); }
.deadline-date { font-size:1.25rem; font-weight:800; color:var(--text); margin-bottom:6px; font-family:var(--font-display); }
.deadline-days { font-size:.88rem; color:var(--text-m); }

/* Share buttons */
.share-btns { display:flex; flex-direction:column; gap:8px; }
.share-btn {
    display:block; text-align:center; padding:10px 14px; border-radius:var(--radius-sm);
    font-size:.83rem; font-weight:600; cursor:pointer; border:none; font-family:var(--font);
    text-decoration:none; transition:all .18s;
}
.share-btn:hover { opacity:.88; text-decoration:none; transform:translateY(-1px); }
.share-btn.whatsapp { background:#25d366; color:#fff; }
.share-btn.telegram  { background:#229ed9; color:#fff; }
.share-btn.copy      { background:var(--surface-2); color:var(--text); border:1px solid var(--border); }

/* Utility */
.opacity-60 { opacity:.6; }

/* ================================================
   SEARCH PAGE
   ================================================ */

/* Compact search hero bar */
.search-hero {
    background:var(--hero-grad);
    border-radius:var(--radius-lg);
    padding:26px 20px;
    margin-bottom:20px;
}
.search-hero-form {
    display:flex;
    gap:8px;
    max-width:700px;
    margin:0 auto;
}
.search-hero-input-wrap {
    flex:1;
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:50px;
    padding:4px 4px 4px 16px;
    gap:6px;
}
.search-hero-input-wrap .search-icon { color:#94a3b8; flex-shrink:0; }
.search-hero-input-wrap input {
    flex:1; border:none; background:transparent;
    font-size:.92rem; padding:8px 6px; outline:none;
    color:#0f172a; font-family:var(--font); min-width:0;
}
.search-hero-input-wrap input::placeholder { color:#94a3b8; }
.search-clear {
    color:#94a3b8; font-size:.9rem; padding:4px 8px;
    flex-shrink:0; line-height:1;
}
.search-clear:hover { color:var(--red); text-decoration:none; }
.search-hero-btn {
    background:linear-gradient(135deg, #f97316, #ef4444); color:#fff; border:none;
    border-radius:50px; padding:10px 24px;
    font-size:.9rem; font-weight:700; cursor:pointer;
    white-space:nowrap; font-family:var(--font);
    flex-shrink:0; transition:all .2s;
}
.search-hero-btn:hover { filter:brightness(1.08); box-shadow:0 4px 14px rgba(249,115,22,.4); }

/* Results summary */
.results-summary {
    font-size:.85rem;
    color:var(--text-m);
    padding:0 2px;
}
.results-summary strong { color:var(--text); }
.results-summary em { font-style:italic; }

/* Keyword highlight in results */
mark {
    background:var(--mark-bg);
    color:var(--text);
    border-radius:2px;
    padding:0 2px;
}

/* Empty / no-query state */
.search-empty-state {
    text-align:center;
    padding:48px 20px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
}
.ses-icon { font-size:3rem; margin-bottom:12px; }
.search-empty-state h2 { font-size:1.15rem; font-weight:700; margin-bottom:8px; }
.search-empty-state p  { font-size:.88rem; color:var(--text-m); max-width:420px; margin:0 auto 18px; }
.ses-suggestions {
    display:flex; flex-wrap:wrap; gap:6px;
    justify-content:center; align-items:center;
}
.ses-suggestions span { font-size:.8rem; color:var(--text-l); }

/* Active tag chip */
.tag-chip.active {
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

/* ================================================
   COUNTDOWN TIMER
   ================================================ */
.countdown-grid {
    display:grid;
    grid-template-columns: repeat(7, auto);
    align-items:center;
    justify-content:center;
    gap:4px;
    margin:12px 0 4px;
}
.cd-box {
    display:flex;
    flex-direction:column;
    align-items:center;
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:var(--radius-sm);
    padding:6px 10px;
    min-width:46px;
}
.cd-num {
    font-size:1.3rem;
    font-weight:800;
    color:var(--primary);
    line-height:1.1;
    font-variant-numeric:tabular-nums;
    font-family:var(--font-display);
}
.deadline-box.urgent .cd-num { color:var(--red); }
.cd-box small { font-size:.62rem; color:var(--text-l); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
.cd-sep { font-size:1.2rem; font-weight:700; color:var(--text-l); }

/* ================================================
   SELECTION PROCESS STEPS
   ================================================ */
.selection-steps {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
    padding:4px 0;
}
.sel-step { display:flex; align-items:center; gap:6px; }
.sel-num {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:24px; height:24px;
    background:var(--primary);
    color:#fff;
    border-radius:50%;
    font-size:.75rem;
    font-weight:700;
    flex-shrink:0;
}
.sel-text { font-size:.88rem; font-weight:500; color:var(--text); }
.sel-arrow { color:var(--text-l); font-size:1rem; }

/* ================================================
   IMPORTANT LINKS TABLE
   ================================================ */
.links-table td:first-child { font-weight:500; color:var(--text-m); font-size:.85rem; }
.link-btn {
    display:inline-block;
    padding:5px 16px;
    border-radius:20px;
    font-size:.8rem;
    font-weight:600;
    text-decoration:none;
    transition:all .15s;
}
.link-btn.apply  { background:var(--badge-blue-bg); color:var(--badge-blue-tx); border:1px solid transparent; }
.link-btn.apply:hover  { background:var(--primary); color:#fff; text-decoration:none; }
.link-btn.notif  { background:var(--badge-yellow-bg); color:var(--badge-yellow-tx); border:1px solid transparent; }
.link-btn.notif:hover  { background:var(--yellow); color:#fff; text-decoration:none; }
.link-btn.site   { background:var(--badge-green-bg); color:var(--badge-green-tx); border:1px solid transparent; }
.link-btn.site:hover   { background:var(--green); color:#fff; text-decoration:none; }

/* ================================================
   DISCLAIMER BOX
   ================================================ */
.disclaimer-box {
    margin:0;
    padding:14px 20px;
    background:var(--disc-bg);
    border-top:1px solid var(--disc-bd);
    border-bottom:1px solid var(--border);
    font-size:.78rem;
    color:var(--disc-tx);
    line-height:1.65;
}

/* ── Auto-FAQ (listing pages) ────────────────────────────── */
.faq-list{display:flex;flex-direction:column;gap:8px}
.faq-item{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--card)}
.faq-item summary{cursor:pointer;padding:13px 16px;font-weight:600;font-size:.92rem;list-style:none;position:relative;padding-right:40px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:1.3rem;color:var(--primary);font-weight:400}
.faq-item[open] summary::after{content:'\2212'}
.faq-item[open] summary{border-bottom:1px solid var(--border)}
.faq-answer{padding:12px 16px;font-size:.9rem;line-height:1.65;color:var(--text-m)}
