/* Viec Lam Page Specific Styles */

/* Banner Section */
.job-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.job-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* PC Screen - Banner + Header = 100vh */
@media (min-width: 1024px) {
  .job-banner {
    height: calc(100vh - 100px);
  }

  .job-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.banner-gradient-overlay {
  position: absolute;
  top: 40px;
  right: 0;
  width: 896px;
  height: 154px;
  background: linear-gradient(90deg, rgba(255, 213, 145, 0) 0%, #ffd591 100%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 60px;
}

.banner-text {
  text-align: right;
}

.banner-title {
  font-size: 48px;
  font-weight: 900;
  color: #b21c24;
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.banner-subtitle {
  font-size: 48px;
  font-weight: 700;
  color: #b21c24;
  margin: 8px 0 0 0;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Main Content Layout */
.main-content-wrapper {
  min-height: calc(100vh - 123px - 200px);
}

@media (max-width: 1024px) {
  .main-content-wrapper {
    padding-top: 0;
  }
}

/* Job Listings Section */
.job-listings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0;
}

.job-listings-title {
  font-size: 50px;
  font-weight: 900;
  color: #b21c24;
  text-transform: uppercase;
  text-align: center;
  margin: 60px 0 30px 0;
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.load-more-btn {
  background-color: #b21c24;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.load-more-btn:hover {
  background-color: #8b1519;
}

.job-item {
  display: block;
  background: rgba(255, 213, 145, 0.1);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: none;
  height: 150px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.job-item:hover {
  box-shadow: none;
}

.job-image {
  border-radius: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
}

.job-image img {
  height: 150px;
  object-fit: cover;
  object-position: top;
}

.job-content {
  display: flex;
  flex-direction: column;
  padding: 34px 0 0 420px;
  position: relative;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
}

.job-title {
  font-size: 20px;
  font-weight: 800;
  color: #666666;
  margin: 0 0 20px 0;
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 2px;
  max-width: 750px;
}

.job-details {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  align-items: center;
  margin-bottom: 0;
  width: 100%;
}

.job-detail-item {
  display: inline-block;
  font-size: 20px;
  color: #b21c24;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: -1px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-actions {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.detail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffd591;
  color: white;
  border: none;
  padding: 0;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-transform: capitalize;
  transition: background-color 0.3s ease;
  width: 170px;
  height: 37px;
  letter-spacing: -1px;
}

.detail-btn:hover {
  background-color: #fed187;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  background-color: #b21c24;
  color: white;
  padding: 15px 20px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-content {
  padding: 20px;
}

/* Job Categories */
.job-categories {
  list-style: none;
}

.job-category-item {
  margin-bottom: 10px;
}

.job-category-link {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.job-category-link:hover,
.job-category-link.active {
  background-color: #ffd591;
  color: #333;
}

/* News Section */
.news-content {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 1400px) {
  .banner-gradient-overlay {
    width: 70%;
    max-width: 896px;
    top: 30px;
    padding-right: 40px;
  }

  .banner-title {
    font-size: 42px;
  }

  .banner-subtitle {
    font-size: 42px;
  }
}

@media (max-width: 1200px) {
  .banner-gradient-overlay {
    width: 75%;
    top: 25px;
    padding-right: 35px;
  }

  .banner-title {
    font-size: 38px;
  }

  .banner-subtitle {
    font-size: 38px;
  }
}

@media (max-width: 1024px) {
  .job-listings-title {
    font-size: 36px;
    margin-top: 40px;
  }

  .job-item {
    height: auto;
    min-height: 180px;
  }

  .job-image {
    width: 300px;
  }

  .job-image img {
    width: 300px;
    height: 180px;
    object-position: top;
  }

  .job-content {
    padding: 25px 0 0 320px;
    min-height: 180px;
    overflow: visible;
  }

  .job-title {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.4;
    max-width: calc(100% - 20px);
  }

  .job-details {
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap !important;
  }

  .job-detail-item {
    font-size: 16px;
  }

  .job-actions {
    right: 15px;
    bottom: 15px;
  }

  .detail-btn {
    font-size: 16px;
    width: 140px;
    height: 35px;
  }
}

@media (max-width: 968px) {
  .banner-gradient-overlay {
    width: 80%;
    max-width: 896px;
    height: auto;
    min-height: 120px;
    aspect-ratio: 896 / 154;
    top: 20px;
    padding-right: 30px;
  }

  .banner-title {
    font-size: 32px;
  }

  .banner-subtitle {
    font-size: 32px;
    margin-top: 5px;
  }

  .job-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .job-listings-title {
    font-size: 32px;
    margin-top: 30px;
  }

  .job-item {
    height: auto;
    min-height: 160px;
  }

  .job-image {
    width: 250px;
  }

  .job-image img {
    width: 250px;
    height: 160px;
    object-position: top;
  }

  .job-content {
    padding: 20px 0 0 270px;
  }

  .job-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .job-detail-item {
    font-size: 15px;
  }

  .detail-btn {
    font-size: 15px;
    width: 130px;
  }
}

@media (max-width: 768px) {
  .banner-gradient-overlay {
    width: 85%;
    height: auto;
    min-height: 100px;
    top: 15px;
    padding-right: 20px;
  }

  .banner-title {
    font-size: 24px;
  }

  .banner-subtitle {
    font-size: 24px;
    margin-top: 5px;
  }

  .job-listings-title {
    font-size: 32px;
    margin: 30px 0 20px 0;
  }

  .job-item {
    height: auto;
    min-height: 150px;
    flex-direction: column;
  }

  .job-image {
    position: relative;
    width: 100%;
    height: 200px;
  }

  .job-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
  }

  .job-content {
    padding: 20px;
    height: auto;
  }

  .job-title {
    font-size: 16px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .job-details {
    flex-wrap: wrap !important;
    gap: 10px;
    margin-bottom: 15px;
  }

  .job-detail-item {
    font-size: 14px;
    white-space: normal;
  }

  .job-actions {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .detail-btn {
    width: 100%;
    font-size: 16px;
    height: 35px;
  }

  .load-more-container {
    margin-top: 30px;
    margin-bottom: 40px;
  }

  .load-more-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .banner-gradient-overlay {
    width: 90%;
    min-height: 80px;
    top: 10px;
    padding-right: 15px;
  }

  .banner-title {
    font-size: 20px;
  }

  .banner-subtitle {
    font-size: 20px;
    margin-top: 3px;
  }

  .job-listings-title {
    font-size: 24px;
    margin: 20px 0 15px 0;
  }

  .job-item {
    height: auto;
    min-height: auto;
  }

  .job-image {
    height: 150px;
  }

  .job-image img {
    height: 150px;
    object-position: top;
  }

  .job-content {
    padding: 15px;
  }

  .job-title {
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }

  .job-details {
    gap: 8px;
    margin-bottom: 12px;
  }

  .job-detail-item {
    font-size: 12px;
  }

  .detail-btn {
    font-size: 14px;
    height: 32px;
    border-radius: 10px;
  }

  .load-more-container {
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .load-more-btn {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 8px;
  }
}
