/* Shared layout — mirrors eb4_basic_a/custom.css */

header { position: relative; z-index: 20; }

header > .inner_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  min-height: 100px;
}

header .award {
  flex-shrink: 0;
}

header .award img {
  display: block;
  width: auto;
  height: auto;
  max-height: 101px;
}

header h1.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(320px, 60vw);
  text-align: center;
}

header h1.logo a {
  display: block;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--main-color);
}

header h1.logo a small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #888;
  margin-top: 4px;
}

header .gnb { background: var(--main-color); }

header .gnb ul {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

header .gnb ul li a {
  display: block;
  padding: 16px 8px;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 20px);
  color: #fff;
  transition: opacity 0.2s;
}

header .gnb ul li a:hover { opacity: 0.85; }

/* Visual / Hero */
section.visual { position: relative; overflow: hidden; }

section.visual .view_box {
  position: relative;
  height: var(--hero-height, 420px);
}

section.visual .visual_slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

section.visual .visual_slide.active { opacity: 1; z-index: 1; }

section.visual .visual_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.visual .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

section.visual .hero-dots button {
  width: 14px;
  height: 14px;
  border: 1px solid #fff;
  border-radius: 99px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s;
}

section.visual .hero-dots button.active {
  width: 32px;
  background: var(--main-color);
  border-color: var(--main-color);
}

/* Main counsel */
section.main_counsel { padding-top: 28px; }

section.main_counsel .form_wrap {
  border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--main-color) 12%, #fff), #fff 55%),
    url('../assets/counsel-bg.svg') no-repeat 8% center;
  background-size: auto 100%, cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

section.main_counsel .form_inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 110px;
  padding: 20px 24px 20px min(42%, 320px);
}

section.main_counsel .form_inner .inp_wrap input {
  width: min(230px, 100%);
  height: 48px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

section.main_counsel .form_inner .send { flex: 1; min-width: 180px; }

section.main_counsel .form_inner .send input {
  display: block;
  width: 100%;
  padding: 18px 0;
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  border: none;
  border-radius: 10px;
  background: var(--main-color);
  cursor: pointer;
}

/* YouTube */
section.youtube { padding-top: 56px; }

section.youtube h2,
section.review h2,
section.hot h2,
section.find h2,
section.partner h2,
section.car_list h2 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 35px);
  text-align: center;
}

section.youtube h2 span,
section.review h2 span,
section.hot h2 span,
section.find h2 span,
section.partner h2 span,
section.car_list h2 span {
  font-weight: 800;
  color: var(--main-color);
}

.video_container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 24px auto 0;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: #000;
}

.video_container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Review */
section.review { padding-top: 56px; }

section.review .desc {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--main-color);
  text-align: center;
}

section.review .view_box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

section.review .list {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

section.review .list:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

section.review .list img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

section.review .list p {
  margin: 0;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Review slider (카픽 cases-slider 패턴) */
section.review .cases-slider {
  position: relative;
  margin-top: 4px;
}

section.review .cases-slider__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 52px 16px;
  scroll-padding-inline: 52px;
}

section.review .cases-slider__track::-webkit-scrollbar { display: none; }

section.review .cases-slider__item {
  flex: 0 0 min(320px, calc(100% - 48px));
  scroll-snap-align: start;
}

section.review .cases-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--main-color, #1e88e5);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

section.review .cases-slider__nav:hover {
  background: var(--main-color, #1e88e5);
  border-color: var(--main-color, #1e88e5);
  color: #fff;
}

section.review .cases-slider__nav--prev { left: 0; }
section.review .cases-slider__nav--next { right: 0; }

section.review .review-slide-card {
  display: block;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

section.review .review-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

section.review .review-slide-card__photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f5;
}

section.review .review-slide-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

section.review .review-slide-card:hover .review-slide-card__photo img {
  transform: scale(1.05);
}

section.review .review-slide-card__header {
  padding: 14px 18px;
  background: var(--main-color, #1e88e5);
  color: #fff;
}

section.review .review-slide-card__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 4px;
}

section.review .review-slide-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

section.review .review-slide-card__body {
  padding: 16px 18px;
}

section.review .review-slide-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

section.review .review-more-link {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  section.review .cases-slider__track {
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  section.review .cases-slider__nav { display: none; }

  section.review .cases-slider__item {
    flex: 0 0 min(280px, calc(100vw - 48px));
  }
}

/* AI Hot */
section.hot { padding-top: 56px; }

section.hot .info_wrap ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

section.hot .info_wrap li {
  flex: 1 1 calc(50% - 6px);
  border: 2px solid #111;
  border-radius: 999px;
}

section.hot .info_wrap li a {
  display: block;
  padding: 14px 20px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
}

section.hot .info_wrap li:nth-child(even) a { color: var(--main-color); }

/* Find car */
section.find { padding: 56px 0; }

section.find .info_wrap {
  display: flex;
  overflow: hidden;
  border: 1px solid #bcbcbc;
  border-radius: 16px;
  min-height: 360px;
}

section.find .tab_wrap {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  background: #fafafa;
}

section.find .tab_wrap button {
  position: relative;
  flex: 1;
  min-height: 100px;
  padding: 20px 16px 20px 32px;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
  border: none;
  border-right: 1px solid #bcbcbc;
  background: #fafafa;
  cursor: pointer;
  color: #333;
}

section.find .tab_wrap button + button { border-top: 1px solid #bcbcbc; }

section.find .tab_wrap button.active {
  background: #fff;
  font-weight: 700;
  padding-left: 36px;
}

section.find .tab_wrap button.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--main-color);
}

section.find .content_wrap {
  flex: 1;
  position: relative;
  padding: 24px;
  background: #fff;
}

section.find .tab { display: none; }
section.find .tab.active { display: block; }

section.find .tab1 .ko_car {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

section.find .tab1 ul {
  display: flex;
  flex-wrap: wrap;
}

section.find .tab1 ul li {
  width: calc(100% / 6);
  padding: 8px 4px;
  text-align: center;
}

section.find .tab1 ul li img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 4px;
}

section.find .tab1 ul li p,
section.find .tab2 ul li p {
  margin: 4px 0 0;
  font-size: 13px;
}

section.find .tab2 ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

section.find .tab2 ul li {
  width: calc(25% - 12px);
  text-align: center;
}

section.find .tab2 ul li img {
  width: 64px;
  margin: 0 auto;
}

section.find .tab3 .find-price-range {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 4px 4px;
}

section.find .find-price-range__readout {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #222;
}

section.find .find-price-range__readout strong {
  font-weight: 800;
  color: var(--main-color);
}

section.find .find-price-range__sep {
  margin: 0 6px;
  color: #888;
}

section.find .find-price-range__unit {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

section.find .find-price-range__track-wrap {
  position: relative;
  height: 36px;
  margin-bottom: 16px;
}

section.find .find-price-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  background: #e5e5e5;
}

section.find .find-price-range__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--main-color);
}

section.find .find-price-range__range {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 36px;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

section.find .find-price-range__range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

section.find .find-price-range__range::-moz-range-track {
  height: 6px;
  background: transparent;
}

section.find .find-price-range__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

section.find .find-price-range__range::-moz-range-thumb {
  pointer-events: all;
  width: 22px;
  height: 22px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

section.find .find-price-range__range--max {
  z-index: 2;
}

section.find .find-price-range__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

section.find .find-price-range__fields {
  display: flex;
  align-items: center;
  gap: 6px;
}

section.find .find-price-range__fields input[type="number"] {
  width: 72px;
  padding: 8px 6px;
  font-size: 15px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
}

section.find .find-price-range__search {
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  border: none;
  border-radius: 999px;
  background: var(--main-color);
  cursor: pointer;
}

section.find .find-price-range__quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

section.find .find-price-range__quick-btn {
  padding: 12px 4px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

section.find .find-price-range__quick-btn:hover,
section.find .find-price-range__quick-btn.active {
  border-color: var(--main-color);
  color: var(--main-color);
  background: color-mix(in srgb, var(--main-color) 8%, #fff);
}

@media (max-width: 768px) {
  section.find .find-price-range__readout { font-size: 18px; }

  section.find .find-price-range__actions {
    flex-direction: column;
    align-items: stretch;
  }

  section.find .find-price-range__fields {
    justify-content: center;
  }

  section.find .find-price-range__search {
    width: 100%;
  }
}

/* Middle banner */
section.middle_ban { padding: 8px 0; }

section.middle_ban img {
  width: 100%;
  border-radius: 12px;
}

/* Car lists */
section.car_list { padding-top: 56px; }
section.car_list.tru_car { padding-bottom: 56px; }

section.car_list .car_wrap { margin-bottom: 28px; }

section.car_list .car_wrap ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

section.car_list .car_wrap li {
  position: relative;
  overflow: hidden;
  border: 1px solid #c1c1c1;
  border-radius: 18px;
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}

section.car_list .car_wrap li:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--main-color) 25%, transparent);
  transform: translateY(-2px);
}

section.car_list .label {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  background: var(--accent-color, var(--main-color));
}

section.car_list .txt_wrap { padding: 12px; }

section.car_list .txt_wrap .tit {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.car_list .opt {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 13px;
  color: #737373;
}

section.car_list .opt .car_pri {
  font-weight: 800;
  font-size: 17px;
  color: var(--main-color);
}

section.car_list a.more {
  display: block;
  width: min(293px, 100%);
  margin: 0 auto;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  text-align: center;
  border-radius: 16px;
  background: var(--main-color);
}

section.partner { padding: 56px 0; }

section.partner .partners-section {
  overflow: hidden;
  padding: 28px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8f8f8, #fff);
  border: 1px solid #eee;
}

section.partner .marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

section.partner .marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: partner-marquee-scroll 45s linear infinite;
  will-change: transform;
}

section.partner .marquee__track:hover {
  animation-play-state: paused;
}

section.partner .marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 44px;
}

section.partner img.marquee__logo {
  flex: none;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 124px !important;
  max-height: 34px !important;
  object-fit: contain;
  object-position: center;
}

@keyframes partner-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section.partner .partner_logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
}

section.partner .partner_logos span {
  font-weight: 700;
  font-size: 15px;
  color: #555;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

section.process {
  height: 320px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('https://images.unsplash.com/photo-1489824910669-565e997bf5b?w=1400&h=400&fit=crop') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

section.process .steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  padding: 0 16px;
}

section.process .step {
  flex: 1 1 140px;
  max-width: 160px;
  padding: 20px 12px;
  text-align: center;
  color: #fff;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

section.process .step strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--accent-color, #fff);
}

section.process .step span { font-size: 13px; opacity: 0.9; }

.mock-badge {
  position: fixed;
  top: 52px;
  right: 12px;
  z-index: 9999;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  section.review .view_box,
  section.car_list .car_wrap ul {
    grid-template-columns: repeat(2, 1fr);
  }

  section.find .info_wrap { flex-direction: column; }

  section.find .tab_wrap {
    flex-direction: row;
    width: 100%;
  }

  section.find .tab_wrap button {
    flex: 1;
    min-height: auto;
    padding: 14px 12px 14px 28px;
    font-size: 14px;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #bcbcbc;
  }

  section.find .tab_wrap button.active {
    padding-left: 32px;
  }

  section.find .tab_wrap button + button { border-top: none; border-left: 1px solid #bcbcbc; }

  section.main_counsel .form_inner { padding-left: 24px; }
}

@media (max-width: 520px) {
  section.review .view_box,
  section.car_list .car_wrap ul {
    grid-template-columns: 1fr;
  }

  section.hot .info_wrap li { flex: 1 1 100%; }
}
