/* Global Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f5f5f5;
}

/* Slideshow Background */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fade 16s infinite;
}

.slideshow img:nth-child(1) {
    animation: fade 16s infinite 0s;
}

.slideshow img:nth-child(2) {
    animation: fade 16s infinite 4s;
}

.slideshow img:nth-child(3) {
    animation: fade 16s infinite 8s;
}

.slideshow img:nth-child(4) {
    animation: fade 16s infinite 12s;
}

@keyframes fade {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    37.5% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(195, 195, 195, 0.5);
    z-index: -1; /* Lower than the courses section */
}

/* Courses Section Styling */
.courses {
    margin-top: 12rem;
    text-align: center;
}

.courses__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.course {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.course:hover {
    transform: translateY(-10px);
}

.course__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.course__info {
    padding: 1.5rem;
}

.course__info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.course__info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-navbar, .btn-beautiful {
    padding: 0.8em 2em;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-navbar {
    background: #737373;
    color: white;
}

.btn-navbar:hover {
    background: #333;
}

.btn-beautiful {
    background: linear-gradient(45deg, #ffffff, #a7a7a6);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-beautiful:hover {
    background: linear-gradient(45deg, #b2b2b1, #f9f9f9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button-container {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses__container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .btn-navbar, .btn-beautiful {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .courses__container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .btn-navbar, .btn-beautiful {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .courses__container {
        grid-template-columns: 1fr;
    }
    .btn-navbar, .btn-beautiful {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}
