body {
  background-image: none;
}


#\#academic-programs-hero {
  max-height: 779px;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  overflow: hidden;
}

#\#academic-programs-hero > img:nth-child(1) {
  height: 100%;
  width: 100%;
  object-position: center;
  object-fit: cover;
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;
}

#\#academic-programs-hero > img:nth-child(1).changing {
  opacity: 0.7;
}

#\#academic-programs-hero > img:nth-child(1).fade {
  opacity: 0.3;
}

.breadcrumb-navigation {
  margin-top: 2.08vw !important;
  margin-bottom: 2.08vw !important;
}

.breadcrumb-navigation > nav:nth-child(1) {
  width: 90vw;
  margin: 0 auto;
  max-width: 1729px;
}

.breadcrumb-nav-element {
  background-color: #d9d9d9;
  clip-path: polygon(
    9.45% 0%,
    30.25% 0%,
    100% 0%,
    91.54% 51%,
    100% 100%,
    30.25% 100%,
    9.75% 100%,
    0% 51%
  );
  padding-block: 9px;
  width: 13.2vw;
  max-width: 255px;
  min-width: 153.7px;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  text-wrap: nowrap;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  transform: scale(1);
  color: rgba(0,0,0, 0.8);
  text-decoration: none !important;
}

.breadcrumb-nav-element:hover {
  background-color: #1bbfbe;
  color: white !important;
  -webkit-transform: scale(1.02);
  -moz-transform: scale(1.02);
  transform: scale(1.02);
}

.breadcrumb-nav-element.breadcrumb-active {
  background-color: #1bbfbe;
  color: white;
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-animation: breadcrumbSelect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-animation: breadcrumbSelect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: breadcrumbSelect 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@-webkit-keyframes breadcrumbSelect {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
  }
}

@-moz-keyframes breadcrumbSelect {
  0% {
    -moz-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -moz-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -moz-transform: scale(1.05);
    transform: scale(1.05);
  }
}

@keyframes breadcrumbSelect {
  0% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.05);
  }
}

.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) {
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
}

.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) {
  margin-bottom: 0 !important;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem;
}

.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(2),
.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(3),
.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(4),
.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(5),
.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(6),
.breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) > li:nth-child(7) {
  margin-left: -5px;
}

#header-image {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
  width: 100%;
}

#header-image.fade {
  opacity: 0;
}

#header-image.changing {
  opacity: 0;
  transform: scale(1.05);
}

.course-list {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  gap: 4rem;
  padding-left: 6.9vw;
  padding-right: 6.9vw;
  max-width: 1201px;
  margin: 0 auto !important;
  flex-direction: column;
}

.course-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  gap: 1.5rem;
}

.course-grid-item {
  background-color: white;
  border-radius: 1.38vw;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0px);
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
}

.course-grid-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Ensure hover states don't interfere with filtering animations */
.course-grid-item:not(.filtering-in):not(.filtering-out):hover {
  transition: none; /* Remove transition during hover for smoother tilt */
}

.course-grid-item .course-card-inner {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

/* Animation states for filtering - these don't interfere with hover tilt */
.course-grid-item.filtering-out {
  opacity: 0;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(20px) scale(0.95) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.course-grid-item.filtering-in {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0px) scale(1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Staggered animation delays for filtering in */
.course-grid-item.filtering-in:nth-child(1) { transition-delay: 0.1s; }
.course-grid-item.filtering-in:nth-child(2) { transition-delay: 0.15s; }
.course-grid-item.filtering-in:nth-child(3) { transition-delay: 0.2s; }
.course-grid-item.filtering-in:nth-child(4) { transition-delay: 0.25s; }
.course-grid-item.filtering-in:nth-child(5) { transition-delay: 0.3s; }
.course-grid-item.filtering-in:nth-child(6) { transition-delay: 0.35s; }
.course-grid-item.filtering-in:nth-child(7) { transition-delay: 0.4s; }
.course-grid-item.filtering-in:nth-child(8) { transition-delay: 0.45s; }
.course-grid-item.filtering-in:nth-child(9) { transition-delay: 0.5s; }

/* Hidden state */
.course-grid-item.filtered-hidden {
  display: none;
}

.courses-cta {
  margin-block: 10vw !important;
}

.course-types {
  text-wrap: nowrap;
}

@media (width <= 1060px) {
  .breadcrumb-navigation > nav:nth-child(1) > ul:nth-child(1) {
    display: flex;
    flex-wrap: wrap;
  }
}

.course-thumbnail img {
  width: 100%;
  border-radius: 1.38vw;
}

.course-detail {
  padding: 1.25vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-title {
  font-weight: 600;
}

.course-hour {
  font-size: 1.2vw;
  display: flex;
  align-items: center
}

.course-hour img {
  width: 2vw;
  height: 2vw;
  margin-right: .5rem;
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(85%);
}

.course-language img {
  width: 2vw;
  height: 2vw;
  filter: brightness(0) saturate(100%) invert(85%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(85%);
}

.course-language span {
  font-size: 1.2vw;
}

.view-more-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.8vw 2vw;
  border-top-left-radius: 1.56vw;
  cursor: pointer;
  background-color: #d9d9d9;
  font-weight: 600;
}

.course-label-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5vw;
}

/* Base course label styles - colors defined in category_colors.css */
.course-label {
  font-size: 0.9375vw;
  padding: 0.2vw 1vw;
  border-radius: 1.38vw;
  color: white;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
}

.course-thumbnail {
  height: 20.8vw;
  width: 100%;
}

.course-thumbnail img {
  height: 100%;
  object-fit: cover;
}

/* Pagination Styles */
.pagination-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pagination-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 600px;
  font-size: 0.9rem;
  color: #666;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
  display: inline-block;
}

.pagination-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

.pagination-btn.current-page {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  cursor: default;
}

.pagination-btn.current-page:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.pagination-btn.first-page,
.pagination-btn.last-page {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

.pagination-btn.first-page:hover,
.pagination-btn.last-page:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.pagination-btn.prev-page,
.pagination-btn.next-page {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.pagination-btn.prev-page:hover,
.pagination-btn.next-page:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Responsive design for pagination */
@media (max-width: 768px) {
  .pagination-info {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .pagination-controls {
    gap: 0.3rem;
  }
  
  .pagination-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 35px;
  }
}

/* Add this to your academic_programs.css file */

/* Base card styling with improved transition properties */
.course-grid-item {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), 
              opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
  transform: translateY(0) scale(1);
  opacity: 1;
  backface-visibility: hidden;
}

/* Improved animation for cards entering view */
.course-grid-item.filtering-in {
  animation: fadeCardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  backface-visibility: hidden;
}

/* Improved animation for cards exiting view */
.course-grid-item.filtering-out {
  animation: fadeCardOut 0.5s cubic-bezier(0.3, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* Improved keyframes for fading in */
@keyframes fadeCardIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Improved keyframes for fading out */
@keyframes fadeCardOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
}

/* Ensures no flickering during animations */
.course-grid-container {
  perspective: 1000px;
}

/* Search section */
.search-section {
  max-width: 1200px;
  margin: 2rem auto !important;
  padding: 0 2rem;
}

.search-container {
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  width: 300px;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  background: #1bbfbe;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.search-btn:hover {
  background: #0ea5a5;
}

.clear-search {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.clear-search:hover {
  color: #1bbfbe;
}

/* Filter summary */
.filter-summary {
  max-width: 1200px;
  margin: 1rem auto !important;
  padding: 1rem 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clear-filters {
  color: #1bbfbe;
  text-decoration: none;
  font-weight: 500;
}

.clear-filters:hover {
  text-decoration: underline;
}

/* No courses message */
.no-courses-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.no-courses-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ddd;
}

.no-courses-message h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-courses-message a {
  color: #1bbfbe;
  text-decoration: none;
}

.no-courses-message a:hover {
  text-decoration: underline;
}

/* Course card improvements */
.course-grid-item {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.course-image-placeholder {
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 2rem;
}

.course-image {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
}

.course-content {
  padding: 1rem;
}

.course-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.course-label {
  background-color: #1bbfbe;
  font-size: 0.9rem;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  color: white;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.course-label-container {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.course-code {
  font-size: 0.8rem;
  color: #1bbfbe;
  margin: 0;
}

@media (width <= 875px) {
  .course-grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 600px) {
  .course-grid-container  {
    grid-template-columns: 1fr;
  }
}

#academic-programs-hero {
  margin-top: 2.142vw; 
}

@media (991px < width <= 1200px) {
  #academic-programs-hero {
    margin-top: 5vw;
  }
}