@charset "utf-8";
#container{height:auto !important}
.board_table {
  width: 100%;
  height: 100%;
  text-align: center;
}
.board_table thead {
  background-color: var(--color-green);
  color: #fff;
}
.board_table thead th {padding: 16px 0;}
.board_table tbody td {padding: 20px;}
.board_table thead th,
.board_table tbody td {border-bottom: 1px solid #E5E5E5;}
.board_table .td_no {color: var(--color-darkgray);}
.board_table .tr_notice td {background-color: #F4F5EE;}
.board_table .tr_notice .td_no {color: var(--color-green);}
.board_table .td_cate span {
  /*display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--color-lightgray);
  border-radius: 5px;
  background-color: #fff;*/
  color: #000;
  white-space:nowrap;
}
.board_table .td_tit {max-width: 45%;}
.board_table .td_tit a {
  display: inline-block;
  width: 95%;
  text-overflow: ellipsis;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;

}
.board_table .td_file {color: #b1b1b1;}
.board_table .td_file img {min-width:18px;}

/* view css */
.board_view_top > * {margin-bottom: 30px;}
.board_view_top p {
  color: var(--color-darkgray)
  ;}
.board_view_contents > p:last-of-type{margin-bottom: 80px;}

.schedule-container {
  display: flex;
  gap: 60px;
}

@media (max-width:1240px) {
	.board_table .td_tit a {max-width:450px;}
	.board_table tbody td{padding:20px 10px;}
 }

.calendar_wrap {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 20px 0;
}

@media (min-width: 769px) and (max-width: 1024px) {

  .calendar-section {
    width: 100%;
  }

  .schedule-container {
    display: flex;
    gap: 40px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .calendar-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .calendar-section {
    width: 100%;
  }

  .schedule-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .schedule-section {
    width: 100%;
  }

  .weekly-schedule-section {
    width: 100%;
  }
}

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

.calendar-nav button {
  border: none;
  background: none;
  cursor: pointer;
  color: black;
  padding: 6px 12px;
  width: unset;
  display: flex;
  align-items: center;
  gap: 5px;
}

.calendar-nav button:hover {
  color: var(--color-green);
}

.calendar-nav button svg {
  transition: stroke 0.3s;
}

.month-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  text-align: center;
  padding: 8px 0;
  font-weight: 500;
  color: black;
  width: 100%;
  max-width: 40px;
  max-height: 40px;
  margin: 0 auto;
}

.day.sun {
  color: #E74C3C;
}

.day.sat {
  color: #3498DB;
}

.date {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 5px;
  color: #333;
  border-radius: 50%;
  transition: background 0.3s;
  cursor: pointer;
  width: 100%;
  max-width: 40px;
  max-height: 40px;
  margin: 0 auto;
}

.date.gray {
  color: #ccc;
  cursor: default;
}

.date.empty {
  cursor: default;
}

.date.has-event {
  color: black;
  background-color: #e0e0e0;
  cursor: pointer;
}

.date.gray {
  color: #ccc;
  cursor: default;
}

.date.active {
  background: var(--color-green);
  color: #fff;
}

.date.today {
  font-weight: 700;
  text-decoration: underline;
}
.calendar-section {
  flex: 1;
}
.schedule-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.schedule-content {
  height: 100%;
  padding-top: 20px;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green);
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 25px;
  width: 100%;
}

.date-badge strong {
  font-size: 18px;
  font-weight: 700;
  margin-right: 5px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-list li {
  display: flex;
  align-items: center;
  gap: 15px;
}

.event-list .time, .weekly-event-time {
  font-weight: 600;
  color: var(--color-green);
  white-space: nowrap;
}

.event-list .desc {
  color: #333;
  line-height: 1.4;
  flex: 1;
}

.event-list .desc a {
  color: #333;
  text-decoration: none;
}

.event-list .desc a:hover {
  color: var(--color-green);
}

.event-list .btn_edit {
  padding: 3px 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 8px;
  flex-shrink: 0;
  width: fit-content;
}

.event-list .btn_edit:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.schedule-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.weekly-schedule-section {
  border-top: 1px solid black;
  padding-top: 60px;
  flex: 0.52;
  display: flex;
  flex-direction: column;
}

.weekly-schedule-content {
  padding-top: 20px;
}

.weekly-day-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  padding-left: 25px;
  border-bottom: 1px solid #e5e5e5;
}

.weekly-day-section:last-child {
  border-bottom: none;
}

.weekly-day-header {
  font-weight: 600;
  color: #333;
  font-size:18px;
  margin-bottom: 15px;

}

.weekly-day-name {
  font-weight: 500;
  color: #666;
  margin-left: 5px;
}

.weekly-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weekly-event-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;

}

.weekly-event-time {
  font-weight: 600;
  color: var(--color-green);
  white-space: nowrap;
  min-width: 80px;
  border: 1px solid var(--color-green);
  text-align: center;
  padding: 7px 15px;
  border-radius: 30px;
}

.weekly-event-title {
  color: #333;
  line-height: 1.3;
  flex: 1;
  margin-left: 20px;
  font-size: 18px;

}

.weekly-event-title a {
  color: #333;
  text-decoration: none;
}

.weekly-event-title a:hover {
  color: var(--color-green);
}

.weekly-btn-edit {
  padding: 2px 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 6px;
  flex-shrink: 0;
  width: fit-content;
}

.weekly-btn-edit:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.weekly-no-event {
  color: #999;
  font-style: italic;
  padding: 8px 0;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.board_search_wrap {
  padding: 0;
}