.box-container {
    max-width: 100%;
}

.courses-container {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.course-card {
    position: relative;
    max-width: 300px;
    width: 100%;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%),
        radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(79, 70, 229, 0.08) 0%, transparent 50%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 18px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.course-card:hover {
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.course-card:hover::before {
    opacity: 1;
}

.course-content {
    position: relative;
    z-index: 2;
    height: 100%;
    transition: all 0.4s ease;
    padding-top: .3rem;
}

.course-card:hover .course-content {
    filter: blur(3px);
    opacity: 0.7;
}

.course-icon {
    color: rgb(226, 226, 226);
    font-size: 2.8rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    filter: blur(1.5px);
    opacity: 65%;
    text-align: center;
}

.course-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.register-button {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(50%);
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.course-card:hover .register-button {
    opacity: 1;
    pointer-events: all;
}

.btn-left,
.btn-right {
    position: absolute;
    top: 0;
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    overflow: hidden;
}

.btn-left::before,
.btn-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.01), transparent);
    animation: shimmer 3s infinite;
}

.btn-left::after,
.btn-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.01) 3px);
    animation: scanLines 3s linear infinite;
    pointer-events: none;
}

.btn-left {
    left: -100px;
    border-radius: 25px 0 0 25px;
    transform: translateX(-50px);
    opacity: 0;
}

.btn-right {
    right: -100px;
    border-radius: 0 25px 25px 0;
    transform: translateX(50px);
    opacity: 0;
}

.course-card:hover .btn-left {
    transform: translateX(20px);
    opacity: 1;
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .btn-right {
    transform: translateX(-20px);
    opacity: 1;
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-left:hover,
.btn-right:hover {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-card {
        max-width: 85%;
    }

    .course-title {
        margin-top: .2rem;
    }
}

@media (max-width: 480px) {
    .sub-box {
        padding: 30px 5px;
        margin: 0;
    }

    .box-container {
        margin: 0;
    }
}