/* style.css */
/* Pretendard Font */
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('../fonts/pretendard/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

:root {
  --primary: #1C86FF;
  --primary-dark: #1e40af;
  --bg-dark: #1a2b3c;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-light: #f3f4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  color: var(--text-main);
  line-height: 1.5;
  background-color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}


.main-page .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
/* 페이지네이션 기본 스타일 */
.main-page .swiper-pagination.dots .dot {
    background-color: #ccc; /* 기본 색상 */
}
/* 활성화된 페이지네이션 스타일 (Swiper가 자동으로 붙여주는 클래스) */
.main-page .swiper-pagination.dots .swiper-pagination-bullet-active {
    background-color: #000; /* 활성화 색상 */
}
.main-page .max-w-md {
  max-width: 28rem;
}


.main-page .max-w-lg h2{
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}

.sec3-btn{
  background-color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 29px 7px 29px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  color: #171717;
}
.main-page .max-w-lg >p{
  margin-bottom: 29px;
  font-size: 18px;
  font-weight: 400;
  color: #EBEBEB;
}

.main-page .max-w-3xl {
  max-width: 48rem;
}
section.section3 {
  padding: 130px 0px;
}
.mid-banner.section3 {
    position: relative;
    /* 이미지 경로 설정 */
    background-image: url('../img/main_con2_img.png');
    /* 배경 설정: 반복 없음, 가운데 정렬, 꽉 채우기 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* 높이는 디자인에 따라 조절하세요 (예: 600px) */
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
/* Header */
.main-page header {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-page .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.main-page .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.main-page .logo-main {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.main-page .logo-sub {
  font-size: 8px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.main-page nav {
  display: none;
}

@media (min-width: 768px) {
  .main-page nav {
    display: flex;
    gap: 2.5rem;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
  }
}

.main-page nav a:hover {
  color: var(--primary);
  transition: color 0.3s;
}

/* Hero */
.main-page .hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 360px 0px 191px 0px;
}

.main-page .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-page .hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.main-page .hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.main-page .hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.main-page .hero-content p {
  font-size: 24px;
  color: #fff;
  margin-bottom: 94px;
  margin-top: 12px;
}
.main-page .btn_wrap{
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-page .btn-hero {
  border: 1px solid rgba(255, 255, 255, 0.7);
  width: 240px;
  height: 54px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  background-color: transparent;
}

.main-page .arrow_png{
  width: 13px;
  height: 13px;
  margin-left: 8px;
}
.main-page .arrow_png img{
  width: 13px;
  height: 13px;
}
.main-page .btn-hero:hover {
  background: #ffffff;
  color: #000000;
}


.section4 .feature-card{
  position: relative;
  border-radius: 20px;
  width: 288px;
  height: 200px;
}

.main-page .section3 .arrow_png img {
  filter: brightness(0);
  width:8px;
  height: 8px;
}
.main-page .section3 .arrow_png {
  filter: brightness(0);
  width:8px;
  height: 8px;
}

.section4 .feature-card img{
  border-radius: 20px;
}
.section4 .feature-desc{
  margin-top: 16px;
  font-size: 18px;
  color: #3a3a3a;
}
.section4 .sec4-inner-box{
  position: absolute;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.section4 .sec4_txt{
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  padding: 20px;
}
/* Base Sections */

.main-page .section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.main-page .text-primary{
  color: #1c86ff;
}


.main-page .section-desc {
  color: #3a3a3a;
  margin-top: 15px;
  line-height: 1.4;
  font-size: 18px;
}
/* ====================
   section2
==================== */

.main-page .grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .main-page .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
section.section4 {
  padding: 100px 0px;
} 
.section2 .sectio2_btn_wrap{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 1. 카드 기본 설정: 평소엔 노란색 (또는 지정한 이미지) */
.main-page .card1 {
  /* background-image가 아니라 background로 수정, center / cover 사이에 슬래시 필수! */
  background: url('../img/main_con1_img_01.png') no-repeat center / cover;
}
.main-page .card2 {
  /* background-image가 아니라 background로 수정, center / cover 사이에 슬래시 필수! */
  background: url('../img/main_con1_img_02.png') no-repeat center / cover;
}
.main-page .card3 {
  /* background-image가 아니라 background로 수정, center / cover 사이에 슬래시 필수! */
  background: url('../img/main_con1_img_03.png') no-repeat center / cover;
}
.main-page .card4 {
  /* background-image가 아니라 background로 수정, center / cover 사이에 슬래시 필수! */
  background: url('../img/main_con1_img_04.png') no-repeat center / cover;
}
.main-page .card-dark {
  position: relative;
  overflow: hidden; /* 모서리 밖으로 삐져나오는 검정 배경 숨김 */
  padding: 85px 42px 68px 46px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: none;
}
.section2 .main-page .card-dark {
  position: relative;
  overflow: hidden; /* 모서리 밖으로 삐져나오는 검정 배경 숨김 */
  width: 288px;
  height: 320px;
  border-radius: 20px;
  display: flex;
  cursor: pointer;
  border: none;
}
.main-page .section2 .card-dark .btn-card{
  display: flex;
  flex-direction: row;
}
/* 호버 시 덮일 배경 설정 (투명도 80%의 검정색으로 변경) */
.main-page .card-dark::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); /* 👈 이 부분을 수정했습니다! */
  opacity: 0; 
  transition: opacity 0.3s ease;
  z-index: 1;
}
.main-page .btn-card .arrow_png img {
  filter: brightness(0);
  width:8px;
  height: 8px;
}
.main-page .btn-card .arrow_png {
  filter: brightness(0);
  width:8px;
  height: 8px;
}
/* 3. 내부 텍스트 및 버튼 (평소엔 아래로 내려가 있고 투명함) */
.main-page .card-dark .card-dark-inner ,
.main-page .card-dark .btn-card {
  position: relative;
  z-index: 2; /* 검정 배경 위로 올라오게 설정 */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
}
.main-page .card-dark .card-dark-inner {
  color: #fff;
}


/* 4. 마우스 호버 시 애니메이션 작동 */
.main-page .card-dark:hover::after {
  opacity: 1; /* 검정색 배경 나타남 */
}

.main-page .card-dark:hover .card-dark-inner,
.main-page .card-dark:hover .btn-card {
  opacity: 1; /* 글자와 버튼 나타남 */
  transform: translateY(0); /* 원래 위치로 스르륵 올라옴 */
  display: flex;

}

/* 5. 내부 요소 세부 폰트 스타일 */
.main-page .card-dark h3 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}

.main-page .card-dark p {
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 30px;
}

.main-page .btn-card {
  background: #ffffff;
  color: #171717;
  width: 120px;
  height: 31px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
/* ─── Section5 레이아웃 ─── */
.section5{
  background-color: #fafbfd;
}
.section5 .container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.section5 .why-left {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
}

.section5 .why-left h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
}

.section5 .why-left .section-desc {
  font-size: 18px;
  line-height: 1.4;
  color: #3a3a3a;
  letter-spacing: -5%;
}

.section5 .why-img {
  width: 224px;
  height: 224px;
}

.section5 .why-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── 캐러셀 카드 (오른쪽) ─── */
.carousel-card {
  flex: 1;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  min-height: 380px;
  overflow: hidden;
  padding: 0;
}

/* 상단 고정 헤더 */
.carousel-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 18px;
  z-index: 10;
  background: #fff;
}

.carousel-tag {
  font-size: 16px;
  font-weight: 600;
  color: #B5B5B5;
  letter-spacing: 0.02em;
}


/* Swiper가 강제로 넣는 3D 렌더링 효과 완벽 무력화 */
.swiper-3d .swiper-wrapper {
    transform-style: flat !important;
}
.swiper-pagination.dots {
  position: static !important;
  width: auto !important;
  display: flex;
}

.swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: #d0d0d0;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #111 !important;
  opacity: 1 !important;
}

/* 슬라이드 */
.carousel-card.swiper {
  display: block;
  overflow: hidden;
  touch-action: pan-y;
  background: #ffffff !important;
}

.carousel-card .swiper-wrapper {
  padding-top: 72px; /* 헤더 높이 확보 */
  background: #ffffff !important;
}

.carousel-card .swiper-slide {
  min-height: calc(380px - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 36px 32px 88px;
  background: #ffffff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

}
/* 스와이퍼가 자동으로 생성하는 좌우 어두운 그림자 완벽 제거 */
.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {

    background: none !important;
}
/* 슬라이드 제목 */
.carousel-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.3;
}

.carousel-card h3 .num {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
}

/* 슬라이드 본문 */
.carousel-card .swiper-slide p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* ─── 하단 내비게이션 버튼 ─── */
.carousel-nav {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-nav .nav-btn {
  position: static;
  width: 36px;
  height: 36px;
  background: #f4f4f5;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0;
}

.carousel-nav .nav-btn:hover {
  background: #e4e4e7;
}

.carousel-nav .nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #333;
}

.nav-btn.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

/* 스와이퍼 기본 화살표 숨김 */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}

