
html {
    scroll-behavior: smooth;
}

/* ================= COMMON COURSE SECTION ================= */

.course-section {
    background: linear-gradient(135deg, #f8fffd, #eefbf7);
    border-radius: 28px;
}

/* Heading underline */
.course-section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #31B7A0;
    margin: 12px auto 0;
    border-radius: 10px;
}

/* ================= COURSE CARD ================= */

.course-card {
    border-radius: 18px;
    padding: 32px 22px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.45s ease;
    border: 1px solid rgba(49, 183, 160, 0.25);
}

/* Glow layer */
.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(49, 183, 160, 0.18),
        transparent
    );
    opacity: 0;
    transition: 0.45s;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-14px) scale(1.03);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.18);
}

/* ================= ICON ================= */

.course-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #31B7A0, #56e1c2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    margin: 0 auto 18px;
    animation: pulse 2.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(49, 183, 160, 0.55); }
    70% { box-shadow: 0 0 0 22px rgba(49, 183, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(49, 183, 160, 0); }
}

/* ================= TEXT ================= */

.course-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.course-card p {
    font-size: 14px;
    color: #6c757d;
}

/* ================= OVERLAY ================= */

.course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #31B7A0, #1fa98c);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.45s;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-overlay button {
    background: #ffffff;
    color: #31B7A0;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
}

/* ================= MODAL ================= */

.modal-header {
    background: #31B7A0;
    color: #fff;
}

.modal-title i {
    margin-right: 8px;
}

.modal-body ul li {
    margin-bottom: 8px;
}
