.academic-calendar-wrapper { max-width: 1000px; margin: 0 auto; }
.session-switcher { text-align: center; margin: 20px 0; }
.session-btn { padding: 8px 16px; margin: 0 5px; border: 1px solid #ccc; background: #f9f9f9; cursor: pointer; }
.session-btn.active, .session-btn:hover { background: #0073aa; color: white; border-color: #0073aa; }

.month-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; justify-content: center; }
.month-tab { padding: 8px 12px; border: 1px solid #ddd; background: #f1f1f1; cursor: pointer; font-size: 14px; }
.month-tab.active { background: #0073aa; border-color: #0073aa; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
.calendar-day { padding: 24px 16px; border: 1px solid #eee; min-height: 80px; background: #fff; cursor: pointer; position: relative; font-size: 20px;}
.calendar-day.has-event { background: #ae152d3d; font-weight: bold; }
.calendar-day.today { background: #fff176; }
.calendar-day-header { font-weight: bold; background: #333; color: white; }

.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.modal-content { background: white; margin: 5% auto; padding: 20px; width: 90%; max-width: 600px; border-radius: 8px; position: relative; }
.close { position: absolute; top: 10px; right: 20px; font-size: 28px; cursor: pointer; }


.loading { grid-column: 1 / -1; text-align: center; padding: 40px; }
/* ======================== SESSION SWITCHER (Top) ======================== */
.session-switcher {
    text-align: center;
    margin: 20px 0 30px 0;
}

.session-switcher .session-btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.session-switcher .session-btn:hover {
    background: #e0e7ff;
    border-color: #6366f1;
    transform: translateY(-2px);
}

.session-switcher .session-btn.active {
    background: #ae152d;
    color: white;
    border-color: white;
    box-shadow: 0 6px 16px rgba(30,64,175,0.3);
    transform: translateY(-3px);
}

/* ======================== MONTH TABS ======================== */
.month-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 40px 0;
    padding: 0 20px;
}

.month-tab {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto;
    text-align: center;
    color: #475569;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.month-tab:hover {
    /*background: #e0e7ff;*/
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(129,140,248,0.2);
}

.month-tab.active {
    background: #ae152d;
    color: white;
    border-color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(79,70,229,0.4);
    transform: translateY(-3px);
}

/* Optional: Add a subtle underline indicator */
.month-tabs::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 80px;
    height: 4px;
    background: #4f46e5;
    border-radius: 2px;
    opacity: 0.2;
}

body.page-id-4435 button,
body.page-id-4435 input[type="button"],
body.page-id-4435 input[type="reset"],
body.page-id-4435 input[type="submit"],
body.page-id-4435 .button,
body.page-id-4435 .wc-forward {
  height: auto !important;
  line-height: 20px !important;
}


.events-section {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 16px;
    /*padding: 24px;*/
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.custom-events-title {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 600 20px;
}

.btn-all-events {
    padding: 8px 20px;
    background: #ae152d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-all-events:hover {
    background: #3730a3;
    transform: translateY(-2px);
}



.custom-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.custom-event-card.holiday {
    border-left: 5px solid #ae152d;
}


.custom-event-content strong {
    display: block;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 6px;
}


.calendar-day.selected {
    background: #ae152d !important;
    color: white;
    /*transform: scale(1.1);*/
    box-shadow: 0 8px 20px rgba(79,70,229,0.4);
}

.calendar-day.selected .day-number {
    font-weight: bold;
}

.calendar-day.selected .event-dot {
    background: white;
}

.event-dot {
    width: 8px;
    height: 8px;
    background: #ae152d;
    border-radius: 50%;
    margin: 4px auto 0;
}


.event-in-group:last-child {
    border-bottom: none;
}

.event-text {
    flex: 1;
    font-size: 15px;
    color: #1e293b;
}



.custom-event-card.holiday .event-type-badge {
    background: #fee2e2 !important;
    color: #991b1b !important;
}


/* ======================== EVENT LIST (FINAL IMAGE STYLE) ======================== */

.events-section {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

.custom-events-title {
    margin-bottom: 20px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

/* Card container */
.custom-event-card {
    display: flex;
    border: 1.5px solid #b10f2e;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
}

/* Left date panel */
.custom-event-date {
    background: #b10f2e;
    color: #fff;
    width: 110px;
    min-width: 110px;
    text-align: center;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.custom-event-date .month {
    font-size: 16px;
    margin-top: 4px;
}

.event-date .weekday {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Right content */
.custom-event-content {
    flex: 1;
    padding: 18px 22px;
}

/* Event type block */
.event-type {
    margin-bottom: 12px;
}

.custom-event-type:last-child {
    margin-bottom: 0;
}

.custom-event-type h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e293b;
}

/* Bullet list */
.custom-event-type ul {
    margin: 0;
    padding-left: 18px;
}

.custom-event-type ul li {
    font-size: 14.5px;
    line-height: 1.6;
    /*color: #334155;*/
}

#event-list-day {
    /*line-height: 1.2 !important;*/
}

.event-card {
    display: flex;
    border: 2px solid #b01030;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-top: 20px;
}

.event-date-box {
  background: #b01030;
  color: #fff;
  width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  font-weight: 600;
}


.event-day {
    font-size: 26px;
    line-height: 1;
}

.event-month {
    font-size: 14px;
    text-transform: capitalize;
    margin-top: 4px;
}

.event-content {
    padding: 16px 20px;
    flex: 1;
}

.event-title {
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.event-line {
    font-size: 14px;
    margin-bottom: 6px;
}
