
body {
    background-color: #121212;
    color: #e0e0e0;
}

.bg-dark-transparent {
    background-color: rgba(33, 37, 41, 0.5) !important;
    backdrop-filter: blur(2px);
}

.container.large {
    max-width: 95%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lesson-with-dots-pic {
    transform: scale(0.5);
    display: inline-block;
    vertical-align: middle;
    margin-right: -0.5rem;
    margin-left: -1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
}

.course-card {
    height: 296px;
    width: 100%;
    max-width: 214px;
    border-radius: 23px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background: transparent;
    margin: 0 auto;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 23px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
}

.bg-no_access {
    transform: scale(0.4);
    display: inline-block;
    vertical-align: middle;
}

.course-header {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem;
    color: white;
    text-align: left;
    transition: all 0.3s ease;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    min-height: 7vh;
}

.course-card:hover .course-header {
    opacity: 0;
}

.course-title {
    margin: 0;
    font-family: "HomeVideo-Regular";
    font-size: 0.9rem;
    line-height: 1.2;
}

.course-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 23px;
    border: 1px solid #49A9B0;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 23px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(73, 169, 176, 0.5);
}

.course-card:hover::after {
    opacity: 1;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(73, 169, 176, 0.5),
                    0 0 10px rgba(73, 169, 176, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(73, 169, 176, 0.8),
                    0 0 25px rgba(73, 169, 176, 0.4);
    }
}

.course-card:hover .course-overlay {
    bottom: 0;
}

.course-text .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-text .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    animation: none !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.course-card:hover .course-text .btn {
    animation: pulse 2s infinite;
}

.alert-info {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #49A9B0;
    border-radius: 8px;
    padding: 1rem;
}

/* Small mobile devices (max-width: 576px) */
@media (max-width: 576px) {
    .container.large {
        padding: 1rem 0.5rem;
    }

    h2 {
        font-size: 4.5vw;
        margin-bottom: 1rem;
    }

    .lesson-with-dots-pic {
        transform: scale(0.4);
        margin-left: -2rem;
        margin-right: -2rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }

    .course-card {
        width: 100%;
    }

    .course-title {
        font-size: 0.85rem;
    }

    .course-overlay {
        padding: 1rem;
    }

    .course-text {
        font-size: 0.7rem;
    }

    .course-text .btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .course-image-placeholder {
        padding: 0.5rem;
    }

    .bg-no_access {
        transform: scale(0.35);
    }
}

/* Tablets and larger mobile devices (max-width: 768px) */
@media (max-width: 768px) and (min-width: 577px) {
    .container.large {
        padding: 1.5rem 0.75rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }

    .course-card {
        height: 260px;
        max-width: 200px;
    }

    .course-title {
        font-size: 0.8rem;
    }

    .course-overlay {
        padding: 1rem;
    }

    .course-text {
        font-size: 0.7rem;
    }

    .course-text .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
}

/* Laptops and larger screens (min-width: 769px) */
@media (min-width: 769px) {
    .container.large {
        max-width: 90%;
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .course-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.75rem;
    }

    .course-card {
        height: 320px;
        max-width: 240px;
    }

    .course-title {
        font-size: 1rem;
    }

    .course-text {
        font-size: 0.8rem;
    }

    .course-text .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

