/* General */
p {
  color: black;
}

.career321 {
  position: relative;
  height: 100vh;
  overflow: hidden;
}


/* Centered & Responsive Container */
.container {
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  color: white;
  border-radius: 10px;
  text-align: left;
  z-index: 2;
}

/* Background Video */
.about-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  filter: brightness(70%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -1;
}

.about-video.active,
.about-video:first-child {
  opacity: 1;
}

/* Text Styles */
.text-about {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
  color: #ddd;
  margin-bottom: 1.5rem;
  font-family: 'Poppins', serif;
}

.text-about1 {
  font-size: 2.5rem;
  font-weight: bolder;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #458AD6;
  margin-bottom: 2rem;
  font-family: 'Oswald', serif;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.7);
}

.text-about2 {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
  color: #ddd;
  font-family: 'Poppins', serif;
  max-width: 100%;
}

/* Flip Cards Layout */
.career123 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.career-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

/* Flip Card Styling */
.career-card {
  position: relative;
  width: 100%;
  max-width: 250px;
  height: 40vh;
  background: #fff;
  box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.career-card .face {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
  box-sizing: border-box;
}

.career-card .face.face2 {
  background: linear-gradient(45deg, #213555, #213555);
  border-radius: 15px;
}

.career-card:hover .face.face2 {
  height: 60px;
  border-radius: 0 0 15px 15px;
}

.career-card .face.face2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px 0 0 15px;
}

.career-card .face.face2 h2 {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: font-size 0.5s;
}

.career-card:hover .face.face2 h2 {
  font-size: 1rem;
}

.career-card .face1 h2,
.career-card .face1 .content {
  margin: 0;
  padding: 0;
}

.career-card .face1 .content {
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 1em;
}

/* Job Opportunities */
.job-opportunities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.job-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.job-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1E2A38;
  margin-bottom: 15px;
}

.job-card p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
}

.apply-btn {
  background-color: #1E90FF;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.apply-btn:hover {
  background-color: #4682B4;
}

/* Responsive Tweaks */
@media (max-width: 992px) {
  .container {
    top: 20vh;
    padding: 1.5rem;
  }

  .text-about1 {
    font-size: 2rem;
  }

  .text-about2 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .career-card {
    max-width: 90%;
    height: 35vh;
  }

  .career-card:hover .face.face2 {
    height: 80px;
  }

  .job-opportunities {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .apply-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .career-card {
    height: 30vh;
  }

  .text-about1 {
    font-size: 1.5rem;
  }

  .text-about2 {
    font-size: 0.95rem;
  }
}
