/* ========================================
   기본 설정
   ======================================== */
.entry-content {
  line-height: 1.7;
  color: #333;
}
.btn-affiliate a {
    transition: all 0.3s ease;
}
.btn-affiliate a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.disclaimer {
    font-style: italic;
}
/* ========================================
   클릭 유도형 버튼 스타일
   ======================================== */
.btn-a {
  text-align: center;
  margin: 30px 0;
}

.btn-a a {
  display: inline-block;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  color: #fff !important;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  border: none;
  border-radius: 50px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-a a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.btn-a a:hover {
  background: linear-gradient(45deg, #ff8e53, #ff6b6b);
  box-shadow: 0 15px 20px rgba(255, 107, 107, 0.4);
  transform: translateY(-3px);
}

.btn-a a:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.btn-a a:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.2);
}

/* ========================================
   제목 스타일 (H2, H3)
   ======================================== */
.entry-content h2 {
  clear: both;
  margin-top: 29px;
  margin-bottom: 22px;
  font-size: 1.5em;
  line-height: 1.5;
  color: #ffffff !important;
  background-color: #007bff !important;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.entry-content h3 {
  clear: both;
  margin-top: 29px;
  margin-bottom: 22px;
  font-size: 1.3125em;
  line-height: 1.5;
  color: #000 !important;
  font-weight: bold;
  padding: 5px 15px;
  border-bottom: 5px solid #007bff !important;
}

/* ========================================
   리스트 & 포인트 아이템 스타일 (Flexbox 적용)
   ======================================== */
.entry-content ul,
.entry-content ol {
  padding-left: 0; /* 기본 패딩 제거 */
  list-style: none; /* 기본 리스트 스타일 제거 */
}

/* → 체크 리스트가 필요한 구역에만 클래스 부여해서 적용 */
.entry-content .check-list,
.entry-content .check-list ul,
.entry-content .check-list ol { 
  padding-left: 0;
  list-style: none;
}
.entry-content .check-list li {
  display: flex;
  align-items: flex-start;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.entry-content .check-list li::before {
  content: '✓';
  margin-right: 12px;
  font-size: 20px;
  color: #007bff;
  line-height: 1.5;
}

/* 위젯/블록은 절대 건드리지 않기 */
.entry-content .brand-comparison-widget li,
.entry-content .brand-comparison-widget li::before {
  all: unset; /* 위젯 내부 li는 원래 레이아웃 유지 */
}

/* ========================================
   색상 박스 스타일
   ======================================== */
.entry-content .blue-box {
  background: #f0f8ff;
  border-left: 4px solid #007bff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.entry-content .orange-box {
  background: #fff8e1;
  border-left: 4px solid #ff914d;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

/* ========================================
   DL 스타일 (정의 목록)
   ======================================== */
.entry-content dl dt {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.5;
  padding: 10px 14px;
  border-left: 4px solid #2c60c8;
  background-color: #f5f8ff;
  color: #1e1e1e;
  border-radius: 4px;
}

.entry-content dl dd {
  margin: 8px 0 24px 14px;
  font-size: 0.975em;
  line-height: 1.7;
  color: #444;
}

/* ========================================
   테이블 스타일 (비교표)
   ======================================== */
.entry-content table {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  border-collapse: collapse;
  text-align: center;
}

.entry-content table th,
.entry-content table td {
  border: 1px solid #ddd;
  padding: 12px;
}

.entry-content table thead th {
  background: #f9f9f9;
  font-weight: bold;
}

/* ========================================
   이미지 스타일
   ======================================== */
/* 히어로로 쓰는 이미지만 class="hero-img" 부여해서 제어 */
.entry-content img.hero-img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ========================================
   광고 영역 (반응형)
   ======================================== */
.ads-desktop,
.ads-mobile {
  display: none;
}

@media screen and (min-width: 1025px) {
  .ads-desktop {
    display: block;
  }
}

@media screen and (max-width: 1024px) {
  .ads-mobile {
    display: block;
  }
}

/* ========================================
   모바일 반응형 최적화
   ======================================== */
@media screen and (max-width: 768px) {
  /* 버튼 */
  .btn-a a {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* 제목 */
  .entry-content h2 {
    font-size: 1.3em;
    padding: 10px 15px;
    margin: 20px 0 15px;
  }
  
  .entry-content h3 {
    font-size: 1.15em;
    margin: 20px 0 15px;
  }
  
  /* 리스트 */
  .entry-content li {
    font-size: 16px !important;
  }
  
  /* 테이블 */
  .entry-content table {
    font-size: 14px;
  }
  
  .entry-content table th,
  .entry-content table td {
    padding: 8px 4px;
  }
  
  /* 색상 박스 */
  .entry-content .blue-box,
  .entry-content .orange-box {
    padding: 15px 10px;
    margin: 15px 0;
  }
  
  /* DL 스타일 */
  .entry-content dl dt {
    font-size: 1em;
    padding: 8px 12px;
  }
  
  .entry-content dl dd {
    font-size: 0.95em;
    margin: 5px 0 20px 10px;
  }
}

/* ========================================
   접근성 개선
   ======================================== */
.entry-content a:focus,
.btn-a a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* ========================================
   브랜드 비교 위젯 스타일
   ======================================== */
/* 과도한 리셋 축소: 꼭 필요한 요소만 초기화 */
.brand-comparison-widget :where(p, h1, h2, h3, h4, h5, h6, a, ul, ol, li, button) {
  all: unset;
  box-sizing: border-box;
}
/* 이후 위젯 자체 스타일은 그대로(이미 !important 다수) */

/* 할인 배지 애니메이션 */
@keyframes widget-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(39,174,96,0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(39,174,96,0.6);
  }
}

/* 위젯 컨테이너 */
.brand-comparison-widget {
  margin: 40px 0 !important;
  padding: 25px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 15px !important;
  clear: both !important;
}

/* 제목 */
.brand-comparison-widget .widget-title {
  text-align: center !important;
  color: white !important;
  margin: 0 0 30px 0 !important;
  font-size: 1.4em !important;
  font-weight: bold !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* 카드 컨테이너 */
.brand-comparison-widget .cards-container {
  display: flex !important;
  gap: 20px !important;
  overflow-x: auto !important;
  padding: 20px 5px !important;
  scroll-behavior: smooth !important;
}

/* 제품 카드 */
.brand-comparison-widget .product-card {
  position: relative !important;
  min-width: 280px !important;
  max-width: 320px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 20px 20px 90px 20px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}

.brand-comparison-widget .product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25) !important;
}

/* BEST 카드 */
.brand-comparison-widget .product-card.best {
  border: 3px solid #f39c12 !important;
  box-shadow: 0 6px 20px rgba(243,156,18,0.4) !important;
  padding-top: 45px !important;
}

/* BEST 배지 */
.brand-comparison-widget .best-badge {
  position: absolute !important;
  top: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 0.9em !important;
  font-weight: bold !important;
  box-shadow: 0 4px 10px rgba(243,156,18,0.5) !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  border: none !important;
}

/* 제품명 */
.brand-comparison-widget .product-name {
  font-weight: bold !important;
  font-size: 1.1em !important;
  margin: 0 0 15px 0 !important;
  color: #2c3e50 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.4 !important;
}

/* 가격 영역 */
.brand-comparison-widget .price-box {
  margin: 15px 0 !important;
  padding: 15px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  border: none !important;
}

.brand-comparison-widget .price {
  color: #e74c3c !important;
  font-size: 1.5em !important;
  font-weight: bold !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* 할인 배지 */
.brand-comparison-widget .discount-badge {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
  color: #ffffff !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 1.0em !important;
  font-weight: 700 !important;
  margin: 8px 0 0 0 !important;
  text-align: center !important;
  display: block !important;
  animation: widget-pulse 2s ease-in-out infinite !important;
  border: none !important;
  line-height: 1.3 !important;
}

/* 장점 섹션 */
.brand-comparison-widget .pros-section {
  margin: 15px 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.brand-comparison-widget .pros-title {
  font-weight: bold !important;
  color: #27ae60 !important;
  margin: 0 0 10px 0 !important;
  font-size: 0.95em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.4 !important;
}

/* 장점 리스트 */
.brand-comparison-widget .pros-list {
  margin: 0 !important;
  padding: 0 0 0 20px !important;
  font-size: 0.9em !important;
  color: #555 !important;
  line-height: 1.8 !important;
  list-style: none !important;
}

.brand-comparison-widget .pros-list li {
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  display: list-item !important;
  position: relative !important;
  padding-left: 20px !important;
  border: none !important;
  background: none !important;
}

.brand-comparison-widget .pros-list li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  color: #27ae60 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
  line-height: 1.8 !important;
  margin: 0 !important;
}

/* 단점 섹션 */
.brand-comparison-widget .cons-section {
  margin: 15px 0 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.brand-comparison-widget .cons-title {
  font-weight: bold !important;
  color: #e74c3c !important;
  margin: 0 0 10px 0 !important;
  font-size: 0.95em !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  line-height: 1.4 !important;
}

.brand-comparison-widget .cons-text {
  font-size: 0.9em !important;
  color: #555 !important;
  padding: 0 0 0 20px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
}

/* 버튼 (공백 제거 버전) */
.brand-comparison-widget .view-button {
  position: absolute !important;
  bottom: 15px !important;  /* 20px → 15px로 변경 */
  left: 15px !important;     /* 20px → 15px로 변경 */
  right: 15px !important;    /* 20px → 15px로 변경 */
  display: block !important;
  text-align: center !important;
  padding: 12px 10px !important;  /* 15px → 12px로 변경 */
  color: white !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  font-weight: bold !important;
  font-size: 1.0em !important;  /* 1.05em → 1.0em로 변경 */
  transition: all 0.3s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  margin: 0 !important;
  line-height: 1.2 !important;  /* 1.3 → 1.2로 변경 */
}


.brand-comparison-widget .view-button::before {
  display: none !important;
}

/* BEST 제품 버튼 */
.brand-comparison-widget .view-button.best {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
}

.brand-comparison-widget .view-button.best:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(243,156,18,0.6) !important;
}

/* 일반 제품 버튼 */
.brand-comparison-widget .view-button.normal {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

.brand-comparison-widget .view-button.normal:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 18px rgba(52,152,219,0.6) !important;
}

/* 스크롤바 */
.brand-comparison-widget .cards-container::-webkit-scrollbar {
  height: 8px !important;
}

.brand-comparison-widget .cards-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 10px !important;
}

.brand-comparison-widget .cards-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3) !important;
  border-radius: 10px !important;
}

.brand-comparison-widget .cards-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5) !important;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .brand-comparison-widget .cards-container {
    flex-direction: column !important;
    overflow-x: visible !important;
  }
  
  .brand-comparison-widget .product-card {
    min-width: 100% !important;
    max-width: 100% !important;
  }
}




/* ========================================
   인쇄 스타일
   ======================================== */
@media print {
  .btn-a,
  .ads-desktop,
  .ads-mobile {
    display: none !important;
  }
  
  .entry-content h2 {
    background-color: transparent !important;
    color: #000 !important;
    border-bottom: 2px solid #007bff !important;
  }
}


/* ========================================
   위젯이 UL/LI 그리드를 쓴다면(많이 씀) 보호 규칙 추가
   ======================================== */
/* 위젯 카드 리스트 강제 보호 */
.brand-comparison-widget ul,
.brand-comparison-widget li {
  list-style: none !important;
  display: block !important; /* 카드가 li일 때 flex 덮어쓰기 방지 */
  padding: 0 !important;
  margin: 0 !important;
}