* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #da7a20;
    font-size: 2.5em;
    background-color: #252525;

}

.courses {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.course {
    width: 340px;
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* background-color: #fff; */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.course-info {
    padding: 20px;
}

.course h2 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #186bbe;
    text-align: center;
}

.course-info p {
    /* color:#801b1b */
    text-align: center;
}

.view-details-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-details-btn:hover {
    background-color: #43484b;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    color: rgb(0, 0, 0);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #e74c3c;
}

.enroll-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.enroll-btn:hover {
    background-color: #27ae60;
}

#popup-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

#popup-details p {
    margin-bottom: 14px;
}

@media (max-width: 768px) {
    .course {
        width: 100%;
    }
    
    .popup-content {
        width: 90%;
        padding: 20px;
    }

    #popup-title {
        font-size: 1.5em;
    }
}