/* === Reset & Base Layout === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Merriweather', sans-serif;
  background-color: #f8f9fa;
}



/* === Welcome Card === */
.welcome-card {
  animation: riseUp 1s ease-out forwards;
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  z-index: 2;
}

/* === Footer === */
footer {
  position: relative;
  z-index: 2;
}

/* === Keyframes === */
@keyframes riseUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 100%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* === Typography & Colors === */
.highlight-yellow {
  color: #fddc59;
  text-align: center;
}

.highlight-white {
  color: white;
}

.title-number {
  font-size: clamp(24px, 8vw, 150px);
  font-family: 'Great Vibes', cursive;
}

.title-labor {
  font-size: clamp(9px, 5vw, 100px);
  font-weight: bold;
}

.title-jobfair {
  font-size: clamp(50px, 9vw, 120px);
  font-family: Tahoma, sans-serif;
  font-weight: bold;
}



/* === Container === */
.container {
  width: 80%;
  max-width: 10000px;
  min-height: 80vh;
  margin: 5vh auto;
  padding-top: 3rem;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/*Department of Labor and employment*/
.jobfair-wrapper {
  text-align: center;
  padding: 20px 0;
  font-family: Verdana, sans-serif;
  /* WALLPAPER HERE */
  width: 100%;
  min-height: 360px; /* You can adjust */
  background-image: url('/image/jfb.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
}


.jobfair-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.jobfair-logo {
  width: 80px;
  border-radius: 0px;
}

.title-main { /*Department of Labor*/
  font-size: 60px;
  font-weight: bold;
  color:rgb(255, 255, 255);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.title-sub {/*and Employment*/
  font-size: 60px;
  font-weight: bold;
  color:rgb(255, 255, 255);
  margin-top: -5px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.title-job {
  font-size: 150px;
  font-weight: bold;
  margin-top: 10px;
  letter-spacing: 3px;
  color:rgb(255, 234, 0);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.title-fair {
  font-size: 150px;
  font-weight: bold;
  margin-top: 10px;
  letter-spacing: 3px;
  color:rgb(39, 96, 228);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

body {
  background: #0d0d0d; /* Optional */
}

/*======================================*/









/* Paragraph */
.p-text {
  text-align: center;
  margin: 0 auto;
  line-height: 1.6;
  color: white;
  font-size: clamp(12px, 2.5vw, 20px);
  font-family: Merriweather; 
  font-style: italic; 
}

/* === Rotated Backgrounds === */
.rotated-rectangle {
  position: fixed;
  top: 50%;
  right: -650px;
  width: 800px;
  height: 1200px;
  background-color: #fddc59;
  transform: translateY(-50%) rotate(40deg);
  transform-origin: center right;
  z-index: 0;
}

.rotated-rectangle-red {
  position: fixed;
  top: 50%;
  right: -610px;
  width: 750px;
  height: 1100px;
  background-color: red;
  transform: translateY(-50%) rotate(27deg);
  transform-origin: center right;
}

/* === Modal === */
.modal-dialog {
  margin-top: 0px;
}

/* === Responsive: Tablets (<= 768px) === */
@media (max-width: 850px) {
  .container {
    min-height: 85vh;
    padding-top: 2rem;
  }

  .top-logo {
    max-height: 70px;
  }

  .rotated-rectangle {
    right: -300px;
    width: 600px;
    height: 1000px;
  }

  .rotated-rectangle-red {
    right: -350px;
    width: 600px;
    height: 950px;
  }

  .welcome-card {
  animation: riseUp 1s ease-out forwards;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  z-index: 2;
}

}

/* === Responsive: Tablets (<= 768px) === */
@media (max-width: 768px) {
  .container {
    min-height: 80vh;
    padding-top: 2rem;
  }

  .top-logo {
    max-height: 70px;
  }

  .rotated-rectangle {
    right: -300px;
    width: 600px;
    height: 1000px;
  }

  .rotated-rectangle-red {
    right: -350px;
    width: 600px;
    height: 950px;
  }

  .welcome-card {
  animation: riseUp 1s ease-out forwards;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  z-index: 2;
}

}

/* === Responsive: Mobile Phones (<= 480px) === */
@media (max-width: 480px) {
  .container {
    width: 95%;
    min-height: 85vh;
    padding: 1rem;
  }

  .title-jobfair {
    font-size: clamp(30px, 10vw, 50px);
  }

  .top-logo {
    max-height: 30px;
  }

  .rotated-rectangle {
    right: -250px;
    width: 500px;
    height: 800px;
  }

  .rotated-rectangle-red {
    right: -300px;
    width: 500px;
    height: 750px;
  }

.welcome-card {
  animation: riseUp 1s ease-out forwards;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 450px;
  z-index: 2;
}
}

/* === Responsive: Small Phones (<= 375px) === */
@media (max-width: 375px) {
  .title-jobfair {
    font-size: clamp(24px, 10vw, 42px);
  }

  .p-text {
    font-size: 14px;
  }
}

/* === Responsive: Extra Small (<= 320px) === */
@media (max-width: 320px) {
  .title-jobfair {
    font-size: 24px;
  }

  .p-text {
    font-size: 12px;
  }

  .top-logo {
    max-height: 25px;
  }
}
