.careers-intro {
   position: relative;
   height: 70vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: white;
   overflow: hidden;
}

.careers-intro__bg-container {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
   z-index: -1;
}

.careers-intro__bg-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(0.65);
   transition: transform 0.5s ease;
}

.careers-intro:hover .careers-intro__bg-image {
   transform: scale(1.05);
}

.careers-intro__content {
   max-width: 800px;
   padding: 2rem;
   z-index: 1;
}

.careers-intro__title {
   font-size: 3.5rem;
   font-weight: 800;
   margin-bottom: 1rem;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.careers-intro__title-highlight {
   color: #149c9c;
}

.careers-intro__subtitle {
   font-size: 1.8rem;
   font-weight: 500;
   margin-bottom: 1.5rem;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.careers-intro__separator {
   width: 80px;
   height: 3px;
   background-color: #149c9c;
   margin: 0 auto 1.5rem;
}

.careers-intro__description {
   font-size: 1.2rem;
   line-height: 1.8;
   max-width: 600px;
   margin: 0 auto;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
 
 /* Vacancies Section */
 .vacancies {
   padding: 5rem 1rem;
   max-width: 1000px;
   margin: 0 auto;
}

.vacancies__heading {
   text-align: center;
   margin-bottom: 3rem;
}

.vacancies__title {
   font-size: 2.5rem;
   font-weight: 700;
   color: #333;
   margin-bottom: 1rem;
}

.vacancies__title-highlight {
   color: #149c9c;
}

.vacancies__description {
   font-size: 1.1rem;
   color: #555;
   max-width: 700px;
   margin: 0 auto;
   line-height: 1.6;
}

.vacancy-list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.vacancy-item {
   margin-bottom: 1.5rem;
   border-radius: 10px;
   overflow: hidden;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   background-color: white;
}

.vacancy-item__header {
   padding: 1.5rem 2rem;
   background-color: white;
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.vacancy-item__header:hover {
   background-color: #f5f5f5;
}

.vacancy-item__title {
   font-size: 1.3rem;
   font-weight: 700;
   color: #333;
}

.vacancy-item__meta {
   display: flex;
   align-items: center;
}

.vacancy-item__location {
   margin-right: 1.5rem;
   display: flex;
   align-items: center;
   color: #555;
   font-size: 0.95rem;
}

.vacancy-item__location-icon {
   width: 16px;
   height: 16px;
   margin-right: 0.5rem;
   color: #149c9c;
}

.vacancy-item__type {
   padding: 0.4rem 1rem;
   background-color: #e6f7f7;
   color: #149c9c;
   font-size: 0.85rem;
   font-weight: 600;
   border-radius: 50px;
   margin-right: 1.5rem;
}

.vacancy-item__toggle {
   width: 24px;
   height: 24px;
   border: none;
   background: transparent;
   cursor: pointer;
   transition: transform 0.3s ease;
   padding: 0;
}

.vacancy-item__toggle-icon {
   width: 24px;
   height: 24px;
   stroke: #149c9c;
   stroke-width: 2px;
   fill: none;
   transition: transform 0.3s ease;
}

.vacancy-item--active .vacancy-item__toggle-icon {
   transform: rotate(180deg);
}

.vacancy-item__content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.3s ease, padding 0.3s ease;
}

.vacancy-item--active .vacancy-item__content {
   max-height: 1000px;
   padding: 0 2rem 2rem;
}

.vacancy-item__section {
   margin-bottom: 1.5rem;
}

.vacancy-item__section-title {
   font-size: 1.1rem;
   font-weight: 700;
   color: #333;
   margin: 0.75rem 0;
}

.vacancy-item__description {
   color: #555;
   line-height: 1.6;
   margin-bottom: 0.5rem;
}

.vacancy-item__list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.vacancy-item__list-item {
   position: relative;
   padding-left: 1.5rem;
   margin-bottom: 0.5rem;
   color: #555;
   line-height: 1.6;
}

.vacancy-item__list-item::before {
   content: '';
   position: absolute;
   left: 0;
   top: 0.6rem;
   width: 8px;
   height: 8px;
   background-color: #149c9c;
   border-radius: 50%;
}

.vacancy-item__apply {
   padding: 0.75rem 1.5rem;
   background-color: #149c9c;
   color: white;
   font-weight: 600;
   border: none;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.vacancy-item__apply:hover {
   background-color: #0e7a7a;
}

/* Application Popup Styles */
.application-popup {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.7);
   z-index: 1000;
   overflow: auto;
 }
 
 .application-popup__content {
   background-color: #fff;
   margin: 2% auto;
   padding: 2rem;
   width: 80%;
   max-width: 800px;
   border-radius: 8px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
   position: relative;
 }
 
 .application-popup__close {
   position: absolute;
   top: 15px;
   right: 25px;
   font-size: 30px;
   font-weight: bold;
   color: #666;
   cursor: pointer;
   transition: color 0.2s;
 }
 
 .application-popup__close:hover {
   color: #149c9c;
 }
 
 .application-popup__title {
   font-size: 1.8rem;
   color: #333;
   margin-bottom: 1.5rem;
   padding-bottom: 0.5rem;
   border-bottom: 2px solid #149c9c;
 }
 
 .application-popup__form {
   width: 100%;
 }
 
 .application-popup__form-row {
   display: flex;
   gap: 1rem;
   margin-bottom: 1rem;
 }
 
 .application-popup__form-group {
   width: 100%;
   margin-bottom: 1.5rem;
 }
 
 .application-popup__form-label {
   display: block;
   font-size: 1rem;
   color: #333;
   margin-bottom: 0.5rem;
   font-weight: 500;
 }
 
 .application-popup__form-input,
 .application-popup__form-textarea {
   width: 100%;
   padding: 0.75rem 1rem;
   border: 1px solid #ddd;
   border-radius: 4px;
   font-size: 1rem;
   transition: border-color 0.3s;
 }
 
 .application-popup__form-input:focus,
 .application-popup__form-textarea:focus {
   border-color: #149c9c;
   outline: none;
 }
 
 .application-popup__form-textarea {
   resize: vertical;
 }
 
 .application-popup__form-submit {
   background-color: #149c9c;
   color: white;
   border: none;
   padding: 0.75rem 1.5rem;
   font-size: 1rem;
   border-radius: 4px;
   cursor: pointer;
   transition: background-color 0.3s;
   font-weight: 600;
   display: block;
   width: 100%;
 }
 
 .application-popup__form-submit:hover {
   background-color: #107e7e;
 }
 
 .application-popup__form-file {
   padding: 0.5rem 0;
 }

/* No Vacancies State */
.no-vacancies {
   text-align: center;
   padding: 3rem 1rem;
   background-color: white;
   border-radius: 10px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   max-width: 600px;
   margin: 0 auto;
}

.no-vacancies__icon {
   font-size: 3rem;
   color: #149c9c;
   margin-bottom: 1.5rem;
}

.no-vacancies__title {
   font-size: 1.5rem;
   color: #333;
   margin-bottom: 1rem;
   font-weight: 600;
}

.no-vacancies__message {
   color: #555;
   line-height: 1.6;
   margin-bottom: 1.5rem;
}

.no-vacancies__cta {
   display: inline-block;
   padding: 0.75rem 1.5rem;
   background-color: #149c9c;
   color: white;
   text-decoration: none;
   border-radius: 5px;
   font-weight: 600;
   transition: background-color 0.3s ease;
}

.no-vacancies__cta:hover {
   background-color: #0e7a7a;
}

/* Animation for the icon */
@keyframes pulse {
   0% { transform: scale(1); }
   50% { transform: scale(1.1); }
   100% { transform: scale(1); }
}

.no-vacancies__icon {
   animation: pulse 2s infinite;
}

/* Responsive Design */
@media (min-width: 768px) {
   .vacancy-item__header {
      padding: 1.5rem 2.5rem;
   }

   .vacancy-item--active .vacancy-item__content {
      padding: 0 2.5rem 2.5rem;
   }
 
   
}

@media (max-width: 960px) {
   .careers-intro {
      height: 50vh;
  }
}

@media (max-width: 768px) {
  .careers-intro__title {
      font-size: 2.5rem;
  }

  .careers-intro__subtitle {
      font-size: 1.4rem;
  }

  .careers-intro__description {
      font-size: 1rem;
  }
  
   .vacancies__title {
      font-size: 2rem;
   }

   .vacancy-item__header {
      flex-direction: column;
      align-items: flex-start;
      position: relative;
      padding-right: 3rem; 
   }
   
   .vacancy-item__meta {
      flex-direction: row;
      align-items: center;
      width: 100%;
      margin-top: 0.75rem;
      justify-content: flex-start; 
   }
   
   .vacancy-item__location,
   .vacancy-item__type {
      margin-bottom: 0;
   }
   
   .vacancy-item__location {
      margin-right: 1rem; 
   }
   
   .vacancy-item__toggle {
      position: absolute;
      right: 1.5rem;
      top: 1.5rem;
   }

   .application-popup__content {
      width: 90%;
      margin: 10% auto;
      padding: 1.5rem;
    }
    
    .application-popup__form-row {
      flex-direction: column;
      gap: 0;
    }
    
    .application-popup__title {
      font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
   .careers-intro {
      height: 45vh;
  }
  
   .vacancies{
      padding: 3rem 1rem;
   }

   .application-popup__content {
      width: 95%;
      padding: 1rem;
    }
}