/* =========================================================
   Case Studies – Clean & Consolidated Stylesheet (FINAL)
   ========================================================= */


/* ===== Grid Layout ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  row-gap: 4rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Case Card ===== */
.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.0rem 1.1rem;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-left: 4px solid #6366f1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: #6366f1;
}

/* ===== Card Content ===== */
.case-card h2 {
  margin: 0.35rem 0;
  font-size: 1.1rem;
  line-height: 1.45;
}

.case-card p {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.95rem;
  color: #374151;
  flex-grow: 1;
}

/* ===== Tags ===== */
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.case-tags .tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  letter-spacing: 0.03em;
  transition: background-color 0.15s ease,
              color 0.15s ease,
              transform 0.15s ease;
}

.case-card:hover .case-tags .tag {
  background: #e0e7ff;
  color: #1e3a8a;
  transform: translateY(-1px);
}

/* ===== Optional Meta ===== */
.case-card .label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #64748b;
}

.case-card .date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ============================
   EDA Portfolio – Typography
   ============================ */

.eda-portfolio ul li {
  line-height: 2.0;
  margin-bottom: 0.6em;
}

.eda-portfolio ul li a {
  font-size: 1.15rem;
}

main.eda-portfolio > p:first-of-type {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #374151;
}

main.eda-portfolio {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ============================
   Header (Hero) fine tuning
   ============================ */

header .container {
  max-width: 1400px;
}

header h1 {
  font-size: 2.6em;
  line-height: 1.2;
}

header p {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 0.7em;
}

/* =================================================
   Global navigation (FINAL – all pages)
   ================================================= */

/* Base */
nav a,
.site-nav a {
  text-decoration: none;
  color: #2563eb;
}

/* Hover */
nav a:hover,
.site-nav a:hover {
  text-decoration: underline;
}

/* Active */
nav a.active,
.site-nav a.active {
  color: #0f172a;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
  text-decoration: none;
}

.site-nav {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 2.5rem;
}


/* ============================
   Hero layout (Option A)
   ============================ */

.hero-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr; /* text : brand */
  align-items: center;
  gap: 2.5rem;
}

/* Left text block */
.hero-text {
  max-width: 760px;
}

/* Right brand block */
.hero-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Pavix logo tuning for Mobile*/
.hero-brand img {
  max-width: 260px;
  opacity: 0.88;              /* 핵심: 절제된 존재감 */
  filter: brightness(1.15) contrast(1.05);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    justify-content: flex-start;
    margin-top: 2rem;
  }

  .hero-brand img {
    max-width: 180px;
  }
}

.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 3rem 2rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.75;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09); /* 핵심 */
}

.footer-brand img {
  height: 24px;
  opacity: 1.0;
  filter: brightness(1.8) contrast(1.3);
}

.footer-brand p {
  font-size: 0.85rem;
  margin: 0;
  color: #94a3b8;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.case-framework {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.2rem 0 2rem;
  opacity: 0.8;
}

.case-framework img {
  height: 22px;
}

.case-framework span {
  font-size: 0.8rem;
  color: #475569;
  letter-spacing: 0.02em;
}

/* ============================
   Sales – Selected Case Studies list
   ============================ */

.selected-case-studies ul {
  margin-top: 1.2rem;
  padding-left: 1.2rem;
}

.selected-case-studies li {
  margin-bottom: 0.8rem;      /* 줄 간격 */
  line-height: 1.7;           /* 가독성 핵심 */
}

/* 링크 기본 */
.selected-case-studies li a {
  text-decoration: none;
  color: #2563eb;
  transition: color 0.15s ease, background-color 0.15s ease;
}

/* hover 시 살짝 강조 */
.selected-case-studies li a:hover {
  background-color: rgba(37, 99, 235, 0.08);
  border-radius: 4px;
}

/* ============================
   Footer Pavix logo – FIX
   ============================ */

.site-footer .footer-brand img {
  height: 26px !important;
  width: auto !important;
  max-width: none !important;
}

/* ============================
   Featured Star Badge (Auto)
   ============================ */

.case-card.featured {
  position: relative;
}

.case-card.featured::before {
  content: "⭐";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.1rem;
  line-height: 1;
  z-index: 3;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

/* ============================
   Hero text hover effect
   ============================ */

.hero-line {
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.hero-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.25s ease;
}

/* Hover effect */
.hero-line:hover p {
  color: #ffffff;
  transform: scale(1.03);
}

/* Optional subtle background highlight */
.hero-line:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.case-context {
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
}

.case-context ul {
  margin-top: 0.5rem;
}

.case-context li {
  margin: 0.4rem 0;
}

/* About → Comparison → Case Study flow */
.case-flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.flow-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.flow-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.flow-step strong {
  display: block;
  font-size: 0.95rem;
}

.flow-step p {
  margin: 0.2rem 0 0.3rem;
  font-size: 0.85rem;
  color: #475569;
}

.flow-step a {
  font-size: 0.85rem;
}

.flow-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
}

/* Highlight current step in flow */
.case-flow .flow-step.current {
  background: #e0f2fe;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
}

.case-flow .flow-step.current .flow-icon {
  color: #2563eb;
}

.case-flow .flow-step.current strong {
  color: #2563eb;
}

.featured-case {
  margin: 30px 0;
}

.case-card {
  border: 1px solid #ddd;
  border-left: 6px solid #2c6bed;
  padding: 18px 20px;
  background-color: #f9fbff;
}

.case-card h3 {
  margin-top: 0;
}

.case-card a {
  font-weight: bold;
  color: #2c6bed;
  text-decoration: none;
}

/* ============================
   Document pages (Advanced Node)
   ============================ */

main.doc-content {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 3.5rem;
  box-sizing: border-box;
}

/* 문서용 기본 타이포그래피 보정 */
main.doc-content p,
main.doc-content li {
  line-height: 1.75;
  font-size: 1rem;
}

main.doc-content h1,
main.doc-content h2 {
  margin-top: 2.2rem;
}

:target {
  background-color: #fff3cd;
}

.hover-highlight {
  background-color: #ffe9a8;
}

/* Highlight only intended summary blocks */
.case-context:last-of-type {
  background: #f8fafc;
  border-left: 4px solid #1e3a8a;
}

section ul {
  border-left: none;
}

<style>
  li { margin-bottom: 10px; }
  .section-gap { margin-top: 22px; }
</style>


