body {
    font-family: 'Open Sans', sans-serif; /* Default font for the whole page */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: #BBE0D1; /* NEW HEADER COLOR: Pale Green (matches Tuesday meetings) */
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Removed default header 'color: #fff;' because we're setting specific colors below */
}

header h1 {
    margin: 0;
    padding-bottom: 0.8rem;
    font-family: 'Oswald', sans-serif;
    font-size: 3.8em;
    color: #2F4F4F; /* Dark Slate Gray for title text (contrasts with light green) */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Slightly lighter shadow for dark text */
}

header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #4A4A4A; /* Darker Gray for paragraph text (contrasts with light green) */
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px 10px;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

#calendar-container {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 0;
}

.calendar-nav h2 {
    font-family: 'Nunito', sans-serif;
    color: #6A5ACD; /* This color remains, as it's for the calendar's own header */
    font-size: 2.2em;
    margin: 0;
}

.calendar-nav button {
    background-color: #6A5ACD; /* Button color remains */
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.calendar-nav button:hover {
    background-color: #483D8B; /* Darker shade on hover */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

/* Different colors for each column (Day of the Week) - these apply to the whole cell background */
/* Sunday */
.day-header:nth-child(1),
.calendar-day:nth-child(7n + 1) {
    background-color: #FFECF0; /* Very light pink */
}
/* Monday */
.day-header:nth-child(2),
.calendar-day:nth-child(7n + 2) {
    background-color: #E0F7FA; /* Very light cyan */
}
/* Tuesday */
.day-header:nth-child(3),
.calendar-day:nth-child(7n + 3) {
    background-color: #E8F8F5; /* Very light mint green */
}
/* Wednesday */
.day-header:nth-child(4),
.calendar-day:nth-child(7n + 4) {
    background-color: #FFF3E0; /* Very light orange */
}
/* Thursday */
.day-header:nth-child(5),
.calendar-day:nth-child(7n + 5) {
    background-color: #F3E5F5; /* Very light purple */
}
/* Friday */
.day-header:nth-child(6),
.calendar-day:nth-child(7n + 6) {
    background-color: #E8F5E9; /* Very light pastel green */
}
/* Saturday */
.day-header:nth-child(7),
.calendar-day:nth-child(7n + 7) {
    background-color: #F9FBE7; /* Very light yellow-green */
}


.day-header {
    font-weight: bold;
    padding: 12px 0;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1em;
    color: #4B0082; /* Indigo color for day names */
}

.calendar-day {
    border: 1px solid #ddd;
    min-height: 120px;
    padding: 10px;
    text-align: left;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-day.empty {
    visibility: hidden;
    border: none;
    background-color: transparent !important;
}

.day-number {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 8px;
    display: block;
    color: #8A2BE2; /* BlueViolet color for day numbers */
    font-family: 'Nunito', sans-serif;
}

/* --- NEW STYLES FOR MEETING ENTRIES PER COLUMN --- */
.meeting-entry {
    padding: 6px;
    margin-top: 6px;
    border-radius: 4px;
    font-size: 0.9em;
    word-wrap: break-word;
    font-family: 'Nunito', sans-serif;
    color: #006400; /* Dark green for meeting text for good readability */
}

/* Sunday Meetings */
.calendar-day:nth-child(7n + 1) .meeting-entry {
    background-color: #DDEEE1; /* Light Mint */
    border: 1px solid #B0D7B6;
}
/* Monday Meetings */
.calendar-day:nth-child(7n + 2) .meeting-entry {
    background-color: #CCECDC; /* Slightly greener Mint */
    border: 1px solid #99CBA3;
}
/* Tuesday Meetings */
.calendar-day:nth-child(7n + 3) .meeting-entry {
    background-color: #BBE0D1; /* Pale Green */
    border: 1px solid #77B988;
}
/* Wednesday Meetings */
.calendar-day:nth-child(7n + 4) .meeting-entry {
    background-color: #AAD4C7; /* Medium Pale Green */
    border: 1px solid #54A370;
}
/* Thursday Meetings */
.calendar-day:nth-child(7n + 5) .meeting-entry {
    background-color: #99C8BD; /* Light Lime Green */
    border: 1px solid #3C8D58;
}
/* Friday Meetings */
.calendar-day:nth-child(7n + 6) .meeting-entry {
    background-color: #88BBAE; /* Slightly darker Lime Green */
    border: 1px solid #287A46;
}
/* Saturday Meetings */
.calendar-day:nth-child(7n + 7) .meeting-entry {
    background-color: #77B09F; /* Soft Teal Green */
    border: 1px solid #146734;
}
/* --- END NEW STYLES --- */


footer {
    text-align: center;
    padding: 25px;
    background: #333;
    color: #fff;
    margin-top: 30px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
}

@media (max-width: 768px) {

    header {
    background: #BBE0D1;
    padding: 1.5rem 5vw; /* top/bottom: 1.5rem, left/right: 5% of viewport width */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    header h1 {
    margin: 0;
    padding: 0 5vw 0.8rem 5vw;
    font-family: 'Oswald', sans-serif;
    font-size: 3.8em;
    color: #2F4F4F; /* Dark Slate Gray for title text (contrasts with light green) */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1); /* Slightly lighter shadow for dark text */
}

  .calendar-grid {
    display: flex;
    flex-direction: column;
  }

  .calendar-day,
  .calendar-day.empty {
    width: 100%;
    box-sizing: border-box;
  }

  .calendar-day.empty {
    display: none;
  }

  .day-header {
  display: none;
}

.calendar-nav button {
  padding:4px 10px;
  font-size: 0.85rem;
  border: 1px solid #6A5ACD;
  background-color: #6A5ACD;
  cursor: pointer;
  border-radius: 2px;
}

.calendar-nav h2 {
    font-size: 1.2rem;
    text-align: center; /* Center title */
    margin-bottom: 0.5rem;
  }

}
