/* === CALENDAR CONTAINER === */
#nepali-calendar {
  width: 100%;
  max-width: 800px; /* increased overall width */
  margin: 0px auto;
  padding: 20px;
  background-color: #fffef9;
  border: 1px solid #e2d4b7;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-family: Arial, sans-serif;
  text-align: center;
}

/* === NAVIGATION HEADER === */
.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 15px;
}

.nav-buttons button {
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  color: #4a2e00;
  transition: all 0.2s ease;
}

.nav-buttons button:hover {
  background-color: #ddd;
}

.month-title {
  font-weight: bold;
  font-size: 20px;
  min-width: 160px;
}

/* === TABLE === */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
  width: 13%; /* 7 columns */
  height: 85px; /* base height (adjusted larger) */
  vertical-align: top;
  border: 1px solid #ddd;
  padding: 6px;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.calendar-header {
  background: #f2f2f2;
  font-size: 1.1em;
}

/* === DATE & TEXT === */
.date-number {
  font-weight: bold;
  display: block;
  font-size: 1em;
}

.festival {
  font-size: 0.85em;
  color: red;
  margin-top: 4px;
  line-height: 1.2em;
  display: block;
  word-wrap: break-word;
}

.tithi {
  font-size: 0.75em;
  color: #555;
  display: block;
  line-height: 1.1em;
}

/* === COLORS === */
.today {
  background: #b7ffb7;
  font-weight: bold;
}

.saturday,
.holiday {
  color: red;
  font-weight: bold;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  #nepali-calendar {
    max-width: 95%;
    padding: 10px;
  }

  .calendar-table th,
  .calendar-table td {
    height: 75px;
    font-size: 0.9em;
  }

  .month-title {
    font-size: 17px;
  }
}