body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* ===== Slider ===== */
.slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ===== Calendar Layout ===== */
.calendar-wrapper {
    display: flex;
    position: relative;
}

.calendar-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 10px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #714955;
    color: white !important;
    padding: 10px;
}

.calendar-header h2
{
	color: white !important;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

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

.weekdays div {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #e0f2f1;
}

.day {
    min-width: 0;              
    aspect-ratio: 1 / 1;      
    padding: 4px;
    box-sizing: border-box;
    font-size: 12px;
	border:1px solid #999;
	cursor:pointer;
}

.day:hover {
    background: #fff8e1;
}
.day p{
	font-size:12px;
	font-family: 'Noto Sans Malayalam', sans-serif !important;
}

.date {
    font-size: clamp(12px, 3vw, 16px);
    white-space: normal;
    word-break: break-word;
}

.event {
    font-size: clamp(9px, 2.5vw, 11px);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ===== Sliding Panel ===== */
.day-panel {
    width: 320px;
    background: white;
    position: fixed;
    top: 0;
	height:auto;
    right: -320px;
    height: 100%;
    box-shadow: -3px 0 10px rgba(0,0,0,0.2);
    padding: 0px;
    transition: right 0.4s ease;
    z-index: 100000;
	overflow-y: scroll;
	font-family: 'Noto Sans Malayalam', sans-serif !important;
	background-color: #FFF8EE; 
}
.day-panel h3{
	color:#714955;
	font-family: 'Noto Sans Malayalam', sans-serif !important;
}
#panelDate
{
	padding:20px;
}
.day-panel.open {
    right: 0;
}


.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .day {
        aspect-ratio: auto;    /* allow vertical growth */
        min-height: 60px;
		font-size:12px;
    }
	.day p{
		font-size:10px;	
	}
}
