/* ============================================================
   인터넷가입닷컴 - 메인 스타일시트
   Brand: #1A5CB0 (Primary Blue)
   ============================================================ */

:root {
  --primary:        #1A5CB0;
  --primary-dark:   #134790;
  --primary-light:  #2E86C1;
  --secondary:      #E8F4FF;
  --accent:         #FF6B35;
  --text-main:      #222222;
  --text-muted:     #6c757d;
  --bg-light:       #F8FAFE;
  --border:         #DEE2E6;
  --shadow:         0 4px 20px rgba(26, 92, 176, 0.12);
  --radius:         10px;
  --transition:     0.3s ease;
}

/* ── 기본 ── */
* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
}

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; }

/* ── 상단 정보바 ── */
.top-bar {
  background: var(--secondary);
  border-bottom: 1px solid #cce0f7;
  font-size: 0.82rem;
}

/* ── 네비게이션 ── */
.navbar {
  padding: 0.6rem 1rem;
  z-index: 1030;
}
.navbar-brand { padding: 0; }
.brand-logo { display: flex; align-items: center; gap: 6px; }
.brand-text { font-size: 1.3rem; font-weight: 700; color: var(--text-main); }

.navbar-nav .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 0.9rem;
  color: var(--text-main) !important;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--primary) !important;
}
.navbar-nav .nav-item.active > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.9rem; right: 0.9rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

/* 통신사 dot */
.isp-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px;
}
.lg-dot { background: #E60012; }
.sk-dot { background: #FF6600; }
.kt-dot { background: #009ADE; }

/* ── 히어로 섹션 ── */
.hero-section {
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* 슬라이드 배경 이미지 */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite ease-in-out;
  z-index: 0;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  5%, 28%  { opacity: 1; }
  33%      { opacity: 0; }
}

/* 어두운 그라디언트 오버레이 */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,50,120,0.80) 0%, rgba(26,92,176,0.65) 100%);
  z-index: 1;
}

/* 컨텐츠 레이어 */
.hero-content {
  position: relative;
  z-index: 2;
}

/* 슬라이드 인디케이터 */
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dot.active { background: #fff; width: 24px; border-radius: 4px; }

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  z-index: 0;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-section h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.3; }
.hero-section .lead { font-size: 1.1rem; opacity: 0.92; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 12px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.hero-stat .stat-num { font-size: 1.8rem; font-weight: 800; }
.hero-stat .stat-label { font-size: 0.8rem; opacity: 0.85; }

/* 히어로 폼 인풋/셀렉트 짤림 방지 */
.hero-form-ctrl {
  height: 42px !important;
  line-height: 1.5 !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  font-size: 0.9rem;
}


/* ── 버튼 ── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 92, 176, 0.3);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 6px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 30px;
  padding: 14px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
  transition: all var(--transition);
}
.btn-cta:hover {
  background: #e55a28;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
  color: #fff;
}

/* ── 섹션 공통 ── */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-light); }
.section-title { font-size: 1.8rem; color: var(--text-main); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.section-title-bar {
  width: 50px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.5rem 0 1.5rem;
}

/* ── ISP 카드 ── */
.isp-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
  background: #fff;
  height: 100%;
}
.isp-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.isp-card.isp-lg { border-top: 4px solid #E60012; }
.isp-card.isp-sk { border-top: 4px solid #FF6600; }
.isp-card.isp-kt { border-top: 4px solid #009ADE; }
.isp-card .isp-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.isp-card .isp-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.isp-card .isp-price sup { font-size: 1rem; }
.isp-card .isp-price sub { font-size: 0.9rem; color: var(--text-muted); }
.isp-card .isp-features { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.isp-card .isp-features li { padding: 4px 0; font-size: 0.9rem; }
.isp-card .isp-features li::before { content: '✓'; color: var(--primary); font-weight: 700; margin-right: 8px; }

/* ── 요금표 ── */
.price-table { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table thead th { background: var(--primary); color: #fff; border: none; padding: 14px; font-size: 0.95rem; }
.price-table tbody tr:hover { background: var(--secondary); }
.price-table td { padding: 14px; vertical-align: middle; border-color: var(--border); }
.badge-speed { background: var(--secondary); color: var(--primary); font-weight: 700; border-radius: 4px; padding: 4px 10px; font-size: 0.85rem; }

/* ── 후기 카드 ── */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: 100%;
  border-left: 4px solid var(--primary);
}
.review-stars { color: #FFC107; font-size: 1rem; }
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-isp-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; }
.review-isp-badge.lg { background:#fde8e8; color:#E60012; }
.review-isp-badge.sk { background:#fff0e8; color:#FF6600; }
.review-isp-badge.kt { background:#e8f4ff; color:#009ADE; }

/* ── 비교 테이블 ── */
.compare-table th.sticky-col {
  position: sticky;
  top: 0;
  background: var(--primary);
  color: #fff;
  z-index: 10;
}
.compare-best { background: var(--secondary); font-weight: 700; }

/* ── 예약 폼 ── */
.reservation-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-control {
  border-radius: 6px;
  border-color: var(--border);
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 176, 0.15);
}
.form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.required-mark { color: #dc3545; margin-left: 2px; }

/* ── 게시판 ── */
.board-table { border-radius: var(--radius); overflow: hidden; }
.board-table thead th { background: var(--primary); color: #fff; border: none; font-size: 0.9rem; }
.board-table tbody tr:hover { background: var(--secondary); cursor: pointer; }
.badge-answered { background: var(--primary); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }
.badge-waiting  { background: #f0f0f0; color: #888; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; }

/* ── 팁 블로그 ── */
.post-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all var(--transition);
  background: #fff;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-category { font-size: 0.78rem; color: var(--primary); font-weight: 600; }
.post-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 6px 0; }
.post-summary { font-size: 0.88rem; color: var(--text-muted); }

/* ── 사이드 상담 박스 ── */
.consult-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.consult-box h5 { font-weight: 700; margin-bottom: 8px; }
.consult-box .phone-num { font-size: 1.6rem; font-weight: 800; }

/* ── 관리자 레이아웃 ── */
.admin-sidebar {
  min-height: 100vh;
  background: #1a2035;
  color: #ccc;
  width: 240px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  padding-top: 20px;
}
.admin-sidebar .sidebar-brand {
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid #2d3651;
  margin-bottom: 10px;
}
.admin-sidebar .nav-link {
  color: #aab4be;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 2px 8px;
  transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { background: var(--primary); color: #fff; }
.admin-content { margin-left: 240px; padding: 30px; min-height: 100vh; background: #f4f6fc; }
.admin-topbar { background: #fff; padding: 12px 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 24px; border-radius: 8px; }
.stat-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* ── 플로팅 CTA ── */
.floating-cta {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(255, 107, 53, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  text-decoration: none;
}
.floating-cta:hover { background: #e55a28; color: #fff; transform: translateY(-3px); }
@media (max-width: 768px) {
  .floating-cta { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.85rem; }
}

/* ── 푸터 ── */
.footer { background: #1a2035; color: #aab4be; }
.footer-top { padding: 50px 0 30px; }
.footer-bottom { padding: 16px 0; border-top: 1px solid #2d3651; font-size: 0.82rem; }
.footer-brand { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-heading { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #aab4be; font-size: 0.88rem; }
.footer-links a:hover { color: #fff; }

/* ── 알림 배너 ── */
.alert-custom { border-radius: var(--radius); border: none; padding: 14px 20px; }
.alert-custom.success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.alert-custom.error   { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
.alert-custom.info    { background: var(--secondary); color: var(--primary); border-left: 4px solid var(--primary); }

/* ── 유틸 ── */
.text-primary { color: var(--primary) !important; }
.bg-primary   { background: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.rounded-lg { border-radius: var(--radius); }
.shadow-custom { box-shadow: var(--shadow); }

/* ── 반응형 ── */
@media (max-width: 992px) {
  .hero-section h1 { font-size: 1.8rem; }
  .navbar-nav .nav-item.active > .nav-link::after { display: none; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}
@media (max-width: 576px) {
  .hero-section { padding: 50px 0 40px; }
  .hero-section h1 { font-size: 1.6rem; }
  .hero-section .lead { font-size: 0.95rem; }
  .section { padding: 40px 0; }
  .reservation-form-wrap { padding: 24px 18px; }
  .section-title { font-size: 1.4rem; }
  .section-subtitle { font-size: 0.92rem; }
}

/* 초소형 화면 (380px 이하) */
@media (max-width: 380px) {
  /* 네브바 로고 축소 */
  .brand-text { font-size: 1.1rem; }
  /* 전화버튼 자간·패딩 축소 */
  .navbar .btn-primary.btn-sm {
    font-size: 0.78rem;
    letter-spacing: -0.04em;
    padding: 4px 8px;
  }
  /* 네브바 좌우 패딩 최소화 */
  .navbar { padding-left: 8px; padding-right: 8px; }
}

/* 모바일 네브바 상단줄 (로고 + 버튼그룹) 줄바꿈 방지 */
.navbar-brand { flex-shrink: 0; }
.navbar .d-flex.d-lg-none { flex-shrink: 0; }

/* 상담신청 버튼 텍스트 항상 가운데 */
#quickReserveForm button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── 애니메이션 ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
