:root {
  --brand-orange: #ff7a18;
  --brand-blue: #0a3d91;
  --brand-blue-soft: #eaf1ff;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card-shadow: 0 10px 30px rgba(10, 61, 145, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--brand-blue);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand-blue);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #1f66d1);
}

.btn-outline {
  color: var(--brand-blue);
  background: #fff;
  border: 1px solid #bed1f8;
}

.btn-text {
  background: transparent;
  color: var(--brand-blue);
  padding: 0.2rem 0.1rem;
  border-radius: 0;
  text-align: left;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f2f7ff 0%, #ffffff 62%);
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.2), rgba(255, 122, 24, 0));
}

.hero-content {
  padding: 4.6rem 0 4rem;
  max-width: 700px;
}

.eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
}

.hero p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.gallery-section {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f0 100%);
  padding: 4rem 0;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gallery-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.gallery-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.gallery-filter {
  border: 1px solid #f3caa8;
  background: #fff;
  color: #9a4b11;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.tall {
  grid-row: span 3;
}

.gallery-item.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:not(.tall):not(.wide) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.gallery-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.gallery-caption {
  margin: 0;
  font-weight: 700;
}

.gallery-copy {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 250;
}

.gallery-modal.open {
  display: grid;
  place-items: center;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 24, 0.78);
  animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
  position: relative;
  width: min(1040px, calc(100% - 1.4rem));
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: riseIn 0.3s ease;
}

.gallery-modal-figure {
  margin: 0;
}

.gallery-modal-figure img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-modal-figure figcaption {
  margin-top: 0.7rem;
}

#galleryModalTitle {
  margin: 0;
  font-weight: 700;
}

#galleryModalDescription {
  margin: 0.25rem 0 0;
  color: #cbd5e1;
}

.gallery-close,
.gallery-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-close:hover,
.gallery-nav:hover {
  background: rgba(255, 122, 24, 0.8);
  border-color: transparent;
}

.gallery-close {
  top: 0.65rem;
  right: 0.65rem;
}

.gallery-nav.prev {
  top: 50%;
  left: 0.65rem;
  transform: translateY(-50%);
}

.gallery-nav.next {
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
}

.gallery-counter {
  margin: 0.6rem 0 0;
  text-align: right;
  font-size: 0.86rem;
  color: #94a3b8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jobs-section {
  padding: 2.1rem 0;
  background: linear-gradient(180deg, #fff4ea 0%, #fff0e1 100%);
}

.jobs-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.filters {
  position: relative;
}

.filter-panel {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.job-results {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
  border: 1px solid #f4d3b7;
  border-radius: var(--radius);
  padding: 0.95rem;
}

.filter-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.search-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 0.65rem;
  background: #fff;
}

.search-input svg {
  width: 18px;
  height: 18px;
  fill: #6b7280;
  flex-shrink: 0;
}

.search-input input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.65rem 0.45rem;
  font: inherit;
  color: inherit;
}

.filter-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.25rem 0.55rem;
  background: #fff;
}

.filter-group summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  font-weight: 700;
  color: #6b7280;
}

.filter-group[open] summary::after {
  content: "-";
}

.filter-options {
  display: grid;
  gap: 0.5rem;
  padding: 0.1rem 0 0.55rem;
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.95rem;
  color: #374151;
}

.checkbox-row select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem;
  font: inherit;
  background: #fff;
  color: inherit;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
}

.results-header p {
  margin: 0;
  font-weight: 700;
}

.results-copy {
  display: grid;
  gap: 0.2rem;
}

.results-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-control select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.42rem 0.55rem;
  font: inherit;
  background: #fff;
}

.jobs-list {
  display: grid;
  gap: 0.82rem;
}

.job-card {
  background: #fffdfb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.job-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.meta svg {
  width: 15px;
  height: 15px;
  fill: #6b7280;
}

.job-card p {
  color: #374151;
  margin: 0.55rem 0 0.82rem;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
}

.load-more-wrap {
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.info-strip {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.info-grid {
  padding: 2rem 0 2.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-grid article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.info-grid h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.info-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer {
  position: relative;
  background: linear-gradient(130deg, #0a1628, #1a365d);
  color: #d9e5ff;
  margin-top: 0;
  overflow: hidden;
  padding-top: 2.6rem;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 28px 28px, 34px 34px;
  opacity: 0.35;
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.footer-divider svg {
  width: 100%;
  height: 68px;
  display: block;
}

.footer-divider path {
  fill: #fff0e1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 1.2rem 0 1.3rem;
}

.footer-col h4 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer-col a {
  color: #c7d8ff;
  display: inline-block;
  margin-bottom: 0.6rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.24s ease, background-size 0.24s ease, transform 0.24s ease;
}

.footer-col a:hover {
  color: #ffffff;
  background-size: 100% 1.5px;
  transform: translateX(2px);
}

.footer-brand {
  margin-bottom: 0.75rem;
}

.footer-brand-col p {
  margin-top: 0;
  margin-bottom: 0.85rem;
  color: #c7d8ff;
  line-height: 1.5;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.newsletter-form input {
  border: 1px solid rgba(199, 216, 255, 0.35);
  background: rgba(9, 19, 36, 0.55);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.newsletter-form input::placeholder {
  color: #a8b9de;
}

.newsletter-message {
  min-height: 1.2rem;
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #93f2c8;
}

.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(199, 216, 255, 0.4);
  background: rgba(7, 14, 28, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: #dce8ff;
  transition: transform 0.25s ease;
}

.social-link:hover {
  background: rgba(255, 122, 24, 0.2);
  border-color: rgba(255, 171, 109, 0.95);
  transform: translateY(-2px);
}

.social-link:hover svg {
  transform: scale(1.06);
}

.footer-bottom {
  border-top: 1px solid rgba(187, 207, 255, 0.26);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0 1.2rem;
}

.locale-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.locale-wrap label {
  font-size: 0.82rem;
  color: #b8c9ef;
}

.locale-wrap select {
  border: 1px solid rgba(199, 216, 255, 0.4);
  background: rgba(9, 19, 36, 0.55);
  color: #f2f7ff;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font: inherit;
  font-size: 0.86rem;
}

.copyright {
  margin: 0;
  color: #b8c9ef;
  font-size: 0.88rem;
}

.back-to-top {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(255, 122, 24, 0.35);
}

.detail-main {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.detail-panel {
  background: #fff;
  border: 1px solid #f4d3b7;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.detail-panel h1 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.detail-summary {
  margin: 0.7rem 0 1rem;
  color: var(--text-muted);
}

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

.detail-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem;
  background: #fff;
}

.detail-block h2,
.detail-block h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
}

.detail-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #374151;
  line-height: 1.55;
}

.detail-meta-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.detail-meta-row {
  display: grid;
  gap: 0.12rem;
}

.detail-meta-row dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.detail-meta-row dd {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

.detail-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.auth-main {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 1.8rem 0;
  background: linear-gradient(140deg, #fff2e6 0%, #eef4ff 100%);
}

.auth-card {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid #f0d5bf;
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  padding: 1.2rem;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.auth-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

.auth-field {
  display: grid;
  gap: 0.3rem;
}

.auth-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-field input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font: inherit;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  color: #374151;
  font-size: 0.9rem;
}

.auth-feedback {
  margin: 0;
  font-size: 0.88rem;
  color: #0f766e;
  font-weight: 600;
  min-height: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copyright {
  margin: 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
  margin-top: 1.3rem;
  color: #9ca3af;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .job-results {
    padding: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .hero-content {
    padding: 3.4rem 0 2.9rem;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide,
  .gallery-item:not(.tall):not(.wide) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .btn-primary {
    padding: 0.55rem 0.85rem;
  }

  .nav-actions .btn-outline {
    display: none;
  }

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

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
  }
}
