/* index_mainbn.css */
.mainbn {
    position: relative;
    width: 100%;
    height: calc(100vw * 0.375);
    max-height: 100vh;
    overflow: hidden;
    background: #000;
    color: white;
}

.mainbn-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mainbn-slide.active {
    opacity: 1;
    z-index: 2;
}

.mainbn-text {
    text-align: center;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    z-index: 3;
}

.mainbn-text p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mainbn-text h1 {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.5;
}

/* 화살표 */
.mainbn-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 8;
}

.mainbn-arrow img {
    width: 5vw;
    max-width: 30px;
    min-width: 16px;
    height: auto;
    display: block;
}

/* 좌우 위치 지정 */
.mainbn-arrow.left {
    left: 1vw;
}

.mainbn-arrow.right {
    right: 1vw;
}

/* hover 효과 */
.mainbn-arrow:hover img {
    transform: scale(1.5);
    filter: brightness(1.2);
}

/* 인디케이터 동그라미 */
.mainbn-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.mainbn-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ccc;
    opacity: 0.8;
    cursor: pointer;
    transition: all 0.3s;
}

.mainbn-indicators button.active {
    background: #006400;
    border-color: #006400;
    opacity: 1;
}

/* 하단 메뉴 */
.mainbn-links {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 6;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mainbn-links.show {
    opacity: 1;
    transform: translateY(0);
}

.link-item {
    flex: 1;
    text-align: center;
    font-weight: bold;
    padding: 12px 0;
    text-decoration: none;
    color: #000000;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 이것이 이미지와 텍스트를 가로축 중앙 정렬 */
}


.link-item:last-child {
    border-right: none;
}

.link-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    display: block;
    margin: 0 auto;
}

.link-item:hover {
    background: #ffffff;
}

.link-item span {
    color: #000000;
}

.link-item:hover span {
    color: #006400;
}

/* 1300px 이하 */
@media (max-width: 1300px) {
    .mainbn-text h1 {
        font-size: 2.2rem;
    }

    .link-item img {
        width: 38px;
        height: 38px;
    }
}

/* 1024px 이하 */
@media (max-width: 1024px) {
    .mainbn-text h1 {
        font-size: 2rem;
    }

    .mainbn-text p {
        font-size: 1rem;
    }

    .mainbn-links {
        flex-wrap: wrap;
        padding: 0px 0;
    }

    .link-item {
        width: 33.33%;
        font-size: 0.9rem;
        padding: 10px 0;
    }

    /* 인디케이터 동그라미 */
    .mainbn-indicators {

        bottom: 90px;

    }

    .mainbn-indicators button {
        width: 0.5vw;
        height: 1vh;
        border-radius: 50%;
        background: white;
        border: 1px solid #ccc;
        opacity: 0.8;
        cursor: pointer;
        transition: all 0.3s;
    }
}

/* 800px 이하 */
@media (max-width: 800px) {
    .mainbn-text h1 {
        font-size: 1.8rem;
    }

    .mainbn-text p {
        font-size: 0.95rem;
    }

    .link-item {
        width: 50%;
        padding: 10px 0;
    }

    .link-item img {
        width: 32px;
        height: 32px;
    }
}

/* 768px 이하 */
@media (max-width: 768px) {
    .mainbn-text h1 {
        font-size: 1.6rem;
    }

    .mainbn-text p {
        font-size: 0.9rem;
    }

    .mainbn-arrow {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .mainbn-indicators {
        bottom: 80px;
    }
}

/* 700px 이하 */
@media (max-width: 700px) {
    .mainbn {
        height: calc(100vw * 0.75);
        /* 4:3 비율 */
    }

    .mainbn-text h1 {
        font-size: 1.0rem;
    }

    .mainbn-text p {
        font-size: 0.6rem;
    }

    .link-item {
        width: 50%;
        font-size: 0.7rem;
        padding: 6px 0;
    }

    .link-item img {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .mainbn-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.8rem;
    }

    .mainbn-indicators {
        bottom: 60px;
    }

    .mainbn-links {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .mainbn-links.show {
        opacity: 1;
        transform: translateY(0);
    }

    .mainbn-indicators button {
        display: none;
    }
}

@media (max-width: 500px) {
    .mainbn-text h1 {
        font-size: 0.8rem;
    }

    .mainbn-text p {
        font-size: 0.5rem;
    }

    .link-item {
        width: 50%;
        font-size: 0.65rem;
        padding: 4px 0;
    }

    .link-item img {
        width: 20px;
        height: 20px;
        margin-bottom: 2px;
    }

    .mainbn-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.6rem;
    }

    .mainbn-indicators {
        bottom: 50px;
    }

    .mainbn-links {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .mainbn-links.show {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 300px 이하 */
@media (max-width: 300px) {
    .mainbn-text h1 {
        font-size: 0.6rem;
    }

    .mainbn-text p {
        font-size: 0.3rem;
    }

    .mainbn-arrow {
        display: none;
    }

    .link-item {
        font-size: 0.4rem;
    }

    .link-item img {
        width: 15px;
        height: 15px;
    }

    .mainbn-indicators {
        bottom: 40px;
    }
}