body {
      font-family: Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif;
      background: #f5f5f5;
      margin: 20px;
    }

    #calendar {
      position: relative;
      max-width: 1024px;
      margin: 0 auto;
      background: transparent;
      border-radius: 8px;
      box-shadow: none;
      padding: 40px 20px 20px 20px;
    }

    /* Header layout fixes */
    .calendar-header {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 20px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .calendar-logo {
      width: 120px;
      height: auto;
      flex-shrink: 0;
    }

    .title-and-controls {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-grow: 1;
    }

    #calendarTitle {
      color: #002F6C;
      font-size: 36px;
      margin-bottom: 10px;
      text-align: center;
    }

    .filter-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }

    .calendar-buttons {
      display: flex;
      gap: 10px;
    }

    .calendar-buttons button {
      margin-top: 22px;
    }

    .filter-controls label {
      font-size: 14px;
      color: #002F6C;
      display: flex;
      flex-direction: column;
      font-weight: 600;
    }

    select, input[type="search"] {
      padding: 8px;
      border-radius: 4px;
      border: 1px solid #ccc;
      font-size: 14px;
      margin-top: 4px;
    }

    .filter-controls button {
      padding: 8px 12px;
      font-weight: bold;
      cursor: pointer;
      background-color: #002F6C;
      color: white;
      border: none;
      border-radius: 4px;
      transition: background-color 0.3s ease;
    }

    .filter-controls button:hover {
      background-color: #CB6015;
    }

    .month-year-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 20px auto 10px auto;
      width: 100%;
      padding: 0 10px;
    }

    #monthYear {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
    }

    #monthYear button {
      background: none;
      border: none;
      color: #002F6C;
      font-size: 24px;
      cursor: pointer;
      padding: 0 10px;
      transition: color 0.3s ease;
    }

    #monthYear button:hover {
      color: #CB6015;
    }

    #monthYearText {
      text-align: center;
      font-size: 24px;
      white-space: nowrap;
      flex: 1;
      color: #002F6C;
      font-weight: bold;
    }

    .day-labels {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      font-weight: bold;
      text-align: center;
      color: #002F6C;
      margin-bottom: 5px;
    }

    .day-labels div {
      padding: 10px 0;
    }

    .days-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      gap: 5px;
      transition: opacity 0.3s ease;
    }

    .day-cell {
      min-height: 120px;
      min-width: 130px;
      border: 1px solid #ddd;
      background: #fff;
      padding: 6px 8px;
      overflow-y: auto;
      box-sizing: border-box;
      border-radius: 4px;
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .day-cell.weekend {
      background-color: #f9f9f9;
    }

    .day-number {
      font-weight: bold;
      margin-bottom: 6px;
      color: #002F6C;
    }

    .empty-cell {
      background: #f0f0f0;
      border: none;
    }

    .event {
      padding: 4px 6px;
      margin-bottom: 4px;
      border-radius: 3px;
      font-size: 13px;
      cursor: pointer;
      user-select: none;
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .event i {
      font-size: 14px;
    }

    .event.athletic {
      color: #002F6C;
    }

    .event.promo {
      color: #CB6015;
    }

    .calendar-footer {
      text-align: center;
      margin-top: 20px;
    }

    /* --- MOBILE STYLING --- */
    @media (max-width: 768px) {
      .calendar-header {
        flex-direction: column;
        align-items: center;
      }

      .calendar-logo {
        display: none;
      }

      .filter-controls {
        flex-direction: column;
        align-items: center;
      }

      .calendar-buttons {
        flex-direction: column;
        width: 100%;
      }

      .calendar-buttons button {
        width: 100%;
      }

      #calendar {
        padding: 20px 10px;
      }

      #calendarTitle {
        font-size: 28px;
        margin-top: 10px;
        margin-bottom: 10px;
        text-align: center;
      }

      .day-cell {
        min-height: 100px;
        min-width: auto;
        max-width: 100%;
      }

      .day-labels,
      .days-grid {
        grid-template-columns: repeat(7, 1fr) !important;
      }

      .day-cell .event {
        display: none !important;
      }

      .clickable-day {
        cursor: pointer;
      }

      .clickable-day:active {
        background-color: #e6f0ff;
      }

      .day-cell.has-events::after {
        content: '';
        width: 8px;
        height: 8px;
        background-color: #CB6015;
        border-radius: 50%;
        position: absolute;
        bottom: 6px;
        left: 6px;
      }
    }

    @media (max-width: 480px) {
      .day-cell {
        min-height: 90px;
      }

      #calendarTitle {
        font-size: 28px;
      }

      .day-labels,
      .days-grid {
        grid-template-columns: repeat(7, 1fr) !important;
      }
    }
