@layer reset, var, header, footer;

@import url('config.css');

.page-wrapper {
  overflow: hidden;  
} /* end of .page-wrapper */

body {
  overflow-x: hidden;
} /* end of body */

/* ========== Hero section ========== */
.hero {
  height: 100vh;
  overflow: hidden;
} /* end of .hero */

.hero .slider .slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  display: none;
  animation: slide 2s ease; 
} /* end of hero .slide */

.hero .slide.active {
  display: flex;
} /* end of .hero .slide.active */

@keyframes slide {
  0%{ 
    transform: scale(1.1);
  }
  100%{ 
    transform: scale(1);
  }
}

.hero .slider .slide_1 {
  background-image: url('../css/img/hero_slide_1.jpg');
} /* end of .hero  */

.hero .slider .slide_2 {
  background-image: url('../css/img/hero_slide_2.jpg');
} /* end of .hero  */

.hero .slider .slide_3 {
  background-image: url('../css/img/hero_slide_3.png');
} /* end of .hero  */

.hero .content {
  max-width: 75rem;
  margin: auto;
  text-align: center;
} /* end of .hero .content */

.hero .content .slogan {
  color: var(--bg-color5);
} /* end of .hero .content . */

.hero .content .slogan p {
  font-size: var(--font-size1);
  font-weight: 400;
} /* end of .hero .content .slogan p */

.hero .content .slogan h1 {
  font-size: var(--font-size2);
  font-weight: 700;
} /* end of .hero .content .slogan h1 */

.hero .content .sl1 {
  opacity: 0;
  margin-bottom: 4.375rem;
  animation: reveal .5s ease forwards;
} /* end of .hero .content .slogan .sl1 */

.hero .slide.active .sl2 h1 {
  opacity: 0;
  animation: reveal .5s ease forwards;
  animation-delay: 1s;
} /* end of .hero .content .sl2 */

.hero .controls .prev, 
.hero .controls .next {
  position: absolute;
  z-index: 2;
  top: 50%;
  height: 2.5rem;
  width: 2.5rem;
  margin-top: -1.25rem;
  color: var(--bg-color5);
  background-color: transparent;
  text-align: center;
  line-height: 1.8rem;
  font-size: var(--font-size3);
  border-radius: 50%;
  border: 2px solid var(--bg-color5);
  transition: background-color 0.6s;
  cursor: pointer;
} /* end of .hero .controls */

.hero .controls .prev {
  left: 1rem;
  text-align: center;
  vertical-align: middle;
} /* end of .hero .controls .prev */

.hero .controls .next {
  right: 1rem;
  text-align: center;
  vertical-align: middle;
} /* end of .hero .controls .next */

.hero .controls .prev:hover,
.hero .controls .next:hover {
  background-color: var(--color-primary);
} /* end of .hero .controls. prev,
.hero .controls .next  */

.hero .controls .prev > i,
.hero .controls .next > i {
  text-align: center;
  vertical-align: middle;
} /* end of .hero .controls .prev > i,
.hero .controls .next > i */

.hero .indicator {
  position: absolute;
  left: 50%;
  bottom: 1.875rem;
  z-index: 2;
  transform: translateX(-50%);
} /* end of .hero .indicator */

.hero .indicator div {
  display: inline-block;
  width: 1.5625rem;
  height: 1.5625rem;
  color: var(--bg-color5);
  background-color: transparent;
  border: 2px solid var(--bg-color5);
  border-radius: 50%;
  text-align: center;
  line-height: 1.2rem;
  margin: 0 0.1875rem;
  cursor: pointer;
} /* end of .hero .indicator div */

.hero .indicator div.active {
  background-color: var(--color-primary);
} /* end of .hero .indicator div.active */

/* ========== Activity section ========== */
.activity {
  height: 62rem;
} /* end of .activity */

.activity h1 {
  font-size: var(--font-size4);
  text-align: center;
  margin-top: 6.6875rem;
  color: var(--font-color1);
  font-weight: 700;
} /* end of .activity */

.activity .cards {
  margin-top: 5.25rem;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.875rem;
  opacity: 0;
  animation: reveal .5s ease forwards;
  animation-delay: 1s;
} /* end of .activity .cards */

.activity .cards .card h4 {
  margin-top: 2.5625rem;
  font-size: var(--font-size3);
  color: var(--font-color1);
  transition: 0.3s ease-in-out;
} /* end of .activity .cards h4 */

.activity .cards .card p {
  margin-top: 2.5rem;
  font-size: var(--font-size5);
  line-height: 2;
  color: var(--font-color1);
  margin-bottom: 2.0625rem;
  transition: color 0.3s ease-in-out;
} /* end of .activity .cards p */

.activity .cards .card:hover h4 {
  color: var(--color-primary)
} /* end of .activity .cards .card:hover h4 */

.activity .cards .card:hover p {
  color: var(--color-primary);
} /* end of .activity .cards .card:hover p */

@keyframes reveal { 
  0%{ 
    opacity: 1; transform: translateY(-100px);
  }
  100%{ 
    opacity: 1; transform: translateY(0px);
  }
}

/* ========== Vision section ========== */ 
.vision {
  width: 100%;
  height: 46rem;
  background-color: var(--bg-color1);
  padding-top: 6rem;
} /* end of .vision */ 

.vision .row h1 {
  text-align: center;
  font-size: var(--font-size4);
  color: var(--font-color1);
} /* end of .vision .row h1 */ 

.vision .vs_cards {
  margin-top: 4.9375rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
} /* end of .vision .vs_cards */ 

.vision .vs_cards .vs_card {
  height: 25rem;
  background-color: var(--color-primary);
  border-radius: 1.875rem;
  text-align: center;
  color: var(--bg-color5);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  transition: background-color 0.3s ease-in-out;
} /* end of .vision .vs_cards .vs_card */ 

.vision .vs_cards .vs_card:hover {
  background-color: var(--color-secondary);
} /* end of .vision .vs_cards .vs_card:hover */ 

.vision .vs_cards .vs_card i {
  font-size: var(--font-size6);
} /* end of .vision .vs_card .vs_card span */ 

.vision .vs_cards .vs_card h3 {
  font-size: var(--font-size7);
} /* end of .vision .vs_cards .vs_card h3 */ 

.vision .vs_cards .vs_card p {
  font-size: var(--font-size8);
  line-height: 1.5;
  font-weight: 400;
} /* end of .vision .vs_cards .vs_card p */ 

/* ========== Notice section ========== */ 
.notices {
  height: 35rem;
  padding-top: 6.75rem;
} /* end of .notices */

.notices .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
} /* end of .notices .container */

.notices .notice {
  height: 23.25rem;
  border: 3px solid var(--font-color1);
  
} /* end of .notices .notice */

.notices .notice_title {
  height: 4.625rem;
  vertical-align: middle;
  background-color: var(--font-color1);
  padding: 1.2rem 2rem;
} /* end of .notices .notice */

.notices .notice_title h1 {
  color: var(--bg-color5);
  font-size: var(--font-size9);
} /* end of .notices .notice_title h1 */

.notices .container .notice .notice_box {
  padding: 1.4rem 1rem;
} /* end of .notices .container .notice .notice_box */

.notices .container .notice .notice_box ul li a {
  color: #000;
} /* end of .notices .container .notice .notice_box ul li a */

.notices .container .notice #galleryBox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
  gap: 0.1rem;
} /* end of .notices .contaier .notice #galleryBox */

.notices .container .notice #galleryBox .smallPic {
  width: 4rem;
} /* end of .notices .container .notice #galleryBox .smallPic */

/* ========== Logo slide section ========== */ 
.logos .container {
  overflow: hidden;
  margin: 0 auto;
  padding: 20px 0;
  white-space: nowrap;
  position: relative;
} /* end of .logos .container */

.logos .container:before,
.logos .container:after {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  content: '';
  z-index: 2;
} /* end of .logos .container:before,
.logos .container:after */

.logos .container:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
} /* end of .logos .container:before */

.logos .container:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
} /* end of .logos .container:after */

.logos:hover .logo-slide {
  animation-play-state: paused;
} /* end of .logos:hover .logo-slide */

.logo-slide {
  display: inline-block;
  animation: logoslide 35s infinite linear;
} /* end of .logos .logos-slide */

.logos .container .logo-slide img {
  width: 13.75rem;
  height: 2.5rem;
  margin: 0 1.25rem;  
} /* end of .logos .container .logo-slide img */

@keyframes logoslide {
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-100%);
  }
}

/* ========== Responsive ========== */ 
/* 테블릿 가로 */ 
@media (max-width: 992px) {

  /* ========== Header & navigation ========== */ 
  .container {
    padding: 0 0.9375rem;
  } /* end of .container */

  /* ========== Activity section ========== */ 

  .activity {
    height: 91rem;
  } /* end of .activity */

  .activity .cards {
    grid-template-columns: repeat(3, 1fr);
  } /* end of .activity cards */

  /* ========== Notices section ========== */ 
  .notices {
    height: 60rem;
  } /* end of .notices */

  .notices .container {
    grid-template-columns: repeat(2, 1fr);
  } /* end of .notices .container */
}

/* 테블릿 세로 */ 
@media (max-width: 768px) {
  /* ========== Hero section ========== */ 
  .hero .content .slogan h1 {
    font-size: var(--font-size10);
    font-weight: 700;
  } /* end of .hero .content .slogan h1 */

  /* ========== Activity section ========== */ 
  .activity {
    height: 127rem;
  } /* end of .activity */

  .activity h1 {
    font-size: var(--font-size11);
  } /* end of .activity h1 */

  .activity .cards {
    grid-template-columns: 1fr 1fr;
  } /* end of .activity cards */

  /* ========== Vision section ========== */ 
  .vision {
    height: 74rem;
  } /* end of .vision */

  .vision .vs_cards {
    grid-template-columns: 1fr 1fr;
  } /* end of .vision .vs_cards */

  .vision .row h1 {
    font-size: var(--font-size12);
  } /* end of .vision .row h1 */
  
  .vision .row .vs_card h3 {
    font-size: var(--font-size1);
  } /* end of .vision .row h3 */
}

/* 모바일 */ 
@media (max-width: 575px){
  /* ========== Hero section ========== */ 
  .hero .content .slogan h1 {
    font-size: var(--font-size12);
    font-weight: 700;
  } /* end of .hero .content .slogan h1 */

  /* ========== Activity section ========== */ 
  .activity {
    height: 110rem;
  } /* end of .activity */

  /* ========== Vision section ========== */ 
  .vision {
    height: 100rem;
  } /* end of .vision */

  .vision .vs_cards {
    grid-template-columns: 1fr;
  } /* end of .vision .vs_cards */

  /* ========== Notices section ========== */ 
  .notices {
    height: 86rem;
  } /* end of .notices */

  .notices .container {
    grid-template-columns: 1fr;
  } /* end of .notices .container */
}

/* 모바일 */ 
@media (min-width: 360px) and (max-width: 574px){
  .hero .slider .slide .content .sl1 p {
    font-size: 1.2rem;
  } /* end of .hero .slider .slide .content .sl1 */

  .hero .slider .slide .content .sl2 h1 {
    font-size: 1.5rem;
  } /* end of .hero .slider .slide .content .sl2 h1 */

  .hero .controls .prev, 
  .hero .controls .next {
    top: 94%;
  } /* end of .hero .controls */

  .activity {
    height: auto;
  } /* end of .activity */

  .activity .container .row .cards {
    display: grid;
    grid-template-columns: 1fr;
  } /* end of .activity .container .row .cards */

}
