/* 공통 */
.home-sec {
    padding: 7.5rem;
}

.home-sec-container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.home-sec-sub-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.home-sec-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    word-break: keep-all;
}

.home-more-btn {
    color: #FFF;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.20);
    padding: 1.25rem 2.25rem;
    border-radius: 50px;
    backdrop-filter: blur(2.5px);
    display: flex;
    align-items: center;
    gap: 1.625rem;
    transition: all 0.2s ease;
}

.home-more-btn svg {
    transition: all 0.2s ease;
}

.home-more-btn:hover {
    color: #333;
    background-color: #fff;

    svg path {
        fill: #333;
    }
}


/* 최상단 */
.hero-sec {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-sec video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

.hero-sec h3 {
    color: #ffffff;
    text-align: center;
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-sec p {
    color: rgba(255, 255, 255, 0.70);
    text-align: center;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 3.375rem;
}


/* 상품 */
.home-product-sec {
    background-color: #fff;

    .home-sec-sub-title {
        color: var(--color-secondary);
    }

    .home-sec-title {
        margin-bottom: 0.75rem;
    }
}

.home-product-sec-intro {
    color: #333;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 5rem;
}

.home-product-sec-info {
    display: flex;
    align-items: center;
    gap: 4.375rem;
}

.home-product-sec-info-category-box {
    width: 20.125rem;
}

.home-product-sec-info-category {
    color: #999;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #D9D9D9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-product-sec-info-category:hover {
    color: #005a8e8e;
}

.home-product-sec-info-category.active {
    color: var(--color-secondary);
}

#swipersBox {
    width: calc(100% - 24.5rem);
    display: flex;
}

.home-product-sec [class^="swiper home-product-sec-swiper"] {
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, width 0.2s ease;
}

.home-product-sec [class^="swiper home-product-sec-swiper"].active {
    width: 100%;
    opacity: 1;
    visibility: visible;
}

[class^="swiper home-product-sec-swiper"] .swiper-slide {
    width: 350px;
}

[class^="swiper home-product-sec-swiper"] .swiper-slide a {
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.home-product-sec-swiper-item-img {
    width: 100%;
    height: 350px;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.home-product-sec-swiper-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-product-sec-swiper-item-title {
    color: #333;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
}

/* 공지 */
.home-notice-sec {
    position: relative;
}

.home-notice-sec-header {
    margin-bottom: 3.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .home-sec-sub-title {
        color: #ffffff;
    }

    .home-sec-title {
        color: #ffffff;
        margin-bottom: 0;
    }
}

.home-notice-sec-bgi {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    object-fit: cover;
}

.home-notice-card-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.home-notice-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    height: 37.875rem;
    border-radius: 1.25rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-notice-card-img {
    width: 100%;
    height: 233px;
    margin-bottom: 1.75rem;
    position: relative;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.home-notice-card-title {
    color: #FFF;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-notice-card-content,
.home-notice-card-date {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 400;
    line-height: 1.8125;
}
.home-notice-card-content { 
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-notice-card-date { margin-bottom: 1.75rem; }

.home-notice-card-details-text {
    color: #FFF;
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    transition: all 0.2s ease;
}

.home-notice-card:hover .home-notice-card-details-text {
    transform: translateX(10px);
}

@media screen and (max-width: 1400px) {
    /* 공통 */
    .home-sec-title {
        font-size: 2.125rem;
    }

    /* 공지 */
    .home-notice-card-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-notice-card {
        height: 34rem;
    }

    .home-notice-card-content { 
        white-space: pre-line;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .home-notice-card-date {
        margin-bottom: 1.25rem;
    }
}

@media screen and (max-width: 1024px) {
    /* 공통 */
    .home-sec {
        padding: 5rem 2.5rem;
    }

    /* 최상단 */
    .hero-sec h3 {
        font-size: 2.5rem;
    }

    .hero-sec p {
        font-size: 1.25rem;
    }

    /* 상품 */
    .home-sec-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .home-product-sec-intro {
        margin-bottom: 2.5rem;
    }

    .home-product-sec-info {
        flex-direction: column;
        gap: 2.5rem;
    }

    .home-product-sec-info-category-box {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .home-product-sec-info-category {
        font-size: 1rem;
        padding: 1.25rem 0;
        border: 1px solid #D9D9D9;
        border-radius: 0.5rem;
    }

    #swipersBox {
        width: 100%;
    }

    [class^="swiper home-product-sec-swiper"] .swiper-slide a {
        gap: 1rem;
    }

    [class^="swiper home-product-sec-swiper"] .swiper-slide {
        width: 220px;
    }
}

@media screen and (max-width: 768px) {
    /* 공통 */
    .home-sec-sub-title,
    .home-sec-title {
        text-align: center;
    }

    /* 상품 */
    .home-product-sec-info-category-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-product-sec-info-category {
        padding: 1rem 0;
    }

    .home-product-sec-intro {
        text-align: center;
    }

    .home-product-sec-swiper-item-img {
        height: 280px;
    }

    /* 공지 */
    .home-notice-sec-header {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
    }
    
    .home-notice-card-box {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }

    .home-notice-card {
        width: 100%;
        max-width: 20.5rem;
        height: 18rem;
    }
    

    .home-notice-card-img,
    .home-notice-card:nth-child(3),
    .home-notice-card:nth-child(4) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    /* 공통 */
    .home-sec {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .home-sec-sub-title {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .home-sec-title {
        font-size: 1.5rem;
    }

    .home-product-sec-intro {
        font-size: 1rem;
    }

    /* 최상단 */
    .hero-sec h3 {
        font-size: 1.5rem;
    }

    .hero-sec p {
        font-size: 1rem;
    }

    /* 상품 */
    .home-product-sec .home-sec-title {
        margin-bottom: 0.5rem;
    }

    .home-product-sec-info {
        gap: 1.75rem;
    }
    
    .home-product-sec-info-category-box {
        grid-template-columns: repeat(1, 1fr);
    }
}