@charset "utf-8";

h2{
    font-size: 50px;
    margin-bottom: 25px;
}

h3{
    font-size: 40px;
    line-height: 2.5;
}

.inner>p{
    font-size: 28px;
}

.section-tit{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-tit>a{
    padding: 5px 15px;
    border: 1px solid black;
}

/*-------------  섹션01 - 스와이퍼  -------------*/
.swiper01{
    width: 100%;
    height: 640px;
    background-color: #eee;
    position: relative;
}

.overlay-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%; /* Adjust the width as needed */
    max-width: 682px; /* Maximum width to keep it from getting too large */
    height: auto; /* Maintain aspect ratio */
}

.swiper-txt{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 19.68%;

}

.swiper-txt>p{
    font-size: 28px;
    margin-bottom: 35px;
}

.swiper-txt>a{
    display: block;
    width: max-content;
    border: 1px solid black;
    padding: 10px 35px;
    border-radius: 50px;
}

.swiper01 .swiper-pagination-bullet{
    font-size: 0; 
}

.swiper-horizontal>.swiper-pagination-bullets, 
.swiper-pagination-bullets.swiper-pagination-horizontal, 
.swiper-pagination-custom, 
.swiper-pagination-fraction{
    bottom: var(--swiper-pagination-bottom, 30px);
}

.swiper-pagination-bullet-active{
    background-color:black ;
}

#swiper-01 {
    background-image: url("../img/main01.png");
    background-size: cover;
    background-position: center;
}
#swiper-02 {
    background-image: url("../img/main02.png");
    background-size: cover;
    background-position: center;
}
#swiper-03 {
    background-image: url("../img/main03.png");
    background-size: cover;
    background-position: center;
}
/* Responsive design */
@media (max-width: 768px) {
    .swiper01 {
        height: 480px; /* Adjust height for smaller screens */
    }

    .overlay-image {
        width: 70%; /* Adjust width for smaller screens */
        max-width: 682px; /* Adjust max width for smaller screens */
    }

    .swiper-txt > p {
        font-size: 22px;
    }

    .swiper-txt > a {
        padding: 8px 28px;
    }
}

@media (max-width: 480px) {
    .swiper01 {
        height: 320px; /* Adjust height for smaller screens */
    }

    .overlay-image {
        width: 90%; /* Adjust width for smaller screens */
        max-width: 682px; /* Adjust max width for smaller screens */
    }

    .swiper-txt > p {
        font-size: 18px;
    }

    .swiper-txt > a {
        padding: 6px 20px;
    }
}
/*-------------  섹션02  -------------*/
.inner{
    margin: 50px auto;
    width: 1200px;
}

.con-wrap {
    display: flex;
    justify-content: space-between;
    aspect-ratio: 1200/300;
}

.con-wrap > div{
    display: flex;
    flex-direction: column;
    width: 24%;
    overflow: hidden;
}

.con-img{
    width: 100%;
    height: 200px;
    background-color: #eee;
    border-radius: 8px;
    aspect-ratio: 285/250;
    position: relative;
    overflow: hidden;
}

.con-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.con-img>div{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 10px;
    display: none;
    text-align: left;
}

.con-txt{
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 30px;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.hover-box{
    position: relative;
    opacity: 0;
    font-size: 32px;
    width: 100%;
    height: 100%;
    background-color: black;
    transition: 1s;
}

.con-wrap>div h4{
    font-size: 32px;
    opacity: 0;
    position: absolute;
    z-index: 1;
    transition: 1s;
}

.con-wrap>div:hover h4{
    opacity: 1;
}

.con-wrap>div:hover .hover-box{
    opacity: 0.2;
}

/*-------------  섹션03 -스와이퍼 02  -------------*/
#section3{
    width: 100%;
    height: 100%;
    text-align: center;
}

.swiper02{
    width: 100%;
    height: 100%;
    margin-top: 50px;
}

.swiper02 .swiper-slide{
    background-color: #eee;
    border-radius: 30px;
    aspect-ratio: 335/401;
}

.swiper-contain{
    position: relative;
}

.swiper-contain .swiper-button-prev{
    left: -4%;
    color: black;
}

.swiper-contain .swiper-button-next{
    right: -4%;
    color: black;
}

:root {
    --swiper-navigation-size: 30px
}

/*-------------  섹션03 -탭메뉴  -------------*/
.tap-wrap{
    width:100%;
}

.tabcon>ul{
    border-top: 1px solid black;
}
.tabcon>ul:nth-child(2){
    display: none;
}

.tabcon>ul>li{
    border-bottom: 1px solid gray;
    padding: 20px  0 20px 24px;
}

/*-------------  섹션03 - 게시판 -------------*/
ul.notice {
    width: 100%;
    border-top: 2px solid #505c78;
    vertical-align: middle;
}

ul.notice li {
    padding: 20px;
    border-bottom: 1px solid #eaecf1;
    display: flex;
    align-items: center;
    gap: 3.6%;
}

.notice li:first-child{
    text-align: center;
    background-color: #eee;
    font-weight: 700;
}

.notice li:first-child .subject, 
.notice li:first-child .date{
    color: black;
    font-weight: 700;
    font-size: 16px;
    margin-right: 8px;
}

ul.notice li .date {
    left: 15px;
    font-size: 16px;
    color: #999;
    text-align: center;
    font-weight: 300;
}

ul.notice li .subject {
    font-size: 20px;
    font-weight: 300;
    flex: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.notice li:first-child .subject:hover {
    color: black;
    font-weight: 700;
    cursor: inherit;
    margin-right: 8px;
}

ul.notice li:last-child {
    border-bottom: 2px solid #505c78;
}

/*span block*/
.pc-block{
    display: block;
}

/*-------------  반응형  -------------*/
@media(max-width:1280px){
    .inner{
        margin: 200px auto;
        width: 90%;
        min-width:revert;
    }
    
    .con-wrap>div h4{
        font-size: 18px;
    }
}

@media(max-width:1024px){
    .tab{
        flex-direction: column;
        gap: 50px;
    }
    .tap-wrap{
        width: 100%;
    }
}

@media(max-width:768px){
    /*공통 텍스트*/
    h2{
        font-size: 50px;
    }
    h3{
        font-size: 40px;
    }

    /*섹션1*/
    .swiper01{
        aspect-ratio: 768/525;
    }

    .swiper-txt{
        margin: 0 11.45%;
    }

    /*섹션2*/
    #section02{
        margin: 150px 0;
    }
    .con-wrap{
       flex-direction: column;
       gap: 20px; 
    }

    .con-wrap>div{
        width: 100%;
        aspect-ratio: 627/399;
        margin-right: 0;
    }
    .hover-box{
        opacity: 0.2;
    }
    .con-wrap>div h4{
        opacity: 1;
        font-size: 24px;
    }

    /*섹션4*/
    #section4{
        margin: 150px 0;
    }
}

@media(max-width:700px){
    .con-wrap>div h4{
        font-size: 18px;
    }
}

@media(max-width:500px){
    /*공통 텍스트*/
    h2, h3{
        font-size: 24px;
    }
    .section-tit{
        margin-bottom: 20px;
    }
    .section-tit>a {
        padding: 4px 8px;
        border: 1px solid black;
        font-size: 14px;
    }
    /*섹션1*/
    .swiper01{
        aspect-ratio: 360/400;
    }

    .swiper-txt{
        margin: 0 12%;
    }
    .swiper-txt>p, .inner>p{
        font-size: 18px;
    }

    /*섹션2*/
    #section02{
        margin: 90px 0;
       
    }

    .con-wrap>div {
        width: 100%;
        aspect-ratio: auto;
    }

    .con-img{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.6;
        
    }
    .con-img>div{
        display: block;
    }
    .con-img>div>span{
        font-size: 20px;
    }

    .con-txt{
        display: none;
    }

    /*섹션3*/   
    .swiper02 .swiper-slide {
        aspect-ratio: 290/347;
    }
            
    /*섹션4*/
    #section4{
        margin: 90px 0;
    }

    .tap-wrap{
        width: 100%;
    }
    ul.notice li p{
        font-size: 14px;
    }   
    ul.notice li .date{
        font-size: 12px;
    }
    ul.notice li .subject{
        font-size: 14px;
        overflow: hidden;
        white-space:nowrap;
        text-overflow: ellipsis;
    }
}