.news-media {
    height: auto;
    background: url(images/newsmedia-bg.png) no-repeat center;
    background-size: 2000px 640px;
    background-position-y: bottom;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
    object-fit: cover;
}

.top {
    background-color: #1b1b1b;
}

.inner {
    width: 100%;
    max-width: 1920px;
    margin: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.breadcrumb {
    background-color: #1b1b1b;
    height: 80px;
    display: flex;
    margin-left: 50px;
}

.bc-list {
    display: inline-flex;
    align-items: center;
}

.bc-list li {
    display: flex;
    align-items: center;
}

.bc-list a {
    color: #fff;
    padding: 10px;
    font-size: 16px;
}

.news-media {
    align-items: center;
    padding-top: 100px;
}

.news {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.news-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.news-box {
    display: flex;
    flex-direction: column;
    width: 550px;
    gap: 20px;
    margin-bottom: 50px;
}

.news-box img {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news-img img {
    width: 270px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 300px;
}

.page-list li a {
    color: #1b1b1b;
}

.page-list img {
    width: 30px;
}

.page-nav {
    display: flex;
    justify-content: center;
    padding: 30px;
}

.media {
    margin-top: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 100px;
}

.media-top {
    display: flex;
    justify-content: center;
    margin-bottom: 100px;
    width: 100%;
}

.youtube1 {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
}

.youtube1 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper {
    width: 100%;
    max-width: 1400px;
    height: auto;
    padding-bottom: 50px;
    /* 페이지네이션 공간 확보 */
}

.swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-slide p {
    font-size: 18px;
    background-color: #fff;
    text-align: left;
    width: 100%;
    height: auto;
    padding: 15px;
    box-sizing: border-box;
    margin-top: -5px;
}

.swiper-wrapper {
    align-items: stretch;
    /* 슬라이드 높이 정렬 */
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
}

.swiper-pagination {
    bottom: 10px;
    /* 위치 조정 */
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

.custom-bullet {
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.custom-bullet.active {
    background: #333;
    color: #fff;
}


@media (min-width: 1200px) {
    .news-box {
        width: 550px;
    }

    .youtube1 iframe {
        height: 60%;
    }
}


@media (max-width: 1199px) {
    .news-box {
        width: calc(50% - 20px);
    }
    
}


@media (max-width: 767px) {
    .breadcrumb {
        margin-left: 20px;
    }

    .news-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .news-box {
        width: 90%;
        max-width: 400px;
        margin-bottom: 20px;
    }

    .news-img {
        gap: 10px;
    }

    .news-img img {
        width: calc(50% - 10px);
    }

    .media {
        margin-top: 100px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
        /* 모바일에선 버튼 숨김 */
    }

    .footer {
        height: auto;
        padding: 40px 20px;
    }

    .ft-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bt-txtbox1,
    .bt-txtbox2 {
        margin: 0;
        align-items: center;
    }

    .bt-txt3 {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* 📱 작은 모바일 (576px 이하) */
@media (max-width: 575px) {
    h1 {
        font-size: 28px;
        margin-bottom: 60px;
    }

    .news-box h3 {
        font-size: 16px;
    }

    .news-img img {
        width: 100%;
    }

    .swiper-slide p {
        font-size: 16px;
    }
}