/* =========================================================
   STUDIO HAEIN - Main Stylesheet (Blue tone)
   - Main page layout inspired by hivepartners.co.kr
   - Simple, modular blocks (easy add/remove)
   ========================================================= */

:root {
  /* Light base + blue accents (white mixed like hivepartners) */
  --bg: #ffffff;
  --surface: #f6f8ff;
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.68);
  --muted2: rgba(11, 18, 32, 0.52);
  --line: rgba(11, 18, 32, 0.12);

  --blue: #2e5bff;
  --blue2: #0b63ff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 44px rgba(11, 18, 32, 0.14);
  --shadow-soft: 0 10px 28px rgba(11, 18, 32, 0.10);

  --container: 1200px;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.22s ease, border 0.22s ease, backdrop-filter 0.22s ease;
}

body:not(.page-home) .site-header,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: 18px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

/* Home header logo swap (white -> dark on scroll) */
.brand .logo{ height: 18px; width: auto; display: block; }

.brand .logo-dark{ display: none; }
.brand .logo-white{ display: block; }

/* 헤더가 흰색(is-solid)으로 바뀌면 다크 로고로 전환 */
body.page-home .site-header.is-solid .logo-white{ display: none; }
body.page-home .site-header.is-solid .logo-dark{ display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.90);
  transition: background 0.18s ease, color 0.18s ease;
}

body:not(.page-home) .nav-link,
.site-header.is-solid .nav-link {
  color: var(--text);
}


.nav-link:hover {
  background: rgba(11, 18, 32, 0.04);
  color: #0b1220;
}

/* Remove pill highlight on active nav item */
.nav-link.is-active,
.nav-link[aria-current="page"]{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image,
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 20% 25%, rgba(46, 91, 255, 0.22), transparent 60%),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.25), rgba(11, 18, 32, 0.92));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 0 90px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.35;
  margin: 0;
}

.hero-subtitle {
  margin: 16px 0 0;
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  font-size: 15px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  opacity: 0.9;
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.65);
}

.scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0));
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-muted {
  background: var(--surface);
}

.section-head {
  margin-bottom: 26px;
  text-align: center;
}

.section-head-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.02em;
}

.page-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.01em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.text-link {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.02);
}

.text-link:hover {
  color: #0b1220;
  border-color: rgba(46, 91, 255, 0.22);
  background: rgba(46, 91, 255, 0.06);
}

/* Buttons */
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, rgba(46, 91, 255, 0.96), rgba(11, 99, 255, 0.96));
  border-color: rgba(46, 91, 255, 0.28);
  color: #fff;
}

.btn-ghost {
  background: rgba(11, 18, 32, 0.04);
  color: #0b1220;
}

/* Hero buttons (readable on dark overlay) */
.hero .btn-ghost {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 91, 255, 0.22);
  box-shadow: var(--shadow);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-body {
  padding: 16px 16px 18px;
}

.portfolio-kicker {
  margin: 0 0 10px;
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.portfolio-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Portfolio page: bring content up a bit */
body.portfolio-page .section{
  padding-top: 70px;  /* 기본보다 위로 올림 (60~80 사이로 조절) */
}

/* SKILL */
.icon-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 520px){
  .icon-row{
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .brand .logo{ height: 14px; }
}

.icon-block{
  width: 160px;   /* 카드 폭 고정 */
  text-align: center;
}

.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(11,18,32,0.10);
  transition: transform 0.18s ease, border 0.18s ease, box-shadow 0.18s ease;
}

.icon-circle span {
  font-size: 20px;
}

.icon-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.icon-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  margin: 18px 0 20px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border 0.18s ease, color 0.18s ease;
}

.filter-btn.is-active {
  background: rgba(46, 91, 255, 0.10);
  color: #0b1220;
  border-color: rgba(46, 91, 255, 0.22);
}

/* Scroll to top */
#scrollToTop {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  background-color: rgba(255,255,255,0.86);
  background-image: url('../image/up-arrow.jpg');
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: block;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
  z-index: 999;
}

#scrollToTop:hover {
  filter: brightness(92%);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav-link { font-size: 12px; padding: 10px 6px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; }
  .story-list { grid-template-columns: 1fr; }
  .story-list-item { grid-template-columns: 1fr; }
}

.icon-block:hover .icon-circle {
  transform: translateY(-2px);
  border-color: rgba(46, 91, 255, 0.26);
  box-shadow: 0 16px 44px rgba(11,18,32,0.14);
}


#services {
  background: var(--accent-band);
}

.story-card .story-excerpt,
.story-card .story-meta { display: none; }

/* About */
.about-page{
  background: #000;
  color: #fff;
}

.about-hero{
  padding: 80px 0 80px;
}

.about-wrap{
  position: relative;
}

.about-title{
  margin: 0 0 85px;
  font-size: 44px;
  letter-spacing: 0.38em; /* 이미지처럼 띄움 */
  font-weight: 800;
}

/* 3 columns layout */
.about-grid{
  display: grid;
  grid-template-columns: 260px 1fr 520px;
  gap: 54px;
  align-items: start;
}

/* left keywords */
.about-left p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* blocks */
.about-block{
  margin-bottom: 34px;
}

.about-date{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-role{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-section-title{
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
}

/* list */
.about-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.85;
}

/* right lists without bullets 느낌(이미지처럼 더 깔끔) */
.about-list.plain{
  list-style: none;
  padding-left: 0;
}

.about-list.plain li{
  padding-left: 0;
  margin-bottom: 6px;
}

.nowrap{
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px){
  .about-grid{
    grid-template-columns: 220px 1fr;
  }
  .about-right{
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px){
  .about-hero{
    padding: 90px 0 60px;
  }
  .about-title{
    font-size: 34px;
    margin-bottom: 34px;
  }
  .about-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .nowrap{ 
    white-space: normal; 
  }
}

 .about-ul {
  margin: 0;
  padding: 0;
}

.meta-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.meta-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted2);
}

.meta-value {
  margin: 6px 0 0;
  font-weight: 700;
}

.about-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-card {
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-card-title {
  margin: 0;
  font-size: 16px;
}

.about-card-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
  font-size: 12px;
  color: var(--text);
}

@media (max-width: 980px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-title { font-size: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-cta { justify-content: center; }
}


/* =========================
   TONE SYSTEM (Unified)
   ========================= */
:root{
  --bg: #ffffff;
  --surface: #f6f8ff;
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --muted2: rgba(11,18,32,.52);
  --line: rgba(11,18,32,.12);

  --primary: #2e5bff;
  --primary-dk: #0b1b3a;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(11,18,32,.12);

  --section-py: 96px;
  --container: 1120px;
}

/* Global tone */
body{ background: var(--bg); color: var(--text); }
.section{ padding: var(--section-py) 0; }

.section-title, .page-title{
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-desc{ color: var(--muted); line-height: 1.8; }

.portfolio-card,
.story-list-item{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.portfolio-card:hover,
.story-list-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(46,91,255,.22);
}

.btn{ border-radius: 999px; font-weight: 700; }
.btn-primary{
  background: var(--primary-dk);
  border: 1px solid rgba(255,255,255,.16);
}
.btn-primary:hover{ transform: translateY(-1px); }

/* What I Do (services) — dark band + white text */
#services{
  background: var(--primary-dk) !important;
  color: #fff;
}
#services .section-title{ color:#fff; }
#services .section-desc,
#services .icon-desc{ color: rgba(255,255,255,.82); }
#services .icon-title{ color:#fff; }

#services .icon-circle{
  background:#fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.skill-icon{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.skill-emoji{
  font-size: 28px;
  line-height: 1;
}

/* ===== Footer (dark) cleaned ===== */
.site-footer{
  background: #1f1f1f;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 28px 0;
}

/* PC: 로고 / 메일라인 / 링크 3칸 */
.site-footer .footer-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "left mail links";
  align-items: center;
  gap: 18px;
}

.site-footer .footer-brand img{
  height: 18px;   /* 16~22px 취향껏 */
  width: auto;
  display: block;
  opacity: 0.95;
}

.site-footer .footer-left{ grid-area: left; }

/* ✅ E-MAIL + 주소를 한 줄로 */
.site-footer .footer-mailline{
  grid-area: mail;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 48px;
}

.site-footer .footer-copy{
  margin: 0;
  color: rgba(255,255,255,.70);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-footer .footer-email{
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* links */
.site-footer .footer-links{
  grid-area: links;
  display: flex;
  gap: 10px;
  justify-self: end;
}

.site-footer .footer-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.28);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.site-footer .footer-links a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

@media (max-width: 720px){
  .site-footer .footer-mailline{ margin-left: 0; }
}

/* mobile: 로고 아래에 메일라인이 한 줄로 */
@media (max-width: 720px){
  .site-footer .footer-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "mail"
      "links";
    gap: 12px;
  }

  .site-footer .footer-links{
    justify-self: start;
  }
}

/* Footer bottom copyright */
.site-footer .footer-bottom{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}

.site-footer .footer-bottom p{
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ===== Intro (before portfolio) ===== */
.intro{
  padding: 60px 0 80px; /* 위는 여유, 아래는 포트폴리오와 자연스럽게 */
}

.intro-inner{
  display: grid;
  grid-template-columns: 360px minmax(0, 640px);
  gap: 36px;
  align-items: center;

  width: fit-content;   /* ✅ 내용 너비만큼만 */
  margin: 0 auto;       /* ✅ 가운데 배치 */
}

/* Left photo */
.intro-photo{
  width: 100%;
  aspect-ratio: 1 / 1;        /* 정사각형 틀 */
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.06); /* 사진 없을 때도 예쁘게 */
  border: 1px solid rgba(255,255,255,.10);
}

.intro-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 사진 꽉 차게 */
  display: block;
}

/* Right text */
.intro-title{
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.intro-desc{
  margin: 0;
  max-width: 72ch;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;                   /* 15 -> 14 */
  letter-spacing: -0.01em;           /* ✅ 자간 아주 살짝 좁힘 */
  word-break: keep-all;
  max-width: none;                   /* 줄 일찍 끊김 방지(유지) */
}

/* 모바일 */
@media (max-width: 980px){
  .intro{
    padding: 70px 0 26px;
  }
  .intro-inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .intro-photo{
    max-width: 300px;
  }
  .intro-title{
    font-size: 30px;
  }
}

:root{ --header-h: 72px; }
.site-header{ height: var(--header-h); }

/* 홈 제외하고만 적용 */
body:not(.page-home){
  padding-top: var(--header-h);
}

@media (max-width: 520px){
  :root{ --header-h: 64px; }
}

/* ===== Mobile: center align (Home + Footer) ===== */
@media (max-width: 720px){

  /* HERO 텍스트 가운데 */
  body.page-home .hero-content{
    text-align: center;
  }

  body.page-home .hero-eyebrow{
    text-align: center;
    width: 100%;
  }

  body.page-home .hero-title{
    text-align: center;
  }

  body.page-home .hero-subtitle{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* 자기소개(이미지+텍스트) 가운데 */
  body.page-home .intro-inner{
    justify-items: center;
    text-align: center;
  }
  body.page-home .intro-photo{
    margin: 0 auto;
  }
  body.page-home .intro-desc{
    margin-left: auto;
    margin-right: auto;
  }

  /* 푸터(로고/메일/버튼/카피라이트) 가운데 */
  .site-footer .footer-inner{
    justify-items: center;
    text-align: center;
  }
  .site-footer .footer-left{
    justify-self: center;
  }
  .site-footer .footer-mailline{
    justify-self: center;
    justify-content: center;
  }
  .site-footer .footer-links{
    justify-self: center;
    justify-content: center;
  }
  .site-footer .footer-bottom{
    text-align: center;
  }
}

/* ===== Page hero (same spacing as portfolio list) ===== */
/* page-hero는 전체폭 중앙 */
.page-hero{
  padding: 78px 0 54px;
  text-align: center;
}

.page-hero-title{ 
  margin:0;
  font-size:34px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif !important;
  font-weight:900 !important;
  letter-spacing: -0.02em !important;
}

.page-hero-sub{ 
  margin:12px 0 0;
  font-size:14px;
}

.page-hero h1{
  all: unset;
  display: block;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  text-align: center;
}

/* ✅ 2칼럼 레이아웃: 왼쪽 영상 / 오른쪽 추천 */
.video-layout{
  display: flex;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

/* left: video */
.video-section{
  flex: 1 1 auto;        /* ✅ 남는 공간을 최대한 먹음 */
  min-width: 0;          /* ✅ iframe/긴 텍스트 때문에 폭 깨지는 것 방지 */
}

/* right: recommend */
.recommend-section{
  flex: 0 0 280px;       /* ✅ 오른쪽 고정 폭 (260~320 사이로 조절) */
  width: 280px;
}

/* video wrapper should be full width */
.youtube-wrapper{
  width: 100%;
  max-width: none;       /* ✅ 혹시 max-width가 있으면 해제 */
}

/* 모바일에서는 한 줄로(추천영상 아래로) */
@media (max-width: 980px){
  .video-layout{
    flex-direction: column;
  }
  .recommend-section{
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Design detail: action button under image */
.design-actions{
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline -> Filled hover button */
.btn-outline-blue{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 280px;          /* 스샷처럼 길게 */
  padding: 16px 28px;
  border-radius: 999px;

  background: transparent;
  border: 2px solid #0b1b3a; /* 파란 테두리 */
  color: #0b1b3a;            /* 파란 글씨 */

  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;

  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-outline-blue:hover{
  background: #0b1b3a;       /* 파란 배경 */
  color: #fff;               /* 흰 글씨 */
  border-color: #0b1b3a;
  transform: translateY(-1px);
}

.btn-outline-blue:active{
  transform: translateY(0);
}

.btn-outline-blue:focus-visible{
  outline: 3px solid rgba(46,91,255,.35);
  outline-offset: 3px;
}

/* 모바일에서 폭 꽉 차게 */
@media (max-width: 520px){
  .btn-outline-blue{
    width: 100%;
    min-width: 0;
  }
}

/* ===== Design detail nav (arrows + list) ===== */
.detail-nav{
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-icon,
.nav-list{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000; /* 기본 검정 */
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease, opacity .18s ease;
}

.nav-icon:hover,
.nav-list:hover{
  color: #0b1b3a; /* hover 색 */
  transform: translateY(-1px);
}

/* arrows (CSS로 그린 > 모양) */
.icon-arrow{
  width: 18px;
  height: 18px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  display: inline-block;
}

.icon-arrow.left{
  transform: rotate(135deg);
}

.icon-arrow.right{
  transform: rotate(-45deg);
}

/* menu (3 lines) */
.icon-menu{
  width: 26px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.icon-menu::before,
.icon-menu::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
}

.icon-menu::before{ top: 0; }
.icon-menu::after{ bottom: 0; }

/* middle line */
.icon-menu span{
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: currentColor;
  border-radius: 3px;
  transform: translateY(-50%);
}

/* LIST text */
.nav-list{
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 18px;
}

/* disabled state (no next/prev) */
.nav-icon[data-disabled="true"]{
  opacity: .35;
  pointer-events: none;   /* ✅ 클릭해도 변화 없음 */
  transform: none;
}

/* 모바일에서 간격 조금 줄이기 */
@media (max-width: 520px){
  .detail-nav{ gap: 30px; }
}