body,html {
  overflow-x: hidden;
}

.mo {
  display: none;
}

.pc {
  display: block;
}

.nav > li > a:hover, .nav > li > a:focus {
  background-color: transparent;
}

.navbar-white .navbar-toggle .icon-bar {
  background-color: #fff;
}

section.main {
  margin-top: 0;
}

section.main .section .section_title {
  font-family: 'Pretendard-ExtraBold';
  letter-spacing: -1px;
  font-weight: unset;
  margin-top: 0;
}

.navbar-nav > li > a {
  color: #fff;
}

.main-slide-section {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
}

.main-slide-controll-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}

.main-slide-controll-container.scrolled .main-slide-item {
  border-radius: 16px;
  overflow: hidden;
}

.main-slide-item {
  position: relative;
  width: 100%;
  height: 100vh;
}

.main-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-item-content {
  position: absolute;
  top: 25%;
  left: 14%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
  color: #fff;
}

.slide-item-content .tag {
  font-size: 22px;
}

.slide-item-content .title {
  font-size: 52px;
  font-family: 'pretendard-bold';
  line-height: 1.2;
}

.slide-item-button-group {
  position: absolute;
  top: 54%;
  left: 14%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 20px;
  z-index: 10;
}

.slide-item-button {
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.slide-item-button:hover {
  color: #fff;
  text-decoration: none;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: rgba(227,223,217,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
}

.slide-btn:hover {
  background-color: rgba(227,223,217,0.4);
}

.slide-btn.next-btn {
  right: 5%;
}

.slide-btn.prev-btn {
  left: 5%;
}

.slide-btn i {
  color: #ececec;
  font-size: 30px;
}

.slide-indicator-container {
  position: absolute;
  bottom: 20%;
  left: 14%;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 99;
}

.slide-indicator {
  width: 200px;
  height: 3px;
  background-color: #7d7d7d;
  border-radius: 2px;
  overflow: hidden;
}

.slide-indicator-inner {
  height: 100%;
  width: 0%;
  background-color: #fff;
  border-radius: 2px;
}

.slide-indicator-play,
.slide-indicator-pause {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Swiper 슬라이더 커스터마이징 */
.main-slide-container.swiper {

}

.main-slide-container .swiper-wrapper,
.main-slide-container .swiper-slide {

}

/* section */

section.main .section {
  width: 100%;
}

.inner {
  width: 1440px;
  padding: 0 20px;
}

.grid-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 45px;
}

.grid-item {
  width: 320px;
  height: 460px;
  position: relative;
  padding: 0;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.grid-item.active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.grid-item .background-image img {
  transition: all 0.3s ease;
}

.grid-item .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  color: #000;
  text-align: left;
  transition: all 0.3s ease;
}

.grid-item.active .content .tag,
.grid-item.active .content .title {
  color: #fff !important;
}

.grid-item.active .content .description {
  transform: translate(0,-20px);
  opacity: 1;
}

.grid-item .content .tag {
  font-size: 18px;
  opacity: .6;
}

.grid-item .content .title {
  font-size: 34px;
  font-family: 'pretendard-bold';
  margin: 0;
  margin-top: 5px;
}

.grid-item .content .description {
  font-size: 22px;
  color: #fff;
  opacity: 0;
  margin-top: 50px;
  transform: translateY(0,20px);
  transition: all 0.4s ease;
}

.grid-item .content .more-btn {
  position: absolute;
  bottom: 35px;
  right: 30px;
  opacity: 0;
}

.grid-item.active .more-btn {
  opacity: 1;
}

.grid-container li:last-child.grid-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
} 

.grid-container li:last-child.grid-item .content .more-btn {
  opacity: 1;
}

.grid-item .sub-item {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
  border-radius: 20px;
}

.grid-item .sub-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background-color: #143472;
}

.grid-item .sub-item:hover .content .tag,
.grid-item .sub-item:hover .content .title {
  color: #fff !important;
}

/* section bacai */
.section.bacai .content-area {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.section.bacai .content-area .item1 {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section.bacai .content-area .item1 .main-image img {
  max-width: 80%;
}

.section.bacai .content-area .item1 .round-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.section.bacai .content-area .item1 .text-image {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.section.bacai .content-area .item1 .back-image {
  position: absolute;
  bottom: -150px;
  z-index: -2;
}

.section.bacai .content-area .item1 .back-image.background01 {
  left: 1%;
}

.section.bacai .content-area .item1 .back-image.background02 {
  right: 1%;
}

.section.bacai .content-area .item2 img {
  max-width: 100%;
}

/* section2 */

.expert-group-containger {
  width: 100%;
  height: 520px;
  position: relative;
}

.expert-group-item {
  width: 20%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.8;
}

.expert-group-item img {
  width: 100%;
}

.expert-group-item:nth-child(1) {
  z-index: 5;
}

.expert-group-item:nth-child(2) {
  z-index: 4;
}

.expert-group-item:nth-child(3) {
  z-index: 3;
}

.expert-group-item:nth-child(4) {
  z-index: 2;
}

.expert-group-item:nth-child(5) {
  z-index: 1;
}

.expert-group-containger.aos-animate .expert-group-item {
  opacity: 1;
}

.expert-group-containger.aos-animate .expert-group-item:nth-child(1) {
  transform: translate(-50%, -50%);
  left: 10%;
}

.expert-group-containger.aos-animate .expert-group-item:nth-child(2) {
  transform: translate(-50%, -50%);
  left: 30%;
}

.expert-group-containger.aos-animate .expert-group-item:nth-child(3) {
  transform: translate(-50%, -50%);
  left: 50%;
}

.expert-group-containger.aos-animate .expert-group-item:nth-child(4) {
  transform: translate(-50%, -50%);
  left: 70%;
}

.expert-group-containger.aos-animate .expert-group-item:nth-child(5) {
  transform: translate(-50%, -50%);
  left: 90%;
}

/* section3 */

section.main .section.section3 {
  margin-bottom: 100px;
}

.section3 header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section3 .section_top {
  margin-bottom: 40px !important;
}

.section3 .section_title {
  text-align: left;
}

.section3 .swiper-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: visible;
}

.section3 .swiper-wrapper {
  display: flex;
  gap: 40px;
}

.section3 .swiper-slide {
  width: 440px !important;
  flex-shrink: 0;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item-img {
  position: relative;
  width: 100%;
  height: 270px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.news-item-img:before {
  position: absolute;
  content: "";
  width: 50%;
  height: 100%;
  top: 0;
  left: -75%;
  z-index: 2;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
  transform: skew(-25deg);
}

.news-item:hover .news-item-img:before {
  animation: shine .6s ease-in-out;
}

@keyframes shine {
  100% {
      left: 125%;
  }
}

.news-item-img img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.news-item-content {
  text-align: left;
  word-break: keep-all;
  font-size: 24px;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  max-height: calc(1.3em * 2);
}

/* Swiper Scrollbar 스타일링 */
.swiper-scrollbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: #f0f0f0;
}

.swiper-scrollbar-drag {
  position: relative;
  background: #143472 !important;
  height: 100%;
  cursor: grab;
  transition: background 0.3s ease;
}

.swiper-scrollbar-drag:hover {
  background: #c0c0c0;
}

.swiper-scrollbar-drag:active {
  cursor: grabbing;
  background: #a0a0a0;
}

@media screen and (max-width: 1440px) {

  h2 {
    height: auto;
  }

  .inner {
    width: 100%;
  }

  section.main .section {
    padding: 40px 0;
  }

  section.main .section .section_top {
    margin: 0 0 40px !important;
  }
}

@media screen and (max-width: 1170px) {
  /* section1 */
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 720px) {

  header .inner {
    padding: 0;
  }

  section.main .section .section_title {
    font-size: 32px;
  }

  .mo {
    display: block;
  }

  .pc {
    display: none;
  }

  .slide-item-content {
    top: 15%;
    left: 20px;
  }

  .slide-item-content .title {
    font-size: 40px;
  }

  .slide-item-button-group {
    left: 20px;
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .slide-btn {
    display: none;
  }

  .slide-indicator-container {
    display: none;
  }

  /* section1 */
  .grid-item {
    width: 100%;
    height: auto;
  }

  .grid-item .background-image img {
    width: 100%;
  }

  .grid-item .content {
    padding: 20px;
  }

  .grid-item .content .tag {
    font-size: 14px;
  }

  .grid-item .content .title {
    font-size: 20px;
    margin-top: 0;
  }

  .grid-item .content .description {
    font-size: 16px;
  }

  .grid-item .content .more-btn {
    bottom: 20px;
    right: 20px;
  }

  .grid-item .content .more-btn img {
    width: 40px;
  }

  /* section bacai */
  .section.bacai .content-area {
    padding: 0 20px;
  }

  .section.bacai .content-area .item1 {
    gap: 0;
  }

  .section.bacai .content-area .item1 .text-image {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    margin-top: -20px;
  }

  .section.bacai .content-area .item1 .text-image img {
    width: 100%;
  }

  .section.bacai .content-area .item1 .round-images {
    width: 100%;
    margin-top: 50px;
    gap: 0;
    justify-content: space-between;
  }

  .section.bacai .content-area .item1 .round-images img {
    width: 23%;
  }

  .section.bacai .content-area .item1 .back-image {
    bottom: auto;
    top: 20%;
  }

  .section.bacai .content-area .item1 .back-image.background01 {
    left: -48%;
    width: 250px;
  }

  .section.bacai .content-area .item1 .back-image.background02 {
    right: -48%;
    width: 250px;
  }

  /* section2 */
  .expert-group-containger {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .expert-group-item {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .expert-group-item img {
    width: 100%;
    vertical-align: bottom;
  }

  /* 720px 이하에서 AOS 애니메이션 효과 */
  .expert-group-containger.aos-animate .expert-group-item:nth-child(odd) {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .expert-group-containger.aos-animate .expert-group-item:nth-child(even) {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  /* 홀수 요소: 왼쪽에서 슬라이드 인 */
  @keyframes slideInFromLeft {
    0% {
      opacity: 0;
      transform: translateX(-100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* 짝수 요소: 오른쪽에서 슬라이드 인 */
  @keyframes slideInFromRight {
    0% {
      opacity: 0;
      transform: translateX(100%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  /* section3 */

  section.main .section.section3 {
    margin-bottom: 50px;
  }

  section.main .section.section3 .section_title {
    margin: 0;
  }

  .section3 .more-btn img {
    width: 40px;
  }

  .section3 .swiper-container {
    height: 250px;
  }

  .section3 .swiper-wrapper {
    gap: 20px;
  }

  .section3 .swiper-slide {
    width: 200px !important;
  }

  .section3 .news-item-img {
    height: 150px;
  }

  .section3 .news-item-content {
    font-size: 14px;
  }

}