/* ============================================================
   더프라임 소개 페이지 — primelaw.co.kr
   fi- 접두사 | Elementor 네이티브 위젯 구성
   Cleaned: pl-shared.css handles hero-glow (::before), hero (::after),
   title-label (fi-label)
   NOTE: fi- sections use unique selectors, NOT mapped to pl-sep-gold/light
   fi-cta has unique CTA pattern (not fully pl-cta)
   ============================================================ */

body.page-id-13157 { background-color: #050E24 !important; }

/* Global — top-level section containers only */
.elementor-13157 { gap: 0 !important; }
.elementor-13157 > .e-con {
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
body.page-id-13157, body.page-id-13157 .site-main, body.page-id-13157 .entry-content,
.page-id-13157 .elementor, .page-id-13157 .elementor-inner {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* ============================================================
   HERO — pl-hero-glow handles ::before, pl-hero handles ::after
   ============================================================ */
/* Hero h1 em — gold color */

/* ============================================================
   SECTION LABEL — pl-title-label handles decorative side lines
   ============================================================ */
/* Left-aligned label variant — page-specific */
.fi-label-left .elementor-widget-container { text-align: left; }
.fi-label-left .elementor-heading-title { padding: 0 20px 0 0; }
.fi-label-left .elementor-heading-title::before { display: none; }

/* ============================================================
   Section separator lines — page-specific selectors
   (NOT mapped to pl-sep-gold/light as they use unique class names)
   ============================================================ */
.fi-philosophy-section { position: relative; }
.fi-philosophy-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}
.fi-difference-section { position: relative; }
.fi-difference-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,80,0.2), transparent);
}
.fi-concept-section { position: relative; }
.fi-concept-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}
.fi-services-dark-section { position: relative; }
.fi-services-dark-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,80,0.2), transparent);
}
.fi-services-light-section { position: relative; }
.fi-services-light-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
}
.fi-location-section { position: relative; }
.fi-location-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}
.fi-cta-section { position: relative; }
.fi-cta-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,80,0.2), transparent);
}

/* ============================================================
   PHILOSOPHY — image & highlight
   ============================================================ */
.fi-philo-image .elementor-widget-container img {
  width: 100% !important; display: block;
  min-height: 480px; object-fit: cover;
}
.fi-highlight { color: #D4A850; font-weight: 700; }
/* h2 em gold */
.fi-philosophy-section .elementor-heading-title em {
  font-style: normal; color: #D4A850;
}

/* ============================================================
   DIFFERENCE — card hover, image
   ============================================================ */
.fi-diff-card { transition: all 0.35s; }
.fi-diff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,168,80,0.2) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.fi-diff-img-wrap { position: relative; }
.fi-diff-img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, #050E24, transparent);
  pointer-events: none;
}
.fi-diff-img .elementor-widget-container img {
  width: 100% !important; height: 240px !important;
  object-fit: cover; display: block;
}
.fi-diff-card .elementor-text-editor strong {
  color: #fff; font-weight: 700;
}

/* ============================================================
   CONCEPT — comparison table (HTML in text-editor)
   ============================================================ */
.fi-compare-wrap {
  max-width: 100%; margin: 0 auto;
}
.fi-compare-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(212,168,80,0.2);
}
.fi-compare-table th, .fi-compare-table td {
  padding: 28px 20px; text-align: center;
  font-size: 17px; position: relative;
}
.fi-compare-table thead th {
  background: #050E24; color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(212,168,80,0.15);
}
.fi-compare-table thead th.highlight {
  background: linear-gradient(135deg, #D4A850, #b8923a);
  color: #050E24; font-weight: 800; font-size: 18px; letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(212,168,80,0.3);
}
.fi-compare-table tbody td {
  background: #fff; color: #666; font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.fi-compare-table tbody td:first-child {
  background: #f5f4f0; color: #0a0a0a;
  font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
}
.fi-compare-table tbody td.highlight {
  background: linear-gradient(180deg, rgba(212,168,80,0.06), rgba(212,168,80,0.14));
  color: #050E24; font-weight: 800; font-size: 19px;
}
.fi-compare-table tbody td.highlight .check {
  display: inline-block; color: #D4A850;
  margin-right: 8px; font-size: 20px; font-weight: 900;
}
.fi-compare-table tbody tr:last-child td { border-bottom: none; }
/* gold side glow */
.fi-compare-table thead th.highlight::before,
.fi-compare-table tbody td.highlight::before {
  content: ''; position: absolute; top: 0; left: -1px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #D4A850, rgba(212,168,80,0.3));
}
.fi-compare-table thead th.highlight::after,
.fi-compare-table tbody td.highlight::after {
  content: ''; position: absolute; top: 0; right: -1px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, #D4A850, rgba(212,168,80,0.3));
}
/* row hover */
.fi-compare-table tbody tr { transition: background 0.2s; }
.fi-compare-table tbody tr:hover td { background: #fafaf8; }
.fi-compare-table tbody tr:hover td.highlight {
  background: linear-gradient(180deg, rgba(212,168,80,0.12), rgba(212,168,80,0.22));
}
.fi-compare-table tbody tr:hover td:first-child { background: #eeedea; }

/* ============================================================
   SERVICE CARDS — hover effects
   ============================================================ */
.fi-svc-card { transition: transform 0.35s; }
.fi-svc-card:hover { transform: translateY(-6px); }

/* ============================================================
   LOCATION — list styling
   ============================================================ */
.fi-loc-info { list-style: none; padding: 0; margin: 0; }
.fi-loc-info li {
  color: #555; font-size: 14px; line-height: 1.7;
  padding: 6px 0 6px 24px; position: relative;
  text-align: left !important;
}
.fi-loc-info li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 5px; height: 1px; background: #D4A850;
}
.fi-loc-info li strong {
  color: #0a0a0a; font-weight: 600;
  display: inline-block; min-width: 50px;
}

/* ============================================================
   CTA — h2 em gold, button hover
   ============================================================ */
.fi-cta-section .elementor-heading-title em {
  font-style: normal; color: #D4A850;
}
.fi-btn-primary .elementor-button {
  box-shadow: 0 4px 24px rgba(212,168,80,0.25);
  transition: all 0.3s !important;
}
.fi-btn-primary .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,80,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  /* pl-title-label mobile handled by pl-shared.css, but keep width override */
  .fi-label .elementor-heading-title::before,
  .fi-label .elementor-heading-title::after { width: 20px; }
  .fi-philo-image .elementor-widget-container img { min-height: 300px; }
  .fi-diff-img .elementor-widget-container img { height: 200px !important; }
  .fi-compare-wrap { overflow-x: hidden; }
  .fi-compare-table { table-layout: fixed; }
  .fi-compare-table th, .fi-compare-table td { padding: 14px 4px; font-size: 13px; word-break: keep-all; }
  .fi-compare-table thead th { font-size: 13px !important; }
  .fi-compare-table thead th.highlight { font-size: 13px !important; }
  .fi-compare-table thead th:nth-child(1) { width: 18%; }
  .fi-compare-table thead th:nth-child(2) { width: 26%; }
  .fi-compare-table thead th:nth-child(3) { width: 28%; }
  .fi-compare-table thead th:nth-child(4) { width: 28%; }
  .fi-compare-table tbody td:first-child { font-size: 13px; letter-spacing: -0.2px; }
  .fi-compare-table tbody td.highlight { font-size: 14px; }
  .fi-compare-table tbody td.highlight .check { font-size: 14px; margin-right: 4px; }
  .fi-svc-card:hover { transform: none; }
  .fi-diff-card:hover { transform: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .fi-philo-image .elementor-widget-container img { min-height: 400px; }
}
