/* Container */
.programme-filters {
  background-color: #fff;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Accordion Header */
.accordion-header {
  background-color: #f5f5f5;
  color: #000;
  cursor: pointer;
  padding: 0.75rem 1rem;
  width: 100%;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
  margin-bottom: 0;
}

/* Arrow Icon */
.accordion-header .arrow-icon {
  font-size: 0.4rem; /* reduced size */
  transition: transform 0.3s ease;
}

.accordion-header .arrow-icon.rotate {
  transform: rotate(180deg);
}

/* Accordion Body (Animated) */
.accordion-body {
  overflow: hidden;
  max-height: 0;
  padding: 0 1rem;
  border: 0.5px solid #ddd;
  border-top: none;
  background-color: #fff;
  transition: max-height 0.4s ease, padding 0.3s ease;
  margin-bottom: 1rem;
}

.accordion-body.show {
  padding: 0.75rem 1rem;
  max-height: 800px;
}

/* Filter Checkbox Label */
.filter-checkbox {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #333;
  line-height: 1.4;
  gap: 0.35rem; /* Small space between checkbox and text */
}

.filter-checkbox input[type="checkbox"] {
  margin: 0;
  accent-color: #037b90;
  width: auto; /* Ensures it does not stretch */
  flex-shrink: 0;
}


/* Chip Display */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  background-color: #037b90;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

/* Programme List Layout */
.programme-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.programme-item {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  align-items: flex-start;
  margin-top: 8px;
}

/* Left Content */
.programme-left {
  flex: 1;
}

/* Programme Level */
.programme-level {
  color: #037b90;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

/* Programme Title */
.programme-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #000;
  margin: 0;
  border: none;
  transition: text-decoration 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}
.programme-title a {
  color: #000;
  box-shadow: inset 0 -1px 0 #ff7f50;
  background: linear-gradient(to bottom, #ff7f50 0%, #ff7f50 100%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 0 0;
  text-decoration: none;
  transition: background-size .2s;
}

.programme-title a:hover {
  color: #fff;
  background-size: 4px 100%;
}

.programme-left {
  flex: 1;
  min-width: 0; /* Important for flex items to allow wrapping */
}

/* Remove any rogue HR if present */
.programme-left hr {
  display: none !important;
  min-width: 0;
}

/* Programme Meta */
.programme-meta {
  display: flex;
  gap: 2rem;
  color: #000;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Programme Image */
.programme-right {
  margin-left: 2rem;
  flex-shrink: 0;
}

.programme-right img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.programme-code {
  font-size: 1.25rem;
  color: #000;
  margin: 0;
  border: none;
  transition: text-decoration 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .programme-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .programme-right {
    display: none;
  }

  .programme-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.how-to-apply {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.how-to-apply h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
}

.how-description {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.btn-apply {
  display: inline-block;
  text-decoration: none;
  background-color: #ff7f50;
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.btn-apply:hover {
  background-color: #037b90;
  color: #fff;
}

.programme-search-bar {
  margin: 1rem 0;
  padding: 0 1rem;
}

#programmeSearchInput {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

/* .full-height-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .row.flex-scroll-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  } */

  @media (min-width: 768px) {
    .row.flex-scroll-layout {
      flex-direction: row;
    }
  }

  .programme-filters {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    padding: 1rem;
    height: fit-content;
  }

  .programmes-scrollable-section {
    overflow-y: auto;
    flex: 1;
    padding: 1rem;
    background-color: #f8f9fa;
  }
/* For WebKit browsers (Chrome, Safari, Edge) */
.programmes-scrollable-section::-webkit-scrollbar {
  width: 8px;
}

.programmes-scrollable-section::-webkit-scrollbar-track {
  background: #e0f7f7; /* Light background for the track */
  border-radius: 10px;
}

.programmes-scrollable-section::-webkit-scrollbar-thumb {
  background-color: #037b90; /* Teal color */
  border-radius: 10px;
  border: 2px solid #e0f7f7; /* Optional border for padding effect */
}

/* For Firefox */
.programmes-scrollable-section {
  scrollbar-width: thin;
  scrollbar-color: #037b90 #e0f7f7; /* thumb color, track color */
}

  @media (min-width: 768px) {
    .programmes-scrollable-section {
      max-height: 100vh;
    }
  }

  .programme-search-bar input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    font-size: 1rem;
  }

  .filter-chip {
    display: inline-block;
    background: #037b90;
    color: #fff;
    padding: 4px 8px;
    margin: 4px 4px 0 0;
    border-radius: 4px;
    cursor: pointer;
  }

.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem; /* Increased padding */
  font-weight: bold;
  background-color: #037b90; /* Light gray background */
  border: none;
  width: 100%;
color: #fff;
  text-align: left;
  margin-bottom: 0.5rem;
}

  .accordion-body {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .accordion-body.show {
    display: block;
  }

  .arrow-icon.rotate {
    transform: rotate(180deg);
  }
