/* Course Card Enhancements */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-card .postimg {
    overflow: hidden;
    height: 200px;
}

.course-card .postimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .postimg img {
    transform: scale(1.05);
}

.course-card .post-header h4 {
    min-height: 50px;
}

.course-card .course-meta {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Image Gallery Styles */
.thumbnail-img {
    transition: all 0.3s ease;
}

.thumbnail-img:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.main-image-container img {
    transition: opacity 0.3s ease;
}

/* Curriculum Accordion Styles */
.course-curriculum .card {
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.course-curriculum .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
}

.course-curriculum .card-header .btn-link {
    color: #333;
    text-decoration: none;
    padding: 15px 20px;
}

.course-curriculum .card-header .btn-link:hover {
    color: #007bff;
    text-decoration: none;
}

.course-curriculum .card-header .btn-link:focus {
    box-shadow: none;
}

.course-curriculum .card-body {
    padding: 20px;
}

.course-curriculum .card-body li {
    transition: background-color 0.2s ease;
}

.course-curriculum .card-body li:hover {
    background-color: #f8f9fa;
}

/* Gallery Modal - Dark Background Lightbox */
#imageGalleryModal .modal-backdrop {
    background-color: rgba(0,0,0,0.95) !important;
}

#imageGalleryModal .modal-content {
    background: transparent !important;
    border: none !important;
}

#imageGalleryModal .modal-body {
    background: rgba(0,0,0,0.9) !important;
    padding: 0 !important;
}

#imageGalleryModal .carousel-item img {
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

#imageGalleryModal .carousel-control-prev,
#imageGalleryModal .carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

#imageGalleryModal .carousel-control-prev:hover,
#imageGalleryModal .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.3);
}

#imageGalleryModal .carousel-control-prev {
    left: 20px;
}

#imageGalleryModal .carousel-control-next {
    right: 20px;
}

#imageGalleryModal .close {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 2rem;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 1051;
}

#imageGalleryModal .close:hover {
    opacity: 0.8 !important;
}

/* Fix sidebar positioning */
.blogsidebar {
    position: relative;
    z-index: 1;
}

.enrollment-card {
    position: sticky;
    top: 20px;
}

/* Course image hover effects */
.course-main-image:hover,
.course-thumbnail:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

