*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #dee1e8;
}

*::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #c7cedb;
}

html {
  overflow: auto;
}

body {
  padding: 0 !important;
}

/* header */
.header-wrap {
  border-bottom: 1px solid #dce1e4;
}

.header-title {
  border: 0;
}

.header-title .container {
  justify-content: space-between;
  align-items: center;
  height: 100px;
  max-width: 1400px;
  gap: 23px;
}

.header-title .title-logo img {
  height: 60px;
}

.navbar-nav {
  max-height: 100%;
  gap: 77px;
}

.navbar-nav li {
  display: flex;
  flex-direction: column;
}

.navbar-nav .dropdown-toggle::after {
  display: none;
}

.navbar-nav > li > .nav-link {
  font-size: 22px;
}

.navbar-nav .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
}

.navbar-nav .dropdown-menu > ul {
  width: 100%;
}

.navbar-nav .dropdown-item {
  font-size: 18px;
  text-align: center;
}

.navbar-toggler.search-toggle {
  position: relative;
  width: 40px;
  height: 40px;
}

.navbar-toggler.search-toggle::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  left: 50%;
  top: 50%;
  background: url(../image/church/icon_search.svg) center center no-repeat;
  background-size: contain;
  transform: translate(-50%, -50%);
}

/* 컨테이너 */
.container {
  max-width: 1400px;
  padding: 0;
}

.main-wrap {
  margin: 0;
}

.basic-body-main {
  padding: 0;
  float: none;
}

/* footer */
.footer {
  padding-bottom: 90px;
  border-top: 1px solid #dce1e4;
}

.footer-top {
  margin: 0;
  padding: 30px 0 20px;
  border: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 25px;
  float: none;
}

.footer-nav a {
  margin-right: 0;
  font-size: 16px;
  font-weight: 600;
  color: #7e8286;
}

.footer-cont-info {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin: 0;
  line-height: 1.2;
  text-align: left;
}

.footer-cont-info .ft-logo {
  flex-shrink: 0;
}

.footer-cont-info .ft-logo img {
  max-height: 40px;
}

.footer-cont-info .ft-cont {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}

.footer-cont-info .ft-cont span {
  font-size: 16px;
  color: #000;
}

.footer-copyright {
  flex-basis: 100%;
  padding: 0;
  font-size: 14px;
  text-align: left;
  color: #7e8286;
  text-transform: uppercase;
}

/* 퀵메뉴 */
.quick-menu {
  z-index: 100;
  position: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 60px;
  top: 60%;
  right: 2rem;
  border: 1px solid #c9d1d5;
  border-radius: 10px;
  transform: translateY(-50%);
}

body:has(.page-title-wrap) .quick-menu {
  top: 40%;
}

.quick-menu .btn-quick {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  gap: 5px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: #52565a;
  border: 0;
  background: #f0f3f7;
  transition: 0.3s;
  outline: none;
  border-top: 1px solid #c9d1d5;
}

.quick-menu .btn-quick.band {
  border-top: 0;
}

.quick-menu .btn-quick::before {
  content: '';
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.quick-menu .btn-quick.band::before {
  width: 28px;
  height: 37px;
  background: url(../image/church/band.svg);
}
.quick-menu .btn-quick.youtube::before {
  width: 36px;
  height: 26px;
  background: url(../image/church/youtube.svg);
}
.quick-menu .btn-quick.btn-up::before {
  width: 16px;
  height: 20px;
  background: url(../image/church/arr-up.svg);
}

.quick-menu .btn-quick:hover {
  background: #dee5ee;
}

.sidebar-right-wrap {
  display: none;
}

/* 메인화면 */
.ebs-basic-in .swiper-slide picture {
  height: 400px;
}

.main-contents {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding-bottom: 90px;
}

.main-contents .cont-tit {
  margin-bottom: 11px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.main-contents .row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.headline-short {
  margin-bottom: 9px;
}

.headline-short h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #5495e0;
}

.headline-short h4:after {
  display: none;
}

.headline-short:has(.btn-more) {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-more {
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url(../image/church/more.svg);
}

.cont-tit-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}

.cont-tit-wrap .cont-tit {
  margin-bottom: 0;
}

/* 메인 - 교회소식 */
.news-wrap {
  flex-basis: 400px;
}

.news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd7dc;
  background: #fff;
  box-shadow: 10px 10px 10px 0px rgba(233, 236, 239, 0.5);
}

.news-list > li ~ li {
  border-top: 1px solid #cfd7dc;
}

.news-list > li > a {
  display: block;
}

.news-list .news-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 500;
  color: #000;
  transition: 0.3s;
}

.news-list > li > a:hover .news-title {
  color: #5495e0;
}

.news-list > li:first-child .news-title {
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3px;
  padding: 24px 24px 0 24px;
  font-size: 22px;
  font-weight: 700;
}

.news-list .date {
  font-size: 14px;
  font-weight: 600;
  color: #7e8286;
}

.news-list .news-txt {
  padding: 10px 25px;
  text-align: justify;
}

.news-list > li ~ li .news-txt {
  display: none;
}

.news-list .news-txt p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #000;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 메인 - 봉사위원 */
.volunteer-wrap {
  flex-basis: 480px;
  width: 100%;
}

.board-wrap {
  padding: 10px 10px 4px;
  border: 1px solid #cfd7dc;
  box-shadow: 10px 10px 10px 0px rgba(233, 236, 239, 0.5);
}

.board-wrap .grid-oversize {
  padding-bottom: 6px;
  overflow-x: auto;
}
.board-wrap .grid-oversize .grid-list-a {
  min-width: 458px;
}

/* 메인 - 목회계획 */
.plan-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 2rem;
}

.plan-wrap .board-wrap {
  overflow: hidden;
  height: 160px;
  padding: 4px;
  background: #f3f5f9;
}

.plan-wrap .unorder-list {
  height: 100%;
  padding: 10px 16px;
  overflow-y: auto;
}

/* 메인 - 교회봉사 */
.service-latest .board-wrap {
  height: 110px;
  background: #fff;
}

.service-latest .service-list {
  height: 100%;
  gap: 10px;
  padding: 10px 16px;
  overflow-y: auto;
}

/* 메인 - 예배안내 */
.worship-info {
  flex-basis: 400px;
  background: #0398e1;
  box-shadow: 10px 10px 10px 0px rgba(233, 236, 239, 0.5);
}

.worship-info > .tit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 15px 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #0e7fb7;
}

.worship-info > .tit::before {
  content: '';
  width: 14px;
  height: 20px;
  background: center / contain no-repeat url(../image/church/cross.svg);
}

.worship-info .info-wrap {
  padding: 13px 25px;
}

.worship-info .info-wrap ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 3px;
}

.worship-info .info-wrap ul li {
  position: relative;
  display: flex;
  gap: 5px 30px;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: #fff;
}

.worship-info .info-wrap ul li::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  left: 0;
  top: 11px;
  border-radius: 50%;
  background: #c1deff;
}

.worship-info .info-wrap .sub-tit {
  flex-shrink: 0;
  flex-basis: 105px;
  padding-left: 13px;
  font-weight: 600;
  color: #c1deff;
}

.worship-info .info-wrap p {
  padding-left: 13px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.worship-info .info-wrap p > span {
  color: #c1deff;
}
.worship-info .info-wrap p > b {
  font-weight: 600;
}

/* 메뉴링크 */
.menu-link-wrap {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  flex-basis: calc(100% - 450px);
  gap: 20px 25px;
}

.menu-link {
  display: flex;
  flex-grow: 1;
  flex-basis: calc(33% - 50px / 3);
  height: 110px;
  padding: 24px 0;
  border: 1px solid #d5f0ff;
  border-radius: 10px;
  background: #f1fafe;
  box-shadow: 10px 10px 10px 0px rgba(233, 236, 239, 0.5);
  transition: 0.3s;
}

.menu-link:hover {
  border-color: #89bcd6;
  box-shadow: 10px 10px 10px 0px rgba(233, 236, 239, 0.7);
  transform: translateY(-5px);
}

.menu-link .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  flex-basis: 107px;
}

.menu-link .icon::before {
  content: '';
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.menu-link.link1 .icon::before {
  width: 37px;
  height: 52px;
  background: url(../image/church/link-icon1.svg);
}
.menu-link.link2 .icon::before {
  width: 44px;
  height: 48px;
  background: url(../image/church/link-icon2.svg);
}
.menu-link.link3 .icon::before {
  width: 47px;
  height: 38px;
  background: url(../image/church/link-icon3.svg);
}
.menu-link.link4 .icon::before {
  width: 46px;
  height: 48px;
  background: url(../image/church/church.svg);
}
.menu-link.link5 .icon::before {
  width: 49.5px;
  height: 44.5px;
  background: url(../image/church/link-icon5.svg);
}
.menu-link.link6 .icon::before {
  width: 48px;
  height: 48px;
  background: url(../image/church/link-icon4.svg);
}

.menu-link .txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 0 15px;
  border-left: 1px solid #bee1f1;
}

.menu-link .txt > p {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: #393e44;
}

.menu-link .txt > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: #878c91;
}

.menu-link .txt > span::after {
  content: '';
  width: 5.5px;
  height: 9.5px;
  background: center / contain no-repeat url(../image/church/link-arr.svg);
}

/* 메인 - 예배영상 */
.video-wrap {
  display: flex;
  gap: 40px;
}

.video-wrap .gallery-latest {
  flex-grow: 1;
  flex-basis: 0;
}

.gallery-latest .video-item > a {
  position: relative;
  display: block;
  border: 1px solid #cfd7dc;
  background: #fff;
  box-shadow: 10px 10px 10px 0 rgba(233, 236, 239, 0.5);
}

.gallery-latest .video-item .img-box {
  height: 230px;
}

.gallery-latest .video-item.video1 .img-box {
  background: center / cover no-repeat url(../image/church/video1.png);
}
.gallery-latest .video-item.video2 .img-box {
  background: center / cover no-repeat url(../image/church/video2.png);
}
.gallery-latest .video-item.video3 .img-box {
  background: center / cover no-repeat url(../image/church/video3.png);
}
.gallery-latest .video-item.video4 .img-box {
  background: center / cover no-repeat url(../image/church/video4.png);
}

.gallery-latest .video-item .gallery-txt {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 100%;
  left: 50%;
  top: 0;
  gap: 11px;
  transform: translateX(-50%);
}

.gallery-latest .video-item .txt-subj h5 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.gallery-latest .video-item .minister {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #000;
}

/* 메인 - 포토앨범 */
.gallery-latest .tab-pane {
  display: flex;
  gap: 40px;
}

.gallery-latest .gallery-item {
  flex-grow: 1;
  flex-basis: 0;
}

.gallery-latest .img-box {
  height: 200px;
}

.gallery-latest .img-box img {
  transition: 0.4s;
}

.gallery-latest .gallery-txt {
  padding: 11px 0;
}

.gallery-latest .txt-subj h5 {
  margin-bottom: 3px;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: #000;
}

.gallery-latest .txt-subj .date {
  font-size: 14px;
  font-weight: 600;
  color: #7e8286;
}

.gallery-latest .gallery-item a:hover .img-box img {
  transform: scale(1.1);
}

.gallery-latest .gallery-item a:hover .txt-subj h5 {
  text-decoration: underline;
}

/* 서브화면 */
.page-title-wrap {
  height: 160px;
  background: #eef7fc;
  border-bottom: 1px solid #dce1e4;
}

.page-title-wrap > .container {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.page-title-wrap h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 34px;
  color: #000;
}

.page-title-wrap h2::before {
  content: '';
  width: 24px;
  height: 25px;
  background: center / contain no-repeat url(../image/church/church.svg);
}

.page-title-wrap .sub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 16px;
  color: #000;
}

.page-title-wrap .sub-breadcrumb li {
  position: relative;
  margin-left: 0;
  float: none;
}

.page-title-wrap .sub-breadcrumb li:before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  left: -18px;
  top: 50%;
  border-radius: 50%;
  background: #9ea2a6;
  transform: translateY(-50%);
}

.page-title-wrap .sub-breadcrumb:after {
  display: none;
}

.page-title-wrap .sub-breadcrumb .home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.page-title-wrap .sub-breadcrumb .home::before {
  content: '';
  width: 13px;
  height: 14px;
  background: center / contain no-repeat url(../image/church/home.svg);
}

.page-title-wrap .sub-breadcrumb .home:hover {
  text-decoration: underline;
}

.basic-body {
  min-height: calc(100vh - 467px);
}

/* 게시판 */
.board-search-wrap form {
  display: flex;
  align-items: center;
  gap: 10px;
}
.board-search-wrap .eyoom-form .input,
.board-search-wrap .eyoom-form .select,
.board-search-wrap .eyoom-form section {
  margin-bottom: 0;
}

.board-list .bl-list .bl-author {
  text-align: center;
}

.board-view .board-view-info .view-info-box {
  margin-left: 0 !important;
  padding: 0 15px;
}

.board-view .board-view-btn-wrap {
  display: none;
}

.board-view .board-view-atc {
  margin-bottom: 30px;
  padding: 20px 15px;
  border-bottom: 1px solid #000;
}

.board-write .write-edit-wrap #wr_content {
  resize: none !important;
}

.eyoom-form .textarea textarea {
  resize: none;
}

/* 봉사위원 */
.board-view .grid-oversize {
  padding-bottom: 6px;
  overflow-x: auto;
}
.board-view .grid-oversize .grid-list-a {
  min-width: 510px;
}

.grid-list-a {
  width: 100%;
  border-collapse: collapse;
}

.grid-list-a tbody tr:first-child,
.grid-list-a tbody tr:nth-child(5),
.grid-list-a tbody tr:nth-child(7) {
  border-top: 4px solid #fff;
}

.grid-list-a th,
.grid-list-a td {
  padding: 5px 10px;
  font-size: 1rem;
  letter-spacing: -0.48px;
  text-align: center;
  color: #000;
  background: #eff1f4;
}

.grid-list-a th {
  font-weight: 700;
  background: #ebf2fa;
}

.grid-list-a th,
.grid-list-a tbody td {
  border-right: 4px solid #fff;
}

.grid-list-a thead th:last-child,
.grid-list-a tbody td:last-child {
  border-right: 0;
}

.grid-list-a td.tl {
  padding: 4px 15px;
  text-align: left;
}

.grid-list-b {
  width: 100%;
  border-collapse: collapse;
}

.grid-list-b th,
.grid-list-b td {
  padding: 5px;
  text-align: center;
  border: 1px solid #ddd;
}

.eyoom-form .grid-list-b .label {
  margin-bottom: 0;
  text-align: center;
}

.eyoom-form .grid-list-b .input {
  margin-bottom: 0;
}

/* 목회계획 */
.unorder-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.unorder-list li {
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  color: #000;
}

.unorder-list li::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  left: 0;
  top: 10px;
  border-radius: 50%;
  background: #114178;
}

/* 교회봉사 */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-list li span {
  font-size: 16px;
  letter-spacing: -0.48px;
  color: #000;
}

.service-list li span.date {
  flex-shrink: 0;
  flex-basis: 50px;
  font-weight: 600;
}

.service-list li span.place {
  flex-basis: 80px;
}

/* 예배안내 */
.sub-cont-wrap {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 10px 0 100px;
}

.cont-tit {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.72px;
  color: #1156a5;
}

.line-box {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 10px 50px;
  padding: 10px 25px;
  border: 1px solid #d5f0ff;
  border-radius: 10px;
}

.line-box li {
  display: flex;
  align-items: center;
  gap: 5px 10px;
  font-size: 18px;
  letter-spacing: -0.54px;
  color: #000;
}

.line-box .sub-tit {
  font-weight: 700;
}

.cont img {
  max-width: 100%;
}

/* 오시는 길 */
.map-wrap {
  margin-bottom: 20px;
}

.map-wrap .root_daum_roughmap_landing {
  width: 100% !important;
}

.map-wrap .root_daum_roughmap .cont {
  display: none;
}

/* 준비중 */
.sub-page .ing {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  max-width: 600px;
  margin: 140px auto;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: #6d7690;
}

@media (max-width: 1400px) {
  .container {
    padding: 0 25px;
  }

  .header-title .container {
    padding: 0 17px;
  }

  .navbar-nav {
    gap: 40px;
  }

  .quick-menu {
    display: none;
  }

  .row-wrap > div {
    flex-basis: calc(50% - 25px);
  }

  .gallery-latest .img-box {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .row-wrap > div {
    flex-basis: 100%;
  }

  .gallery-latest .video-item .img-box {
    height: 200px;
  }
}

@media (max-width: 991px) {
  .header-title .container {
    height: 70px;
  }

  .header-title .title-logo img {
    height: 42px;
  }

  .header-title-mobile-btn {
    top: 50%;
    transform: translateY(-50%);
  }

  .sidebar-left .navbar-nav {
    gap: 0;
    border-top: 1px solid #e5e5e5;
  }

  .sidebar-left .navbar-nav > li a {
    width: 100%;
  }

  .sidebar-left .navbar-nav .dropdown-submenu > a {
    text-align: left;
  }

  .navbar-toggler.search-toggle {
    display: none;
  }

  .menu-link {
    flex-basis: calc(50% - 25px);
  }

  .video-wrap,
  .gallery-latest .tab-pane {
    flex-wrap: wrap;
  }

  .video-wrap .gallery-latest,
  .gallery-latest .gallery-item {
    flex-basis: calc(50% - 20px);
  }

  .gallery-latest .img-box img {
    width: 120% !important;
  }
}

@media (max-width: 767px) {
  .main-contents {
    gap: 50px;
  }

  .main-contents .row-wrap {
    gap: 30px;
  }

  .video-wrap,
  .gallery-latest .tab-pane {
    gap: 20px;
  }

  .video-wrap .gallery-latest,
  .gallery-latest .gallery-item {
    flex-basis: calc(50% - 10px);
  }

  .gallery-latest .img-box img {
    width: 100% !important;
  }

  .footer-top {
    padding: 20px 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-cont-info {
    flex-wrap: wrap;
  }

  .footer-copyright {
    margin-top: 20px;
  }

  .page-title-wrap h2 {
    font-size: 24px;
  }

  .sub-page .ing {
    margin: 80px auto;
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .menu-link {
    flex-basis: 100%;
    height: 60px;
    padding: 15px 0;
  }

  .menu-link .icon {
    flex-basis: 78px;
  }

  .menu-link.link1 .icon::before {
    width: 25px;
    height: 35px;
  }

  .menu-link.link2 .icon::before {
    width: 32px;
    height: 35px;
  }

  .menu-link.link3 .icon::before {
    width: 36px;
    height: 30px;
  }

  .menu-link.link4 .icon::before {
    width: 33px;
    height: 35px;
  }

  .menu-link.link5 .icon::before {
    width: 37px;
    height: 33px;
  }

  .menu-link.link6 .icon::before {
    width: 34px;
    height: 34px;
  }

  .menu-link .txt > span {
    display: none;
  }

  .video-wrap .gallery-latest {
    flex-basis: 100%;
  }

  .gallery-latest .video-item .img-box {
    height: 150px;
  }

  .gallery-latest .gallery-txt {
    display: none;
  }

  .sub-cont-wrap {
    gap: 30px;
  }

  .cont-tit {
    font-size: 20px;
  }

  .line-box li {
    flex-basis: 100%;
    font-size: 16px;
    flex-wrap: wrap;
  }

  .line-box .sub-tit {
    flex-basis: 25%;
    flex-shrink: 0;
  }

  .line-box.type2 .sub-tit {
    flex-basis: 100%;
  }
}

@media (max-width: 460px) {
  .line-box .sub-tit {
    flex-basis: 100%;
  }
}
