/* Job Detail CSS */

/* Global z-index management */
:root {
  --z-index-navbar: 1030;
  --z-index-hero-content: 2;
  --z-index-hero-bg: 0;
  --z-index-banner: 5;
}

/* Ensure navbar stays on top */
.navbar {
  z-index: var(--z-index-navbar) !important;
  position: absolute;
  width: 100%;
  top: 0;
}

/* Hero section z-index */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg-container {
  z-index: var(--z-index-hero-bg);
}

.hero-content {
  z-index: var(--z-index-hero-content);
  padding-top: 15vh;
}

/* Banner with job info styles */
.banner {
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: -30px;
  position: relative;
  z-index: var(--z-index-banner);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.circle-icon {
  width: 60px;
  height: 60px;
  background-color: #6FC6AA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.details-list {
  display: flex;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.details-list li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.btn-featured {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 10px;
  background-color: rgba(62, 64, 91, 0.1);
  color: #3E405B;
}

.btn-full-time {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background-color: #E9F7F4;
  color: #17977E;
}

.bookmark-apply-button-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Job Description Styles */
.job-description {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.job-description h4 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.job-description p, 
.job-description li {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.job-description ul {
  padding-left: 20px;
}

.job-description li {
  margin-bottom: 10px;
}

/* Upload CV Button */
.upload-cv-btn {
  background-color: #4F516A;
  color: white;
  border-radius: 50px;
  padding: 20px 40px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-cv-btn:hover {
  background-color: #3e405b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(79, 81, 106, 0.3);
  color: white;
}

.upload-cv-btn img {
  filter: brightness(0) invert(1);
  margin-right: 8px;
}

/* Job Overview Card Styles */
.job-overview-card {
  background-color: #4F516A;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: white;
}

.job-overview-card h4 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.icon-container {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: #6FC6AA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.title-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}

.text-primary-color {
  color: #ddd;
}

.job-overview-card .text-primary-color {
  color: #ddd;
}

#map-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

#map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
}

/* Related Job Styles */
.related-job h4 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.job-item {
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.job-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .banner {
    margin-top: -20px;
    padding: 20px 15px;
  }
  
  .bookmark-apply-button-container {
    margin-top: 20px;
    justify-content: center;
  }
  
  .custom-col-md-7, 
  .col-lg-4,
  .col-lg-7,
  .col-md-7 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .job-overview-card {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
  .p-3.ps-md-5.pe-md-0.my-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .related-job .col-md-7,
  .related-job .custom-col-md-7 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .banner {
    padding: 20px 10px;
    margin-top: -15px;
  }
  
  .job-description,
  .job-overview-card {
    padding: 20px !important;
    margin-bottom: 15px;
  }
  
  .job-title {
    font-size: 18px;
  }
  
  .details-list {
    gap: 10px;
    justify-content: center;
  }
  
  .bookmark-apply-button-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .bookmark-apply-button-container .btn {
    width: 100%;
    margin: 5px 0 !important;
  }
  
  .upload-cv-btn {
    padding: 12px 20px;
    width: 100%;
  }
  
  .container.mt-4.px-4 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 576px) {
  .banner {
    padding: 15px 10px;
    margin-top: -10px;
  }
  
  .circle-icon {
    width: 50px;
    height: 50px;
  }
  
  .details-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .details-list li {
    margin-bottom: 5px;
  }
  
  .job-description,
  .job-overview-card {
    padding: 15px !important;
  }
  
  .job-description h4,
  .job-overview-card h4 {
    font-size: 18px;
  }
  
  .job-description p,
  .job-description li {
    font-size: 14px;
  }
  
  .icon-container {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .title-text {
    font-size: 12px;
  }
  
  .job-overview-card .text-primary-color {
    font-size: 14px;
  }
  
  .p-3.ps-md-5.pe-md-0.my-5 {
    padding: 10px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .related-job h4 {
    font-size: 18px;
  }
}

/* Make the columns fill space better */
@media (min-width: 993px) {
  .custom-col-md-7 {
    width: 65%;
  }

  .col-lg-4 {
    width: 33%;
  }
}

/* Fix horizontal scrollbar issues */
body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.p-3.ps-md-5.pe-md-0.my-5 {
  overflow-x: hidden;
  width: 100%;
}

.p-3.ps-md-5.pe-md-0.my-5 .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  gap: 15px !important;
}

#map-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

#map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
}

.circle-icon img,
.icon-container img {
  filter: brightness(0) invert(1);
}

/* Job Description and Overview Container */
.p-3.ps-md-5.pe-md-0.my-5 .row {
  gap: 10px !important;
  justify-content: space-between !important;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.job-description, 
.job-overview-card {
  margin: 0;
}

/* Make the columns fill space better */
.custom-col-md-7 {
  width: 65%;
}

.col-lg-4 {
  width: 33%;
}

/* Fix horizontal scrollbar issues */
body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.p-3.ps-md-5.pe-md-0.my-5 {
  overflow-x: hidden;
  width: 100%;
}

.p-3.ps-md-5.pe-md-0.my-5 .row {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

#map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
}

@media (max-width: 992px) {
  .p-3.ps-md-5.pe-md-0.my-5 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure navbar stays on top */
.navbar {
  z-index: 1030 !important;
} 