/***** Color Chart *****/
/*
Normal Text : #342f2d;
Hover Text : #093696;
*/
/***********************/

/* 스크롤 효과를 위한 애니메이션 설정 */
@keyframes scroll {
  0% { background-position: 0% 45%; }
  100% { background-position: 0% 80%; }
}

/* Main Slider section */

.main_slider {
    position: relative;

    display: inline-flex;
    flex-direction: row;
    width: 100%;
    min-height: 500px;
    height: 540px;
}

.main_slider .container {
    position: relative;
    width: 100%;
    max-width: max-content;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;
} 

.wave {
    z-index: 50;
    opacity: .4;
    position: absolute;
    top: -280%;
    left: 0;
    background: linear-gradient(90deg, rgba(81, 197, 255, 0.3) 0, rgba(255,255,255,0.2) 100%);
    background-blend-mode: multiply;
    width: 2500px;
    height: 2500px;
    margin-left: -250px;
    margin-top: -550px;
    transform-origin: 50% 48%;
    border-radius: 43%;
    animation: drift 12000ms infinite linear;
  }
  
  .wave.-three {
    animation: drift 9000ms infinite linear;
  }
  
  .wave.-two {
    animation: drift 5000ms infinite linear;
    opacity: .1;
    background: rgba(234, 251, 255, 0.7);
  }

  @keyframes drift {
    from { transform: rotate(0deg); }
    from { transform: rotate(360deg); }
  }

#scroll_icon {
    position: absolute;
    scale: calc(0.8);
    left: 48vw;
    bottom: 60px;
    z-index: 300;
}

.floating {
    animation-name: floating;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}
 
@keyframes floating {
    0% { transform: translate(0,  -15px); opacity: 0.5;}
    50%  { transform: translate(0, 0px); opacity: 1;}
    100%   { transform: translate(0, -15px);  opacity: 0.5;}    
}

#hero_swiper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

#hero_swiper .swiper-slide {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
}

#hero_swiper .swiper-slide img {
    z-index: -100;
}

#hero_swiper .slider_text {
    position: absolute;
    left: 450px;
    bottom: 60px;
    color: white;
    font-size: 1rem;
    line-height: 0.6rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);

    z-index: 100;
} 

#hero_swiper .slider_text .slider_title{
    font-size: 3rem;
    font-weight: 600;
}

@media screen and (max-width: 860px) {
    .main_slider {
        height: 720px;
        min-height: 720px;
    }

    .wave {
        top: -210%;
        left: -40%;
    }

    #scroll_icon {
        left: 46vw;
    }

    #hero_swiper .swiper-slide{
        background: linear-gradient(180deg, rgba(23, 97, 158, 0.4) 34%, rgba(255, 255, 255, 0.3) 100%);
        background-blend-mode: multiply;
    }

    #hero_swiper .slider_text {
        position: absolute;
        left: 10vw;
        top: 35vh;
        font-size: 1.6rem;
        line-height: 1rem;
    } 
    
    #hero_swiper .slider_text .slider_title{
        font-size: 5rem;
        font-weight: 500;
    }
}

@media screen and (max-width: 640px) {
    .main_slider {
        height: 450px;
        min-height: 450px;
    }

    .wave {
        top: -480%;
        left: -50%;
    }

    #scroll_icon {
        left: 43vw;
        bottom: 30px;
        scale: calc(0.7);
    }

    #hero_swiper .swiper-slide img{
        height: 120%;
        margin-top: 80px;
        margin-left: 300px;
    }

    #hero_swiper .slider_text {
        width: 80%;
        top: 25vh;
        padding-right: 30px;
        flex-wrap: wrap;
        font-size: 2.5rem;
        line-height: 3rem;
        word-break: keep-all;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    } 
    
    #hero_swiper .slider_text .slider_title{
        font-size: 3rem;
        font-weight: 500;
    }
}


/********************** Main Contents **********************/

.main_content {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.section_subtitle {
    display: inline-block;
    max-width: 740px;
    font-size: 0.8rem;
    line-height: 1.8rem;
    font-weight: 400;
    word-break: keep-all;
}

.section_subcontent {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 700px;
    width: 100%;
    padding: 30px 0;
    justify-content: flex-end;
    gap: 20px;
}
.section_subcontent img{
    width: 160px;
}

@media screen and (max-width: 860px) {
    .main_content {
        display: inline-flex;
        align-items: flex-start;
        width: 100%;
    }

    .main_content.cert_scroll {
        width: 100%;
        overflow-x: scroll;
    }

    .main_content.cert_scroll img{
        height: 360px;
    }

    .section_subcontent{
        width: 60%;
        margin : 0 auto;
    }

    .section_subcontent img{
        width: 48%;
        margin-bottom: 10px;
    }
}

.product .container {
    padding: 65px 0 120px;
}

@media screen and (max-width: 1500px) {
    .product .container {
        padding: 100px 30px 120px;
    }
}

#product_swiper {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

#product_swiper .swiper-slide {
    position: relative;
}

#product_swiper .swiper-slide img{
    height: 300px;
}

@media screen and (max-width : 860px) {
    #product_swiper .swiper-slide {
        width: 100% !important;
    }

    #product_swiper .swiper-slide img{
        width: 100%;
    }
}

@media screen and (max-width : 640px) {
    .product .container {
        padding: 50px 0 100px;
    }

    .product .container .section_title span {
        padding-left: 30px;
    }

    #product_swiper .swiper-slide {
        width: 100vw !important;
    }

    #product_swiper .swiper-slide img{
        width: 100%;
    }
}

#product_swiper .swiper-button-area {
    width: 100%;
    position: relative;
}

#product_swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: rgba(0, 0, 0, 0.8);
}

#product_swiper .swiper-pagination {
    top: 60px;
}

#product_swiper .swiper-button-prev,
#product_swiper .swiper-button-next {
    cursor: pointer;

    position: absolute;
    top : -180px;
    width: 50px;
    height: 50px;
    color: #969696;
}

#product_swiper .swiper-button-next:after,
#product_swiper .swiper-button-prev:after {
    font-size: 50px !important;
    font-weight: 300 !important;
}

#product_swiper .swiper-button-prev {
    left: calc((100% - 1500px)/2 - 50px) !important;
}

#product_swiper .swiper-button-next {
    right: calc((100% - 1500px)/2 - 50px) !important;
}

#product_swiper .swiper-button-prev:hover,
#product_swiper .swiper-button-next:hover {
    cursor: pointer;
}

@media screen and (max-width : 1500px) {
    #product_swiper .swiper-button-prev {
        left: 10px !important;
    }

    #product_swiper .swiper-button-next {
        right: 10px !important;
    }
}

@media screen and (max-width : 860px) {
    #product_swiper .swiper-button-prev,
    #product_swiper .swiper-button-next {
        width: 45px;
        height: 45px;
        top: 60px !important;

        border : 3px solid rgba(0, 0, 0, 0.3);
        border-radius: 50px;
    }

    #product_swiper .swiper-button-next:after,
    #product_swiper .swiper-button-prev:after {
        font-size: 21px !important;
        font-weight: 800 !important;
    }

    #product_swiper .swiper-button-prev {
        left: 76vw !important;
    }

    #product_swiper .swiper-button-next {
        left: 82vw !important;
    }

    #product_swiper .swiper-pagination {
        width: 80%;
        top: 60px;
    }
}

@media screen and (max-width : 640px) {
    #product_swiper .swiper-button-prev,
    #product_swiper .swiper-button-next {
        width: 35px;
        height: 35px;
        top: 46px !important;
        border : 2px solid rgba(0, 0, 0, 0.3);
        border-radius: 50px;
    }

    #product_swiper .swiper-button-prev {
        left: 74vw !important;
    }

    #product_swiper .swiper-button-next {
        left: 86vw !important;
    }

    #product_swiper .swiper-pagination {
        width: 60%;
        top: 40px;
        left: 30px;
    }
}

/****************** Certificate Group **********************/
section.certificate img{
    height: 180px;
}

/********************** News **********************/
.news .container div:nth-child(2) {
    display: inline-flex;
    flex-direction: row;
    gap: 60px;
}

@media screen and (max-width: 860px){
    .news .container div:nth-child(2) {
        flex-direction: column;
        gap: 60px;
    }
}

/********************** Board Group ********************/

@media screen and (max-width: 860px){
    section.board .container {
        padding: 100px 30px;
    }
}

@media screen and (max-width: 640px){
    section.board .container {
        padding: 50px 0px;
    }
}

section.board .container #news_content {
    justify-content: space-around;
}

/********************************* Tab Section *********************************/
.tabs {
    display: inline-block;
    overflow: hidden;
    background: none;
    width: 100%;

    margin-top: 10px;
}

.tab-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16.4%;
    height: 40px;
    margin: 1px;

    background-color: #f1f1f1;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: 0.3s;
    
    font-weight: 600;
    font-size: 16px;
}

.tab-link:hover {
    background-color: #ddd;
}

.tab-link.active, .tab-link:hover {
    background-color: #09338e;
    color: white;
}

@media screen and (max-width: 640px) {
    .tab-link {
        width: 16%;
        height: 40px;
        margin: 1px;
    
        background-color: #f1f1f1;
        padding: 10px;
        
        font-weight: 500;
        font-size: 12px;
    }
}

/********************************* Tab content *********************************/

.tab-content {
    display: none;
    padding: 30px 0 0;
    -webkit-animation: fadeEffect 1s;
    animation: fadeEffect 1s;
}

.tab-content img {
    height: 240px;
}

@-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.tab-content h3 {
    margin: auto 0 5px;
}

.tab-content .culture_content {
    display: inline-block;
    width: 99%;
    height: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-inline-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    font-size: 14px;
    line-height: 2.1rem;
}