.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    background: white;
    margin-bottom: 15px;
    width: 300px;
}

.courseLink {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    display: block;
}

.courseContent {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.badge {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 8px;
    background-color: #eef;
    border-radius: 5px;
    font-size: 0.9em;
}

.description {
    margin-top: 10px;
    padding: 10px 10px 10px 28px;
    border-left: 4px solid #ccc;
    display: block;
}

.duration {
    margin-top: 10px;
    font-weight: bold;
}

.carousel {
    display: flex;
    justify-content: center; /* ✅ center horizontally */
    flex-wrap: wrap;         /* ✅ wrap on small screens */
    gap: 20px;
    padding: 10px 0;
}
.carousel-block {
    text-align: center;
    margin-top: 20px;
}

.carousel-title {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: inherit;
    text-align: center;
}
.teacher-card {
    min-width: 150px;
    flex: 0 0 auto;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);
}

.teacher-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
}

.teacher-card h4 {
    margin-top: 8px;
    font-size: 1em;
}
.class-block {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.class-block h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 12px;
}

.class-block .class-table {
    margin: 0 auto;
    width: 100%;
}

/* ✅ Correct, unified table styling */
.class-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    margin-top: 12px;
    table-layout: fixed;
}

.class-table th,
.class-table td {
    border: 1px solid #000;
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.class-table th:first-child,
.class-table td:first-child {
    width: 120px; /* Enough for ✅ Subscribe */
    text-align: center;
    white-space: nowrap;
}

.class-table th:nth-child(2),
.class-table td:nth-child(2),
.class-table th:nth-child(3),
.class-table td:nth-child(3) {
    width: 14ch; /* Fits a date like 26-12-2025 */
    text-align: center;
}
.class-table th:nth-child(4),
.class-table td:nth-child(4) {
    width: 120px;
    text-align: left;
}
.class-table th:last-child,
.class-table td:last-child {
    text-align: left;
}

