@import url("base.css");

:root {
  --color-brand-deep: #0a1a33;
  --color-brand-sage: #a3b49c;
  --color-text-dark: #101623;
  --color-text-light: #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.page-career-detail {
  background: var(--color-brand-sage);
  color: var(--color-text-dark);
}

body.page-career-detail::before,
body.page-career-detail::after {
  display: none;
}

/* Hero Section */
.hero--job-detail {
  background: var(--color-brand-sage);
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero--job-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-dark);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.back-link:hover {
  opacity: 1;
  transform: translateX(-4px);
}

.job-header h1 {
  color: var(--color-text-dark);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.job-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(16, 22, 35, 0.75);
  font-size: 0.95rem;
  font-weight: 500;
}

.job-meta__item svg {
  flex-shrink: 0;
}

/* Job Content Section */
.section--job-content {
  background: transparent;
  padding: 3rem 0 5rem;
}

.job-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.job-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.job-section {
  margin-bottom: 2.5rem;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h2 {
  color: var(--color-brand-deep);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.job-section p {
  color: rgba(16, 22, 35, 0.85);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.job-section p:last-child {
  margin-bottom: 0;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list > li {
  padding-left: 2rem;
  position: relative;
  color: rgba(16, 22, 35, 0.85);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.job-list > li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-brand-deep);
  font-size: 1.5rem;
  line-height: 1.2;
}

.job-list--nested {
  margin-top: 0.75rem;
  margin-left: 1rem;
}

.job-list--nested li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-info {
  color: rgba(16, 22, 35, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info a {
  color: var(--color-brand-deep);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: rgba(10, 26, 51, 0.8);
}

/* Sidebar */
.job-sidebar {
  position: static;
  width: 100%;
  margin-top: 1rem;
}

.apply-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.job-sidebar .apply-card {
  width: 100%;
  /* max-width: 720px; */
}

.apply-card h3 {
  color: var(--color-brand-deep);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.apply-card p {
  color: rgba(16, 22, 35, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--color-brand-deep);
  color: #ffffff;
  border-color: var(--color-brand-deep);
  box-shadow: 0 4px 12px rgba(10, 26, 51, 0.25);
}

.btn--primary:hover {
  background: white;
  box-shadow: 0 6px 16px rgba(10, 26, 51, 0.35);
  transform: translateY(-2px);
  color: var(--color-brand-deep);
}

.btn--secondary {
  background: transparent;
  color: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
}

.btn--secondary:hover {
  background: var(--color-brand-deep);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--block {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn--block:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 4rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: radial-gradient(
      circle at 20% 20%,
      rgba(163, 180, 156, 0.08),
      transparent 55%
    ),
    rgba(5, 13, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand {
  max-width: 420px;
}

.site-footer__logo img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.site-footer__social {
  margin-top: 1.25rem;
}

.site-footer__social .social-link {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__social .link-content {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer__social .social-link:hover .link-content {
  background: rgba(255, 255, 255, 0.18);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.site-footer__column h4 {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__list,
.site-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--color-text);
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer__list a:hover {
  color: var(--color-accent);
}

.site-footer__contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.site-footer__contact-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer__contact-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.site-footer__actions {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__actions p {
  flex: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  min-width: 220px;
}

.site-footer__actions .btn {
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer--enhanced {
  margin-top: 4rem;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .job-container {
    gap: 1.5rem;
  }

  .job-sidebar .apply-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .job-header h1 {
    font-size: 2rem;
  }

  .job-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .job-content {
    padding: 2rem 1.5rem;
  }

  .job-section h2 {
    font-size: 1.5rem;
  }

  .apply-card {
    padding: 1.5rem;
  }

  .site-nav__list {
    display: none;
  }

  .site-nav__toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .site-nav__bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
  }
}

@media (max-width: 560px) {
  .job-header h1 {
    font-size: 1.75rem;
  }

  .job-content {
    padding: 1.5rem 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }
}
