/* Course Details Page Styles */

.course-details-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.course-details-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    animation: pulse-background 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-background {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-item.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Course Media Box */
.course-media-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-media-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.course-media-box:hover::before {
    left: 100%;
}

.course-media-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.course-image {
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-image-wrapper:hover .course-image {
    transform: scale(1.05);
}

.video-wrapper {
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

/* Course Description Box */
.course-description-box {
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
    position: relative;
}

.course-description-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
    transition: width 0.3s ease;
    z-index: 0;
}

.course-description-box:hover::after {
    width: 100%;
}

.course-description-box:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.course-description-content {
    line-height: 1.8;
    color: #495057;
    position: relative;
    z-index: 1;
}

.course-description-content p {
    margin-bottom: 1rem;
}

/* Course Info Card */
.course-info-card {
    border-top: 4px solid #0d6efd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    transition: all 0.5s ease;
    z-index: 0;
}

.course-info-card:hover::before {
    top: -30%;
    right: -30%;
}

.course-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.course-info-list {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
}

.info-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: #003b4f;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Buttons */
.course-actions {
    position: relative;
    z-index: 1;
}

.btn-enrol {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-enrol::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enrol:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enrol:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.btn-back {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-top {
    position: -webkit-sticky;
    position: sticky;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sticky-top {
        position: relative;
        top: 0 !important;
    }
}

@media (max-width: 767px) {
    .course-media-box,
    .course-description-box,
    .course-info-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }

    .info-icon {
        margin: 0 auto 0.5rem;
    }

    .course-image {
        max-height: 300px;
    }
}





