/* =================================== */
/* == 1. CSS Reset and Base Styles == */
/* =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-color: #06b6d4; /* [해결 2] 원본 색상 변수 복원 */
    --gray-50: #f9fafb;
    --gray-100: #f1f5f9;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family); color: var(--gray-700); background-color: var(--white);
    line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main { flex-grow: 1; }

/* =================================== */
/* == 2. Header & Navigation == */
/* =================================== */
.header {
    background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky; top: 0; z-index: 1000;
}
.header-content { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; color: var(--primary-color); text-decoration: none; }
.logo a { display: flex; align-items: center; text-decoration: none; color: inherit; } /* [해결 1] 로고 색상 복원 */
.logo i { font-size: 1.5rem; margin-right: 10px; }
.logo span { font-size: 1.25rem; font-weight: 700; }
.nav { display: flex; } /* [해결 1] 데스크탑에서 nav 기본 보이기 */
.nav-list { display: flex; list-style: none; gap: 15px; }
.nav-link {
    color: var(--gray-600); text-decoration: none; font-weight: 500;
    padding: 8px 12px; border-radius: 6px; transition: all 0.2s ease;
}
.nav-link:hover { color: var(--primary-color); background-color: var(--gray-100); }
.mobile-menu-toggle { display: none; } /* [해결 1] 데스크탑에서 햄버거 버튼 숨기기 */

/* =================================== */
/* == 3. Hero & Main 8-Card Section == */
/* =================================== */
.hero {
    text-align: center; padding: 60px 20px; margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); /* [해결 2] 원본 그라데이션 복원 */
    color: var(--white); border-radius: 16px;
}
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

.cards-section { padding-bottom: 60px; }
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
/* [해결 3] 8개 카드 버튼 스타일 전체 수정 */
.card {
    background-color: var(--white); border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease; display: flex;
    flex-direction: column; text-align: center;
}
.card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}
.card h3 { margin: 0 0 10px 0; font-size: 1.25rem; color: #111827; }
.card p { color: var(--gray-600); font-size: 0.9rem; flex-grow: 1; margin-bottom: 20px; }
.card .card-link {
    display: inline-block; background-color: #60a5fa; color: var(--white);
    padding: 10px 20px; border-radius: 5px; text-decoration: none;
    font-weight: 600; margin-top: auto; transition: background-color 0.3s ease;
}
.card .card-link:hover { background-color: #1e40af; }


/* =================================== */
/* == 4. Wide Card Section (Why Choose Us) == */
/* =================================== */
.wide-card-section { background-color: var(--gray-50); padding: 80px 0; }
.section-title { text-align: center; font-size: 2.25rem; margin-bottom: 15px; color: var(--gray-800); }
.subtitle { text-align: center; max-width: 700px; margin: 0 auto 40px; color: var(--gray-600); }
.wide-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    border-radius: 20px; padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}
.wide-card-header { text-align: center; margin-bottom: 40px; }
.wide-card-header .subtitle { max-width: 100%; margin-bottom: 0; }
.wide-card-content { display: grid; grid-template-columns: 1fr; gap: 30px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.feature-icon {
    flex-shrink: 0; background-color: #e0e7ff; color: var(--primary-color);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.8rem;
}
.feature-text h3 { margin-top: 5px; margin-bottom: 8px; font-size: 1.2rem; }
.feature-text p { margin: 0; color: var(--gray-600); }

/* =================================== */
/* == 5. Blog Section (1+3 Layout) == */
/* =================================== */
.blog-section { background-color: var(--white); padding: 80px 0; }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.blog-card { box-shadow: none; border: 1px solid #e5e7eb; } /* 기본 카드와 구분 */

.featured-card-large {
    position: relative; border-radius: 12px; overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.featured-card-large:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.featured-card-large .card-image-wrapper { width: 100%; }
.featured-card-large .card-image-wrapper img { width: 100%; height: auto; display: block; }
.featured-card-large .card-content {
    padding: 25px 30px; display: flex; flex-direction: column; flex-grow: 1;
}
.featured-card-large h3 { font-size: 1.8rem; margin: 10px 0; }
.featured-card-large .btn-link {
    display: inline-block; padding: 12px 24px;
    background-color: var(--primary-color); color: var(--white);
    text-decoration: none; border-radius: 8px; font-weight: 600;
    transition: background-color 0.2s ease; margin-top: auto;
}
.featured-card-large .btn-link:hover { background-color: var(--primary-dark); }
.featured-badge {
    position: absolute; top: 20px; left: 20px;
    background: linear-gradient(45deg, #2563eb, #60a5fa);
    color: #ffffff; padding: 8px 16px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700; z-index: 10;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}
.featured-badge .fa-star { margin-right: 5px; }

.side-cards-wrapper { display: flex; flex-direction: column; gap: 20px; }
.side-card {
    display: flex; align-items: center; background-color: var(--white);
    padding: 15px; transition: all 0.3s ease;
}
.side-card:hover { border-color: #9ca3af; transform: translateX(5px); }
.side-card .card-image-wrapper-small {
    flex-shrink: 0; width: 100px; height: 80px;
    border-radius: 8px; overflow: hidden;
}
.side-card .card-image-wrapper-small img { width: 100%; height: 100%; object-fit: cover; }
.side-card .card-content { padding-left: 15px; }
.side-card h4 { font-size: 1.1rem; margin-top: 0; margin-bottom: 8px; }
.side-card .card-link-small { font-weight: 600; color: var(--primary-color); text-decoration: none; }
.side-card .card-link-small:hover { text-decoration: underline; }

.card-category {
    display: inline-block; background-color: #e0e7ff;
    color: #3730a3; padding: 4px 8px; font-size: 0.75rem;
    font-weight: 600; border-radius: 9999px; margin-bottom: 8px;
}
.view-all-link-container { text-align: center; margin-top: 40px; }
.btn-primary {
    display: inline-block; padding: 12px 24px; font-size: 1rem;
    font-weight: 600; text-align: center; text-decoration: none;
    border-radius: 8px; transition: background-color 0.3s ease;
    background-color: var(--primary-color); color: var(--white);
}
.btn-primary:hover { background-color: var(--primary-dark); }
/* =================================== */
/* == 카드 하이라이트 섹션 스타일 추가 == */
/* =================================== */
.card-highlights {
    background-color: var(--gray-50);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.card-highlights h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.card-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-highlights ul li {
    display: flex;
    align-items: flex-start;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.card-highlights ul li i {
    color: #10b981; /* 녹색 체크 아이콘 */
    margin-right: 10px;
    margin-top: 3px;
}


/* =================================== */
/* == 6. Footer == */
/* =================================== */
.footer {
    background: var(--gray-800); color: #a1a1aa;
    padding: 60px 0 30px; margin-top: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-bottom: 40px;
}
.footer-section h4 { color: var(--white); font-weight: 600; margin-bottom: 15px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { color: #a1a1aa; text-decoration: none; transition: color 0.2s ease; }
.footer-section ul li a:hover { color: var(--white); }
.footer-logo {
    display: flex; align-items: center; font-size: 1.25rem;
    font-weight: 700; color: var(--white); margin-bottom: 15px;
}
.footer-logo i { margin-right: 10px; color: var(--primary-color); }
.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px; text-align: center; color: #71717a; font-size: 0.9rem;
}


/* =================================== */
/* == 7. Responsive Design == */
/* =================================== */
@media (min-width: 768px) {
    .wide-card-content { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .featured-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
}
/* 별 아이콘 회전 애니메이션 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* "Featured" 배지의 별 아이콘에 애니메이션 적용 */
.featured-badge .fa-star {
    animation: spin 4s linear infinite; /* 4초 동안 천천히 회전 */
}/* ============================================= */
/* SUBPAGE LAYOUT & DESIGN ENHANCEMENTS          */
/* ============================================= */
/* 1. 변환기 영역을 '다크 모드' 스타일의 카드로 변경 */
.converter-wrapper-card {
    background-color: #3b82f6; /* Tailwind CSS - blue-500 */
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    margin-bottom: 2rem;
}

.converter-wrapper-card .converter-header h2 {
    font-size: 1.75rem;
    color: #ffffff;
}

.converter-wrapper-card .converter-header p {
    font-size: 1rem;
    color: #dbeafe;
    margin-top: 0.5rem;
}

/* [핵심 수정] 데스크탑에서는 항상 가로 배치가 되도록 flex 설정 */
.converter-wrapper-card .converter-body {
    display: flex;
    flex-direction: row; /* 기본값을 가로(row)로 명시 */
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 입력창(input/select) 스타일 */
.converter-wrapper-card .input-group label {
    color: #bfdbfe;
    font-weight: 500;
}

.converter-wrapper-card .input-group select,
.converter-wrapper-card .input-group input {
    background-color: #ffffff;
    color: #1e40af;
    border: 2px solid #60a5fa;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: border-color 0.2s;
}

.converter-wrapper-card .input-group select:focus,
.converter-wrapper-card .input-group input:focus {
    outline: none;
    border-color: #ffffff;
}

.converter-wrapper-card .input-group input::placeholder {
    color: #6b7280;
}

.converter-wrapper-card .input-group input[readonly] {
    background-color: #eef2ff;
    color: #3b82f6;
    cursor: default;
    font-weight: 600;
}

.converter-wrapper-card .converter-arrow {
    font-size: 1.5rem;
    color: #ffffff;
}
/* 2. 하단 정보 영역을 위한 2단 그리드 레이아웃 (이전과 동일) */
.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
}
/* ... (이하 .main-content, .sidebar-content 등의 스타일은 이전과 동일하게 유지) ... */
/* 2. 하단 정보 영역을 위한 2단 그리드 레이아웃 */
.page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2:1 비율의 2단 그리드 */
    gap: 2.5rem;
    margin-top: 3rem;
}

.main-content {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
}

.main-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.main-content h4 {
    font-size: 1.15rem;
    color: #1f2937;
    margin-top: 2rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Hover 효과를 위한 transition 추가 */
}

/* 3. 사이드바 카드 Hover 효과 */
.sidebar-card:hover {
    transform: translateY(-5px); /* 위로 살짝 이동 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-card h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
    color: #4b5563;
}
        
.sidebar-card li {
    margin-bottom: 0.75rem;
}

/* 4. 비교표 스타일 개선 */
.comparison-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* 5. 반응형 디자인: 모바일 화면에서는 1단으로 변경 */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .converter-wrapper-card .converter-body {
        flex-direction: column;
    }
}
/* ============================================= */
/* ▼▼▼▼▼▼▼ Contact 페이지 전용 스타일 ▼▼▼▼▼▼▼ */
/* styles.css 파일 가장 하단에 추가해주세요.    */
/* ============================================= */

/* 페이지 전체 섹션 */
.contact-section {
    padding: 80px 20px;
    background-color: var(--gray-50); /* 기존 배경색 변수 활용 */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* 메인 카드 컨테이너 */
.card-container {
    max-width: 850px;
    width: 100%;
    background-color: var(--white);
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-100);
}

/* 카드 제목 */
.card-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-800);
}

/* 카드 소개글 */
.card-container .intro-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* 구분선 */
.card-container .divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 40px auto;
    width: 90%;
}

/* 문의 방법 섹션 (flex 컨테이너) */
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap; 
}

/* 개별 문의 아이템 */
.contact-item {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 12px;
    background-color: #f9fafb; /* var(--gray-50) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* 아이콘 감싸는 원 */
.contact-item .icon-wrapper {
    display: inline-block;
    background-color: #e0e7ff; 
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

/* 아이콘 스타일 */
.contact-item i {
    font-size: 1.8rem;
}

/* 문의 아이템 제목 */
.contact-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-700);
}

/* 문의 아이템 설명 */
.contact-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* 이메일 주소 링크 (버튼 모양) */
.contact-item .contact-email {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.contact-item .contact-email:hover {
    background-color: var(--primary-dark);
}

/* 답변 시간 안내 */
.response-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.response-note p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.response-note i {
    margin-right: 8px;
    color: var(--primary-color);
}


/* 모바일 화면 대응 (768px 이하) */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }
    .card-container {
        padding: 40px 25px;
    }
    .card-container h2 {
        font-size: 2rem;
    }
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }
    .contact-item {
        min-width: 100%;
    }
}

/* ======================================================= */
/* ▼▼▼ Contact & FAQ 페이지 전용 통합 스타일 ▼▼▼ */
/* styles.css 파일 가장 하단에 이 코드 블록 전체를 붙여넣으세요 */
/* ======================================================= */

/* --- 1. Contact Page Styles --- */
.contact-section {
    padding: 80px 20px;
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.card-container {
    max-width: 850px;
    width: 100%;
    background-color: var(--white);
    border-radius: 16px;
    padding: 50px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-100);
}

.card-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.card-container .intro-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 30px;
}

.card-container .divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 40px auto;
    width: 90%;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap; 
}

.contact-item {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.contact-item .icon-wrapper {
    display: inline-block;
    background-color: #e0e7ff; 
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.contact-item i {
    font-size: 1.8rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.contact-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.contact-item .contact-email {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s;
}

.contact-item .contact-email:hover {
    background-color: var(--primary-dark);
}

.response-note {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.response-note p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.response-note i {
    margin-right: 8px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }
    .card-container {
        padding: 40px 25px;
    }
    .card-container h2 {
        font-size: 2rem;
    }
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }
}


/* --- 2. FAQ Page Styles --- */
.faq-page-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}
.faq-page-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--gray-800);
}
.faq-page-section .faq-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 50px;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.faq-item {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.faq-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}
.faq-item h3 i {
    margin-right: 10px;
}
.faq-item p {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}