/* ============================================================
   tenders-notices.css — Page styles for /tenders-notices
   Zion Property Management
   Depends on: pearl.css
   
   Design philosophy: "Government clarity meets bold Zion identity"
   Clean document layout with vibrant gradient accents,
   status-badge system, and interactive card grid.
============================================================ */

/* =============================================
   HERO
============================================= */
.tn-hero {
  background: linear-gradient(135deg, #0d1a3a 0%, #1e398f 55%, #2a0845 100%);
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

.tn-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Blobs */
.tn-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.tn-blob--1 {
  width: 500px;
  height: 500px;
  top: -110px;
  left: -130px;
  background: radial-gradient(circle, rgba(199, 0, 126, 0.22), transparent 70%);
  animation: blobPulse1 13s ease-in-out infinite;
}

.tn-blob--2 {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: -70px;
  background: radial-gradient(circle, rgba(30, 57, 143, 0.28), transparent 70%);
  animation: blobPulse2 16s ease-in-out infinite;
}

.tn-hero-inner {
  max-width: 1300px;
  margin: auto;
  padding: 150px 40px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 28px 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Breadcrumb — spans full width */
.breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #f0b429;
}

.breadcrumb i {
  font-size: 0.6rem;
}

.breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.tn-hero-content {
  grid-column: 1;
  grid-row: 2;
}

.tn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 41, 0.15);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: #f0b429;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tn-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}

.tn-hero-gradient {
  background: linear-gradient(90deg, #f0b429 0%, #c7007e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tn-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
}

/* Quick-nav pills */
.tn-hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
}

.tn-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tn-pill--gold {
  background: rgba(240, 180, 41, 0.15);
  border-color: rgba(240, 180, 41, 0.4);
  color: #f0b429;
}

/* Live stats card */
.tn-hero-stats {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

.tn-stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 28px 24px;
  min-width: 240px;
}

.tn-stat-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Pulsing live dot */
.tn-live-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

.tn-live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.tn-ls-item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
}

.tn-ls-open {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.tn-ls-upcoming {
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.3);
}

.tn-ls-closed {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.tn-ls-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.tn-ls-open .tn-ls-num {
  color: #4ade80;
}

.tn-ls-upcoming .tn-ls-num {
  color: #f0b429;
}

.tn-ls-closed .tn-ls-num {
  color: #f87171;
}

.tn-ls-item span:last-child {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  margin-top: 3px;
  display: block;
}

.tn-last-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* Hero slant */
.tn-hero-slant {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.tn-hero-slant svg {
  display: block;
  width: 100%;
}

/* =============================================
   SECTION 1 — ACTIVE TENDERS
============================================= */
.tn-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Category filter buttons */
.tn-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(30, 57, 143, 0.2);
  background: transparent;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.tn-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(30, 57, 143, 0.05);
}

.tn-filter-btn.active {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(199, 0, 126, 0.25);
}

/* Tender cards grid */
.tn-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Tender card */
.tn-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  border: 1px solid rgba(30, 57, 143, 0.09);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 0.4s,
    box-shadow 0.4s,
    border-color 0.3s;
}

.tn-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-pink);
  border-color: rgba(199, 0, 126, 0.15);
}

/* Colored top bar by status */
.tn-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.tn-bar-open {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.tn-bar-upcoming {
  background: linear-gradient(90deg, #f59e0b, #f0b429);
}

.tn-bar-closed {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Header row: ID + status badge */
.tn-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tn-ref-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray);
  background: var(--offwhite);
  padding: 3px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tn-ref-id i {
  font-size: 0.62rem;
}

.tn-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tn-status-open {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tn-status-upcoming {
  background: rgba(240, 180, 41, 0.1);
  color: #b45309;
  border: 1px solid rgba(240, 180, 41, 0.3);
}

.tn-status-closed {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Category chip */
.tn-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(30, 57, 143, 0.06);
  border: 1px solid rgba(30, 57, 143, 0.1);
  padding: 3px 10px;
  border-radius: 8px;
  width: fit-content;
  transition: all 0.3s;
}

.tn-card:hover .tn-card-cat {
  background: rgba(199, 0, 126, 0.07);
  color: var(--pink);
  border-color: rgba(199, 0, 126, 0.15);
}

.tn-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  font-family: "DM Sans", sans-serif;
  line-height: 1.35;
}

.tn-card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.65;
  flex-grow: 1;
}

/* Meta row: issued / deadline / value */
.tn-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
}

.tn-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
}

.tn-meta-item i {
  color: var(--blue);
  font-size: 0.75rem;
  margin-top: 3px;
}

.tn-meta-item span {
  display: block;
  color: var(--gray);
  font-size: 0.68rem;
}

.tn-meta-item strong {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-top: 2px;
}

/* Deadline flashes for open tenders */
.tn-deadline-live strong {
  color: #dc2626;
  animation: deadlineFlash 2.5s ease-in-out infinite;
}

@keyframes deadlineFlash {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Action buttons */
.tn-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tn-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient-main);
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  flex: 1;
  justify-content: center;
}

.tn-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(199, 0, 126, 0.35);
}

.tn-btn-bid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.tn-btn-bid:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

.tn-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.tn-no-results i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.4;
}

/* =============================================
   SECTION 2 — NOTICES
============================================= */
.tn-notices-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.tn-notice-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: start;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(30, 57, 143, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s;
}

.tn-notice-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(199, 0, 126, 0.12);
}

/* Left border colour by type */
.tn-notice-legal {
  border-left: 4px solid #ef4444;
}

.tn-notice-policy {
  border-left: 4px solid #3b82f6;
}

.tn-notice-admin {
  border-left: 4px solid #f59e0b;
}

.tn-notice-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.tn-notice-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.tn-ntype-legal {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.tn-ntype-policy {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tn-ntype-admin {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tn-notice-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--gray);
  white-space: nowrap;
}

.tn-notice-content h3 {
  font-size: 0.98rem;
  font-weight: 700;
  font-family: "DM Sans";
  margin-bottom: 8px;
}

.tn-notice-content p {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.65;
}

.tn-notice-action {
  align-self: center;
}

.tn-btn-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--offwhite);
  border: 1px solid rgba(30, 57, 143, 0.15);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.tn-btn-download-sm:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
}

/* =============================================
   SECTION 3 — TWO COLUMN (Notice board + Archive)
============================================= */
.tn-two-col {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

/* Notice board */
.tn-noticeboard {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 57, 143, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tn-nb-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(30, 57, 143, 0.06);
  transition: background 0.2s;
}

.tn-nb-item:last-child {
  border-bottom: none;
}

.tn-nb-item:hover {
  background: var(--offwhite);
}

.tn-nb-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--pink);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.tn-nb-text {
  font-size: 0.83rem;
  color: #374151;
  line-height: 1.5;
}

/* Archive search */
.tn-archive-search {
  position: relative;
  margin-bottom: 16px;
}

.tn-archive-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 0.85rem;
}

.tn-archive-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid rgba(30, 57, 143, 0.15);
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: #fff;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  outline: none;
}

.tn-archive-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 57, 143, 0.1);
}

/* Archive table */
.tn-archive-table {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 57, 143, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tn-arch-head {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.4fr 1fr 1fr;
  gap: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg,
      rgba(30, 57, 143, 0.05),
      rgba(199, 0, 126, 0.05));
  border-bottom: 1px solid rgba(30, 57, 143, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.tn-arch-row {
  display: grid;
  grid-template-columns: 1.4fr 2fr 1.4fr 1fr 1fr;
  gap: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 57, 143, 0.05);
  transition: background 0.2s;
  align-items: center;
}

.tn-arch-row:last-child {
  border-bottom: none;
}

.tn-arch-row:hover {
  background: var(--offwhite);
}

.tn-arch-row.hidden {
  display: none;
}

.tn-arch-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--pink);
  font-weight: 600;
}

.tn-arch-title {
  font-size: 0.8rem;
  color: var(--dark);
  font-weight: 500;
}

.tn-arch-cat {
  font-size: 0.74rem;
  color: var(--gray);
}

.tn-arch-date {
  font-size: 0.74rem;
  color: var(--gray);
}

.tn-arch-value {
  font-size: 0.76rem;
  color: var(--blue);
  font-weight: 600;
}

.tn-arch-no-results {
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* =============================================
   SECTION 4 — DOWNLOAD PORTAL
============================================= */
.tn-dl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.tn-dl-blob--1 {
  width: 450px;
  height: 450px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(199, 0, 126, 0.2), transparent 70%);
  animation: blobPulse1 14s ease-in-out infinite;
}

.tn-dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tn-dl-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.4s;
}

.tn-dl-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-6px);
  border-color: rgba(240, 180, 41, 0.3);
}

.tn-dl-icon {
  width: 48px;
  height: 48px;
  background: rgba(240, 180, 41, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #f0b429;
  transition: all 0.3s;
}

.tn-dl-card:hover .tn-dl-icon {
  background: rgba(240, 180, 41, 0.25);
  transform: scale(1.1);
}

.tn-dl-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.tn-dl-card h3 {
  font-size: 0.92rem;
  color: #fff;
  font-family: "DM Sans";
  font-weight: 700;
}

.tn-dl-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  flex-grow: 1;
}

.tn-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.35);
  color: #f0b429;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 4px;
  width: fit-content;
}

.tn-dl-btn:hover {
  background: #f0b429;
  color: #0d1a3a;
  border-color: transparent;
}

.tn-section-wave {
  line-height: 0;
}

/* =============================================
   SECTION 5 — VENDOR REGISTRATION
============================================= */
.tn-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: start;
}

/* Vendor type tags */
.tn-reg-needs {
  margin-bottom: 24px;
}

.tn-reg-needs h4,
.tn-reg-reqs h4 {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: "DM Sans";
  color: var(--dark);
  margin-bottom: 12px;
}

.tn-reg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-vtag {
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg,
      rgba(30, 57, 143, 0.07),
      rgba(199, 0, 126, 0.07));
  border: 1px solid rgba(30, 57, 143, 0.12);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s;
  cursor: default;
}

.tn-vtag:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Requirements list */
.tn-reg-reqs ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.tn-reg-reqs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #374151;
}

.tn-reg-reqs li i {
  color: #22c55e;
  font-size: 0.8rem;
}

/* Form card */
.tn-form-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 57, 143, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tn-form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #0d1a3a, #1e398f);
  color: #fff;
}

.tn-form-header i {
  font-size: 1.4rem;
  color: #f0b429;
}

.tn-form-header strong {
  display: block;
  font-size: 0.95rem;
}

.tn-form-header span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
}

.tn-reg-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tn-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tn-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tn-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3px;
}

.tn-form-group input,
.tn-form-group select,
.tn-form-group textarea {
  padding: 10px 14px;
  border: 1px solid rgba(30, 57, 143, 0.18);
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.tn-form-group input:focus,
.tn-form-group select:focus,
.tn-form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 57, 143, 0.1);
}

.tn-form-group input:invalid:not(:placeholder-shown),
.tn-form-group select:invalid:not([value=""]) {
  border-color: #ef4444;
}

.tn-mono-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.tn-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.tn-form-err {
  font-size: 0.72rem;
  color: #dc2626;
  min-height: 16px;
}

/* Consent checkbox */
.tn-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tn-form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
  padding: 0;
  border: none;
}

.tn-form-check label {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}

.tn-form-check label a {
  color: var(--blue);
  text-decoration: underline;
}

/* Submit button */
.tn-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(199, 0, 126, 0.3);
  position: relative;
}

.tn-form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(199, 0, 126, 0.45);
}

.tn-form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner (shown during submit) */
.tn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tn-form-submit.loading .tn-spinner {
  display: block;
}

.tn-form-submit.loading span:first-of-type {
  display: none;
}

.tn-form-submit.loading i {
  display: none;
}

/* Success / Error messages */
.tn-form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.tn-form-success i {
  color: #22c55e;
  font-size: 1rem;
  flex-shrink: 0;
}

.tn-form-error-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.tn-form-error-msg i {
  flex-shrink: 0;
}

/* Floating WA + back-to-top */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 100px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  z-index: 900;
  animation: waFloat 3s ease-in-out infinite;
  text-decoration: none;
  transition: transform 0.3s;
}

.float-wa:hover {
  transform: scale(1.15);
}

@keyframes waFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.back-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: var(--shadow);
  border: none;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1200px) {
  .tn-dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .tn-hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .tn-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 30px;
    padding: 160px 24px 50px;
    align-items: start;
  }

  .tn-hero-content,
  .tn-hero-stats {
    grid-column: 1;
    grid-row: auto;
  }

  .tn-hero-stats {
    display: flex;
    justify-content: flex-start;
  }

  .tn-stat-card {
    max-width: 420px;
    width: 100%;
  }

  .tn-reg-grid {
    grid-template-columns: 1fr;
  }

  .tn-two-col {
    grid-template-columns: 1fr;
  }

  .tn-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .tn-hero-inner {
    padding: 160px 20px 40px;
    gap: 24px;
  }

  .tn-hero-h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  .tn-hero-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .tn-hero-nav {
    gap: 8px;
  }

  .tn-pill {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .tn-stat-card {
    max-width: 100%;
    padding: 22px 18px;
  }

  .tn-live-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tn-ls-item {
    padding: 14px 10px;
  }

  .tn-cards-grid {
    grid-template-columns: 1fr;
  }

  .tn-arch-head,
  .tn-arch-row {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .tn-arch-date,
  .tn-arch-value {
    display: none;
  }

  .tn-arch-head span:nth-child(4),
  .tn-arch-head span:nth-child(5) {
    display: none;
  }

  .tn-notice-item {
    grid-template-columns: 1fr;
  }

  .tn-dl-grid {
    grid-template-columns: 1fr;
  }

  .tn-card-meta {
    grid-template-columns: 1fr 1fr;
  }

  .tn-form-row {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .tn-hero-inner {
    padding: 160px 16px 36px;
    gap: 20px;
  }

  .tn-hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .tn-hero-h1 {
    font-size: 1.6rem;
  }

  .tn-hero-sub {
    font-size: 0.9rem;
  }

  .tn-pill {
    font-size: 0.75rem;
    padding: 9px 12px;
  }

  .tn-stat-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .tn-live-stats {
    grid-template-columns: 1fr;
  }

  .tn-ls-num {
    font-size: 1.4rem;
  }

  .tn-cards-grid {
    grid-template-columns: 1fr;
  }

  .tn-card-meta {
    grid-template-columns: 1fr;
  }

  .tn-filter-wrap {
    gap: 6px;
  }

  .tn-filter-btn {
    font-size: 0.72rem;
    padding: 5px 12px;
  }
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

.wave-divider1 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-divider1 svg {
  display: block;
  width: 100%;
}