/* ==========================================
   SUPPORT PAGE STYLE
   (용도: 기술 지원(support.php) 전용 디자인)
   ========================================== */

/* --- 서브 비주얼 (상단 배경 (메뉴바 포함) 영역) --- */
.sub-visual {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/support/support_bg.webp');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    margin-top: -80px; 
    padding-top: 120px; 
    height: 340px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    color: var(--white); 
    position: relative;
}
.sub-visual h1 {
    font-size: 3rem;
    margin-bottom: 10px;    
    text-shadow: 
        0 2px 5px rgba(0, 0, 0, 0.9),   /* 글자 윤곽을 진하게 */
        0 5px 30px rgba(0, 0, 0, 0.8);  /* 배경과 분리되는 깊은 그림자 */
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;    
}
.sub-visual p {
    font-size: 1.2rem;   
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9), 
        0 4px 15px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInDown 0.5s ease-out forwards;
    animation-delay: 0.15s;    
}

/* --- 본문 배경 이미지 영역 --- */
#support_main {
    position: relative;
    background: #fcfcfc url('../img/support/support_bg.webp') center center / cover no-repeat fixed;
}

/* --- 배경 오버레이 (가독성 고려) --- */
#support_main::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(255, 255, 255, 0.90); 
    z-index: 1;
}

/* --- 컨텐츠를 항상 오버레이 위에 위치 --- */
#support_main > .container {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

/* --- 본문 상단 타이틀 영역 --- */
.center-title-area {
    text-align: center;
    margin-bottom: 60px; /* 카드와의 간격 */
    position: relative;
}
.center-title-area h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    display: inline-block;
    position: relative;
}

/* --- 제목 하단 중앙의 짧은 밑줄 --- */
.center-title-area h2::after {
    content: '';
    display: block;
    width: 50px;       /* 선 길이 */
    height: 4px;       /* 선 두께 */
    background-color: var(--primary-color); /* 포인트 컬러 */
    margin: 20px auto 0; /* 제목과의 간격 및 중앙 정렬 */
    border-radius: 2px;
}
.center-title-area p {
    font-size: 1.15rem;
    color: #666;
    margin-top: 10px;
    font-weight: 400;
}

/* --- 상단 카드 영역 (3칸) --- */
.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}
.contact-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* --- 카드 내 스타일 --- */
.icon-box {
    width: 60px; height: 60px;
    background: #f4f8ff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.icon-box .icon { 
    font-size: 1.8rem; 
}
.contact-card h3 {
    font-size: 1.4rem; 
    color: #333; 
    margin-bottom: 15px; 
    font-weight: 700;
}
.contact-card .desc {
    font-size: 1rem; 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 20px;
}
.contact-card .sub-text { 
    font-size: 0.9rem; 
    color: #888; 
}
.contact-card .contact-info {
    margin-top: auto; /* 하단 고정 느낌 */
    padding-top: 25px;
    border-top: 1px solid #eee;
    height: 120px;         /* 전화, 이메일, 버튼 영역을 모두 수용할 넉넉한 높이 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 내용물 수직 중앙 정렬 (필요시 flex-end로 변경) */
    box-sizing: border-box;
}

/* --- 전화번호, 메일주소, 문의작성하기 강조 --- */
.highlight-num {
    display: block; 
    font-size: 1.5rem; 
    color: var(--primary-color); 
    font-weight: 800; 
    margin-bottom: 5px;
}
.highlight-num:hover {
    border-bottom-color: #333
}
.fax { 
    display: block; 
    font-size: 0.9rem; 
    color: #888; 
}

/* --- 하단 긴급 지원 배너 --- */
.emergency-section {
    display: flex; align-items: center;
    background: #fff;
    border: 2px solid #ffeded; /* 연한 붉은색 테두리로 긴급함 표현 */
    border-left: 5px solid #ff6b6b; /* 왼쪽 강조선 */
    border-radius: 8px;
    padding: 30px 40px;
    gap: 40px;
}
.emergency-badge {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    background: #ff6b6b; color: #fff;
    width: 90px; height: 90px;
    border-radius: 50%;
    font-weight: 800; line-height: 1.1;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
}
.emergency-badge span:first-child { 
    font-size: 1.5rem; 
}
.emergency-badge span:last-child { 
    font-size: 1rem; 
    opacity: 0.9; 
}
.emergency-text { 
    text-align: left; 
}
.emergency-text h3 { 
    font-size: 1.4rem; 
    color: #d63031; 
    margin-bottom: 10px; 
    font-weight: 700; 
}
.emergency-text p { 
    font-size: 1.05rem; 
    color: #444; 
    line-height: 1.6; 
    margin: 0; 
}
.emergency-text .highlight { 
    font-weight: 700; 
    text-decoration: underline; 
    color: #333; 
}

/* --- 애니메이션 효과 --- */ 

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0)}
}

/* --- 모바일 홈페이지 스타일 --- */
@media (max-width: 1024px) {

    .sub-visual {
        /* 레이아웃 & 정렬 */
        display: flex !important;
        align-items: center !important;      /* 세로 중앙 */
        justify-content: center !important;  /* 가로 중앙 */
        
        /* 크기 & 여백 */
        height: 200px !important;            /* 높이 축소 고정 */
        margin-top: 70px !important;         /* 헤더 겹침 방지 */
        padding: 0 !important;               /* 패딩 초기화 */
        
        /* 배경 이미지 설정 */
        background-size: cover !important;
        background-position: center center !important;
    }
    .sub-visual .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto !important;
        padding: 0 !important;    }

    .sub-visual h1 { 
        font-size: 2rem !important; 
        line-height: 1.2;
        margin: 0 !important; 
        padding: 0 !important;
        transform: none !important; /* 애니메이션 위치 간섭 제거 */
    }
    .sub-visual p { 
        display: none !important; /* 서브 텍스트 숨김 */
    }

    /* --- 2. 메인 컨테이너 (배경 정리) --- */
    #support_main {
        background: none !important; /* 모바일에서 배경 이미지 제거 */
    }

    /* --- 3. 섹션 타이틀 영역 --- */
    .center-title-area { 
        margin-bottom: 20px; 
    }
    .center-title-area h2 { 
        font-size: 1.8rem; 
    }
    .center-title-area p { 
        display: none !important; /* 설명 문구 숨김 */
    }

    /* --- 4. 문의 카드 그리드 (세로 정렬) --- */
    .contact-grid { 
        flex-direction: column; 
        gap: 15px; 
        margin-top: 0;
        margin-bottom: 30px; 
    }
    .contact-card {
        padding: 25px 20px; 
    }


    /* --- 5. 긴급 지원 배너 (최하단) --- */
    .emergency-section { 
        flex-direction: column; 
        text-align: center; 
        padding: 25px 20px; 
        gap: 15px; 
    }
    .emergency-text { 
        text-align: center; 
    }
    .emergency-text p {
        font-size: 0.85rem;
    }
}