        .calendar-container {
            max-width: 1200px; /* Increased from 1000px to fully utilize PC layout space */
            margin: 0 auto;
            background: #fff;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
        }

        .fc {
            font-family: 'Kanit', sans-serif;
        }

        .fc-toolbar-title {
            font-weight: 700 !important;
            color: var(--primary-dark, #c00000);
            font-size: 1.8rem !important;
        }

        .fc-button-primary {
            background-color: var(--primary-color, #c00000) !important;
            border-color: var(--primary-color, #c00000) !important;
            border-radius: 8px !important;
            text-transform: capitalize !important;
            font-weight: 500 !important;
            transition: all 0.3s ease !important;
        }

        .fc-button-primary:hover {
            background-color: var(--primary-dark, #990000) !important;
            box-shadow: 0 4px 10px rgba(192, 0, 0, 0.2) !important;
        }

        .fc-button-active {
            background-color: var(--primary-dark, #990000) !important;
        }

        .fc-col-header-cell {
            background: linear-gradient(to bottom, #d90000 0%, #7f0000 100%) !important;
            color: #fff !important;
            padding: 12px 0 !important;
            border: 1px solid #7f0000 !important;
        }

        .fc-col-header-cell-cushion {
            color: #fff !important;
            font-weight: 500 !important;
            text-decoration: none !important;
        }

        .fc-daygrid-day {
            transition: background-color 0.2s;
        }

        .fc-daygrid-day:hover {
            background-color: #f8fafc;
        }

        .fc-daygrid-day-number {
            color: #333;
            font-weight: 500;
            text-decoration: none;
            margin: 5px;
        }

        .fc-day-today {
            background-color: #fffbeb !important;
        }

        .fc-event {
            border: none !important;
            border-radius: 4px !important;
            padding: 3px 5px !important;
            font-size: 0.85rem !important;
            font-weight: 500 !important;
            cursor: pointer !important;
            transition: transform 0.2s;
        }

        .fc-event:hover {
            transform: scale(1.02);
        }

        .fc-event-title {
            font-weight: 500 !important;
        }

        .fc-theme-standard td,
        .fc-theme-standard th {
            border-color: #e2e8f0;
        }

        .fc-scrollgrid {
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #e2e8f0 !important;
        }

        .fc-toolbar-chunk {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .fc-toolbar-title {
            margin: 0 15px !important;
        }

        .day-text-desktop {
            display: block;
        }

        .day-text-mobile {
            display: none;
        }

        @media (max-width: 768px) {
            .calendar-container {
                padding: 15px;
            }

            .fc-toolbar {
                flex-direction: column;
                gap: 15px;
            }

            .fc-toolbar-chunk:first-child {
                display: none;
            }

            .fc-toolbar-title {
                font-size: 1.35rem !important;
            }
        }

        .fc-daygrid-event .fc-event-time {
            display: none !important;
        }

        .fc-daygrid-event-dot {
            margin-right: 5px !important;
        }

        /* --- 💎 PREMIUM CONTROLS TOOLBAR --- */
        .calendar-controls-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .view-segmented-control {
            display: flex;
            background: #f1f5f9;
            padding: 4px;
            border-radius: 30px;
            border: 1px solid #e2e8f0;
        }

        .view-segmented-control .control-btn {
            background: transparent;
            border: none;
            padding: 8px 20px;
            border-radius: 25px;
            font-size: 0.95rem;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: 'Kanit', sans-serif;
        }

        .view-segmented-control .control-btn.active {
            background: #ffffff;
            color: var(--primary-dark, #c00000);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .view-segmented-control .control-btn:hover:not(.active) {
            color: #0f172a;
        }

        .search-bar-wrapper {
            position: relative;
            flex-grow: 1;
            max-width: 350px;
            min-width: 230px;
        }

        .search-bar-wrapper .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1rem;
        }

        .search-bar-wrapper input {
            width: 100%;
            padding: 10px 40px 10px 38px;
            border-radius: 30px;
            border: 1px solid #cbd5e1;
            font-size: 0.95rem;
            font-family: 'Kanit', sans-serif;
            outline: none;
            transition: all 0.2s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
            box-sizing: border-box;
        }

        .search-bar-wrapper input:focus {
            border-color: var(--primary-color, #c00000);
            box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
        }

        .search-bar-wrapper .clear-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: #e2e8f0;
            color: #475569;
            border: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            padding: 0;
            line-height: 1;
        }

        .search-bar-wrapper .clear-btn:hover {
            background: #cbd5e1;
            color: #0f172a;
        }

        /* --- 🎨 INTERACTIVE FILTER CHIPS (Horizontal touch scrolling on Mobile, wrap on PC) --- */
        .interactive-filter-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding: 5px 0 10px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .interactive-filter-bar::-webkit-scrollbar {
            display: none;
        }

        @media (min-width: 768px) {
            .interactive-filter-bar {
                flex-wrap: wrap;
                overflow-x: visible;
                padding-bottom: 0;
            }
        }

        .filter-chip {
            flex-shrink: 0;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #475569;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Kanit', sans-serif;
        }

        .filter-chip:hover {
            background: #f1f5f9;
            border-color: #cbd5e1;
            transform: translateY(-1px);
        }

        .filter-chip.active {
            background: #ffffff;
            border-color: #0f172a;
            color: #0f172a;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        .filter-chip .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }

        .filter-chip .dot-all {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            background: linear-gradient(135deg, #ef4444, #3b82f6, #10b981, #f59e0b);
        }

        .filter-chip .chip-count {
            font-size: 0.75rem;
            background: #e2e8f0;
            color: #475569;
            padding: 1px 7px;
            border-radius: 10px;
            font-weight: 600;
            margin-left: 2px;
        }

        .filter-chip.active .chip-count {
            background: #0f172a;
            color: #ffffff;
        }

        /* --- 📅 PREMIUM CUSTOM CARD LIST --- */
        .month-group-header {
            margin: 30px 0 15px 0;
            padding: 8px 12px;
            border-bottom: 2px solid #f1f5f9;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
        }

        .month-group-header:hover {
            background-color: #f8fafc;
        }

        .month-group-header .th-month {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--primary-dark, #c00000);
            transition: all 0.25s ease;
        }

        .month-group-header .en-month {
            font-size: 0.95rem;
            color: #94a3b8;
            font-weight: 500;
            transition: all 0.25s ease;
        }

        /* Highly muted collapsible month accordion styling to prevent visual distraction */
        .month-group-header.collapsed-month {
            margin: 12px 0 6px 0 !important;
            padding: 3px 8px !important;
            opacity: 0.55 !important;
            border-bottom: 1px dashed #cbd5e1 !important;
        }

        .month-group-header.collapsed-month .th-month {
            font-size: 0.9rem !important;
            color: #94a3b8 !important;
        }

        .month-group-header.collapsed-month .en-month {
            font-size: 0.72rem !important;
            color: #cbd5e1 !important;
        }

        .month-group-header.collapsed-month .toggle-arrow {
            font-size: 0.72rem !important;
            opacity: 0.4 !important;
        }

        .event-cards-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        @media (min-width: 992px) {
            .event-cards-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        .event-card {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-left: 5px solid #cbd5e1;
            border-radius: 14px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .event-card::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: inherit;
            border: 3px solid transparent;
            pointer-events: none;
            z-index: 20;
            transition: border-color 0.3s;
        }

        .event-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
            border-color: transparent;
        }

        .event-card:hover::after {
            border-color: var(--event-color, #cbd5e1);
        }

        /* Upgraded Academic Stub Date Badge with Weekdays (Thai & English) */
        .event-card-date-badge {
            width: 75px;
            min-height: 85px;
            height: auto;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            text-align: center;
            padding: 8px 4px;
            box-sizing: border-box;
            font-weight: 700;
        }

        .event-card-date-badge .weekday-th {
            font-size: 0.72rem;
            font-weight: 600;
            opacity: 0.85;
            margin-bottom: 2px;
            white-space: nowrap;
        }

        .event-card-date-badge .day-number {
            font-size: 1.35rem;
            line-height: 1;
            margin-bottom: 2px;
            font-weight: 800;
            white-space: nowrap;
        }

        .event-card-date-badge .month-abbr {
            font-size: 0.65rem;
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
        }

        .event-card-date-badge .weekday-en {
            font-size: 0.58rem;
            font-weight: 500;
            opacity: 0.7;
            letter-spacing: 0.2px;
            white-space: nowrap;
            text-transform: uppercase;
        }

        .event-card-info {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .event-card-top {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .event-card-top .category-badge {
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 20px;
            text-transform: uppercase;
        }

        .event-card-top .time-badge {
            color: #64748b;
            font-size: 0.75rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .event-card-title {
            font-size: 0.98rem;
            font-weight: 600;
            color: #0f172a;
            margin: 3px 0 0 0;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .event-card-desc {
            font-size: 0.82rem;
            color: #64748b;
            margin: 0;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .event-card-arrow {
            color: #cbd5e1;
            font-size: 1.1rem;
            transition: all 0.2s ease;
            padding-right: 5px;
        }

        .event-card:hover .event-card-arrow {
            color: #0f172a;
            transform: translateX(3px);
        }

        /* --- 📱 MOBILE-FIRST COMPACT TYPOGRAPHY & OVERRIDES --- */
        @media (max-width: 768px) {
            .event-card-top .category-badge {
                font-size: 0.6rem !important;
                padding: 1px 4px !important;
            }
            .event-card-top .time-badge {
                font-size: 0.68rem !important;
            }
            .event-card-title {
                font-size: 0.88rem !important;
            }
            .event-card-desc {
                font-size: 0.76rem !important;
            }
            .event-card-date-badge {
                width: 70px !important;
                min-height: 80px !important;
                padding: 6px 2px !important;
            }
            .event-card-date-badge .day-number {
                font-size: 1.2rem !important;
            }
            .event-card-date-badge .month-abbr {
                font-size: 0.6rem !important;
            }
            .event-card-date-badge .weekday-th {
                font-size: 0.65rem !important;
            }
            .event-card-date-badge .weekday-en {
                font-size: 0.55rem !important;
            }
        }

        /* --- 📭 NO EVENTS STATE --- */
        .no-events-container {
            text-align: center;
            padding: 60px 20px;
            background: #f8fafc;
            border-radius: 16px;
            border: 2px dashed #e2e8f0;
            margin: 30px 0;
        }

        .no-events-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        .no-events-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #334155;
            margin-bottom: 5px;
        }

        .no-events-subtitle {
            font-size: 0.95rem;
            color: #64748b;
            margin-bottom: 20px;
        }

        .reset-filters-btn {
            background: var(--primary-color, #c00000);
            color: #ffffff;
            border: none;
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            font-family: 'Kanit', sans-serif;
            transition: all 0.2s;
        }

        .reset-filters-btn:hover {
            background: var(--primary-dark, #990000);
            box-shadow: 0 4px 10px rgba(192, 0, 0, 0.2);
        }

        .view-container {
            animation: fadeIn 0.4s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
