/*---------------------------------------
  CUSTOM PROPERTIES
-----------------------------------------*/
:root {
  --accent-color: #8e8e8e;
  --font-suit: 'SUIT', 'Noto Sans KR', sans-serif;
  --jakomo-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

  --white-color: #ffffff;
  --primary-color: #1b3b34;
  --section-bg-color: #f9f9f9;
  --dark-color: #000000;
  --grey-color: #fcfeff;
  --text-secondary-white-color: rgba(255, 255, 255, 0.98);
  --title-color: #565758;
  --p-color: #717275;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Noto Sans KR', sans-serif;

  --h1-font-size: 72px;
  --h2-font-size: 42px;
  --h3-font-size: 36px;
  --h4-font-size: 32px;
  --h5-font-size: 24px;
  --h6-font-size: 22px;
  --p-font-size: 20px;
  --copyright-text-font-size: 14px;
  --custom-link-font-size: 12px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

body,
html {
  height: 100%;
}

body {
  background: var(--white-color);
  font-family: var(--body-font-family);
  position: relative;
}

/*---------------------------------------
  TYPOGRAPHY
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1,
h2 {
  font-weight: var(--font-weight-black);
}

h1 {
  font-size: var(--h1-font-size);
  line-height: normal;
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  letter-spacing: 0.5px;
}

.text-secondary-white-color {
  color: var(--text-secondary-white-color);
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

::selection {
  background: var(--dark-color);
  color: var(--white-color);
}

.custom-underline {
  border-bottom: 2px solid var(--white-color);
  color: var(--white-color);
  padding-bottom: 4px;
}

.videoWrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  z-index: -100;
}

.custom-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  background: linear-gradient(to top, #000, transparent 90%);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/*---------------------------------------
  CUSTOM LINK
-----------------------------------------*/
.custom-links {
  max-width: 230px;
}

.custom-link {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.custom-link::after {
  content: '';
  width: 0;
  height: 2px;
  bottom: 0;
  position: absolute;
  left: auto;
  right: 0;
  z-index: -1;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  background: currentColor;
}

.custom-link:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

.custom-link:hover,
.custom-link:hover::after {
  color: var(--white-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

/*---------------------------------------
  NAVIGATION
-----------------------------------------*/

.navbar {
  z-index: 9;
  right: 0;
  left: 0;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 15px;
  padding-left: 15px;
}

.navbar-nav .nav-link::after {
  content: '\f140';
  font-family: bootstrap-icons;
  display: inline-block;
  margin-left: 10px;
  color: var(--primary-color);
  opacity: 0;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  -moz-transition: opacity 0.3s, -moz-transform 0.3s;
  transition: opacity 0.3s, transform 0.3s;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  transform: translateY(10px);
}

.navbar-nav .nav-link:hover::after {
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}

.navbar-nav .nav-link {
  color: var(--p-color);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  position: relative;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
  color: var(--primary-color);
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  transform: translateY(0px);
}

.navbar-nav .nav-item.active .nav-link,
.nav-link:focus,
.nav-link:hover {
  color: var(--dark-color);
}

.nav-link:focus {
  color: var(--p-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded='true'] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon:before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon:after {
  top: 8px;
}

/*---------------------------------------
  HERO
-----------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 992px) {
  .hero {
    height: 100vh;
  }

  .custom-video,
  .news-detail-image {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
  }

  .sticky-wrapper {
    position: relative;
    bottom: 76px;
  }
}

.heroText {
  animation: fadeUp 1.2s ease-in-out;

  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  text-align: center;
}

/*---------------------------------------
  ABOUT & TEAM MEMBERS
-----------------------------------------*/
.about-image,
.team-image {
  width: 100%;
  height: 100%;
  max-height: 635px;
  min-height: 475px;
  object-fit: cover;
}

.team-thumb {
  background: var(--white-color);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 65%;
  padding: 22px 32px 32px 32px;
}

.carousel-control-next,
.carousel-control-prev {
  top: auto;
  bottom: 2.5rem;
}

.carousel-control-prev {
  right: 4rem;
  left: auto;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: var(--dark-color);
  background-size: 50% 50%;
  border-radius: 100px;
  width: 3rem;
  height: 3rem;
}

/*---------------------------------------
  PORTFOLIO
-----------------------------------------*/
.portfolio-thumb {
  position: relative;
  overflow: hidden;
}

.portfolio-info {
  margin: 20px;
}

/*---------------------------------------
  NEWS & EVENTS
-----------------------------------------*/

.news,
.related-news {
  background: var(--section-bg-color);
}

.news-thumb {
  position: relative;
}

.news-category {
  background: var(--white-color);
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  padding: 4px 12px;
  display: inline-block;
}

.news-text-info {
  margin: 0 20px;
}

.news-title {
  margin-top: 15px;
  margin-bottom: 15px;
}

.news-title-link {
  color: var(--title-color);
  display: inline-block;
}

.news-title-link:hover {
  color: var(--dark-color);
}

.portfolio-image,
.news-image {
  display: block;
  transition: transform 0.6s ease-out;
}

.news-image-hover {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding-bottom: 4px;
  height: 100%;
}

.news-image-hover::after {
  content: '';
  width: 0;
  height: 4px;
  bottom: 0;
  position: absolute;
  left: auto;
  right: 0;
  z-index: -1;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  background: #198754;
}

.news-image-hover-warning::after {
  background: #ffc107;
}

.news-image-hover-primary::after {
  background: #0d6efd;
}

.news-image-hover-success::after {
  background: #198754;
}

.news-image-hover:hover::after {
  width: 100%;
  left: 0;
  right: auto;
  z-index: 9;
}

.image-popup:hover .portfolio-image,
.news-image-hover:hover .news-image {
  transform: scale(1.02);
}

.news-two-column {
  min-height: 199px;
  margin-bottom: 16px;
}

.news-two-column .news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-share-link,
.social-share-link + span {
  color: rgba(255, 255, 255, 0.65);
}

/*---------------------------------------
  SECTION
-----------------------------------------*/
.section-padding {
  padding-top: 10rem;
  padding-bottom: 10rem;

  padding-top: 7rem;
  padding-bottom: 7rem;
}

/*---------------------------------------
  CONTACT
-----------------------------------------*/
.contact-info {
  padding: 40px;
}

.contact-form .form-control {
  border-radius: 0;
  font-weight: var(--font-weight-normal);
  padding-top: 12px;
  padding-bottom: 12px;
}

.contact-form button[type='submit'] {
  background: var(--dark-color);
  border: none;
  border-radius: 100px;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  padding: 16px;
  transition: all 0.6s ease-out;
}

.contact-form button[type='submit']:hover {
  background: var(--primary-color);
}

.form-label {
  color: var(--p-color);
  font-weight: var(--font-weight-bold);
}

.map-iframe {
  display: block;
  filter: grayscale(100);
}

/*---------------------------------------
  SITE FOOTER
-----------------------------------------*/
.site-footer {
  background: var(--dark-color);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

.site-footer .custom-link {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--p-font-size);
}

.site-footer .custom-link:hover,
.site-footer .social-icon-link:hover {
  color: var(--white-color);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--copyright-text-font-size);
}

/*---------------------------------------
  SOCIAL ICON
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  display: inline-block;
  vertical-align: top;
  margin-top: 4px;
  margin-bottom: 4px;
  margin-right: 15px;
}

.social-icon-link:hover {
  color: var(--primary-color);
}

/*---------------------------------------
  RESPONSIVE STYLES
-----------------------------------------*/
@media screen and (min-width: 1600px) {
  .news-two-column {
    min-height: 232.5px;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .navbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .section-padding {
    padding-top: 10rem;
    padding-bottom: 10rem;

    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .team-thumb {
    left: 0;
    width: auto;
  }

  .news-two-column {
    height: auto !important;
    min-height: inherit;
  }

  .news .col-12 .news-two-column:first-child {
    margin-bottom: 38px;
  }
}

@media screen and (max-width: 767px) {
  .news-detail-title {
    font-size: 36px;
  }
}

@media screen and (max-width: 360px) {
  h1 {
    font-size: 32px;
  }

  .heroText p {
    font-size: 14px;
  }
}

@media screen and (max-width: 359px) {
  .news-detail-title {
    font-size: 22px;
  }
}
/*--service--*/

.service-card {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

/* ✅ 전체 오버레이 */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.3s ease;
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

/* ✅ 텍스트 아래 정렬 + 초기 상태 숨김 */
.overlay-text {
  position: absolute;
  bottom: -100px; /* 숨겨진 위치 */
  left: 0;
  width: 100%;
  padding: 20px;
  color: #fff;
  z-index: 2;
  text-align: center;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

/* ✅ 호버 시 텍스트 슬라이드 업 */
.service-card:hover .overlay-text {
  bottom: 30px; /* 올라오는 위치 */
  opacity: 1;
}

/* custom-icon */

.sns-floating-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 18px;
  align-items: center;
}

.sns-floating-popup .custom-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.sns-floating-popup .custom-icon:hover {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  .sns-floating-popup {
    top: auto;
    bottom: 20px;
    left: auto;
    flex-direction: column; /* 아이콘 위아래로 정렬 */
    padding: 10px;
    gap: 12px;
  }
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.heroText-left {
  position: absolute;
  left: 8%;
  z-index: 9;
  text-align: left;
  color: #fff;
  opacity: 0;
  animation: slideUp 1.2s ease-out forwards;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* ✅ 그림자 추가 */
}

.hero-text-set1 {
  top: 40%;
  animation-delay: 0.5s;
}

.hero-text-set2 {
  top: 47%;
  animation-delay: 2s;
}

.heroText-left h1 {
  font-size: 70px; /* ✅ 더 크게 */
  font-weight: 900;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* ✅ 그림자 */
}

.heroText-left h2 {
  font-size: 50px; /* ✅ 더 크게 */
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.heroText-left .subtext {
  font-size: 30px;
  font-weight: 500;
  opacity: 0.9;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  .heroText-left {
    left: 6%;
    transform: translateY(-40%);
  }

  .heroText-left h1 {
    font-size: 32px;
  }

  .heroText-left h2 {
    font-size: 24px;
  }

  .heroText-left .subtext {
    font-size: 14px;
  }
}

.heroText-left h1,
.heroText-left h2,
.heroText-left .subtext {
  color: #fff !important;
}

.text-set {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 9;
  text-align: left;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.text-set.active {
  opacity: 1;
  visibility: visible;
}

.text-set .fade-step-1,
.text-set .fade-step-2,
.text-set .fade-step-3 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-set.active .fade-step-1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.text-set.active .fade-step-2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

.text-set.active .fade-step-3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.8s;
}

.aid-about-section {
  background: #fff;
  text-align: center;
  padding: 100px 20px;
}

.aid-about-section .small-title {
  font-size: 14px;
  font-weight: 500;
  color: #777;
}

.aid-about-section .main-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.5;
}

.aid-about-section .subtitle {
  font-size: 16px;
  color: #999;
}

.aid-about-stagger {
  padding: clamp(48px, 7vw, 120px) 0;
}

.about-grid {
  /* 여백 넓게, 고급 느낌 */
  --gapY-lg: 120px; /* 데스크탑 수직 오프셋 강도 */
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary-color, #1b3b34);
  margin-bottom: 4px;
}

.about-title {
  font-family: var(--font-heading, 'Noto Sans KR', sans-serif);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 16px;
  color: #111;
}

.about-item {
  max-width: 420px; /* 카드 폭을 좁혀서 여백 살리기 */
  margin-left: auto;
  margin-right: auto;
}

.about-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.001);
  transition: transform 0.5s ease;
}
.about-figure:hover img {
  transform: scale(1.03);
}

/* ===== 스태거(비대칭) 오프셋 ===== */
@media (min-width: 768px) {
  .about-item {
    margin-top: 80px;
  }
  .about-item.about-item--center {
    margin-top: 0;
  } /* 가운데를 조금 위로 */
  .about-item.about-item--right {
    margin-top: 120px;
  } /* 오른쪽을 더 내려 */
}

/* 더 큰 화면에서는 간격 확대 */
@media (min-width: 1200px) {
  .about-item {
    margin-top: 120px;
  }
  .about-item.about-item--center {
    margin-top: 20px;
  }
  .about-item.about-item--right {
    margin-top: 160px;
  }
}

/* 모바일: 한 줄씩 쌓고 간격은 넉넉히 */
@media (max-width: 767.98px) {
  .about-item {
    margin-top: 0;
  }
  .about-figure {
    border-radius: 10px;
  }
}

/* ===== CARD (하얀 박스) ===== */
.intro-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-card img {
  display: block;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.intro-card:hover img {
  transform: scale(1.02);
}

.intro-card h5 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

/* ===== MEDIA WRAPPER ===== */
.intro-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  height: 420px; /* 데스크탑 기본 높이(3장 통일) */
  margin-bottom: 20px; /* 이미지-제목 간격 */
}
@media (max-width: 576px) {
  .intro-media {
    height: 260px;
  }
}
@media (min-width: 1400px) {
  .intro-media {
    height: 480px;
  }
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== OVERLAY: BOTTOM TEXT (하단 그라데이션 안에 텍스트 고정) ===== */
.overlay-bottom {
  position: absolute;
  inset: 0; /* .intro-media 전체 덮기 */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* ← 하단 배치 */
  text-align: center;
  padding: 20px;
  color: #fff;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.intro-card:hover .overlay-bottom {
  opacity: 1;
  transform: translateY(0);
}

/* 그라데이션 배경(브랜드 딥그린) */
.overlay-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 59, 52, 0.9) 0%, rgba(27, 59, 52, 0) 58%);
  z-index: 0;
}

/* 텍스트 블록 */
.overlay-bottom-content {
  position: relative;
  z-index: 1; /* 그라데이션 위 */
  max-width: 92%;
  margin-inline: auto;
  margin-bottom: 10px; /* 바닥과 간격 */
}
.overlay-bottom-content small {
  display: block;
  font-size: 14px;
  font-weight: 800;
  opacity: 0.9;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.overlay-bottom-content h4 {
  color: #fff !important;
  font-size: 20px;
  font-weight: 1100;
  line-height: 1.5;
  word-break: keep-all; /* 한국어 줄바꿈 깔끔 */
  margin: 0;
}

/* ===== OVERLAY: CENTER BUTTON (필요 시) ===== */
.overlay-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
  z-index: 2;
  pointer-events: auto; /* a 태그 클릭 허용 */
}
.overlay-center span {
  background: rgba(34, 34, 34, 0.72);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  font-size: 14px;
}
.intro-card:hover .overlay-center {
  opacity: 1;
}

/* ===== 비주얼 보정(타이틀) ===== */
.small-title {
  letter-spacing: 0.08em;
  color: #8a8a8a;
}
.main-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}

/* ===== (선택) 스태거 오프셋 – 3열 비대칭 느낌 =====
.about-item{ margin-top:80px; }
.about-item--center{ margin-top:0; }
.about-item--right{ margin-top:120px; }
@media (min-width:1200px){
  .about-item{ margin-top:120px; }
  .about-item--center{ margin-top:10px; }
  .about-item--right{ margin-top:180px; }
}
*/

/*---------------------------------------
            aid message
-----------------------------------------*/

/* Section base */
.aid-message-section {
  background: #1b3b34;
  color: #fff;
  padding: clamp(72px, 10vw, 140px) 0;
}

/* Layout */
.message-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 120px);
  text-align: center;
}
.message-side small {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}
.message-side h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 64px);
  margin: 0;
}

/* Divider */
.divider {
  display: inline-block;
  height: 1px;
  width: 0;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.9s ease 0.25s;
}

/* ===== Animations (on reveal) ===== */
@keyframes trackIn {
  0% {
    opacity: 0;
    letter-spacing: 0.2em;
    filter: blur(4px);
    transform: translateY(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    letter-spacing: 0;
    transform: translateY(0);
  }
}
@keyframes fadeUpSmall {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 0.75;
    transform: translateY(0);
  }
}

/* 초기 상태 */
.message-side small,
.message-side h2 {
  opacity: 0;
}
.aid-message-section.is-visible .message-side small {
  animation: fadeUpSmall 0.6s ease forwards;
}
.aid-message-section.is-visible .message-side.left h2 {
  animation: trackIn 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s forwards;
}
.aid-message-section.is-visible .message-side.right h2 {
  animation: trackIn 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s forwards;
}
.aid-message-section.is-visible .divider {
  width: clamp(60px, 8vw, 120px);
}

/* Responsive */
@media (max-width: 768px) {
  .message-box {
    flex-direction: column;
    gap: 22px;
  }
  .divider {
    height: 1px;
    width: 0;
  }
  .aid-message-section.is-visible .divider {
    width: 48px;
  }
}

/* 접근성: 모션 최소화 선호 */
@media (prefers-reduced-motion: reduce) {
  .divider,
  .message-side small,
  .message-side h2 {
    transition: none;
    animation: none;
    opacity: 1;
  }
}

/* ===== Brand Statement Section ===== */
/* ✨ 화면 양끝까지 확장(컨테이너 영향 차단) */
.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
body {
  overflow-x: hidden;
} /* 가로 스크롤 방지 */

/* 섹션 베이스 */
/* 섹션(배경은 풀폭, 텍스트는 container 안) */
.aid-statement {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  width: 100vw;
  background: #1b3b34;
  color: #fff;

  /* 카드 섹션과의 간격 */
  margin-top: clamp(60px, 8vw, 160px);

  /* 녹색 안에서 위아래 여백 */
  padding: clamp(200px, 18vw, 320px) 0 clamp(140px, 12vw, 260px);

  overflow: hidden;
}

body {
  overflow-x: hidden;
}

.aid-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
}
.typo-wrap {
  position: relative;
  min-height: clamp(500px, 44vw, 700px);
}
.aid-statement {
  --edge: clamp(16px, 3vw, 40px);
}

/* 공통 초기 상태 */
.typo-line {
  position: absolute;
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  transition: transform 0.9s ease, opacity 0.9s ease;
  white-space: nowrap;
}

/* 좌상단: 왼쪽->오른쪽 */
.line-en-left {
  top: var(--edge);
  left: var(--edge);
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.6vw, 48px);
  transform: translateX(-40px); /* ← 초기 오프셋 */
  top: 30px;
}

/* 우하단: 오른쪽->왼쪽 */
.line-en-right {
  right: var(--edge);
  bottom: var(--edge);
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3.2vw, 44px);
  text-align: right;
  transform: translateX(40px); /* → 초기 오프셋 */
  bottom: -10px; /* 아래에서 조금 올려서 한글과 간격 확보 */
}

/* 가운데 한글: 제자리 페이드 */
.line-ko-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 680px;
  text-align: center;
  white-space: normal;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  opacity: 0; /* 초기 투명 */
  transition: opacity 0.4s ease; /* 이동 없음 */
  margin-top: clamp(100px, 9vw, 180px); /* EN 상단 라인과의 간격 확대 */
  margin-bottom: 40px; /* 아래 영문과 간격 */
}

/* === 트리거 후 상태 === */
.aid-statement.is-ready .line-en-left,
.aid-statement.is-ready .line-en-right {
  opacity: 1;
  transform: translateX(0);
}

/* 한글은 영문보다 조금 늦게 */
.aid-statement.is-ready .line-ko-center {
  opacity: 1;
  transition-delay: 0.8s; /* 영문 뜬 뒤 0.8s 후 */
}

@media (max-width: 576px) {
  .line-en-left {
    top: 12px;
    left: 12px;
  }
  .line-en-right {
    right: 12px;
    bottom: 12px;
  }
}

.typo-desc {
  position: absolute;
  top: 65%; /* 중앙 한글 아래쪽 */
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 1s ease;
}

/* 활성화 시 */
.typo-desc.show {
  opacity: 1;
}

/* 인용구 */
.aid-quote {
  position: relative;
  margin: 14px 0 18px;
  padding: 14px 0 0 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.7;
}
.aid-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.aid-quote::after {
  content: '”';
  position: absolute;
  right: -4px;
  bottom: -10px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  opacity: 0.12;
}

@media (max-width: 991px) {
  .aid-statement .lead {
    margin-bottom: 6px;
  }
  .aid-quote::before {
    width: 44px;
  }
}

.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}
body {
  overflow-x: hidden;
} /* 스크롤바 튀는 거 방지 */

/* 배경/레이아웃 */
.aid-typo-band {
  background: #1b3b34; /* 시그니처 컬러 */
  color: #fff;
  padding: clamp(64px, 9vw, 140px) 0;
}
.typo-wrap {
  width: min(92%, 1200px);
  margin: 0 auto;
}

/* 기본 타이포 */
.typo-line {
  margin: 0;
  line-height: 1.2;
  opacity: 0; /* 애니메이션 전 숨김 */
  will-change: transform, opacity;
}

/* 글자 블록 전체 하단 여백 */
.aid-statement .typo-wrap {
  margin-bottom: 200px; /* 원하는 값으로 조정 */
}

/* 각 라인별로 하단 여백을 주고 싶으면 */
.aid-statement .typo-line {
  display: inline-block;
  margin-bottom: 20px; /* 라인 간 간격 */
}

/* 크기: EN(좌) > EN(우) > KO(중앙 더 작게) */
.line-en-left {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 64px);
  text-align: left;
}
.line-en-right {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(28px, 5.2vw, 56px);
  text-align: right;
  margin-top: 0.8em;
}
.line-ko-center {
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  text-align: center;
  margin-top: 0.8em;
}

/* 애니메이션 키프레임 */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* 재생 트리거 */
.aid-typo-band.is-visible .line-en-left {
  animation: slideDown 0.8s ease 0.1s forwards;
}
.aid-typo-band.is-visible .line-en-right {
  animation: slideInRight 0.9s ease 0.7s forwards;
}
.aid-typo-band.is-visible .line-ko-center {
  animation: fadeUp 0.7s ease 1.6s forwards;
}

/* 모바일 여백 미세 조정 */
@media (max-width: 576px) {
  .line-en-right,
  .line-ko-center {
    margin-top: 0.6em;
  }
}

.typo-line {
  display: block; /* 독립 블록화 */
  width: 100%; /* 라인이 전체 폭 차지 */
  opacity: 0;
  will-change: transform, opacity;
}

.line-en-left {
  text-align: left !important; /* 부모 정렬 무시 */
}

.line-en-right {
  text-align: right !important; /* 부모 정렬 무시 */
}

.line-ko-center {
  text-align: center !important; /* 부모 정렬 무시 */
}

.aid-statement.is-ready .line-en-left {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.35s; /* 좌상단은 조금 늦게 */
}

.aid-statement.is-ready .line-en-right {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s; /* 우하단은 더 늦게 */
}

/* ✅ KO: 제자리 페이드 (영문 직후) */
.aid-statement.is-ready .line-ko-center {
  opacity: 1;
  transition-delay: 0.95s; /* 필요시 .8s ~ 1.1s로 조절 */
  text-align: center !important;
  white-space: normal !important; /* 중앙 정확히 */
}

.extra-text {
  margin-top: clamp(160px, 12vw, 280px);
}

.highlight-text {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin-bottom: 20px;
}
.highlight-text .accent {
  color: #f4e8ce; /* 베이지 */
}

.vertical-divider {
  width: 2px;
  height: 300px;
  background: rgba(255, 255, 255, 0.3);
  margin: 40px auto;
}

.sub-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 300px;
}

.quote {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
  margin-top: 150px;
}

/* 페이드 업 애니메이션 */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* 텍스트 블록 전체 여백 */
.aid-message {
  padding: 200px 0; /* 위아래 60px */
}

/* 각 문장 여백 */
.aid-message p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 2; /* 줄 간격 넓힘 */
  margin: 40px 0; /* 위아래 여백 크게 */
  text-align: center;
}

/* 세로줄 길이 조정 */
.aid-message .vertical-line {
  display: block;
  width: 2px;
  height: 120px; /* 세로줄 길이 늘림 */
  background: rgba(255, 255, 255, 0.5);
  margin: 0 auto 40px auto; /* 가운데 정렬 + 하단 여백 */
}

/* ===== 1) 카드 섹션(화이트) ===== */
#panel2 .svc-hero {
  padding: 84px 0 54px;
  background: #fff;
}
#panel2 .svc-hero .kicker {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #9aa5a2;
  margin: 0 0 6px;
}
#panel2 .svc-hero .section-title {
  text-align: center;
  margin: 0 0 8px;
  color: var(--aid-green);
  font-weight: 800;
}
#panel2 .svc-hero .section-sub {
  text-align: center;
  color: #7a8481;
  margin: 0 0 34px;
}

/* 카드 */
#panel2 .intro-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.3s;
}
#panel2 .intro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
#panel2 .intro-media {
  height: 420px;
  background: #e9efed;
}
#panel2 .intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}
#panel2 .intro-card:hover .intro-media img {
  transform: scale(1.05);
}
#panel2 .intro-meta {
  padding: 14px 16px;
}
#panel2 .intro-meta h5 {
  margin: 0;
  font-weight: 800;
  color: #2d3a37;
}

/* ===== 2) 경계: 대각 분리 ===== */
.svc-divider {
  position: relative;
  height: 80px;
  background: #fff;
}
.svc-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background: var(--aid-green);
  transform: skewY(-3deg);
  transform-origin: 100% 0;
}

/* ===== 3) 상세 섹션(딥그린 배경) ===== */
.svc-detail-wrap {
  background: var(--aid-green);
  padding: 80px 0 120px;
  color: #eaf2ef;
}

/* 각 블록(하얀 카드가 놓이는 그룹) */
.svc-detail-block {
  scroll-margin-top: calc(var(--navbar-h) + 24px);
  padding: 32px 0 10px;
}
.svc-detail-title {
  margin: 0 0 6px;
  font-weight: 900;
  color: #ffffff;
}
.svc-detail-sub {
  margin: 0 0 18px;
  color: #cfe0db;
}

/* 타일 그리드 */
.svc-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 992px) {
  .svc-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* 개별 타일(흰 카드) */
.svc-tile {
  background: #fff;
  color: #2d3a37;
  border: 1px solid #e8efec;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.svc-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.svc-tile h5 {
  margin: 0 0 10px;
  font-weight: 800;
  color: #1b3b34;
}
.svc-tile ul {
  margin: 0;
  padding-left: 18px;
  color: #46514e;
  line-height: 1.7;
}
.svc-tile li {
  margin: 0.28rem 0;
}

#panel2 .services-grid {
  margin-top: 120px; /* 카드 섹션 위쪽 여백 */
  margin-bottom: 500px; /* 카드 섹션 아래쪽 여백 */
}

.svc-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start; /* ✅ 세로 정렬을 위쪽으로 */
}

/* 가운데 정렬 헤더 */
#svc-dev-detail .svc-head {
  text-align: center;
  margin-bottom: 90px; /* 헤더와 카드 사이 넉넉히 */
}
#svc-dev-detail .svc-title {
  margin-bottom: 12px;
  color: #1b3b34;
  font-weight: 900;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}
#svc-dev-detail .svc-sub {
  margin: 0 auto;
  max-width: 720px; /* 줄 길이 제한 */
  color: #7a8481;
  font-size: 1.05rem;
}

/* 관계형 레이아웃 */
.svc-rel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px; /* 카드 간 간격 크게 */
  align-items: start;
  margin-top: 20px;
}

/* 가로 연결선 */
.svc-rel-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #dfe7e4;
}

/* 노드 카드 */
.svc-node {
  position: relative;
  background: #fff;
  border: 1px solid #e4ece9;
  border-radius: 16px;
  padding: 50px 36px; /* 안쪽 여백 크게 */
  text-align: center;
  color: #2d3a37;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-node:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* 노드 점 */
.svc-node::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1b3b34;
  box-shadow: 0 0 0 8px #f3f8f6;
}

/* 아이콘 */
.svc-node__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #eef5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #1b3b34;
}
.svc-node h5 {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #1b3b34;
}
.svc-node ul {
  margin: 0;
  padding-left: 18px;
  color: #495250;
  line-height: 1.9;
}
.svc-node li {
  margin: 0rem 0;
}

/* 반응형: 모바일 세로 연결 */
@media (max-width: 992px) {
  .svc-rel-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .svc-rel-grid::before {
    top: 32px;
    left: 50%;
    right: auto;
    width: 2px;
    height: calc(100% - 32px);
  }
  .svc-node::before {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* --- 기본: PC/태블릿은 좌하단 고정 --- */
.hero .text-set {
  position: absolute;
  left: 6%;
  bottom: 10%; /* 화면 하단에서 살짝 띄움 */
  text-align: left;
  color: #fff;
  z-index: 3;
  width: auto;
}

.hero .text-set h1 {
  font-size: clamp(26px, 2.8vw, 48px);
  font-weight: 900;
  margin-bottom: 0.6em;
}
.hero .text-set h2 {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  margin-bottom: 0.6em;
}
.hero .text-set .subtext {
  font-size: clamp(14px, 1.4vw, 20px);
}

/* --- 모바일 전환: 중앙 정렬 + 크기 축소 --- */
@media (max-width: 768px) {
  .hero .text-set {
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%); /* 중앙 정렬 */
    text-align: center;
    width: 92%;
  }

  .hero .text-set h1 {
    font-size: clamp(20px, 6vw, 28px);
  }
  .hero .text-set h2 {
    font-size: clamp(14px, 4.8vw, 20px);
  }
  .hero .text-set .subtext {
    font-size: clamp(12px, 3.8vw, 16px);
  }
}

/* ✅ 텍스트 블록 폭 제한 + 줄바꿈 보정 */
.hero .text-set {
  max-width: min(92%, 700px); /* 화면 비율 따라 자동 제한 */
  white-space: normal; /* 한 줄 고정 해제 */
  word-wrap: break-word; /* 긴 단어 잘라서 줄바꿈 */
  overflow-wrap: break-word; /* 크로스브라우저 */
}

.hero .text-set {
  position: absolute;
  left: 6%;
  bottom: 10%;
  text-align: left;
  color: #fff;
  z-index: 3;

  /* 폭 제한 + 자동 줄바꿈 */
  max-width: 600px; /* PC 기준 폭 제한 */
  width: 90%; /* 모바일에서는 자동 줄어듦 */
  white-space: normal; /* 한 줄 고정 해제 */
  word-wrap: break-word; /* 줄바꿈 허용 */
  overflow-wrap: break-word; /* 크로스브라우저 */
}

.hero .text-set h1 {
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.3;
}
.hero .text-set h2 {
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.35;
}
.hero .text-set .subtext {
  font-size: clamp(12px, 1.6vw, 18px);
  line-height: 1.4;
}

/* 모바일 중앙 정렬 */
@media (max-width: 768px) {
  .hero .text-set {
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 92%; /* 더 줄이기 */
  }
}
/* ============================
   HERO VIDEO — 비율 안정화 패치
   1) 기본: 16:9 영역 유지 + cover (프리미엄 느낌)
   2) 모바일도 동일 비율, 자동 축소
============================ */

/* 공통 리셋 */
.hero {
  position: relative;
  overflow: hidden;
  height: auto !important;
}
.videoWrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto !important;
}
.custom-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 구형 브라우저( aspect-ratio 미지원 ) 폴백 */
@supports not (aspect-ratio: 16 / 9) {
  .videoWrapper {
    height: 0 !important;
    padding-bottom: 56.25% !important;
  }
  .custom-video {
    position: absolute;
    inset: 0;
  }
}

/* 너무 큰 화면에서 과도하게 높아지지 않게 */
@media (min-width: 1200px) {
  .videoWrapper {
    max-height: 88vh;
  } /* 상단 네비/그라데이션 여유 */
}

/* 작은 폰 미세 보정 */
@media (max-width: 576px) {
  .videoWrapper {
    aspect-ratio: 16 / 9;
  } /* 유지 (필요하면 9/16로 바꿔도 됨) */
}
.hero .text-set {
  max-width: 600px;
  width: 90%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* PC 기본: 좌하단 고정 */
.hero .text-set {
  position: absolute;
  left: 6%;
  bottom: 10%;
  text-align: left;
  color: #fff;
  z-index: 3;

  max-width: 600px; /* ✅ 폭 제한 */
  width: 90%; /* 화면 줄어들면 자동 축소 */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 폰트 크기 */
.hero .text-set h1 {
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.3;
}
.hero .text-set h2 {
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.35;
}
.hero .text-set .subtext {
  font-size: clamp(12px, 1.6vw, 18px);
  line-height: 1.4;
}

/* 모바일: 중앙 정렬 + 폭 좁힘 */
@media (max-width: 768px) {
  .hero .text-set {
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 92%;
  }
}

/* ===========================
   HERO 텍스트/비디오 충돌 정리 패치
   (파일 맨 마지막에 붙여주세요)
=========================== */

/* 0) 레이어 고정: 비디오 < 오버레이 < 텍스트 */
.hero .videoWrapper {
  position: relative;
  z-index: 1;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero .text-set {
  position: absolute;
  z-index: 3;
}

/* 1) hero 안에서 .heroText-left 와 .text-set이 함께 붙은 경우, 위치 규칙을 단일화 */
.hero .heroText-left.text-set {
  /* 위치·정렬을 한 군데서만 통제 */
  top: auto !important;
  left: 6% !important;
  right: auto !important;
  bottom: 10% !important;
  transform: none !important;
  text-align: left !important;

  /* 폭/줄바꿈 안전 장치 */
  max-width: 600px !important;
  width: 90% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* 2) .text-set 의 예전 중앙정렬(top:50%/translateY(-50%)) 영향 제거
      (hero 내부에서만 무효화) */
.hero .text-set {
  top: auto !important;
  transform: none !important;
}

/* 3) 데스크톱 글자 크기(과하지 않게) */
.hero .text-set h1 {
  font-size: clamp(22px, 2.6vw, 40px) !important;
  line-height: 1.3;
}
.hero .text-set h2 {
  font-size: clamp(16px, 2vw, 26px) !important;
  line-height: 1.35;
}
.hero .text-set .subtext {
  font-size: clamp(12px, 1.6vw, 18px) !important;
  line-height: 1.4;
}

/* 4) 모바일: 중앙 정렬 + 크기 더 축소 + 하단 여백 보정 */
@media (max-width: 768px) {
  .hero .heroText-left.text-set {
    left: 50% !important;
    bottom: 12% !important;
    transform: translateX(-50%) !important;
    text-align: center !important;
    max-width: 92% !important;
  }
  .hero .text-set h1 {
    font-size: clamp(20px, 6vw, 28px) !important;
  }
  .hero .text-set h2 {
    font-size: clamp(14px, 4.8vw, 20px) !important;
  }
  .hero .text-set .subtext {
    font-size: clamp(12px, 3.8vw, 16px) !important;
  }
}

/* 5) 비디오 비율법 통일: aspect-ratio 방식 우선 */
.hero .videoWrapper {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto !important;
}
.hero .custom-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
/* 구형 브라우저 폴백 */
@supports not (aspect-ratio: 16 / 9) {
  .hero .videoWrapper {
    height: 0 !important;
    padding-bottom: 56.25% !important;
  }
}

/* 6) 오버레이 그라데이션은 그대로, 레이어만 2로 고정(위에서 z-index 지정) */
.hero .overlay {
  background: linear-gradient(to top, #000, transparent 90%);
}
