* {
    overflow-x: hidden;
    overflow-y: visible !important;

}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow-y: visible !important;
}

body.blurred .courses-grid {
    filter: blur(15px);
    transition: filter 0.3s ease-in-out;
}

body.blurred .hero {
    filter: blur(15px);
    transition: filter 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    width: 100%;    
    background: linear-gradient(to right, rgba(26, 25, 121, 0.6), rgba(121, 4, 4, 0.6));    
    color: #f8f6e7;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hero .btn {
    padding: 10px 20px;
    background-color: #f8f6e7;
    color: #86031d9f;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.hero .btn:hover {
    background-color: #e0ded5;
}

/* Footer Styles */
.footer {
    background-color: #86031e;
    color: #f8f6e7;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}


.courses-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 50px 20px 70px 20px;
    background: linear-gradient(to top, rgba(12, 10, 110, 0.4), rgba(82, 7, 7, 0.4));
}

.banner-title {
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(268px, 320px));
    gap: 20px;
    padding: 5px;
}

.course-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top, rgba(153, 152, 211, 0.4), rgba(231, 110, 110, 0.4));
    /* background: linear-gradient(to top, rgba(12, 10, 110, 0.4), rgba(94, 7, 7, 0.4)); */
    border-radius: 8px;
    border: 1px solid #ffffff;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}


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

.course-title-container {
    background:  rgba(134, 3, 29, 0.733);
    width: 88%;
    border-radius: 8px 8px 0 0;
    padding: 0 20px;
    border-bottom: 0.1px solid #ffffff73;
}

.course-title {
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgb(255, 255, 255);
    -webkit-background-clip: text;
}

.course-details {
    padding: 20px;
}

.course-info {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: hidden !important;
}

.course-info {
    padding: 5px;
}

.info-item {
    background: rgba(128, 0, 0, 0.685);
    color: #fff;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 2px;
    border: 0.1px solid #ffffff54;
    display: inline-block;
    font-weight: 800;
    /* text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5); */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.info-item:hover {
    background-color: #0059ff85;;
    transform: scale(1.01);
}

.course-actions {
    display: flex;
    justify-content: space-between;
}

.enroll-btn, .learn-more-btn {
    /* background: linear-gradient(to right, rgba(50, 30, 230, 0.488) 0%, rgba(255, 46, 98, 0.407) 100%); */
    background: rgba(128, 0, 0, 0.685);
    background-image: url("./img/enroll.png");
    background-position-x: 7px;
    background-position-y: 10px;
    background-size: 24px;
    background-repeat: no-repeat;
    color: #fff;
    padding: 12px 20px;
    padding-left: 37px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    outline: none;
    border: 1px solid #fff;
    border-left: none;
    border-bottom: none;
    border-radius: 0 10px 0 8px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.learn-more-btn {
    background-image: url("./img/learn.png");
    background-position-x: 7px;
    background-position-y: 10px;
    background-size: 24px;
    background-repeat: no-repeat;
    padding-left: 37px;
    border-radius: 10px 0 8px 0 !important;
    border-right: none;
    border-left: 1px solid #fff;
}

.enroll-btn:hover, .learn-more-btn:hover {
    background-color: #0059ff85;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    background: linear-gradient(to bottom, rgba(12, 10, 110, 0.3), rgba(121, 10, 10, 0.3)), url("./img/pop-bg.png") no-repeat center center/cover;
    border-radius: 10px;
}

.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #f2f2f2;
    cursor: pointer;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-info li {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}


@media (max-width: 768px) {

    .courses-grid {
        grid-template-columns: repeat(2, minmax(268px, 320px));
    }
}

@media (max-width: 480px) {

    .courses-grid {
        grid-template-columns: repeat(1, minmax(268px, 320px));
    }
}
