/* College Filter Styles */
.custom-txt {
    margin-bottom: 30px;
}

label{
    width:250px;
}
.college-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.college-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.college-select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.college-select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Loading state */
.splide__list.loading {
    opacity: 0.6;
    pointer-events: none;
}

.splide__list.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
}

.no-courses {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Video Popup Styles */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-popup-overlay.active {
    display: flex;
}

.video-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
}

.video-popup-container video {
    width: 100%;
    height: 100%;
    display: block;
}

div#ccf-course-results {
    padding-bottom: 50px;
}

/* Buttons inside course cards */
.course-item .buttons a {
    width: 100%;
    font-size: 14px;
    padding: 20px 0px;
}
.course-item .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

/* === Course grid: 4-up desktop, centered when row not full === */
.ccf-courses {
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 24px;                /* spacing between cards */
  justify-content: center;  /* centers cards horizontally when row isn't full */
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* card sizing */
.ccf-courses .course-item {
  flex: 0 0 25%;
  max-width: 25%;
  box-sizing: border-box;
  padding: 8px; /* inner spacing so cards don't touch each other */
}

/* make images/videos responsive inside cards */
.ccf-courses .course-item .image img,
.ccf-courses .course-item .image video,
.ccf-courses .course-item .image video[src] {
  width: 100%;
  height: 200px;
  display: block;
}

/* card internal spacing — tweak to match your theme */
.ccf-courses .course-item .course-content {
  padding: 12px;
}

/* For tablets and mobile (<= 768px) */
@media (max-width: 768px) {
  .ccf-courses .course-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* For tablets and mobile (<= 768px) */
@media (max-width: 768px) {
  .ccf-courses {
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
    }
 
  .ccf-courses .course-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
