/* ============================== */
/*           components           */
/* ============================== */
/* button */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.btn-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.btn-text-icon span {
  font-size: 20px;
}

.btn-text-icon .text {
  font-size: 16px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .btn {
    height: 44px;
  }

  .btn-icon {
    width: 44px;
    height: 44px;
  }
}

.btn.btn-fill,
.btn-icon.btn-fill {
  position: relative;
  overflow: hidden;
  background-color: var(--color-gray300);
  color: var(--color-black);
  transition: color 0.3s ease;
  z-index: 0;
}

.btn.btn-fill::before,
.btn-icon.btn-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--color-primary);
  transition: width 0.4s ease;
  z-index: -1;
}

.btn.btn-fill:hover,
.btn-icon.btn-fill:hover {
  color: var(--color-white);
}

.btn.btn-fill:hover::before,
.btn-icon.btn-fill:hover::before {
  width: 100%;
}

/* checkbox */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.checkbox .label-text {
  font-weight: 500;
}

.checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-gray400);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.checkbox .checkmark .material-icons {
  font-size: 16px;
  color: var(--color-white);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.checkbox input[type='checkbox']:checked + .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox input[type='checkbox']:checked + .checkmark .material-icons {
  opacity: 1;
  transform: scale(1);
}

/* card */
.program-card {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .program-card {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
    padding: 0 20px 20px 20px;
  }
}

@media (min-width: 1280px) {
  .program-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    overflow-x: inherit;
  }
}

.program-card .card-item {
  border-radius: 20px;
  box-shadow: 0 4px 20px #00000014;
  overflow: hidden;
  transition: border 0.5s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .program-card .card-item {
    width: 380px;
  }
}

@media (min-width: 1280px) {
  .program-card .card-item {
    width: auto;
  }
}

.program-card .card-item:hover {
  border-color: var(--color-primary);
}

.program-card .card-item .thumb {
  position: relative;
  width: 100%;
  padding-top: 70%;
  overflow: hidden;
}

.program-card .card-item .thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* transition: transform 0.5s ease; */
}

.program-card .card-item .body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  flex: 1;
}

.program-card .card-item .body h3 {
  font-size: 20px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-card .card-item .body .info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.program-card .card-item .body .info li {
  display: flex;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.program-card .card-item .body .info li span {
  font-weight: 500;
  width: 80px;
  flex-shrink: 0;
}

.program-card .card-item .body .info li p {
  color: var(--color-gray700);
  word-break: keep-all;
}

.program-card .card-item .body .info li p.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-card .card-item .thumb .program-status {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 100%;
  background-color: #91919166;
  padding: 8px;
}

.program-card .card-item .thumb .program-status span {
  width: 3em;
  height: 3em;
  word-break: keep-all; 
  text-align:center; 
  font-size: 15px;
  background-color: var(--color-gray600);
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: -0.04em;
  color: var(--color-white);
  line-height: 1.1;
}

.program-card .card-item .thumb .program-status.on {
  background-color: #0066ab66;
}

.program-card .card-item .thumb .program-status.on span {
  background-color: var(--color-primary);
}

/* ============================== */
/*            메인페이지             */
/* ============================== */
/* main visual */
.main-visual .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-visual .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 5s ease;
}

.main-visual .swiper-slide-active img {
  transform: scale(1.2);
}

.main-visual .swiper-slide .dimd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 31, 0.1) 20%,
    rgba(5, 12, 31, 0.9) 100%
  );
  pointer-events: none;
}

.main-visual .slide-text {
  position: absolute;
  left: 0;
  top: 40%;
  transform: translateY(-20%);
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: all 1.4s ease;
}

.main-visual .swiper-slide-active .slide-text {
  opacity: 1;
  transform: translateY(-40%);
  transition-delay: 0.6s;
}

.main-visual .slide-text h1 {
  font-size: 32px;
  line-height: 1.4;
  color: var(--color-white);
  word-break: keep-all;
}

@media (min-width: 640px) {
  .main-visual .slide-text {
    top: 45%;
    transform: translateY(-35%);
  }

  .main-visual .swiper-slide-active .slide-text {
    transform: translateY(-45%);
  }
}

@media (min-width: 768px) {
  .main-visual .slide-text {
    top: 50%;
    transform: translateY(-30%);
  }

  .main-visual .swiper-slide-active .slide-text {
    transform: translateY(-50%);
  }

  .main-visual .slide-text h1 {
    font-size: 44px;
  }
}

.main-visual .slide-text h1 b {
  display: block;
  font-weight: 600;
}

.main-visual .swiper-pagination-fraction {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  bottom: inherit;
  top: inherit;
  left: inherit;
  width: auto;
}

.main-visual .swiper-button-prev.main > span,
.main-visual .swiper-button-next.main > span {
  font-size: 24px;
  color: var(--color-white);
}

.main-visual .main-swiper-button-toggle {
  width: 24px;
  height: 24px;
}

.main-visual .main-swiper-button-toggle > span {
  color: var(--color-white);
  font-size: 20px;
}

.main-visual .shortcut li a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.67em;
  padding: 0 1.33em;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .main-visual .shortcut li a {
    font-size: 20px;
  }
}

@media (min-width: 900px) {
  .main-visual .shortcut li a {
    flex-direction: row;
  }
}

.main-visual .shortcut li a .icon-box {
  background-color: var(--color-white);
  width: 58px;
  height: 58px;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.main-visual .shortcut li a .icon-box img {
  width: 65%;
  height: 65%;
}

@media (min-width: 768px) {
  .main-visual .shortcut li a .icon-box {
    width: 64px;
    height: 64px;
  }
}

.main-visual .shortcut li a.active,
.main-visual .shortcut li a:hover {
  color: var(--color-secondary);
}

.main-visual .shortcut li a.active .icon-box,
.main-visual .shortcut li a:hover .icon-box {
  background-color: var(--color-secondary);
}

/* main program */
.main-program.education .program-card .card-item .thumb {
  padding-top: 100%;
}

.main-program.education .program-card .card-item .body {
  padding: 24px;
}

.main-program.education .program-card .card-item .body h3 > span {
  display: block;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1;
}

/* main schedule */
.main-schedule {
  padding: 60px 0;
  background: #0066ab url('/resources/images/main/schedule-bg.svg') no-repeat
    center bottom;
  background-size: cover;
}

@media (min-width: 768px) {
  .main-schedule {
    padding: 100px 0;
    background-size: contain;
  }
}

.main-schedule .head .info-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* grid-template-rows: repeat(2, 1fr); */
  gap: 12px;
}

@media (min-width: 768px) {
  .main-schedule .head .info-list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
  }
}

@media (min-width: 1280px) {
  .main-schedule .head .info-list {
    display: flex;
    justify-content: flex-end;
  }
}

.main-schedule .head .info-list li {
  background-color: #ffffff1a;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-white);
  line-height: 1.2;
  word-break: keep-all;
}

.main-schedule .head .info-list li span {
  opacity: 0.6;
  font-weight: 500;
}

.main-schedule .schedule-wrap .thumb {
  position: relative;
  width: 100%;
  padding-top: 120%;
  overflow: hidden;
  border-radius: 12px;
}

.main-schedule .schedule-wrap .thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-schedule .schedule-wrap .calendar table {
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
}

.main-schedule .schedule-wrap .calendar table thead th {
  padding: 10px;
  text-align: center;
}

.main-schedule .schedule-wrap .calendar table thead .day-label.sunday,
.main-schedule .schedule-wrap .calendar table tbody .day-cell.sunday {
  color: var(--color-red);
}

.main-schedule .schedule-wrap .calendar table thead .day-label.saturday,
.main-schedule .schedule-wrap .calendar table tbody .day-cell.saturday {
  color: var(--color-blue);
}

.main-schedule .schedule-wrap .calendar table td {
  padding: 8px 0;
}

.main-schedule .schedule-wrap .calendar table td .day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 100%;
  margin: 0 auto;
}

.main-schedule .schedule-wrap .calendar table td .day-cell.off {
  color: var(--color-gray700);
  background-color: var(--color-gray400);
}

.main-schedule .schedule-wrap .calendar table td .day-cell.on {
  color: var(--color-white);
  background-color: var(--color-secondary);
}

.main-schedule .schedule-wrap .calendar .badge li span {
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  border-radius: 50px;
}

.main-schedule .schedule-wrap .month-event ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.main-schedule .schedule-wrap .month-event ul li::after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: var(--color-gray400);
  position: absolute;
  bottom: -16px;
}

.main-schedule .schedule-wrap .month-event ul li:last-child::after {
  content: none;
}

.main-schedule .schedule-wrap .month-event ul li .date {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.89em 0.78em;
  background-color: var(--color-gray200);
  border-radius: 0.44em;
}

.main-schedule .schedule-wrap .month-event ul li .detail {
  overflow: hidden;
}

.main-schedule .schedule-wrap .month-event ul li .detail h4 {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-schedule .schedule-wrap .month-event ul li .detail p {
  font-size: 14px;
  color: var(--color-gray600);
  margin-top: 0.43em;
  line-height: 1.1;
}

/* main board */
.main-board .tab li button {
  font-family: 'SuseongDotum';
  font-size: 18px;
  color: var(--color-gray600);
}

@media (min-width: 640px) {
  .main-board .tab li button {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  .main-board .tab li button {
    font-size: 24px;
  }
}

.main-board .tab li.active button {
  color: var(--color-primary);
}

.main-board .notice-item {
  background-color: var(--color-gray100);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .main-board .notice-item {
    padding: 30px;
    gap: 40px;
    border-radius: 20px;
  }
}

.main-board .notice-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-board .notice-item > div span {
  font-weight: 500;
  color: var(--color-gray700);
}

.main-board .notice-item > div .date {
  font-size: 14px;
}

.main-board .notice-item h3 {
  font-size: 18px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.main-board .popup .swiper-button-prev.popup > span,
.main-board .popup .swiper-button-next.popup > span {
  font-size: 24px;
  color: var(--color-white);
}

.main-board .popup-swiper-button-toggle {
  width: 24px;
  height: 24px;
}

.main-board .popup-swiper-button-toggle > span {
  color: var(--color-white);
  font-size: 20px;
}

.main-board .swiper-pagination-fraction {
  color: #ffffff99;
  font-size: 16px;
  font-weight: 500;
  bottom: inherit;
  top: inherit;
  left: inherit;
  width: auto;
}

.main-board .swiper-pagination-total {
  color: var(--color-white);
}

.main-board .swiper-pagination-current {
  color: var(--color-secondary);
}

/* main banner */
.main-banner .banner-swiper {
  width: calc(100% - 88px);
  overflow: hidden;
  margin: 0 auto;
}

.main-banner .banner-swiper .swiper-slide {
  width: 180px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.main-banner .banner-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.main-banner .swiper-button-prev.banner,
.main-banner .swiper-button-next.banner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
}

.main-banner .swiper-button-prev.banner {
  left: 4px !important;
  right: inherit;
}

.main-banner .swiper-button-next.banner {
  right: 4px !important;
  left: inherit;
}

.main-banner .swiper-button-prev.banner > span,
.main-banner .swiper-button-next.banner > span {
  font-size: 30px;
  color: var(--color-black);
}

/* main popup */
.main-popup {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-popup.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.swiper-button-prev.main-popup,
.swiper-button-next.main-popup {
  border: 1px solid var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 100%;
}

.swiper-button-prev.main-popup > span,
.swiper-button-next.main-popup > span {
  font-size: 28px;
  color: var(--color-white);
}

.swiper-pagination-fraction.main-popup {
  color: #ffffff99;
  font-size: 16px;
  font-weight: 500;
  bottom: 0;
  top: 0;
  left: 0;
  width: auto;
}

.main-popup .swiper-pagination-total {
  color: var(--color-white);
}

.main-popup .swiper-pagination-current {
  color: var(--color-secondary);
}

/* ============================== */
/*             서브페이지            */
/* ============================== */
.sub-visual {
  /* background: #0066ab url('/resources/images/sub/sub-visual-bg.svg') no-repeat
    center bottom; */
  background-size: cover;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 72px;
}

@media (min-width: 768px) {
  .sub-visual {
    background-size: contain;
    margin-top: 0;
  }
}

.sub-visual h1 {
  font-family: 'SuseongDotum';
  font-size: 28px;
  text-align: center;
  white-space: nowrap;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .sub-visual {
    height: 400px;
  }

  .sub-visual h1 {
    font-size: 40px;
  }
}

.breadcrumb {
  display: none;
}

@media (min-width: 768px) {
  .breadcrumb {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .breadcrumb > ul {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .breadcrumb > ul > li {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: relative;
  }

  .breadcrumb > ul > li + li::before {
    font-family: 'Material Icons Outlined';
    content: 'keyboard_arrow_right';
    font-size: 20px;
    color: #ffffff66;
    position: absolute;
    left: -20px;
  }

  .breadcrumb > ul > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-white);
    height: 44px;
    transition: all 0.3s ease;
  }

  .breadcrumb > ul > li:first-child > a {
    width: 44px;
  }

  .breadcrumb > ul > li > a .icon-box {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid var(--color-white);
    background-color: #ffffff33;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .breadcrumb > ul > li > a .icon-box span {
    font-size: 16px;
    transition: all 0.3s ease;
  }

  .breadcrumb > ul > li:hover .icon-box span {
    transform: rotate(180deg);
  }

  .breadcrumb .dropdown {
    position: absolute;
    top: 100%;
    background-color: var(--color-white);
    border-radius: 12px;
    width: 140px;
    padding: 10px 0;
    box-shadow: 0 8px 14px #0000001a;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }

  .breadcrumb > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
  }

  .breadcrumb .dropdown li a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-gray800);
    transition: all 0.3s ease;
  }

  .breadcrumb .dropdown li a:hover {
    font-weight: 500;
    color: var(--color-black);
  }
}

/* 서브페이지 하단 담당부서 */
.subpage-dept-contact .title-box {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 100%;
  padding: 12px 0;
  border-radius: 12px 12px 0 0;
}

.subpage-dept-contact ul {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.subpage-dept-contact ul li {
  display: flex;
  align-items: center;
}

.subpage-dept-contact ul li:first-child::after {
  content: '';
  width: 1px;
  height: 14px;
  background-color: var(--color-gray400);
  margin: 0 12px;
}

@media (min-width: 768px) {
  .subpage-dept-contact .title-box {
    width: 200px;
    border-radius: 8px 0 0 12px;
  }

  .subpage-dept-contact ul {
    justify-content: flex-start;
  }
}

/* 서브페이지 하단 담당부서 - 2 */
.subpage-dept-contact-2 h5 {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 18px;
  display: flex;
  text-align: center;
  flex-direction: column;
  width: 100%;
}

.subpage-dept-contact-2 h5::after {
  content: '';
  width: 100%;
  height: 1px;
  border: 1px dashed #93cff6;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .subpage-dept-contact-2 h5 {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .subpage-dept-contact-2 h5::after {
    width: 1px;
    height: 44px;
    margin: 0 40px;
  }
}

.subpage-dept-contact-2 ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: column;
}

.subpage-dept-contact-2 ul .icon-box {
  border-radius: 100%;
  background-color: var(--color-white);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subpage-dept-contact-2 ul .icon-box span {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .subpage-dept-contact-2 ul li {
    flex-direction: row;
  }
}