/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Dec 19 2025 | 07:27:44 */
/* ==========================================================================
   ESIMJAPAN.com Blog Post Styles (Final Master - New Color System)
   ========================================================================== */

/* 1. 디자인 토큰 (CSS 변수) - 신규 컬러 체계 */
:root {
  /* Point Color */
  --ew-post-primary: #FE3835;
  --ew-post-accent-light: #FF706D;
  --ew-post-accent-bg: #FFE7E6;
  
  /* Navy Scale */
  --ew-post-navy-900: #171940; /* Main Headlines */
  --ew-post-navy-700: #292B4F; /* Body Text */
  --ew-post-navy-500: #45465C; /* Subdued Text */
  --ew-post-navy-300: #8D8EA2; /* Light Accents */
  --ew-post-navy-100: #D9DAE1; /* Borders */
  --ew-post-navy-50: #F1F1F8;   /* Alt Backgrounds */

  /* Gray Scale */
  --ew-post-gray-900: #222222;
  --ew-post-gray-100: #F4F4F4;
  --ew-post-white: #FFFFFF;

  /* System Colors */
  --ew-post-system-red: #FF6262;
  --ew-post-system-green: #3CD386;

  /* Non-color tokens */
  --ew-post-radius-lg: 16px; --ew-post-shadow-md: 0 8px 28px rgba(0,0,0,.08);
  --ew-post-space-2: 8px; --ew-post-space-3: 12px; --ew-post-space-4: 16px;
  --ew-post-space-5: 20px; --ew-post-space-6: 24px; --ew-post-space-8: 32px;
  --ew-post-space-9: 36px;
  --ew-post-h1: clamp(28px, 5vw, 40px);
  --ew-post-h2: 28px;
  --ew-post-h3: 20px;
  --ew-post-h4: 18px; /* H4 폰트 크기를 18px로 명확히 정의 */
  --ew-post-body: 16px;
  --ew-post-small: 14px;
}
/* 2. 기본 레이아웃 및 타이포그래피 (Heading Hierarchy 수정) */
.ew-post { color: var(--ew-post-navy-700); font-size: var(--ew-post-body); }
.ew-post .post-title { font-size: var(--ew-post-h1); line-height: 1.2; color: var(--ew-post-navy-900); letter-spacing: -.02em; margin: 0 0 var(--ew-post-space-3); font-weight: 700; }
.ew-post .post-subtitle { color: var(--ew-post-navy-500); font-size: 18px; margin: var(--ew-post-space-2) 0 var(--ew-post-space-5); font-weight: 500; }
.ew-post h2.wp-block-heading { font-size: var(--ew-post-h2); color: var(--ew-post-navy-900); margin-top: var(--ew-post-space-9); margin-bottom: var(--ew-post-space-4); font-weight: 700; }
.ew-post h3.wp-block-heading { font-size: var(--ew-post-h3); color: var(--ew-post-navy-900); margin-top: var(--ew-post-space-6); margin-bottom: var(--ew-post-space-3); font-weight: 600; }
.ew-post h4.wp-block-heading {
  font-size: var(--ew-post-h4);
  color: var(--ew-post-navy-900);
  margin-top: var(--ew-post-space-5);
  margin-bottom: var(--ew-post-space-2);
  font-weight: 600;
  line-height: 1.5;
}
.ew-post p, .ew-post li { line-height: 1.7; }

/* Bullet point 들여쓰기 추가 */
.ew-post ul {
  padding-left: var(--ew-post-space-6); /* 기존보다 더 안쪽으로 들여쓰기 (24px) */
  margin-bottom: var(--ew-post-space-4); /* 리스트 아래 여백 추가 */
  list-style-type: disc; /* 기본 원형 bullet 유지 */
}

/* ew-info-box 내의 ul도 일반적인 들여쓰기를 따르도록 설정 */
.ew-post .ew-info-box ul {
    padding-left: var(--ew-post-space-6); /* ew-info-box 안에서도 동일하게 들여쓰기 */
    margin-bottom: 0; /* info-box 내에서는 마지막 ul의 여백 제거 */
}

/* ew-pros-cons-box 내의 ul은 기존 padding-left 유지 */
.ew-post .ew-pros-cons-box ul {
    padding-left: var(--ew-post-space-5); /* 기존 20px 들여쓰기 유지 */
    margin-bottom: 0;
}

.ew-post strong { color: var(--ew-post-navy-900); font-weight: 600; }
.ew-post a { color: var(--ew-post-primary); text-decoration: underline; }
.ew-post a:hover { color: var(--ew-post-accent-light); }

/* 3. 컴포넌트 스타일 */
.ew-post .wp-block-button.post-btn .wp-block-button__link { background: var(--ew-post-primary) !important; color: var(--ew-post-white) !important; border-radius: 999px !important; padding: 12px 28px !important; font-weight: 600 !important; font-size: 16px !important; border: none !important; }
.ew-post .wp-block-button.post-btn .wp-block-button__link:hover { background: var(--ew-post-accent-light) !important; }
.ew-post .wp-block-button.post-btn--outline .wp-block-button__link { background: transparent !important; color: var(--ew-post-primary) !important; border: 2px solid var(--ew-post-primary) !important; border-radius: 999px !important; padding: 12px 28px !important; font-weight: 600 !important; }
.ew-post .wp-block-button.post-btn--outline:hover .wp-block-button__link { background: var(--ew-post-primary) !important; color: var(--ew-post-white) !important; }
.ew-post .wp-block-separator { border: none !important; background-color: var(--ew-post-navy-100) !important; height: 1.5px !important; max-width: 100px; margin: var(--ew-post-space-9) auto !important; }


/* Table */
.ew-post figure.wp-block-table.post-table { margin-top: var(--ew-post-space-4); overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--ew-post-white); border-radius: var(--ew-post-radius-lg); padding: 0; border: 1px solid var(--ew-post-navy-100); }
.ew-post figure.wp-block-table.post-table table { min-width: 680px; width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 0; }
.ew-post .post-table th, .ew-post .post-table td { border: none !important; vertical-align: middle; }
.ew-post .post-table thead th { background: var(--ew-post-navy-50); color: var(--ew-post-navy-900); font-weight: 700; padding: 14px 16px; border-bottom: 2px solid var(--ew-post-primary) !important; text-align: left; }
.ew-post .post-table tbody td { padding: 14px 16px; border-top: 1px solid var(--ew-post-navy-100) !important; }


/* Image */
.ew-post figure.wp-block-image { margin: var(--ew-post-space-8) auto; overflow: hidden; border-radius: var(--ew-post-radius-lg); box-shadow: var(--ew-post-shadow-md); border: 1px solid var(--ew-post-navy-100); }
.ew-post figure.wp-block-image img { display: block; width: 100%; height: auto; }
.ew-post figure.wp-block-image figcaption { background-color: var(--ew-post-navy-50); padding: var(--ew-post-space-3) var(--ew-post-space-4); font-size: var(--ew-post-small); color: var(--ew-post-navy-500); text-align: center; border-top: 1px solid var(--ew-post-navy-100); }

.ew-post figure.wp-block-image {
  margin: var(--ew-post-space-8) auto;
  overflow: hidden;
  border-radius: var(--ew-post-radius-lg);
  box-shadow: var(--ew-post-shadow-md);
  border: 1px solid var(--ew-post-navy-100);
  /* --- 이미지 사이즈에 딱 맞도록 추가된 스타일 --- */
  display: table; /* 또는 inline-block, flex 등. 여기서는 table이 적합 */
  /* width: fit-content; 는 IE에서 지원하지 않을 수 있으므로, display: table이 더 안정적입니다. */
  /* --- End of 추가된 스타일 --- */
}
.ew-post figure.wp-block-image img {
  display: block;
  width: 100%; /* 이미지가 부모 너비에 맞춰지도록 유지 */
  height: auto;
}
.ew-post figure.wp-block-image figcaption {
  background-color: var(--ew-post-navy-50);
  padding: var(--ew-post-space-3) var(--ew-post-space-4);
  font-size: var(--ew-post-small);
  color: var(--ew-post-navy-500);
  text-align: center;
  border-top: 1px solid var(--ew-post-navy-100);
  /* --- figcaption도 figure 너비에 맞춰지도록 --- */
  display: table-caption; /* figure가 table일 때 caption처럼 동작 */
  caption-side: bottom; /* 캡션을 아래쪽에 배치 */
  /* --- End of 추가된 스타일 --- */
}

/* 4. 정보 박스 등 추가 스타일 */
.ew-post .ew-info-box { background-color: var(--ew-post-navy-50); padding: var(--ew-post-space-6); border-radius: var(--ew-post-radius-lg); margin: var(--ew-post-space-8) 0; }
.ew-post .ew-info-box h3 { margin-top: 0; }
.ew-post .ew-info-box h2:first-child,
.ew-post .ew-info-box h3:first-child {
	margin-top: 0;}
.ew-post .ew-pros-cons-box { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ew-post-space-6); background-color: var(--ew-post-navy-50); padding: var(--ew-post-space-6); border-radius: var(--ew-post-radius-lg); margin: var(--ew-post-space-4) 0; }
.ew-post .ew-pros-cons-box h4 { margin-top: 0; font-size: var(--ew-post-body); color: var(--ew-post-navy-900); }
.ew-post .ew-pros-cons-box ul { padding-left: var(--ew-post-space-5); margin-bottom: 0; }
.ew-post .ew-pros li,
.ew-post .ew-cons li {white-space: nowrap;
  /* 추가적인 스타일이 필요하다면 여기에 정의 */
}
.ew-post .ew-verdict-box { background: linear-gradient(135deg, var(--ew-post-navy-900), var(--ew-post-navy-700)); color: var(--ew-post-white); padding: var(--ew-post-space-8); border-radius: var(--ew-post-radius-lg); margin: var(--ew-post-space-9) 0; }
.ew-post .ew-verdict-box h2, .ew-post .ew-verdict-box p, .ew-post .ew-verdict-box li, .ew-post .ew-verdict-box strong { color: var(--ew-post-white) !important; }

/* 5. 반응형 스타일 */
@media (max-width: 768px) {
  .ew-post .ew-pros-cons-box,
  .ew-post .post-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA Banner Component (Responsive Button Padding)
   ========================================================================== */

.ew-post .ew-cta-banner {
    background: linear-gradient(135deg, var(--ew-post-navy-900), var(--ew-post-navy-700));
    color: var(--ew-post-white);
    border-radius: var(--ew-post-radius-lg);
    padding: var(--ew-post-space-8);
    margin: var(--ew-post-space-9) 0;
    display: flex;
    flex-direction: column; /* Mobile first */
    align-items: flex-start;
    gap: var(--ew-post-space-4);
}

.ew-post .ew-cta-banner h2,
.ew-post .ew-cta-banner p {
    margin: 0;
    color: var(--ew-post-white) !important;
}

.ew-post .ew-cta-banner .wp-block-buttons {
    width: 100%; /* Mobile: full width button */
}

/* Desktop layout for the banner */
@media (min-width: 768px) {
    .ew-post .ew-cta-banner {
        flex-direction: row; /* Desktop: side-by-side */
        justify-content: space-between;
        align-items: center;
        text-align: left; /* 텍스트 왼쪽 정렬 */
    }
    .ew-post .ew-cta-banner .wp-block-buttons {
        width: auto; /* Desktop: auto width button */
        margin: 20px 0px 0px 0px;
        flex-shrink: 0; /* 버튼이 줄어들지 않도록 함 */
    }
}

/* ==========================================================================
   Link Color Override
   ========================================================================== */

/* .ew-post 내부의 모든 링크 색상을 포인트 컬러로 변경 */
.ew-post a {
    color: var(--ew-post-primary);
    text-decoration: underline; /* 사용자가 링크임을 인지하도록 밑줄 추가 */
    transition: color 0.2s ease;
}

/* 링크에 마우스를 올렸을 때 색상을 더 밝게 변경 */
.ew-post a:hover {
    color: var(--ew-post-accent-light);
}