/*
Theme Name: AMPLUS Travel Child
Theme URI: https://amplusai.com
Description: 여행 제휴 마케팅 전용 자식 테마 - 호텔, 맛집, 관광지, 네이버 쇼핑 (안정화 버전)
Author: Uncle Jerry
Author URI: https://amplusai.com
Template: generatepress
Version: 1.2.3
*/


/* GeneratePress의 흰색 배경 제거 */
.site-content,
.inside-article,
article,
.entry-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 히어로 섹션 내부의 모든 요소 투명 배경 */
.hero-section *,
.hero-section .container,
.hero-section .hero-content {
  background: transparent !important;
  box-shadow: none !important;
}

/* ============================================
   완전 독립 스타일 - 초기화
   ============================================ */

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
  color: #1f2937 !important;
  line-height: 1.6 !important;
  background-color: #ffffff !important;
}

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

/* ============================================
   독립 헤더 스타일 - 완벽한 중앙 정렬
   ============================================ */

.custom-header {
  background: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  padding: 1.5rem 20px 1rem !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.custom-header .site-logo {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-header .site-logo a {
  text-decoration: none !important;
  display: inline-block !important;
}

.custom-header .site-logo h1 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.5px !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

.custom-header .site-logo span {
  color: #f59e0b !important;
  font-weight: 600 !important;
}

.custom-header .main-nav {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-header .main-nav ul {
  display: flex !important;
  list-style: none !important;
  gap: 2.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.custom-header .main-nav li {
  margin: 0 !important;
  padding: 0 !important;
}

.custom-header .main-nav a {
  text-decoration: none !important;
  color: #1f2937 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: color 0.2s !important;
  position: relative !important;
  display: inline-block !important;
}

.custom-header .main-nav a:hover {
  color: #2563eb !important;
}

.custom-header .main-nav a::after {
  content: '' !important;
  position: absolute !important;
  bottom: -5px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #2563eb !important;
  transition: width 0.2s !important;
}

.custom-header .main-nav a:hover::after {
  width: 100% !important;
}

/* ============================================
   메인 컨텐츠 영역
   ============================================ */

.site-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   컨테이너 및 기본 변수
   ============================================ */

:root {
  --primary-color: #2563eb;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   히어로 섹션
   ============================================ */

/* ============================================
   히어로 섹션
   ============================================ */

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  padding: 5rem 0 !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-section .container {
  background: transparent !important;
  box-shadow: none !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative !important;
  z-index: 10 !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.hero-content h2 {
  font-size: 2.8rem !important;
  margin-bottom: 1.5rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
  line-height: 1.3 !important;
}

.hero-content p {
  font-size: 1.3rem !important;
  margin-bottom: 2.5rem !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.hero-button {
  display: inline-block !important;
  background: #f59e0b !important;
  color: #ffffff !important;
  padding: 1.2rem 3rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4) !important;
}

.hero-button:hover {
  background: #d97706 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.6) !important;
  color: #ffffff !important;
}

/* ============================================
   섹션 공통 스타일
   ============================================ */

.content-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ============================================
   뉴스 그리드
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--secondary-color);
}

/* ============================================
   호텔 딜 카드
   ============================================ */

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.hotel-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hotel-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hotel-info {
  padding: 1.5rem;
}

.hotel-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hotel-location {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hotel-rating {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.hotel-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.9rem;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.discount-badge {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hotel-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-booking {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ============================================
   쇼핑 상품 카드
   ============================================ */

.shopping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.rating-stars {
  color: var(--accent-color);
}

.rating-count {
  color: var(--text-light);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.btn-shop {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-shop:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ============================================
   맛집/식당 카드
   ============================================ */

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.restaurant-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.restaurant-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #fdeb71 0%, #f8d800 100%);
}

.restaurant-info {
  padding: 1.5rem;
}

.restaurant-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.restaurant-cuisine {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.restaurant-location {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.restaurant-rating {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.restaurant-rating .rating-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.restaurant-price {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-reserve {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-reserve:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ============================================
   관광지/액티비티 카드
   ============================================ */

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.activity-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.activity-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.activity-info {
  padding: 1.5rem;
}

.activity-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.activity-location {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.activity-duration {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.activity-rating {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-rating .rating-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.activity-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.price-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-book {
  width: 100%;
  padding: 0.75rem;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-book:hover {
  background: #0891b2;
  transform: translateY(-2px);
}

/* ============================================
   푸터
   ============================================ */

/* ============================================
   커스텀 푸터 - 강력한 스타일
   ============================================ */

.custom-footer,
.custom-footer *,
.custom-footer .container,
.custom-footer .footer-content,
.custom-footer .footer-section {
  background: transparent !important;
  box-shadow: none !important;
}

.custom-footer {
  background: #1f2937 !important;
  color: #ffffff !important;
  padding: 3rem 0 1.5rem !important;
  margin-top: 4rem !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.custom-footer .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  background: transparent !important;
}

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
  background: transparent !important;
}

.footer-section {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  background: transparent !important;
}

.footer-section h3 {
  margin-bottom: 1rem !important;
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0.5rem 0 !important;
}

.footer-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-section ul li {
  margin-bottom: 0.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-section a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  text-align: center !important;
  padding-top: 2rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-bottom p {
  margin: 0.5rem 0 !important;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   반응형 디자인
   ============================================ */

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.8rem !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }
  
  .hero-button {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
  }

  .news-grid,
  .hotel-grid,
  .shopping-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hotel-buttons {
    flex-direction: column;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .site-logo h1 {
    font-size: 1.5rem;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
  }
  
  .main-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .content-section {
    padding: 2rem 0;
  }

  .hero-section {
    padding: 3rem 0 !important;
  }
  
  .hero-content h2 {
    font-size: 1.5rem !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
  }
}

/* ============================================
   유틸리티 클래스
   ============================================ */

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.bg-gray {
  background-color: var(--bg-light);
}

/* =========================================

/* =========================================
   Navigation (Stable, no-dup, works on mobile+desktop)
   - Keep GeneratePress default behavior
   - Make ONLY the main navigation bar sticky so it never disappears on scroll
   - Do NOT hide hamburger / slideout (mobile needs it)
========================================= */

/* 1) Main navigation stays visible while scrolling */
.main-navigation{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

/* admin bar(로그인 상태)에서 상단 겹침 보정 */
body.admin-bar .main-navigation{
  top: 32px;
}

/* 2) Mobile: allow hamburger + slideout */
.menu-toggle,
.mobile-menu-control-wrapper,
.slideout-navigation,
#generate-slideout-menu{
  display: block;
}

/* 3) Desktop: keep menu items in one row */
@media (min-width: 769px){
  .main-navigation .main-nav > ul{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
  }
}

/* 4) Home template hero: don't get covered when nav is sticky */
body.page-template-page-home-php .hero-section{
  padding-top: 24px; /* 필요하면 0~40px 범위에서 미세조정 */
}


@media (min-width: 769px){
  /* desktop에서는 모바일 메뉴 요소 숨김 */
  .slideout-navigation,
  #generate-slideout-menu,
  .mobile-menu-control-wrapper,
  .menu-toggle{
    display: none !important;
  }
}
