/*
Theme Name: Mobfas Trip Theme Complete
Theme URI: https://trip.mobfas.com
Author: Mobfas
Author URI: https://mobfas.com
Description: 항공권 호텔 여행 특가 최저가 비교 추천 - 모바일 최적화 프리미엄 여행 테마
Version: 2.0.0
Text Domain: mobfas
*/

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBFAS TRIP — 프리미엄 모바일 최적화 테마 v2.0
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Design Tokens ── */
:root {
  --primary: #e84c3d;
  --primary-dark: #c0392b;
  --primary-light: #ff6b5b;
  --accent: #f39c12;
  --dark: #0d1117;
  --dark2: #161b22;
  --gray: #f6f8fa;
  --gray2: #eaecef;
  --text: #24292f;
  --text-muted: #57606a;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,.09);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.16);
  --font: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --header-h: 64px;
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.3; }

/* ━━━━━━━━━━━━━━━━━━
   HEADER
   ━━━━━━━━━━━━━━━━━━ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray2);
  height: var(--header-h);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--dark);
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.site-logo .logo-text { color: var(--primary); }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.current {
  color: var(--primary);
  background: rgba(232,76,61,.06);
}

/* Search bar in header */
.header-search {
  display: flex;
  align-items: center;
  background: var(--gray);
  border: 1.5px solid var(--gray2);
  border-radius: 50px;
  padding: 6px 16px;
  gap: 8px;
  transition: border-color .2s;
  min-width: 180px;
}
.header-search:focus-within { border-color: var(--primary); }
.header-search input {
  border: none;
  background: none;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  width: 100%;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search svg { flex-shrink: 0; color: var(--text-muted); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ━━━━━━━━━━━━━━━━━━
   HERO BANNER
   ━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,17,23,.75) 0%,
    rgba(13,17,23,.3) 60%,
    rgba(13,17,23,.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  width: fit-content;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero-badge::before { content:'✈'; font-size: 14px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 54px);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(232,76,61,.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,76,61,.5);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all .2s;
}
.btn-outline:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat strong {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

/* ━━━━━━━━━━━━━━━━━━
   CATEGORY NAV STRIP
   ━━━━━━━━━━━━━━━━━━ */
.cat-strip {
  background: #fff;
  border-bottom: 1px solid var(--gray2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}
.cat-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.cat-strip a:hover, .cat-strip a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ━━━━━━━━━━━━━━━━━━
   DEAL BANNER (상단 띠)
   ━━━━━━━━━━━━━━━━━━ */
.deal-ticker {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.deal-ticker .blink {
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ━━━━━━━━━━━━━━━━━━
   MAIN LAYOUT
   ━━━━━━━━━━━━━━━━━━ */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.section-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more::after { content: '→'; }

/* ── Post Grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Post Card ── */
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray2);
  box-shadow: var(--shadow);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.post-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: .02em;
}
.post-card-badge.hot { background: #e84c3d; }
.post-card-badge.new { background: #2ecc71; }
.post-card-badge.sale { background: #f39c12; }

.post-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray2);
}
.post-card-date {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-card-read {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 3px;
}
.post-card-read::after { content: '→'; font-size: 11px; }

/* ── Featured Post (Wide Card) ── */
.post-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
  min-height: 280px;
}
.post-card-featured .post-card-thumb {
  aspect-ratio: unset;
  height: 100%;
}
.post-card-featured .post-card-body {
  padding: 32px;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
}
.post-card-featured .post-card-cat { color: var(--accent); }
.post-card-featured .post-card-title {
  font-size: 22px;
  color: #fff;
  -webkit-line-clamp: 3;
  margin-bottom: 16px;
}
.post-card-featured .post-card-excerpt {
  color: rgba(255,255,255,.7);
  -webkit-line-clamp: 3;
}
.post-card-featured .post-card-meta {
  border-top-color: rgba(255,255,255,.1);
}
.post-card-featured .post-card-date { color: rgba(255,255,255,.5); }
.post-card-featured .post-card-read { color: var(--accent); }
.post-card-featured:hover { transform: translateY(-4px); }

/* ── No Posts State ── */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.no-posts .no-posts-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.no-posts h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.no-posts p {
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ━━━━━━━━━━━━━━━━━━
   DEAL / AFFILIATE CARDS
   ━━━━━━━━━━━━━━━━━━ */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.deal-card {
  background: #fff;
  border: 1.5px solid var(--gray2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.deal-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  background: var(--gray);
}
.deal-card-body { padding: 14px 16px; }
.deal-card-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.4;
}
.deal-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.deal-price-now {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}
.deal-price-was {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.deal-discount {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 50px;
}
.deal-card-btn {
  display: block;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
}
.deal-card-btn:hover { background: var(--primary-dark); }

/* ━━━━━━━━━━━━━━━━━━
   BEST PICKS SECTION (가격비교 테이블)
   ━━━━━━━━━━━━━━━━━━ */
.compare-wrap {
  background: var(--gray);
  border-radius: 20px;
  padding: 32px;
  margin: 48px 0;
}
.compare-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.compare-table thead { background: var(--dark); color: #fff; }
.compare-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray2);
  font-size: 14px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #fef8f8; }
.compare-best td { background: rgba(232,76,61,.04); }
.compare-badge {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}
.compare-price { color: var(--primary); font-weight: 900; font-size: 16px; }
.compare-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.compare-btn:hover { background: var(--primary-dark); }

/* ━━━━━━━━━━━━━━━━━━
   SIDEBAR (RIGHT)
   ━━━━━━━━━━━━━━━━━━ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin: 48px 0;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--gray2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-widget-title {
  background: var(--dark);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-body { padding: 16px; }
.sidebar-post-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-post-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray2);
}
.sidebar-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-thumb {
  width: 70px;
  height: 55px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post-title a:hover { color: var(--primary); }
.sidebar-post-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Ad slot */
.ad-slot {
  background: var(--gray);
  border: 1.5px dashed var(--gray2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 24px 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

/* ━━━━━━━━━━━━━━━━━━
   PAGINATION
   ━━━━━━━━━━━━━━━━━━ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 48px 0 64px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--gray2);
  background: #fff;
  transition: all .2s;
  color: var(--text);
}
.pagination .current, .pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ━━━━━━━━━━━━━━━━━━
   FOOTER
   ━━━━━━━━━━━━━━━━━━ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .site-logo .logo-text { color: #fff; }
.footer-desc {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255,255,255,.5);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 11px;
  color: rgba(255,255,255,.28);
  line-height: 1.7;
}

/* ━━━━━━━━━━━━━━━━━━
   SINGLE POST
   ━━━━━━━━━━━━━━━━━━ */
.post-hero {
  background: var(--dark);
  padding: 64px 24px 48px;
  text-align: center;
  color: #fff;
}
.post-hero-cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.post-hero h1 {
  font-size: clamp(24px, 4vw, 44px);
  max-width: 800px;
  margin: 0 auto 16px;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}
.post-content-wrap {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 24px;
}
.post-content {
  font-size: 16px;
  line-height: 1.85;
}
.post-content h2 { font-size: 24px; margin: 40px 0 16px; }
.post-content h3 { font-size: 20px; margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content img {
  border-radius: 12px;
  margin: 28px auto;
  box-shadow: var(--shadow);
}
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content ul, .post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--gray);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post-content table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}
.post-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray2);
  font-size: 14px;
}

/* ━━━━━━━━━━━━━━━━━━
   MTECARD / SHORTCODE COMPONENTS
   ━━━━━━━━━━━━━━━━━━ */
.mte-card {
  border: 1.5px solid var(--gray2);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  margin: 32px 0;
  transition: all .2s;
}
.mte-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.mte-card-img { width: 100%; height: 240px; object-fit: cover; }
.mte-card-body { padding: 24px; }
.mte-card-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.mte-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.mte-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray2);
}
.mte-price { font-size: 24px; font-weight: 900; color: var(--primary); }
.mte-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s;
}
.mte-btn:hover { background: var(--primary-dark); }
.mte-coupon {
  border: 2.5px dashed var(--primary);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  background: #fff8f7;
  margin: 32px 0;
}
.mte-coupon-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.mte-btn-reveal {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.mte-btn-reveal:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,76,61,.35);
}
.mte-code-box {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  background: var(--gray);
  padding: 16px;
  border-radius: 10px;
  display: none;
  cursor: pointer;
  margin: 16px auto;
  max-width: 280px;
  border: 2px solid var(--gray2);
}
.mte-summary-wrap { overflow-x: auto; }
.mte-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.mte-summary-table th {
  background: var(--dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}
.mte-summary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray2);
  font-size: 14px;
}
.mte-ad-slot {
  background: var(--gray);
  border: 1.5px dashed var(--gray2);
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 8px;
  margin: 16px 0;
}

/* ━━━━━━━━━━━━━━━━━━
   MOBILE RESPONSIVE
   ━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .hero { height: 420px; }
  .hero h1 { font-size: 26px; }
  .post-grid { grid-template-columns: 1fr; gap: 14px; }
  .post-card-featured { grid-template-columns: 1fr; min-height: auto; }
  .post-card-featured .post-card-thumb { height: 200px; }
  .post-card-featured .post-card-title { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stats { gap: 16px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 24px;
    z-index: 998;
    align-items: flex-start;
    gap: 4px;
    overflow-y: auto;
  }
  .site-nav.open a { width: 100%; font-size: 17px; padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .header-search { min-width: 0; width: 40px; padding: 8px; overflow: hidden; }
  .header-search.open { width: auto; min-width: 200px; padding: 6px 16px; }
  .header-search input { display: none; }
  .header-search.open input { display: block; }
  .compare-wrap { padding: 20px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .mte-card-img { height: 180px; }
}

@media (max-width: 480px) {
  .hero { height: 360px; }
  .hero h1 { font-size: 22px; }
  .hero-cta-wrap { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .deal-grid { grid-template-columns: 1fr; }
}

/* ━━━━━━━━━━━━━━━━━━
   UTILITIES
   ━━━━━━━━━━━━━━━━━━ */
.text-primary { color: var(--primary); }
.fw-900 { font-weight: 900; }
.mt-0 { margin-top: 0; }
.hide-mobile { display: block; }
@media (max-width: 768px) {
  .hide-mobile { display: none; }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(232,76,61,.4);
  opacity: 0;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 990;
  cursor: pointer;
  border: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== 글 본문 배경색/글자색 통일 및 표준화 ===== */
.post-content, .entry-content, .article-content, .td-post-content, .mobfas-content, .ts-content { color: #222222; }
.post-content p, .entry-content p, .article-content p, .td-post-content p, .mobfas-content p, .ts-content p { color: #222222; }
