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

:root {
  --primary-maroon: #800000;
  --primary-maroon-dark: #5b0000;
  --primary-yellow: #fcd116;
  --bg-light: #fbf6f1;
  --bg-card: #ffffff;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.06);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  /* Banig-inspired woven pattern */
  background-image:
    linear-gradient(45deg, rgba(128, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(128, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(252, 209, 22, 0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(252, 209, 22, 0.07) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* CONTAINERS */

main {
  background: radial-gradient(circle at top left, #fff7ed 0, transparent 55%);
}

/* HEADER */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(128, 0, 0, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
}

.sun-core {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at center, var(--primary-yellow), #fbbf24);
}

.ray {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid rgba(252, 209, 22, 0.7);
}

.ray-1 {
  transform: rotate(0deg);
}
.ray-2 {
  transform: rotate(45deg);
}
.ray-3 {
  transform: rotate(90deg);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-title span {
  color: var(--primary-maroon);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s;
}

.nav-links a:hover {
  background: rgba(128, 0, 0, 0.07);
  color: var(--primary-maroon);
  transform: translateY(-1px);
}

/* MOBILE MENU BUTTON */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 999px;
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--primary-maroon);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */

.hero {
  padding: 28px 6vw 20px;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: flex-start;
}

.tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-maroon);
  font-weight: 600;
  margin: 0 0 6px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin: 0 0 10px;
}

.hero-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 480px;
}

/* SEARCH CARD */

.search-card {
  background: linear-gradient(135deg, #ffffff, #fef6f3);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(128, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-title {
  margin: 0 0 4px;
  font-size: 1rem;
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--primary-maroon);
  box-shadow: 0 0 0 1px rgba(128, 0, 0, 0.25);
  background: #fffaf5;
}

/* FILTERS */

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters-label {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border 0.15s ease, transform 0.05s, color 0.15s;
}

.filter-chip.active {
  border-color: var(--primary-maroon);
  background: rgba(128, 0, 0, 0.08);
  color: var(--primary-maroon);
}

.filter-chip:active {
  transform: scale(0.97);
}

/* BUTTONS */

.search-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.primary-btn {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary-maroon), var(--primary-maroon-dark));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(88, 28, 18, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(88, 28, 18, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(88, 28, 18, 0.3);
}

.hint-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* JOBS SECTION */

.jobs-section {
  padding: 16px 6vw 40px;
}

.jobs-header {
  max-width: 1040px;
  margin: 0 auto 16px;
}

.jobs-section h2 {
  margin-bottom: 4px;
}

.section-subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.jobs-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.job-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.job-title {
  font-weight: 700;
  margin: 0 0 4px;
}

.job-company {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.job-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(128, 0, 0, 0.07);
  color: var(--primary-maroon-dark);
  font-weight: 600;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.job-description {
  font-size: 0.87rem;
  color: var(--text-main);
  line-height: 1.45;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.skill-pill {
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(128, 0, 0, 0.06);
  color: var(--primary-maroon);
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}

.apply-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: var(--primary-maroon);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.05s ease;
}

.apply-btn:hover {
  background: var(--primary-maroon-dark);
}

.apply-btn:active {
  transform: scale(0.97);
}

.posted-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.loading-text,
.error-text,
.no-results {
  max-width: 1040px;
  margin: 16px auto 0;
  font-size: 0.9rem;
}

.loading-text {
  color: var(--text-muted);
}

.error-text {
  color: #b91c1c;
}

.no-results {
  color: var(--text-muted);
}

.hidden {
  display: none;
}

/* INFO SECTIONS */

.info-section {
  padding: 24px 6vw 36px;
  background: linear-gradient(135deg, #ffffff, #fdf2f2);
  border-top: 1px solid rgba(128, 0, 0, 0.12);
}

.info-section h2 {
  max-width: 1040px;
  margin: 0 auto 4px;
}

.info-section .section-subtitle {
  max-width: 1040px;
  margin: 0 auto 16px;
}

.steps-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.step-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-section p {
  max-width: 1040px;
  margin: 0 auto 12px;
}

.about-section ul {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  color: var(--text-muted);
}

.about-box {
  max-width: 1040px;
  margin: 16px auto 0;
  background: #fef2f2;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(128, 0, 0, 0.16);
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 14px 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .top-bar {
    padding-inline: 16px;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    transform-origin: top right;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 20px 16px 16px;
  }

  .jobs-section,
  .info-section {
    padding-inline: 16px;
  }

  .search-card {
    padding: 16px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }
}
