﻿.favorite-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.favorite-text {
    font-size: 16px;
    transition: color 0.3s ease;
}

.favorite-btn-detail:hover {
    background-color: #007bff;
    color: white;
}

    .favorite-btn-detail:hover .favorite-icon {
        transform: scale(1.2);
    }

    .favorite-btn-detail:hover .favorite-text {
        color: #fff;
    }

.favorite-btn-detail.active {
    background-color: #ff4081;
    border-color: #ff4081;
    color: white;
}

    .favorite-btn-detail.active .favorite-icon {
        color: white;
    }

@media (max-width: 600px) {
    .favorite-btn-detail {
        font-size: 14px;
        padding: 8px 16px;
    }

    .favorite-icon {
        font-size: 18px;
    }
}

#occurrenceCarousel .alert.alert-info {
    padding: 2rem;
}

/* Course Detail Navigation Styles */
.course-nav-wrapper {
    position: sticky;
    top: 72px;
    z-index: 1049;
    background: linear-gradient(135deg, rgb(43 92 137 / 37%) 0%, #ffffff 62%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
}

.course-nav-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

    .course-nav-container::-webkit-scrollbar {
        height: 4px;
    }

    .course-nav-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .course-nav-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 10px;
        transition: background 0.3s ease;
    }

        .course-nav-container::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.25);
        }

.course-nav-item {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .course-nav-item:hover {
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
        color: #007bff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }

    .course-nav-item.active {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        border-color: #0056b3;
        color: white;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

        .course-nav-item.active::before {
            content: "✓";
            display: inline-block;
            margin-right: 4px;
        }

.course-nav-icon {
    font-size: 12px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .course-nav-wrapper {
    }

    .course-nav-item {
        padding: 7px 12px;
        font-size: 13px;
    }

    .course-nav-icon {
        display: none;
    }
}

@media (max-width: 576px) {
    .course-nav-wrapper {
    }

    .course-nav-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.course-img {
    place-self: center;
}

.side-instructors {
    background: linear-gradient(135deg, rgb(43 92 137 / 37%) 0%, #ffffff 62%);
}



.favorite-btn-detail {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    padding: 4px 10px;
    width: 4rem;
    transition: width 0.3s ease;
    font-family: inherit;
}

    .favorite-btn-detail:hover {
        width: 16rem;
        background: rgb(220 53 69)!important;
    }

.favorite-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 2;
}

.favorite-text {
    margin-right: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
}

.favorite-btn-detail:hover .favorite-text {
    opacity: 1;
    transform: translateX(0);
}

.py-5.bg-light {
    padding: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.bi-play-circle::before {
    transform: rotate(180deg);
}
