/* Hero Section */
/* Hero Fly-in Animation */
.hero {
  position: relative;
  background: url("/static/images/careers-header.jpg") no-repeat center
    center/cover;
  height: 45vh; /* Full screen */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  transition: height 0.5s ease;

  /* Start position off-screen */
  opacity: 0;
  transform: translateY(-50px);
  animation: flyIn 1.2s ease-out forwards;
}

/* Keyframes for Fly-in */
@keyframes flyIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shrinked Hero on Scroll */
.hero.shrink {
  height: 30vh; /* Reduce height when scrolled */
  padding: 20px 0; /* Adjust padding to fit */
}

/* Shrinking Title */
.hero h1 {
  font-size: var(--font-hero);
  margin-bottom: 10px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: font-size 0.5s ease-in-out;
  animation: fadeInUp 1s ease-in-out forwards;
}

.hero.shrink h1 {
  font-size: 2rem; /* Shrink text size */
}

.hero p {
  font-size: var(--font-subtitle);
  transition:
    font-size 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-in-out forwards;
}

.hero.shrink p {
  font-size: 1rem; /* Shrink paragraph */
  opacity: 0.8;
}
/* HERO SECTION */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #00264f 10%,
    /* 80% opacity black */ #00264fb8 50%,
    /* 40% opacity black */ #00264fbc 100% /* Fully transparent */
  );
  z-index: 1;
}

/* Hero Content (Ensures Text is Visible) */
.hero-content {
  position: relative;
  z-index: 2; /* Places text above overlay */
  max-width: 800px;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: flyIn 1.5s ease-out forwards 0.5s; /* Delay of 0.5s */
}

/* Animations */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hiring-box {
  display: inline-block; /* Keeps it compact */
  font-size: var(--font-body);
  font-weight: 600;
  padding: 8px 14px; /* Adds space around text */
  margin-left: 20rem;
  margin-top: 30px;
  border: 2px solid #00264f; /* Creates the outline */
  border-radius: 30px; /* Rounded corners */
  background-color: white; /* Keeps it clean */
  color: #00264f;
  text-align: center;
}

#careers-overview {
  text-align: left;
  max-width: 90vwpx;
  position: relative;

  margin-top: -30px;

  border-radius: 10px;
  margin-left: 20rem;
}

.gradient-circle {
  position: absolute;
  top: -100px; /* Adjust based on where you want it */
  right: -10px; /* Move it towards the top-right */
  width: 400px; /* Size of the gradient */
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 38, 79, 0.7),
    rgba(0, 38, 79, 0.1)
  );
  filter: blur(80px); /* Soft glow effect */
  z-index: -1; /* Ensures it stays behind content */
}

#careers-overview h2 {
  font-size: var(--font-title);
  margin-bottom: -10px;
}

#careers-overview p {
  font-weight: 500;
  font-size: var(--font-body);
}

/* Job Listings Section */
/* Job Section Styling */

/* Styling for the Job Listings Container */
#job-listings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centers the job cards */
  gap: 20px; /* Space between job cards */
}
/* Style for "Current Job Openings" h2 */
#job-openings-title {
  text-align: center;
  font-weight: bold;
  color: #00264f; /* Dark blue */
  margin-top: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.listings-container {
  display: flex;
  flex-direction: column;
  gap: 0px; /* Adds spacing between job items */
  max-width: 90%;
  margin: 0 auto 0 20rem; /* Center the container */
}

/* Add a line at the top of the first job listing */
.job-item:first-child {
  border-top: 1px solid #ddd;
}

.job-item {
  display: grid;
  grid-template-columns: 5fr 1fr;
  justify-content: space-between;

  width: 100%;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 5px;
}

.job-info {
  flex: 1;
}

.job-info h3 {
  margin: 0;
  font-size: 20px;
}

.job-info p {
  margin: 5px 0;
  color: #666;
}

.job-tags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.job-tags span {
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: var(--font-body);
  border: 2px solid #00264f;
  margin-bottom: 20px;
}
.job-tags i {
  margin-right: 6px; /* Adds space between the icon and text */
}

.apply-link {
  text-decoration: none;
  font-weight: bold;
  margin-left: 100px;
  color: #00264f;
  transition: color 0.2s ease-in-out;
}

.apply-link:hover {
  color: #001a66;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.visible {
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}

#modal-content {
  background: var(--md-sys-color-surface-container-lowest);
  font-size: 14px;
  color: rgb(48, 48, 48);
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  width: clamp(400px, 600px, 700px);
  position: relative;
  box-shadow: gray;
  /* backdrop-filter: blur(10px); Adds the blur effect */
  /* -webkit-backdrop-filter: blur(10px); Safari support */
  z-index: 1000;
}

.form-group {
  margin: 0;
}
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* Lock scrolling */
.no-scroll {
  overflow: hidden;
}

.apply-btn {
  cursor: pointer;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: none;
  height: 50px;
  border: 2px solid #00264f;
  border-color: #00264f;
  background-color: white;
  color: #00264f;
  transition: 0.5s;
  transform: scale(1);
  margin-top: 20px;
}

.apply-btn:hover {
  transition: 0.5s;
  transform: scale(1.05);
  cursor: pointer;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: none;
  height: 35px;
  border: 2px solid #00264f;
  border-color: #00264f;
  background-color: #00264f;
  color: white;
}

/* Focus Effect - Makes it pop when user clicks */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="file"]:focus {
  border-color: #007bff; /* Blue border on focus */
  box-shadow: 3px 3px 8px rgba(0, 123, 255, 0.3); /* More visible shadow */
  outline: none; /* Remove default focus outline */
}

/* Scroll Down Arrow */
.scroll-down {
  position: absolute;
  bottom: 120px; /* Adjust distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  cursor: pointer; /* Makes it interactive */
  z-index: 1;
}

/* Arrow Styling */
.scroll-down span {
  position: absolute;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  animation: bounce 1.5s infinite ease-in-out;
}

/* Arrow Bounce Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(10px) rotate(45deg);
    opacity: 0.7;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: var(--font-hero);
    line-height: 4.5rem;
  }

  .hero p {
    font-size: var(--font-body);
  }

  .hiring-box {
    margin: 2rem 1rem;
    font-size: var(--font-body);
  }

  #careers-overview {
    margin: 0 1rem;
  }

  #careers-overview h2 {
    font-size: 2rem;
  }

  .listings-container {
    display: flex;
    flex-direction: column;
    gap: 0px; /* Adds spacing between job items */
    max-width: 100%;
    margin: 0 auto 0 0rem; /* Center the container */
  }

  .job-item {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: space-between;

    width: 100%;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
  }

  .apply-link {
    text-decoration: none;
    font-weight: bold;
    margin-left: 100px;
    color: #00264f;
    transition: color 0.2s ease-in-out;
    border: 2px solid #00264f;
    width: 100%;
    margin: 0;
    text-align: center;
    border-radius: 30px;
    font-size: var(--font-body);
  }
}

#no-jobs-message {
  font-size: var(--font-body);
  color: hsl(0, 0%, 20%);
  text-align: center;
  margin: 60px auto;
  padding: 30px;
  max-width: 600px;
  background-color: #f7f9fb;
  border-left: 6px solid #00264f;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  line-height: 1.8;
  transition: all 0.3s ease;
}

#no-jobs-message .emoji {
  font-size: 1.8rem;
  margin-left: 8px;
}

#no-jobs-message .hr-email {
  display: inline-block;
  margin-top: 15px;
  color: #00264f;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#no-jobs-message .hr-email:hover {
  color: #001a33;
}
