/* Facilities Page Styles */
.course-list {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 50%, #f0f8ff 100%);
    position: relative;
    overflow: hidden;
}

.course-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(31, 79, 150, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(31, 79, 150, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.course-list__single {
    margin-bottom: 40px;    
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(31, 79, 150, 0.08);
}

.course-list__single:nth-child(even) {
    animation-delay: 0.1s;
}

.course-list__single:nth-child(odd) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-list__single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1f4f96, #ff6b35, #1f4f96);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease-in-out infinite;
}

@keyframes gradientSlide {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.course-list__single:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(31, 79, 150, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.course-list__single:hover::before {
    height: 6px;
}

.course-list__img-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.course-list__img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(31, 79, 150, 0.1) 0%, 
        transparent 30%, 
        rgba(255, 107, 53, 0.1) 70%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-list__single:hover .course-list__img-box::after {
    opacity: 1;
}

.course-list__img {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
}

.course-list__img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) contrast(1) saturate(1);
}

.course-list__single:hover .course-list__img img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.course-list__content {
    padding: 30px;
    position: relative;
}

.course-list__content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(31, 79, 150, 0.3) 20%, 
        rgba(255, 107, 53, 0.3) 80%, 
        transparent 100%);
}

.course-list__title {
    position: relative;
    margin-bottom: 20px;
}

.course-list__title::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #1f4f96, #ff6b35);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(31, 79, 150, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 10px rgba(31, 79, 150, 0.4);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    }
}

.course-list__title a {
    color: #1f4f96;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 24px;
    line-height: 1.3;
}

.course-list__title a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1f4f96, #ff6b35);
    transition: width 0.4s ease;
}

.course-list__single:hover .course-list__title a::after {
    width: 100%;
}

.course-list__title a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.course-list__ratting-box {
    position: relative;
}

.course-list__ratting-text {
    color: #666;
    line-height: 1.8;
    margin-top: 15px;
    font-size: 16px;
    position: relative;
    padding-left: 20px;
}

.course-list__ratting-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 40px;
    color: rgba(31, 79, 150, 0.2);
    font-family: serif;
    line-height: 1;
}

/* Add decorative elements */
.course-list__single:nth-child(odd)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(31, 79, 150, 0.1), rgba(255, 107, 53, 0.1));
    border-radius: 50% 0 50% 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.course-list__single:nth-child(even)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(-45deg, rgba(255, 107, 53, 0.1), rgba(31, 79, 150, 0.1));
    border-radius: 0 50% 0 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.course-list__single:hover::after {
    opacity: 1;
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-list__single {
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .course-list__content {
        padding: 20px;
    }
    
    .course-list__img img {
        height: 220px;
    }
    
    .course-list__title a {
        font-size: 20px;
    }
    
    .course-list__ratting-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .course-list__single {
        margin-bottom: 25px;
    }
    
    .course-list__content {
        padding: 15px;
    }
    
    .course-list__img img {
        height: 180px;
    }
}
