/* ==========================================================================
   TripModu (트립모두) 단체여행 전문 칼럼 & 허브 스타일시트 (SEO & GEO 최적화)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --primary: #0f172a;       /* Deep Navy */
  --primary-light: #1e293b;
  --accent: #0ea5e9;        /* Sky Blue */
  --accent-hover: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.1);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-sans: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ==========================================================================
   헤더 네비게이션
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 72px;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.btn-cta-header:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* ==========================================================================
   허브 메인 히어로 섹션
   ========================================================================== */
.hub-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
  color: #fff;
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hub-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hub-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: #7dd3fc;
}

.hub-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hub-hero-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* 검색창 */
.hub-search-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.hub-search-input {
  width: 100%;
  padding: 16px 54px 16px 24px;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  outline: none;
  transition: var(--transition);
}

.hub-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 35px rgba(14, 165, 233, 0.35);
}

.hub-search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

/* ==========================================================================
   카테고리 탭 네비게이션
   ========================================================================== */
.category-nav-wrapper {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.category-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-btn:hover {
  background: var(--bg-page);
  color: var(--primary);
  border-color: var(--border-hover);
}

.cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   메인 카드 그리드 영역
   ========================================================================== */
.hub-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.section-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.badge-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
}

.card-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: auto;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--primary);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--accent);
}

.card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.card-footer a:hover .arrow {
  transform: translateX(4px);
}

.arrow {
  transition: transform 0.2s ease;
}

/* ==========================================================================
   아티클 상세 페이지 (Article Detail)
   ========================================================================== */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.article-meta-info {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* 아티클 본문 */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ==========================================================================
   GEO (Generative Engine Optimization) 컴포넌트
   ========================================================================== */

/* 1. 3줄 핵심 요약 박스 (AI Direct Answer) */
.geo-summary-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0 36px;
  box-shadow: var(--shadow-sm);
}

.geo-summary-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.geo-summary-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #0c4a6e;
  margin-bottom: 0 !important;
}

/* 2. 구조화된 비교 테이블 */
.geo-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.geo-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  background: #fff;
}

.geo-table-wrapper th {
  background: #f1f5f9;
  color: var(--primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.geo-table-wrapper td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: #334155;
}

.geo-table-wrapper tr:last-child td {
  border-bottom: none;
}

.geo-table-wrapper tr:hover td {
  background: #f8fafc;
}

/* 3. 팁 및 주의사항 박스 */
.notice-box {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 4px solid;
}

.notice-box.tip {
  background: #f0fdf4;
  border-color: #22c55e;
}

.notice-box.tip .notice-title {
  color: #15803d;
}

.notice-box.warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.notice-box.warning .notice-title {
  color: #b45309;
}

.notice-title {
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-box p {
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
}

/* 4. 본문 중간 인텍스트 CTA 배너 */
.intext-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.intext-cta-banner h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.intext-cta-banner p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-cta-large:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.5);
}

/* 5. FAQ 섹션 */
.geo-faq-section {
  margin: 50px 0 30px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.geo-faq-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: #f8fafc;
}

.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-answer {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
  padding-left: 20px;
}

/* 6. 본문 하단 대형 CTA 배너 */
.cta-banner-box {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  margin: 45px 0 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner-box p {
  color: #e0f2fe;
  font-size: 1rem;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-quote {
  background: #fff;
  color: #0369a1 !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-cta-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-sub {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-full);
}

.btn-cta-sub:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 공시/보증 고지 박스 */
.compliance-box {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 30px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

.compliance-box p {
  margin-bottom: 4px;
}

.compliance-box p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   푸터 (Footer)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 24px 100px;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.footer-phone {
  font-size: 1.3rem;
  font-weight: 800;
  color: #38bdf8;
}

.footer-legal {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   모바일 하단 고정 비교견적 바
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px;
  z-index: 9999;
  border-top: 1px solid #334155;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ==========================================================================
   반응형 미디어 쿼리 (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hub-hero-title {
    font-size: 1.9rem;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .header-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .category-nav-wrapper {
    top: 64px;
  }

  .hub-hero {
    padding: 40px 16px 36px;
  }

  .hub-hero-title {
    font-size: 1.5rem;
  }

  .hub-hero-desc {
    font-size: 0.95rem;
  }

  .brand-sub {
    display: none;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .article-container {
    padding: 20px 16px 90px;
  }
}
