/* Section Title */
    .color-title h3 {
      font-weight: 700;
      color: #0f3054;
    }
    .color-title span {
      color: #f2a41d;
    }

    /* Nav Tabs */
    .nav-tabs .nav-link {
      border-radius: 25px;
      background: #f8f9fa;
      margin: 5px;
      padding: 8px 20px;
      font-weight: 500;
      color: #333;
      transition: 0.3s;
    }
    .nav-tabs .nav-link.active {
      background: orange;
      color: #fff !important;
      font-weight: 600;
    }
    .nav-tabs .nav-link span {
      background: #ddd;
      padding: 3px 10px;
      border-radius: 15px;
      font-size: 14px;
      margin-left: 5px;
    }
    .nav-tabs .nav-link.active span {
      background: #fff;
      color: orange;
    }

    /* Job Cards */
    .view-item {
      background: #fff;
      padding: 20px;
      border-radius: 12px;
      margin-bottom: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      transition: transform 0.3s;
    }
    .view-item:hover {
      transform: translateY(-5px);
    }
    .view-item h3 {
      font-size: 20px;
      font-weight: 600;
      margin: 10px 0;
    }
    .view-item p {
  
      color: #0f3054;
    }
    .view-item .location {
      font-size: 14px;
      color: #999;
    }
    .view-item .line {
      display: block;
      width: 40px;
      height: 3px;
      background: orange;
      margin: 10px 0;
    }
    .view-item .link {
      color: orange;
      font-weight: 600;
      text-decoration: none;
    }
    .view-item .link:hover {
      text-decoration: underline;
    }
    /* application form */
      .apply-form {
    display: none; /* default me hidden */
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: fit-content;
  }
  .apply-form h4 {
    margin-bottom: 20px;
    color: orange;
    font-weight: 700;
  }
  .apply-form label {
    font-weight: 600;
  }
  @media (max-width: 768px) {
    .form{
        margin-top:-42px;
    }
  }
  .modal-content{
    background-color: #f2a41d !important;
    border:none !important;
    max-width:650px;
  }
  .custom-color{
     color: #0f3054;
  }
  .apply-btn{
    background-color: #f2a41d;
    color: white;
  }
  /* 🔹 Base card styling */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

/* ✅ Equal height wrapper for both images & videos */
.media-wrapper {
  width: 100%;
  height: 400px; /* set your desired card height */
  border-radius: 10px;
  overflow: hidden;
}

/* 🔹 Media inside wrapper — maintain same ratio */
.media-wrapper img,
.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* 🔹 Hover zoom */
.event-card:hover img,
.event-card:hover video {
  transform: scale(1.05);
}

/* 🔹 Title overlay */
.event-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ✅ Video cards fix (remove inline height from old code) */
.video-card {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* ✅ Optional — make modal media consistent */
#modalMediaContainer video,
#modalMediaContainer img {
  width: 100%;
  height: 630px;
  object-fit: cover;
  border-radius: 10px;
}