#calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

#calendar-container {
    display: grid;
    grid-template-columns: 10fr 8fr;
    gap: 20px;
	/* max-width: 1100px; */
    margin: 0 auto;
    padding-top:20px;
}


@media only screen and (max-width: 1400px) {
	#calendar {
	    padding: 12px!important;
	    font-size: 14px;
	}
	#calendar-container {
    	grid-template-columns: 1fr;
        margin: 0 auto;
  	}
  	.text-truncate-custom {
    	max-width: 60px!important;
    }
}
      
@media only screen and (max-width: 768px) {
	#calendar {
	    padding: 10px!important;
	    font-size: 14px;
	}
	#calendar-container {
    	grid-template-columns: 1fr;
        margin: 0 auto;
  	}
  	.text-truncate-custom {
    	max-width: 50px!important;
    }
}
      
@media only screen and (max-width: 500px) {
	#calendar {
	    padding: 5px!important;
	    font-size: 12px;
	}
	#calendar-container {
    	grid-template-columns: 1fr;
        margin: 0 auto;
  	}
  	.text-truncate-custom {
    	max-width: 30px!important;
    }
}


/* #calendar-container { */
/*      display: grid; */
/*      grid-template-columns: 2fr 1fr; */
/*      gap: 20px; */
/*      max-width: 100%; */
/*      margin: 0 auto; */
/*      overflow: hidden; */
/*  } */
      
/* @media only screen and (max-width: 767px) { */
/* 	#calendar-container { */
/*     	grid-template-columns: 1fr; */
/*     	gap: 15px; */
/*     	padding: 0; */
/*   	} */
/* } */

/* #calendar { */
/*     background: #fff; */
/*     border-radius: 12px; */
/*     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
/*     padding: 20px; */
/*     max-width: 100%; */
/*     overflow: hidden; */
/* } */

#events {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.header h1 {
    margin: 0;
/*     font-size: 20px; */
    font-weight: bold;
    color: #1e40af;
}
.nav-month{
   color: var(--color-002); 
}
.nav-btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;
/*     font-size: 20px; */
    width: auto;
    
}

.nav-btn:hover {
    background: #d1d5db;
}

.month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    width: 100%;
}

.day {
	/* max-height: 90px; */
/* background: #f9fafb; */
	border-radius: 8px;
/* padding: 10px; */
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #3e3e3e;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
    height: auto;
  }

.day.other {
	color: #9ca3af;
	/* background: #f3f4f6; */
}

.day.today {
    background: #eff6ff;
    color: #2563eb;
    font-weight: bold;
}

.day:hover {
    background: #e0f2fe;
}

.day-name {
/*     font-size: 14px; */
    color: #333333;
    /* margin-bottom: 6px; */
    text-transform: uppercase;
}

.day-number {
/*     font-size: 16px; */
    font-weight: 500;
}

    /* .day-events {
        margin-top: 6px;
    } */
.day-events {
    overflow: auto;
}

.day-events span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 2px;
}

.event-card {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.event-card:hover {
    transform: translateY(-2px);
}
.event-location {
/*     font-size: 0.9em; */
    color: #6c757d;
    margin-bottom: 5px;
}
.event-date {
/*     font-size: 0.85em; */
    color: var(--color-002);
    margin-bottom: 8px;
}
.event-title {
    font-weight: 600;
    color: var(--color-002);
    margin-bottom: 5px;
}
.event-description {
/*     font-size: 0.9em; */
    color: #6c757d;
    line-height: 1.4;
}

.blue {
    color: #134686;
}

.orange {
    color: var(--color-002);
}

.yellow {
    color: var(--color-002);
}
.green {
    color: var(--color-001);
}



/* Danh sách sự kiện bên phải */
#events h2 {
    margin: 0 0 15px;
/*     font-size: 24px; */
    color: #ED3F27;
    text-align: center;
}

#event-list {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 10px;
}

#event-list::-webkit-scrollbar {
    width: 6px;
}

#event-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#event-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#event-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.event {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    text-align: justify;
/*     font-size: 14px; */
}

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

.event-category {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.entry {
	margin: 2px;
/* 	font-size: 13px; */
	display: flex;
	align-items: center;
	gap: 6px;
	/* border: 1px solid #ccc; */
	padding: 1px 2px;
	border-radius: 4px;
}

/*         .entry:before {
            content: "";
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
 */
.entry.blue:before {
    background: #134686 ;
}

.entry.orange:before {
    background: #ED3F27;
}
.entry.green:before {
    background: #28A745;
}

.entry.yellow:before {
    background: #FEB21A;
}
 .entry.blue {
    background:#0775ff45 ;
}

 .entry.green {
    background: #7fe3a878;
}

.entry.orange {
    background: #fff6ca;
}

.entry.yellow {
    background: rgb(255, 255, 208);
}


.filter-btn {
    min-width: max-content;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
/*     font-size: 12px; */
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn[data-filter-id="all"]:hover {
    background: #6c757d !important;
    color: #fff !important;
}

.filter-btn[data-filter-id="domestic"]:hover {
    background: var(--color-001)!important;
    color: #fff !important;
}

.filter-btn[data-filter-id="international"]:hover {
    background: var(--color-002)!important;
    color: #fff !important;
}

/* Active state styles */
.filter-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.text-truncate-custom {
	max-width: 80px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ========================================
 MOBILE RESPONSIVE CSS
 ======================================== */

/* Tablet - Small screens */
@media only screen and (max-width: 991px) {
    #calendar-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #calendar, #events {
        padding: 15px;
    }
    
    .header h1 {
/*         font-size: 18px; */
    }
    
    .month {
        gap: 12px;
    }
}

/* Mobile - Extra small screens */
@media only screen and (max-width: 576px) {
    #calendar-container {
        padding: 0 5px;
    }
    
    #calendar, #events {
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .header {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .header h1 {
/*         font-size: 15px; */
        flex: 1 0 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .nav-month {
/*         font-size: 13px; */
    }
    
    .nav-btn {
/*         font-size: 14px; */
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .month {
        gap: 4px;
    }
    
    .day {
        height: auto;
        min-height: 38px;
        padding: 4px 2px;
        border-radius: 4px;
    }
    
    .day-name {
/*         font-size: 10px; */
        margin-bottom: 1px;
    }
    
    .day-number {
/*         font-size: 12px; */
    }
    
    .day-events span {
        width: 3px;
        height: 3px;
        margin: 0 1px;
    }
    
    
    /* Events section */
    #events h2 {
/*         font-size: 16px; */
        margin-bottom: 10px;
    }
    
    #event-list {
        max-height: 350px;
        padding-right: 5px;
    }
    
    .event {
        padding: 8px 0;
/*         font-size: 12px; */
    }
    
    .event-card {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }
    
    .event-location {
/*         font-size: 0.8em; */
    }
    
    .event-date {
/*         font-size: 0.75em; */
    }
    
    .event-title {
/*         font-size: 0.9em; */
    }
    
    .event-description {
/*         font-size: 0.8em; */
    }
    
    /* Legend */
    .legend {
        gap: 8px;
        margin-top: 10px;
    }
    
    .entry {
/*         font-size: 10px; */
    }
    
    .entry:before {
        width: 7px;
        height: 7px;
    }
    
    /* Filter buttons */
    .filter-btn {
        padding: 4px 8px;
/*         font-size: 10px; */
        border-radius: 10px;
    }
    
    .text-truncate-custom {
        max-width: 100px;
    }
    
    /* Disable hover effects on mobile */
    .day:hover {
        background: inherit;
    }
    
    .day.today:hover {
        background: #eff6ff;
    }
    
    .filter-btn:hover {
        transform: none;
    }
    
    .event-card:hover {
        transform: none;
    }
}

/* Very small mobile devices */
@media only screen and (max-width: 380px) {
    #calendar-container {
        padding: 0 2px;
    }
    
    #calendar, #events {
        padding: 8px;
    }
    
    .month {
        gap: 2px;
    }
    
    .day {
        min-height: 35px;
        padding: 3px 1px;
    }
    
    .day-name {
/*         font-size: 9px; */
    }
    
    .day-number {
/*         font-size: 11px; */
    }
    
    .header h1 {
/*         font-size: 13px; */
    }
    
    .nav-btn {
/*         font-size: 12px; */
        padding: 3px 6px;
        min-width: 35px;
    }
    
    #events h2 {
/*         font-size: 14px; */
    }
    
    .event-card {
        padding: 8px;
    }
    
    .filter-btn {
        padding: 3px 6px;
/*         font-size: 9px; */
    }
    
    .text-truncate-custom {
        max-width: 70px;
    }
}

/* Landscape orientation on mobile */
@media only screen and (max-width: 767px) and (orientation: landscape) {
    #calendar-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .day {
        min-height: 35px;
    }
    
    #event-list {
        max-height: 250px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .day, .nav-btn, .filter-btn, .event-card {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    .day {
        min-height: 44px;
    }
    
    .nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .filter-btn {
        min-height: 36px;
    }
}