.user-info {
    position: absolute;
    inset: 10px 20px auto auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 1000;
    transform: translateY(0px);
    transition: all 0.3s;
}

.user-info .profile {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: none;
    background-color: white;
}

.user-info :hover {
    cursor: pointer;
}

.user-info .profile img {
    width: 70%;
    height: 70%;
}

.user-modal {
    display: flex;
    position: absolute;
    padding: 10px 0 12px;
    inset: 50px 0 auto 0;
    background-color: #e8e8e8;
    cursor: initial;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.47);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.user-modal.show {
    opacity: 1;
    pointer-events: all;
}

.user-modal a {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.397);
    transition: box-shadow 0.3s;
}

.user-modal a:hover {
    box-shadow: none;
}

.courses-overview-background {
    position:fixed;
    height: 100vh;
    width: 100vw;
    z-index: -1;
}

.courses {
    padding: 30px 20px 80px 20px;
    min-height: 100vh;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}

.courses h2 {
    font-family: 'Chivo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 400px;
}

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

.course-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.course-content p {
    color: #666;
    margin-bottom: 15px;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.course-features {
    list-style: none;
    margin-bottom: 20px;
}

.course-features li {
    padding: 5px 0;
    color: #666;
}

.course-features li:before {
    content: "•";
    color: #667eea;
    margin-right: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px 50px ;
    border-radius: 20px;
    position: relative;
}

.modal-content iframe {
    width: calc(63vw - 20px);
    aspect-ratio: 16 / 9;
}

.modal-content .close {
    position: absolute;
    inset: 0 16px auto auto;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

@media (max-width:763px) {
    .modal-content iframe {
        width: 80vw;
        aspect-ratio: 16 / 9;
    }

    .modal-content {
        padding: 30px;
    }

    .courses {
        padding: 50px 20px 80px 20px;
        min-height: 100vh;
    }
}