@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.edulife-wrap { background: #f4f9fe; font-family: 'Inter', sans-serif; padding: 32px 24px 60px; color: #1a2c3e; border-radius: 12px; }
.edulife-wrap * { box-sizing: border-box; }
.edulife-wrap .container { max-width: 1400px; margin: 0 auto; }
.edulife-wrap .hero { text-align: center; margin-bottom: 28px; }
.edulife-wrap .hero h1 { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg, #0B4F6C, #227A5E); background-clip: text; -webkit-background-clip: text; color: transparent; margin: 10px 0;}
.edulife-wrap .hero .sub { color: #4f6f8f; margin-top: 6px; font-weight: 500; }
.edulife-wrap .badge-edu { background: #e4edf5; display: inline-block; padding: 6px 20px; border-radius: 60px; font-size: 0.75rem; font-weight: 600; color: #0B5E6E; margin-bottom: 12px; }
.edulife-wrap .filter-area { background: white; border-radius: 48px; padding: 12px 24px; margin-bottom: 32px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid #e2edf2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.edulife-wrap .open-only-filter { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin-bottom: unset !important; }
.edulife-wrap .switch-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.edulife-wrap .switch-toggle input { opacity: 0; width: 0; height: 0; }
.edulife-wrap .switch-slider { position: absolute; inset: 0; background: #cbdde6; border-radius: 40px; transition: 0.2s; }
.edulife-wrap .switch-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.edulife-wrap .switch-toggle input:checked + .switch-slider { background: #1f6e5c; }
.edulife-wrap .switch-toggle input:checked + .switch-slider::before { transform: translateX(18px); }
.edulife-wrap .open-only-filter .switch-label { font-weight: 600; font-size: 0.85rem; color: #2c5a6e; }
.edulife-wrap .open-only-filter .switch-label i { margin-right: 4px; color: #1f6e5c; }
.edulife-wrap .quick-months { display: flex; gap: 12px; flex-wrap: wrap; }
.edulife-wrap .month-btn { background: #f0f4f9; border: none; padding: 8px 24px; font-weight: 600; font-size: 0.85rem; border-radius: 40px; cursor: pointer; transition: 0.2s; color: #2c5a6e; font-family: inherit;     margin-bottom: unset !important;}
.edulife-wrap .month-btn i { margin-right: 6px; }
.edulife-wrap .month-btn.active { background: #1f6e5c; color: white; box-shadow: 0 4px 10px rgba(31,110,92,0.2); }
.edulife-wrap .month-btn:hover:not(.active) { background: #e2f0f5; }
.edulife-wrap .custom-month-selector { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.edulife-wrap .custom-month-selector label { font-weight: 500; font-size: 0.8rem; color: #2c5a6e; margin: 0; }
.edulife-wrap #monthPicker {margin-bottom: unset !important;padding: 8px 12px; border-radius: 40px; border: 1px solid #cbdde6; font-family: inherit; font-weight: 500; background: white; font-size: 0.8rem; outline: none;}
.edulife-wrap #viewMonthBtn {    margin-bottom: unset !important; background: #1f6e5c; border: none; padding: 8px 20px; border-radius: 40px; color: white; font-weight: 600; font-size: 0.75rem; cursor: pointer; transition: 0.2s; margin-left: auto; }
.edulife-wrap #viewMonthBtn:hover { background: #0e5546; }
.edulife-wrap .section-wrapper { margin-bottom: 48px; }
.edulife-wrap .section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; display: contents; align-items: center; padding-left: 8px; }
.edulife-wrap .section-title i { font-size: 1.8rem; }
.edulife-wrap .table-container { background: white; border-radius: 28px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); overflow-x: auto; border: 1px solid #e6edf2; }
.edulife-wrap .class-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.edulife-wrap .class-table th { text-align: left; padding: 18px 16px; background: #fafdfe; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #1e5a6e; border-bottom: 2px solid #e2edf2; }
.edulife-wrap .class-table td { padding: 16px 16px; border-bottom: 1px solid #edf3f7; vertical-align: middle; font-size: 14px;}
.edulife-wrap .class-table tr:last-child td { border-bottom: none; }
.edulife-wrap .class-table tr:hover td { background-color: #fafeff; }
.edulife-wrap .course-name-badge { font-weight: 700; background: #eef2fa; padding: 5px 12px; border-radius: 40px; display: inline-block; font-size: 0.8rem; color: #1f6b5c; }
.edulife-wrap .format-badge { font-weight: 600; padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; display: inline-block; }
.edulife-wrap .format-online { background: #e0f0ea; color: #1b6e56; }
.edulife-wrap .format-offline { background: #ffe6e0; color: #bc5a2c; }
.edulife-wrap .format-video { background: #e8eefe; color: #2c6299; }
.edulife-wrap .class-code { font-weight: 700; font-family: monospace; background: #eef3fc; padding: 4px 12px; border-radius: 30px; font-size: 0.8rem; display: inline-block; }
.edulife-wrap .weekday-badge { background: #e0f0ea; color: #1b6e56; font-weight: 600; padding: 4px 12px; border-radius: 30px; font-size: 0.75rem; display: inline-block; }
.edulife-wrap .time-slot { font-weight: 500; color: #2c6280; background: #ecf5f9; padding: 4px 12px; border-radius: 30px; display: inline-block; font-size: 0.75rem; }
.edulife-wrap .start-date { font-weight: 700; background: #fff0e0; color: #c27d2e; padding: 5px 12px; border-radius: 30px; display: inline-block; font-size: 0.75rem; white-space: nowrap; }
.edulife-wrap .btn-dangky { font-size: 0.75rem; font-weight: 700; color: white; background: #1f6e5c; padding: 6px 16px; border-radius: 30px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; transition: 0.2s; white-space: nowrap; }
/* Chỉ áp dụng :hover cho thiết bị THỰC SỰ có chuột (desktop) -- nếu để :hover áp dụng cả trên
   cảm ứng thuần, Safari/WebKit trên di động sẽ bắt link phải chạm 2 LẦN mới thực sự "click"
   (chạm 1 = giả lập trạng thái hover, chạm 2 mới kích hoạt), vì đây là thẻ <a> xử lý click qua JS
   chứ không có href điều hướng trực tiếp/onclick HTML. Bỏ qua :hover trên cảm ứng để chạm 1 lần ăn luôn. */
@media (hover: hover) and (pointer: fine) {
    .edulife-wrap .btn-dangky:hover { background: #0e5546; color: white; box-shadow: 0 4px 10px rgba(31,110,92,0.25); }
}
.edulife-wrap .empty-row td { text-align: center; padding: 48px 20px; color: #7f9cbb; font-weight: 500; }
.edulife-wrap .stat-note { margin-top: 16px; background: #ecf7f2; border-radius: 20px; padding: 10px 20px; font-size: 0.75rem; text-align: center; color: #1c6b58; }
@media (max-width: 750px) {
    .edulife-wrap .filter-area { flex-direction: column; align-items: stretch; border-radius: 28px; }
    .edulife-wrap .custom-month-selector { justify-content: space-between; }
}

/* Phân trang dạng số */
.edulife-pagination {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.edulife-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f4f9;
    color: #4f6f8f;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.edulife-pagination .page-numbers:hover {
    background: #e2edf5;
    color: #1f6e5c;
}
.edulife-pagination .page-numbers.current {
    background: #1f6e5c;
    color: white;
    box-shadow: 0 4px 10px rgba(31,110,92,0.2);
}

@media screen and (max-width:1150px){
#quickMonths {
    display: none;
}
}
@media screen and (max-width:500px){
#monthPicker {
    width: fit-content;
    min-width: unset;
}
.edulife-wrap #viewMonthBtn {
    padding: 3px 10px;
}
.edulife-wrap .custom-month-selector label {
    display: none;
}
}
