/* =========================================
   기본 전체 설정
========================================= */
html {
    scroll-behavior: smooth; /* 부드러운 스크롤 애니메이션 적용 */
    scroll-padding-top: 80px; /* 스크롤 완료 후 헤더가 내용을 가리지 않도록 위쪽 여백 확보 */
}

/* 상단 로고 이미지 크기 제어 */
.logo img {
    height: 80px; /* 35px에서 45px 또는 50px로 키워보세요 */
    width: auto;
    display: block;
    border-radius: 8px; /* 로고 모서리를 살짝 둥글게 해줍니다 */
}

/* 웹페이지 기본 여백 초기화 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 1. 헤더 (상단 네비게이션) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: nowrap;
    gap: 10px;
}

.logo h1 {
    color: #00AEEF; /* UCAR시스템 로고와 비슷한 하늘색 */
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 22px; /* 메뉴 사이 간격 - 버튼 추가로 축소 */
    flex-wrap: nowrap;
}

nav a:hover {
    color: #00AEEF;
    font-weight: bold;
}

.login-btn button {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

/* 2. 메인 히어로 섹션 - 배경색 제거 및 중앙 확장 */
.hero {
    text-align: center;
    /* 기존의 검은색 필터(linear-gradient)를 제거하고 이미지만 선명하게 넣습니다 */
    background-image: url('AIUCAR2.png'); 
    background-size: cover;
    background-position: center center;
    
    /* 화면에 예쁘게 꽉 차도록 높이 설정 */
    height: 100vh;
    min-height: 600px;
    max-height: 850px;
    
    /* 내부 글씨가 정중앙에 오도록 정렬 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
    word-break: keep-all;
    /* 배경이 밝아졌으므로 글씨가 잘 보이도록 검은 그림자 추가 */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); 
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    word-break: keep-all;
    /* 글씨 그림자 추가 */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8); 
}

.hero button {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    background: #00AEEF; /* 기존 파란색 버튼 유지 */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero button:hover {
    background: #008bc0;
}

/* 3. 파트너사 로고 섹션 */
.partners {
    padding: 80px 20px;
    text-align: center;
    background-color: #ffffff;
}

.partners h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.partner-logos {
    display: flex; /* 요소들을 가로로 배치 */
    justify-content: center; /* 가운데 정렬 */
    align-items: center;
    flex-wrap: wrap; /* 화면이 좁아지면 알아서 다음 줄로 넘어감 */
    gap: 20px; /* 로고 박스 사이의 간격 */
    max-width: 1200px;
    margin: 0 auto;
}

.logo-box {
    padding: 20px 30px;
    background: #f8f9fa; /* 아주 연한 회색 배경 */
    border: 1px solid #eaeaea;
    border-radius: 10px;
    color: #666;
    font-weight: bold;
    min-width: 160px; /* 박스의 최소 너비 */
    transition: transform 0.3s ease; /* 마우스 올릴 때 움직임 효과 */
}

.logo-box:hover {
    transform: translateY(-5px); /* 마우스 올리면 살짝 위로 올라감 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 4. 핵심 가치 섹션 */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 20px;
    background: #fff;
}

.feature-item {
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 25%;
    font-size: 1.1rem;
    font-weight: bold;
    color: #00AEEF;
}

/* 5. 푸터 */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #333;
    color: #aaa;
    font-size: 0.9rem;
}
/* 5. 푸터 디자인 개선 */
footer {
    background: #2c2e33; /* 짙은 차콜색으로 변경 */
    color: #cbd5e0;
    padding: 60px 20px 40px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.footer-nav a {
    margin-left: 20px;
    color: #a0aec0;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #4a5568;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.company-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.copyright {
    color: #718096;
    font-size: 0.85rem;
}

/* 모바일 대응을 위한 간단한 코드 */
@media (max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-nav a {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* =========================================
   모바일 최적화 (반응형 미디어 쿼리)
   - 화면 넓이가 768px 이하(태블릿/스마트폰)일 때만 작동합니다.
========================================= */
@media (max-width: 768px) {

    /* 1. 헤더: 메뉴 간격 좁히고 로고 크기 조정 */
    header {
        padding: 15px 20px;
        flex-wrap: wrap; /* 공간이 부족하면 메뉴가 아래로 내려가도록 설정 */
    }
    
    nav ul {
        gap: 15px; /* 메뉴 사이 간격을 줄임 */
        font-size: 0.9rem;
    }
    
   /* 헤더 우측 버튼 2개 그룹 */
.header-buttons {
    display: flex;
    gap: 10px; /* 두 버튼 사이의 간격 */
}

.header-buttons button {
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

/* 도입 상담 버튼 (파란색 테두리, 흰 배경) */
.btn-outline {
    background: #fff;
    color: #00AEEF;
    border: 1px solid #00AEEF;
}

.btn-outline:hover {
    background: #f0f9ff;
}

/* 시스템 로그인 버튼 (어두운 회색 꽉 찬 배경) */
.btn-solid {
    background: #333;
    color: #fff;
    border: 1px solid #333;
}

.btn-solid:hover {
    background: #111;
}

    /* 2. 메인 히어로 섹션: 여백을 줄이고 글자 크기 축소 */
    .hero {
        padding: 80px 20px;
    }

    .hero h2 {
        font-size: 2rem; /* 제목 글자 크기 축소 */
    }

    .hero p {
        font-size: 1rem; /* 설명 글자 크기 축소 */
        margin-bottom: 30px;
    }

    .hero button {
        padding: 15px 30px; /* 버튼 크기 살짝 축소 */
        font-size: 1.1rem;
        width: 100%; /* 스마트폰에서는 버튼이 가로로 꽉 차게 */
    }

    /* 3. 핵심 가치 섹션 (3개의 하얀 박스): 가로 정렬을 세로 정렬로 변경 */
    .features {
        flex-direction: column; /* 세로로 쌓이도록 설정 */
        align-items: center;
        padding: 50px 20px 60px;
    }

    .feature-item {
        width: 100%; /* 박스가 화면 가로 폭을 꽉 채우도록 */
        margin-bottom: 20px;
    }

    /* 4. 파트너사 섹션: 여백 조절 */
    .partners {
        padding: 50px 20px;
    }
    
    .partner-logos {
        gap: 10px; /* 로고 박스 사이 간격을 좁힘 */
    }
    
    .logo-box {
        min-width: 130px; /* 로고 박스 최소 너비 축소 */
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* 상담 문의 페이지 전용 스타일 */
.contact-section {
    padding: 100px 20px;
    background-color: #f4f7f9;
    min-height: calc(100vh - 400px);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-container p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00AEEF;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #00AEEF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #008bc0;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
    }
}

/* =========================================
   서브 페이지 공통 디자인 (회사 소개, 고객 지원 등)
========================================= */
.sub-page-title {
    position: relative;
    background-image: url('aiucar3.png');
    background-size: cover;
    background-position: center bottom;
    padding: 100px 20px 60px 20px;
    text-align: center;
    overflow: hidden;
}
.sub-page-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,30,90,0.70) 0%, rgba(0,120,200,0.50) 100%);
    z-index: 0;
}
.sub-page-title > * {
    position: relative;
    z-index: 1;
}
.sub-page-title h2 {
    font-size: 36px;
    color: #ffffff !important;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}
.sub-page-title p {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.about-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.about-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* 부드러운 그림자 효과 */
}

/* =========================================
   드롭다운 메뉴 (서브 메뉴) 디자인
========================================= */
nav ul li {
    position: relative; /* 드롭다운의 기준점 설정 */
}

/* 숨겨진 서브 메뉴 기본 설정 */
nav ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-top: 2px solid #00AEEF;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
}

/* 마우스를 올렸을 때 서브 메뉴 보이기 */
nav ul li:hover .dropdown {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 서브 메뉴 안의 링크 디자인 */
nav ul li .dropdown li {
    display: block;
    margin: 0;
}

nav ul li .dropdown li a {
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    text-align: center;
    border-bottom: none;
}

nav ul li .dropdown li a:hover {
    background-color: #f8f9fa;
    color: #00AEEF;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================
   파트너 고객 및 서비스 페이지 전용 디자인
========================================= */
.section-heading {
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #00AEEF;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

/* 비교 표 (Table) 디자인 */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 15px;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.comparison-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: bold;
}

/* 파트너사 카드 그리드 (Grid) 디자인 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partner-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 174, 239, 0.15);
    border-color: #00AEEF;
}

.partner-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.partner-card h4 {
    color: #00AEEF;
    font-size: 18px;
    margin-bottom: 10px;
}

.partner-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
/* =========================================
   제품 시스템 플랫폼 (쇼케이스) 전용 디자인
========================================= */
.product-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f3f5;
}

/* 텍스트가 좌측에 오는 리버스(지그재그) 형태 */
.product-showcase.reverse {
    flex-direction: row-reverse;
}

.product-image-box {
    flex: 1;
}

.product-text-box {
    flex: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    font-size: 16px;
    color: #444;
    margin-bottom: 12px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #00AEEF;
}

/* 모바일 화면(창이 좁아질 때) 위아래로 쌓이도록 반응형 처리 */
@media (max-width: 768px) {
    .product-showcase, .product-showcase.reverse {
        flex-direction: column;
        gap: 30px;
    }
}
/* =========================================
   FAQ 전용 디자인 (탭 메뉴 & 아코디언)
========================================= */

/* 탭 메뉴 스타일 */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.tab-link {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
}

.tab-link:hover {
    color: #00AEEF;
    background-color: #f8f9fa;
}

.tab-link.active {
    color: #00AEEF;
    border-bottom: 3px solid #00AEEF;
}

.tab-content {
    display: none; /* 기본적으로 숨김, 자바스크립트로 제어 */
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* 아코디언 스타일 */
.accordion {
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid #e2e8f0;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.4s;
    border-radius: 8px;
    margin-bottom: 10px;
}

.accordion.active-acc, .accordion:hover {
    background-color: #e9ecef;
    color: #00AEEF;
}

.accordion:after {
    content: '\002B'; /* 플러스 기호 */
    color: #00AEEF;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion.active-acc:after {
    content: "\2212"; /* 마이너스 기호 */
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-left: 2px solid #00AEEF;
    margin-bottom: 15px;
}

.panel p {
    padding: 15px 0;
    color: #555;
    line-height: 1.8;
}

/* 인사이트 정보 리스트 */
.news-list { display: flex; flex-direction: column; gap: 30px; }
.news-item { display: flex; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid #eee; align-items: center; }
.news-thumb { width: 220px; height: 140px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; }
.news-date { color: #888; font-size: 14px; }
.news-title a { font-size: 20px; font-weight: bold; color: #333; text-decoration: none; margin: 10px 0; display: block; }
.news-title a:hover { color: #00AEEF; }
.news-desc { color: #666; font-size: 15px; line-height: 1.6; }

/* 뉴스레터 구독 섹션 */
.newsletter-section { background-color: #f0f4f8; padding: 60px 20px; text-align: center; border-top: 1px solid #e2e8f0; }
.newsletter-container h3 { font-size: 24px; margin-bottom: 10px; color: #333; }
.newsletter-container p { margin-bottom: 25px; color: #666; }
.subscribe-form { display: flex; justify-content: center; gap: 10px; max-width: 500px; margin: 0 auto; }
.subscribe-form input { flex: 1; padding: 12px 20px; border: 1px solid #ddd; border-radius: 5px; outline: none; }
.subscribe-form input:focus { border-color: #00AEEF; }


/* =========================================
   뉴스 기사 상세 팝업(모달) 창 스타일
========================================= */
.modal-overlay {
    display: none; /* 평소에는 숨겨둠 */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 반투명 검은 배경 */
    z-index: 1000;
    justify-content: center; align-items: center;
}

.modal-content {
    background: white;
    width: 90%; max-width: 800px;
    max-height: 85vh; /* 창 높이의 85%까지만 커지고 그 이상은 스크롤 생성 */
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute; top: 20px; right: 25px;
    font-size: 28px; font-weight: bold; color: #aaa;
    cursor: pointer; border: none; background: transparent;
}
.modal-close:hover { color: #333; }

.modal-header { border-bottom: 2px solid #00AEEF; padding-bottom: 15px; margin-bottom: 20px; }
.modal-title { font-size: 24px; color: #333; margin-bottom: 10px; }
.modal-date { color: #888; font-size: 14px; }
.modal-image { width: 100%; max-height: 400px; object-fit: contain; margin-bottom: 20px; border-radius: 8px; background-color: #f8f9fa; }
.modal-body { font-size: 16px; line-height: 1.8; color: #444; white-space: pre-wrap; } /* white-space: pre-wrap을 넣어야 엔터(줄바꿈)가 그대로 반영됩니다! */