/* 메인 히어로 섹션 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.hero-text-box {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-desc {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.6;
    line-height: 1.8;
}

/* 하단 카드 그리드 */
.info-grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 350px;
    color: #fff;

}

.info-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease-in-out;
}

.info-card:hover .card-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
}

.desc {
    display: block;
    transition: opacity 0.3s ease;
    font-size: 1.2rem;
}

.view-more {
    display: none;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
}

.info-card:hover .desc {
    display: none;
}

.info-card:hover .view-more {
    display: block;
}

.card-content h3 {
    margin-bottom: 10px;
    transition: transform 0.4s ease;
    font-size: 2.8rem;
}

@media (max-width: 1200px) {
    #background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        z-index: -1;
    }
}


/* 모바일 및 태블릿 대응 (화면 너비 1024px 이하부터 점진적 적용) */
@media (max-width: 1024px) {
    /* 히어로 섹션 폰트 조절 */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }

    /* 하단 카드 그리드를 1열로 변경 */
    .info-grid-section {
        grid-template-columns: 1fr; /* 3열에서 1열로 */
        height: auto; /* 고정 높이 해제 */
    }

    .info-card {
        height: 300px; /* 각 카드별로 적당한 높이 부여 */
    }
}

/* 스마트폰 대응 (화면 너비 768px 이하) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem; /* 모바일에서 보기 적당한 크기 */
        word-break: keep-all; /* 단어 단위 줄바꿈으로 가독성 향상 */
    }

    .hero-desc {
        font-size: 1rem;
        br {
            display: none; /* <br> 태그 무시해서 문장이 끊기지 않게 조절 */
        }
    }

    .hero-text-box {
        padding: 0 30px;
    }

    /* 모바일에서는 '호버(마우스 올리기)' 개념이 없으므로 스타일 조정 */
    .card-content {
        justify-content: center;
        align-items: center;
        text-align: center;
        background: rgba(0, 0, 0, 0.5); /* 항상 약간 어둡게 유지 */
    }

    .card-content h3 {
        font-size: 2rem; /* 카드 제목 크기 축소 */
    }

    .desc {
        font-size: 1rem;
        display: block !important; /* 모바일에서는 설명이 항상 보이게 권장 */
    }

    .view-more {
        display: inline-block !important; /* 모바일에서는 '자세히보기' 버튼이 보이게 */
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    /* (선택사항) 모바일에서 동영상이 너무 작게 보일 경우 높이 조절 */
    .hero-section {
        height: 80vh; /* 모바일에서는 조금 더 짧게 설정 가능 */
    }
}