@font-face {
  font-family: 'Mabry Pro';
  src: url(/assets/MabryPro-Regular20c9c07a07029d12c486.woff2) format('woff2'),
       url(/assets/MabryPro-Regular37994a2de268e5d8ad12.woff) format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ArcherPro';
  src: url(/assets/ArcherPro-Book7a89f30e25673d1427a3.woff2) format('woff2'),
       url(/assets/ArcherPro-Book52b3cff2914c86dda7f6.woff) format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url(/assets/Roboto-Light333da16a3f3cc391d087.ttf) format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url(/assets/Roboto-Regularfc2b5060f7accec5cf74.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url(/assets/Roboto-Medium7c8d04cd831df3033c8a.ttf) format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Roboto";
  src: url(/assets/Roboto-Boldf80816a5455d171f948d.ttf) format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-color: #1A1A1A;
  --accent-color: #ffaf7b;
  --bg-gradient: linear-gradient(#c7e4ff, #e9f3fd 25%, #f1f0ee 60%, #f1f0ee);
  --font-primary: 'Mabry Pro', sans-serif;
  --font-secondary: 'ArcherPro', serif;
  --font-roboto: 'Roboto', sans-serif;
  --spacing-base: 24px;
  --spacing-large: 72px;
  --z-content: 10;
  --z-background: 0;
  --z-container: 5;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: var(--bg-gradient);
  overflow-x: hidden;
}

.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-container);
  place-items: center;
  padding: var(--spacing-large) 0;
}

.logo {
  grid-row: 1;
  width: 80px;
  position: relative;
  z-index: var(--z-content);
  justify-self: center;
}

.content-container {
  grid-row: 2;
  max-width: 728px;
  width: 100%;
  padding: 0 var(--spacing-base);
  gap: var(--spacing-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-content);
  justify-self: center;
  align-self: center;
  text-align: center;
}

h1 {
  font-family: var(--font-primary);
  font-size: 52px;
  font-weight: 400;
  line-height: 130%;
  margin: 0;
  color: var(--primary-color);
}

p {
  font-family: var(--font-secondary);
  margin: 0;
  font-size: 20px;
  line-height: 150%;
  color: var(--primary-color);
}

.btn {
  margin-top: 12px;
  height: 43px;
  width: 130px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: bold;
  background: var(--primary-color);
  color: #FFFFFF;
  border: none;
  border-radius: 32px;
  cursor: pointer;
}

.btn:hover {
  background: #5C5C5C;
}

.footer {
  margin-top: 20px;
  grid-row: 4;
  width: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: var(--z-content);
  align-items: center;
}

.footer a {
  width: 221px;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 12px;
  line-height: 100%;
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.cloud {
  position: absolute;
  opacity: 0.7;
  z-index: var(--z-background);
}
.cloud1 {
  top: 15vh;
  left: 5vw;
  animation: floatCloud1 4s ease-in-out infinite alternate;
}
.cloud2 {
  top: 30vh;
  right: 4vw;
  animation: floatCloud2 6s ease-in-out infinite alternate;
  animation-delay: 1s;
}
.cloud3 {
  bottom: 25vh;
  left: 0;
  animation: floatCloud3 5s ease-in-out infinite alternate;
  animation-delay: 2s;
}
.cloud4 {
  bottom: 15vh;
  right: 0;
  animation: floatCloud4 7s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}

@keyframes floatCloud1 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(2vw) translateY(-1vh); }
}

@keyframes floatCloud2 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-2vw) translateY(1.5vh); }
}

@keyframes floatCloud3 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(2vw) translateY(-0.5vh); }
}

@keyframes floatCloud4 {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-2vw) translateY(0.8vh); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud1, .cloud2, .cloud3, .cloud4 {
    animation: none;
  }
}

@media (max-width: 959px) {
  .logo {
    padding-top: var(--spacing-large);
  }
  .container {
    gap: 80px;
  }
  .content-container {
    padding: 0;
  }
  .footer {
    padding-bottom: var(--spacing-large);
  }
}

@media (max-width: 959px) and (min-width: 640px) {
  h1 { font-size: 42px; }
  p { font-size: 26px; }
  .container {
    padding: 0 80px;
  }
  .footer a {
    max-width: 137px;
  }
}

@media (max-width: 639px) {
  h1 { font-size: 34px; }
  p { font-size: 20px; }
  .container {
    padding: 0 24px;
  }
  .footer a {
    width: 74px;
  }
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-roboto);
  background: var(--bg-gradient);
  overflow-x: hidden;
}

.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-container);
  place-items: center;
  padding: var(--spacing-large) 0;
}

.logo {
  grid-row: 1;
  width: 80px;
  position: relative;
  z-index: var(--z-content);
  justify-self: center;
  margin-bottom: 93px;
}

.content-container {
  grid-row: 2;
  max-width: 960px;
  width: 100%;
  padding: 0 var(--spacing-base);
  gap: var(--spacing-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-content);
  justify-self: center;
  align-self: center;
  text-align: center;
}

h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 130%;
  margin: 0;
  color: var(--primary-color);
}

h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 130%;
  margin: 0;
  color: var(--primary-color);
}

.footer {
  margin-top: 20px;
  grid-row: 4;
  width: auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: var(--z-content);
  align-items: center;
}

.footer a {
  width: 221px;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: 12px;
  line-height: 100%;
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Job listings styles */
.job-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  width: 100%;
  max-width: 960px;
}

.job-list li {
  margin-bottom: 24px;
  border: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.job-info {
  flex: 1;
}

.job-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 130%;
  margin-bottom: 12px;
  text-align: start;
  color: var(--primary-color);
}

.job-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--primary-color);
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-type,
.job-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.job-btn {
  padding: 12px 24px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: bold;
  background: var(--primary-color);
  color: #FFFFFF;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.job-btn:hover {
  background: #5C5C5C;
}

/* Job detail page styles */
body.job-detail-page {
  overflow-y: auto;
}

.job-detail-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #CDE3FC 0%, #FFFFFF 55%);
  background-size: 100% 280px;
  background-repeat: no-repeat;
  background-color: #FFFFFF;
  padding: 72px 0;
  overflow-y: visible;
  overflow-x: hidden;
}

.job-detail-header {
  text-align: center;
  margin-bottom: 48px;
}

.job-detail-header img {
  width: 80px;
}

.job-detail-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 160px;
  box-sizing: border-box;
  overflow: visible;
}

.job-detail-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 120px auto 0;
  padding: 0;
  width: fit-content;
}

.job-detail-footer a {
  width: 221px;
  font-family: var(--font-secondary);
  font-size: 12px;
  color: var(--primary-color);
  text-decoration: none;
  text-align: center;
}

.job-detail-footer a:hover {
  text-decoration: underline;
}

.job-header-sticky {
  position: relative;
  padding: 24px 160px;
  margin: 0 -160px 24px -160px;
  z-index: 100;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
}

.job-header-sticky.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 1280px;
  padding: 24px 160px;
  margin: 0 auto;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  margin-bottom: 24px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 32px;
  cursor: pointer;
}

.back-button:hover {
  border: 2px solid #5C5C5C;
  color: #5C5C5C;
}

.back-button:hover img {
  filter: invert(.5);
}

.job-content {
  margin: 32px 0;
}

.job-content h3 {
  font-size: 30px;
  font-family: var(--font-roboto);
  font-weight: 500;
  line-height: 130%;
  margin: 48px 0 20px;
  color: var(--primary-color);
}
.job-content h4 {
  font-size: 24px;
  font-family: var(--font-roboto);
  font-weight: 400;
  line-height: 130%;
  margin: 24px 0 12px;
  color: var(--primary-color);
}

.job-content p {
  font-size: 16px;
  font-family: var(--font-roboto);
  font-weight: 300;
  line-height: 150%;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.job-content ul {
  margin: 12px 0;
  padding-left: 24px;
  font-size: 16px;
  font-family: var(--font-roboto);
  font-weight: 300;
  line-height: 150%;
  color: var(--primary-color);
}

.job-content li {
  margin-bottom: 8px;
}

.job-apply {
  margin-top: 40px;
  text-align: center;
}

.job-apply a {
  text-decoration: none;
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}

@media (max-width: 959px) {
  .logo {
    padding-top: var(--spacing-large);
    margin-bottom: 0;
  }
  .container {
    gap: 80px;
  }
  .content-container {
    padding: 0;
  }
  .footer {
    padding-bottom: var(--spacing-large);
  }
  
  .job-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .job-header-sticky {
    padding: 16px 16px;
    margin: 0 -16px 16px -16px;
  }
  
  .job-header-sticky.is-sticky {
    padding: 16px 16px;
  }
  
  .job-detail-content {
    padding: 0 16px;
    width: 100%;
  }
  
  .job-detail-container {
    padding: 48px 0;
  }
  
  .job-detail-header {
    margin-bottom: 72px;
    padding: 0 16px;
  }
  .job-detail-footer {
    margin-top: 80px;
  }
}

@media (max-width: 959px) and (min-width: 640px) {
  .logo {
    margin-bottom: 0;
  }
  h1 { font-size: 42px; }
  p { font-size: 26px; }
  .container {
    padding: 0 80px;
  }
  .job-detail-content {
    padding: 0 80px;
    width: 100%;
  }
  .job-header-sticky {
    padding: 16px 80px;
    margin: 0 -80px 16px -80px;
  }
  .job-header-sticky.is-sticky {
    padding: 16px 80px;
  }
  .job-detail-header {
    padding: 0 80px;
  }
  .job-detail-footer {
    margin-top: 80px;
    padding: 0 80px;
  }
  .job-detail-footer a {
    width: 137px;
  }
}

@media (max-width: 639px) {
  .logo {
    margin-bottom: 0;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  p { font-size: 20px; }
  .job-content h3 {
    font-size: 20px;
  }
  .job-content h4 {
    font-size: 18px;
  }
  .container {
    padding: 0 16px;
  }

  .job-detail-container {
    padding: 72px 0;
  }
  .back-button {
    font-size: 14px;
    padding: 10px 12px;
  }
  .job-list li {
    padding: 0px;
    margin-bottom: 48px;
  }
  .job-list button {
    width: 100%;
    justify-content: center;
  }
  .job-title {
    font-size: 22px;
  }
  .job-meta {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .job-type, .job-region {
    font-size: 12px;
    gap: 4px;
  }
  .job-apply .job-btn {
    width: 100%;
  }
  .footer a {
    width: 74px;
  }
  .job-detail-footer {
    margin-top: 80px;
    padding: 0 16px;
    margin: 80px auto 0;
    align-items: center;
  }
  .job-detail-footer a {
    width: 74px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow: hidden;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.application-modal-content {
  background: #FFFFFF;
  border-radius: 32px;
  max-height: 90vh;
  max-width: 694px;
  width: 100%;
  height: 90vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
}

.application-modal-content iframe {
  border-radius: 32px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: -14px;
  right: -17px;
  background: var(--primary-color);
  border: none;
  border-radius: 32px;
  color: #FFFFFF;
  font-size: 33px;
  cursor: pointer;
  padding: 0;
  width: 43.97px;
  height: 43.97px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  line-height: 0;
  z-index: 1001;
}

.modal-close:hover {
  background: #5C5C5C;
}

/* Application Modal Mobile Responsive */
@media (max-width: 640px) {
  .application-modal-content {
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
  }
  
  .application-modal-content iframe {
    border-radius: 0;
  }
  
  .modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
}

@media (max-width: 959px) and (min-width: 641px) {
  .application-modal-content {
    max-width: 90%;
    max-height: 85vh;
    height: 85vh;
  }
}

