/* =====================================================
   AI얼굴+번호출결 통합 스타일시트
   기존 CSS와 병합하여 개선된 디자인
   ===================================================== */

/* 추가된 배경 이미지 스타일 - 기존 비디오 배경을 대체 */
.main0__bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: unset; /* 기존 object-fit 제거 */
}

.main0__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 어두운 오버레이 */
}

/* 텍스트 스타일 개선 - 기존 스타일 오버라이드 */
.main0 .in_text .t01 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.main0 .in_text .t02 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.4;
    margin: 1rem 0 0 0;
}

/* 반응형 디자인 - 기존 미디어 쿼리 오버라이드 */
@media (max-width: 768px) {
    .main0 .in_text .t01 {
        font-size: 2rem;
    }
    .main0 .in_text .t02 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main0 .in_text .t01 {
        font-size: 1.8rem;
    }
    .main0 .in_text .t02 {
        font-size: 1.2rem;
    }
}

/* 네비게이션 텍스트 개선 */
.nav-link {
    white-space: nowrap;
}

/* 로고 텍스트 스타일 */
.logo img {
    max-width: 100%;
    height: auto;
}

/* 섹션 타이틀 스타일 개선 */
.sec-attendance__title {
    word-break: keep-all;
    line-height: 1.3;
}

/* 모바일 반응형 개선 */
@media (max-width: 1024px) {
    .display_tablet_only {
        display: block !important;
    }
}

/* 특성 카드 스타일 개선 */
.att2__title {
    word-break: keep-all;
}

.att2__pill {
    white-space: nowrap;
}

/* 버튼 및 인터랙티브 요소 */
.att2__toggle {
    cursor: pointer;
}

/* 이미지 반응형 */
img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   추가 개선사항
   ===================================================== */

/* 메인 섹션 높이 조정 */
.main0 {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 텍스트 래퍼 스타일 개선 */
.main0 .text-wrap {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 915px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 헤더와의 조화 */
.site-header {
    position: relative;
    z-index: 1000;
}

/* 버튼 호버 효과 개선 */
.att2__toggle:hover {
    opacity: 0.8;
}

/* 카드 호버 효과 */
.att2__item:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* 로딩 상태 개선 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* 접근성 개선 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 스타일 */
button:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}