/* =========================
   RESET
========================= */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f5f7fb;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    border-top: 1px solid #e5e7eb;
}

.flex {
    display: flex;
    gap: 40px;
}

.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* =========================
   HEADER (개선 버전)
========================= */
.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 컨테이너 좌우 꽉 쓰기 */
.header-inner {
    width: 100%;
    /*max-width: 1400px; /* 기존 1200 → 확장 */
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;

    height: 80px;
    /* 높이 증가 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 로고 */
.logo img {
    height: 50px;
    /* 기존 40 → 확대 */
}

/* 네비 */
.nav {
    display: flex;
    gap: 50px;
    /* 간격 넓힘 */
}

.nav a {
    font-size: 17px;
    /* 기존 15 → 확대 */
    font-weight: 600;
    color: #222;
    text-decoration: none;
    transition: 0.3s;
}

.nav a:hover {
    color: #1d4ed8;
}

/* 햄버거 기본 숨김 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
}

/* 모바일 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0; /* 모바일은 상하 여백을 살짝 줄임 */
    }
    
    .grid-4 {
        /* 캡처 5번처럼 카드가 꽉 차게 보이려면 1줄에 1개 혹은 2개를 권장합니다. */
        grid-template-columns: 1fr; 
        gap: 15px;
    }

    /* 텍스트 줄바꿈 자연스럽게 */
    body {
        word-break: keep-all; 
    }

    /* 햄버거 보이기 */
    .menu-toggle {
        display: flex;
    }

    /* nav 숨김 */
    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;

        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: 0.3s;
    }

    /* 열렸을 때 */
    .nav.active {
        max-height: 300px;
        padding: 20px 0;
    }

    .nav a {
        padding: 10px 0;
        font-size: 16px;
    }
}
/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.btn.primary {
    background: #1d4ed8;
    color: #fff;
}

/* =========================
   HERO SLIDER
========================= */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 6s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.1);
}

/* 첫 번째 슬라이드만 로드 시 자동 줌 애니메이션 */
.slide.active:first-child {
  animation: zoomIn 6s ease-in-out forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}


/* overlay */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(226, 221, 221, 0.65);
}

/* 텍스트 */
.content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);

    z-index: 3;
    max-width: 700px;
}

/* 텍스트 애니메이션 기본 */
.content h1,
.content .sub,
.content .point {
    opacity: 0;
    transform: translateY(30px);
}

/* 활성화 */
.slide.active .content h1 {
    animation: fadeUp 0.8s ease forwards;
}

.slide.active .content .sub {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.slide.active .content .point {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* keyframe */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 타이포 */
.content h1 {
    font-size: 55px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    word-break: keep-all;
}

.content h1 strong {
    color: #1d4ed8;
}

.sub {
    font-size: 30px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.point {
    font-size: 15px;
    color: #555;
}

.nowrap {
    white-space: nowrap;
}

/* =========================
   HERO UI (dots + arrows)
========================= */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dots span.active {
    background: #1d4ed8;
}

.arrows {
    display: flex;
    justify-content: space-between;
    width: 100px;
    margin: auto;
}

.arrows button {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

/* =========================
   MOBILE (768px 이하 통합)
========================= */
@media (max-width: 768px) {
    
    /* 1. 레이아웃 기본 */
    .flex { flex-direction: column; }
    .grid-4 { grid-template-columns: 1fr; gap: 15px; } /* 카드 1줄에 1개로 시원하게 */
    .grid-2 { grid-template-columns: 1fr; }
    .nowrap { white-space: normal; }

    /* 2. 헤더 & 네비게이션 (기존 기능 유지) */
    .header-inner {
        height: 70px;
        padding: 0 20px;
    }
    .logo img { height: 35px !important; }

    .menu-toggle { display: flex; } /* 햄버거 메뉴 보이기 */

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: 0.3s;
        gap: 0; /* 모바일 메뉴 간격 조정 */
    }

    .nav.active {
        max-height: 350px;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
    }

    .nav a {
        padding: 15px 0;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    /* 3. 히어로 섹션 (태평양 스타일 적용) */
    .hero {
        height: 80vh !important; /* 세로로 길고 시원한 비율 */
    }

    .slide {
        background-position: center bottom !important; /* 이미지는 아래쪽 위주로 노출 */
    }

    .overlay {
        /* 상단 텍스트 강조를 위한 세련된 그라데이션 */
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%) !important;
    }

    .content {
        top: 20% !important; /* 상단 배치 */
        left: 25px !important;
        right: 25px !important;
        transform: none !important;
        text-align: left !important; /* 왼쪽 정렬로 가독성 확보 */
        padding: 0 !important;
    }

    /* 4. 히어로 타이포그래피 */
    .content h1 {
        font-size: 30px !important;
        font-weight: 800;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
        color: #fff !important;
        word-break: keep-all;
    }

    .content h1 strong { color: #4e8aff !important; } /* 모바일에서 더 잘 보이는 밝은 파랑 */

    .sub {
        font-size: 17px !important;
        line-height: 1.5 !important;
        color: rgba(255,255,255,0.9) !important;
        margin-bottom: 10px !important;
    }

    .point {
        font-size: 13px !important;
        color: rgba(255,255,255,0.6) !important;
    }

    /* 5. 컨트롤 버튼 위치 */
    .hero-controls {
        bottom: 50px !important;
    }
}
/* =========================
   BASIC SECTIONS
========================= */
.about img,
.reviews img,
.gif img {
    width: 100%;
}

.video-item video {
    width: 100%;
}

.card {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

/* =========================
   PARTNERS SLIDER
========================= */
.partners {
    background: #fff;
    padding: 40px 0;
    overflow: hidden;
}

.partners-wrap {
    width: 100%;
    overflow: hidden;
}

/* 트랙 (움직이는 영역) */
.partners-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

/* 로고 묶음 */
.partners-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

/* 로고 스타일 */
.partners-logos img {
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: 0.3s;
}

.partners-logos img:hover {
    opacity: 1;
}

.partners-track:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {

    .partners {
        padding: 20px 0;
    }

    .partners-logos {
        gap: 18px;
    }

    .partners-logos img {
        height: 20px !important;
    }

    .partners-track {
        animation: scroll 40s linear infinite;
    }

}

/* 애니메이션 */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================
   about 전문가 팀 소개 (PDF 맞춤형)
========================= */

/* 살짝 어둡게 (선택) */
.about-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2)
    );
    top: 0;
    left: 0;
}

/* about는 기준 */
.about {
    position: relative;
    height: 750px;
    background: url('../img/team.jpg') center/cover no-repeat;
    overflow: hidden; /* 박스가 움직일 때 스크롤바 방지 */
}

/* 🔥 핵심: 처음부터 이미지 위에 반투명하게 붙어있는 상태 */
.about-card {
    position: absolute;
    left: 0%;
    /* 🔴 바닥에 딱 붙임 (이미지 하단에 위치) */
    bottom: 0; 
    
    /* 🔴 오버레이 느낌: 반투명 흰색 배경 */
    background: rgba(255, 255, 255, 0.85); 
    
    /* 🔴 처음부터 텍스트가 다 보이도록 충분한 패딩 */
    padding: 90px 70px 50px 25px; 
    width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
    
    /* backdrop-filter는 배경 이미지를 흐리게 만들어 글씨가 더 잘 보이게 함 (선택사항, 최신 브라우저 지원) */
    backdrop-filter: blur(5px); 

    /* 🔴 애니메이션 설정 (부드러운 cubic-bezier) */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* 🔴 초기 위치: 원래 위치(0)에 둠 */
    transform: translateY(0); 
    cursor: pointer;
}

/* 상세 설명 - 처음부터 보이게 설정 */
.about-desc {
    opacity: 1; /* 🔴 처음부터 보이게 */
    max-height: none; /* 🔴 높이 제한 없음 */
    overflow: visible; /* 🔴 다 보이게 */
    transition: all 0.5s ease;
    margin-top: 15px; /* 제목과의 간격 */
}

/* 🔴 마우스 커서를 올렸을 때 (Hover) */
.about-card:hover {
    /* 🔴 핵심: '하단 패딩'을 늘려 박스 천장을 위로 밀어 올림 */
    /* 이렇게 하면 바닥 밀착은 유지되면서 텍스트들이 슥 위로 갑니다. */
    padding-bottom: 70px; 
    
    /* 배경을 좀 더 불투명하게 (선택사항) */
    background: rgba(255, 255, 255, 1);
    
    /* 떠오르는 느낌의 깊은 그림자 */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* 등장 */
.about-card.active {
    animation: fadeUp 0.8s ease forwards;
}

/* 라벨 */
.about-title {
    font-size: 40px;
    font-weight: 600;
    color: #3b6faf;
    margin-bottom: 6px;
}

.about-label {
    font-size: 32px;
    font-weight: 300;
    color: #3975cb;
    margin-bottom: 16px;
    display: block;
}

.about-card h2 {
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 25px;
}

.about-desc p {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #787878;
    margin-bottom: 15px;
}

/* 애니메이션 */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 전문가소개 모바일 */
@media (max-width: 768px) {

    .about-inner {
        position: static;
    }

    .about-image {
        width: 100%;
    }

    .about {
        height: auto;
        padding: 80px 20px;
    }

    .about-card {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
    }

    .about-card h2 {
        font-size: 22px;
    }

    .about-desc p {
        font-size: 14px;
    }

}

/* =========================
   SERVICES
========================= */
.services {
    padding: 100px 0;
}

.services-grid {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 카드 */
.service-card {
    position: relative;
    /*height: 400px;  고정 높이를 주어야 슬라이더 느낌이 납니다 */
    aspect-ratio: 4 / 4;
    overflow: hidden;
    opacity: 0; /* 처음엔 숨김 */
    transition: opacity 1s ease-in-out;
}

/* 2. 카드 내 이미지 (Hero의 .slide 역할) */
.service-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease-in-out; /* 천천히 커지는 효과 */
    z-index: 1;
}

/* 3. 활성화 상태 (Hero의 .active 역할) */
.service-card.show {
    opacity: 1;
}

.service-card.show img {
    transform: scale(1.1); /* 이미지가 서서히 커짐 */
}

/* 🔥 핵심: 하단 오버레이 박스 */
.service-info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90%;
    background: rgba(255, 255, 255, 0.9);
    
    /* [기존] 기본 패딩값 유지 */
    padding: 20px; 
    
    /* 애니메이션 초기 상태 */
    opacity: 0;
    transform: translateY(40px);

    /* 🔴 추가: 박스 전체(패딩 포함)가 부드럽게 움직이게 설정 */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

/* 등장 (스크롤 시 활성화) */
.service-info.active {
    animation: fadeUp 0.8s ease forwards;
}

/* 🔴 핵심: 마우스 커서를 갖다 댔을 때 (Hover) */
.service-card:hover .service-info {
    /* 🔴 포인트: 위쪽 패딩 대신 '하단 패딩'을 늘려 텍스트를 위로 밀어 올립니다. */
    /* 이렇게 하면 바닥 밀착은 유지되면서 텍스트만 슥 위로 갑니다. */
    padding-bottom: 55px; 
    
    background: rgba(255, 255, 255, 1); /* 좀 더 선명하게 */
    
    /* 기존 fadeUp(0) 상태를 유지하면서 위로만 확장되게 강제 설정 */
    transform: translateY(0) !important; 
    
    /* 솟아오르는 느낌을 주는 부드러운 그림자 */
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.1);
}

/* 🔴 추가 포인트: 텍스트들도 살짝의 시간차를 두고 올라오게 하면 더 고급스럽습니다 (선택사항) */
.service-info h3,
.service-info .meta,
.service-info .desc {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 타이틀 */
.service-info h3 {
    font-size: 25px;
    font-weight: 400;
    color: #3b6faf;
    margin-bottom: -10px;

    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 메타 */
.service-info .meta {
    font-size: 25px;
    font-weight: 650;
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 설명 */
.service-info .desc {
    font-size: 23px;
    color: #555;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        display: flex;              /* 🔥 grid → flex */
        overflow-x: auto;           /* 🔥 가로 스크롤 */
        scroll-snap-type: x mandatory;

        gap: 16px;
        padding: 0 20px;

        -webkit-overflow-scrolling: touch;
    }

    .service-card {
        flex: 0 0 80%;              /* 🔥 한 카드 크기 */
        scroll-snap-align: center;
    }
}

/* =========================
   GIF GRID (정돈형)
========================= */
.gif {
    padding: 100px 40px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.gif-grid {
    max-width: 1400px;   /* 🔥 너무 넓지 않게 */
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;           /* 🔥 여백 핵심 */
}

/* GIF 카드 느낌 */
.gif-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    /*border-radius: 12px;                 /* 🔥 카드 느낌 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;

}

.gif-grid img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .gif-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================
   VIDEO (단일 강조형)
========================= */
.videos {
    padding: 120px 20px;
    background: #fff;
}

/* 가운데 정렬 */
.video-wrap {
    max-width: 900px;   /* 🔥 핵심 크기 */
    margin: 0 auto;
}

/* 카드 */
.video-item {
    overflow: hidden;
    border-radius: 14px;

    /* 애니메이션 초기 */
    opacity: 0;
    transform: translateY(60px);
}

/* 썸네일 */
.video-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* 등장 */
.video-item.active {
    animation: fadeUp 0.8s ease forwards;
}

.video-item {
    position: relative;
}

.video-item::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: 60px;
    color: rgba(255,255,255,0.9);
}

/* =========================
   REVIEWS (텍스트 포함)
========================= */
.reviews {
    padding: 100px 0;
    background: #f9fafb;
}

/* 🔥 텍스트 영역 */
.reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.reviews-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.reviews-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.reviews-header strong {
    font-size: 18px;
    color: #1d4ed8;
}

/* 슬라이드 영역 */
.reviews-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

/* 기존 그대로 */
.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.review-item img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.reviews-header strong {
    font-size: 18px;
    color: #1d4ed8;
    display: inline-block;
    margin-top: 5px;
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-text {
    background: #fff;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;

    border-radius: 6px;
    margin-top: 6px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .review-item img {
        width: 180px;
    }
}

/* =========================
   NEWS
========================= */
.news {
    padding: 100px 40px;
    background: #fff;
}

.news-inner {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 40px;
}

/* 텍스트 */
.news-text {
    flex: 1;
}

.news-text h2 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 버튼 */
.news-btn {
    display: inline-block;
    padding: 24px 40px;
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/* 이미지 */
.news-image {
    flex: 1;
}

.news-image img {
    width: 100%;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .news-inner {
        flex-direction: column;
    }
}

/* =========================
   BUSINESS SECTION
========================= */
.business {
    padding: 120px 0;
    background: #f8f9fb;
}

.business-header {
    max-width: 1650px;
    margin: 0 auto 60px;
}

.business-header h2 {
    font-size: 50px;
    font-weight: 700;
    color: #1f2b5c;
    margin-bottom: 10px;
}

.business-header p {
    font-size: 18px;
    color: #6b7280;
}

.business-inner {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding-right: 40px;
}

/* 좌측 파란 박스 내부 여백 및 라벨 설정 */
.business-left {
    flex: 0 0 70%;
    margin-left: calc(-50vw + 50%);
    /* 상단 패딩을 80px로 고정 (우측과 맞추기 위함) */
    padding: 80px 50px 50px calc(50vw - 50% + 80px); 
    background: linear-gradient(135deg,#1f2b5c,#2f3c6d);
    color: #fff;
    border-radius: 0 20px 20px 0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    font-weight: 300;
}

/* 🔴 좌측 '회사소개' 텍스트 및 박스 설정 */
.business-left .label {
    color: #facc15;
    font-size: 28px;
    display: block;
    font-weight: 400;
    
    /* 🔥 핵심 수정: height를 200px에서 40px 정도로 줄여야 합니다 */
    height: 40px; 
    line-height: 40px;
    margin-bottom: 0; 
}

/* 🔴 좌측 구분선 (::after) */
.business-left .label::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px; /* 너무 굵으면 2px 정도로 조절 */
    background: rgba(255,255,255,0.3);
    
    /* 🔥 라벨과 구분선 사이의 간격 */
    margin-top: 20px; 
}

/* 🔴 좌측 본문 텍스트 */
.business-left p {
    font-size: 25px; 
    line-height: 1.7; /* 줄 간격 */
    color: #fff;
    font-weight: 350; /* 너무 얇으면 400, 세련된 느낌은 300 */
    
    /* 🔥 핵심 수정: 구분선 바로 아래에 붙도록 상단 마진 조절 */
    /* 구분선의 margin-top이 20px이므로, 여기서도 30~40px 정도만 주면 밀착됩니다 */
    margin-top: 40px; 
    
    /* 문단 사이의 간격 */
    margin-bottom: 25px; 
    word-break: keep-all; /* 한글 단어 깨짐 방지 */
}

/* ---------------------------------- */

/* 우측 영역 설정 */
.business-right {
    flex: 0 0 30%;
    /* 좌측 패딩과 동일하게 상단 여백을 80px로 맞춤 */
    padding-top: 80px; 
}

/* 🔴 우측 업무 영역 제목 */
.business-right h3 {
    font-size: 25px;
    margin: 0; /* 마진을 없애고 높이를 좌측 라벨과 맞춤 */
    height: 40px; 
    line-height: 40px;
    font-weight: 400;
}

/* 🔴 우측 구분선 (.biz-divider) */
.business-right {
    flex: 0 0 35%; 
    padding-top: 80px; /* 좌측 padding-top과 동일하게 맞춰서 수평 유지 */
    display: flex;
    flex-direction: column;
}

/* 2. 업무 영역 제목 */
.business-right h3 {
    font-size: 28px;
    font-weight: 500;
    color: #1f2b5c;
    margin: 0;
    height: 40px;
    line-height: 40px;
}

/* 3. 우측 구분선 (두께 1px로 세련되게) */
.biz-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 25px 0 0 0; 
}

/* 4. 구분선 아래 설명 문구 (큼직하게) */
.biz-desc {
    margin-top: 20px; 
    font-size: 25px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
    word-break: keep-all;
}

/* 5. 슬라이더 영역 (카드가 잘리지 않게 폭 설정) */
.business-slider {
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
}

.business-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 6. 아이콘 카드 */
.biz-item {
    width: 300px;
    height: 300px;
    background: #EEEEEE;
    
    /* 🔴 수정 1: 패딩 대신 Flex를 사용하여 내부 요소를 정중앙에 배치 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center;     /* 가로 중앙 정렬 */
    
    padding: 0; /* 기존 패딩은 무시해도 됩니다 */
    text-align: center;
    border-radius: 20px;
    transition: all 0.5s ease;
    margin-bottom: 0;
    margin-top: 60px;
}

/* 카드 하단 텍스트 */
.biz-item p {
    font-size: 22px;
    font-weight: 380;
    color: #222;
    margin: 0; /* 🔴 여백 중복 방지 */
}

/* 마우스 올렸을 때 효과 */
.biz-item:hover {
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-10px);
}

/* 🔴 7. 남색 아이콘 박스 (추가분) */
.icon-box {
    width: 100px;
    height: 100px;
    background: #1f2b5c;
    border-radius: 30px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 🔴 수정 2: margin을 auto로 둬서 중앙을 유지하되, 텍스트(p)와의 간격만 줍니다 */
    margin: 0 0 20px 0; 
    transition: all 0.3s ease;
}

/* 🔴 남색 박스 안의 아이콘 색상 강제 변경 */
.icon-box svg {
    width: 70px !important;  /* 박스 크기에 맞춰 아이콘 크기 재조정 */
    height: 70px !important; 
    margin-bottom: 0 !important; /* 기존 margin-bottom 20px 제거 */
    stroke: #ffffff !important;  /* 아이콘 선 색상을 흰색으로 */
}


@media (max-width: 768px) {

    .business-inner {
        flex-direction: column;
        gap: 30px;
        padding-right: 0;
    }

    .business-slider {
        width: 100%; /* 🔥 핵심 */
        overflow: hidden;
    }

    .business-track {
        display: flex;
        gap: 12px;
    }

    .biz-item {
        height: 200px;
        margin-top: 20px;
        flex: 0 0 calc(50% - 6px); /* 🔥 2개 보이게 */
    }

    .icon-box {
        width: 70px;
        height: 70px;
    }

    .business-left {
        flex: none;
        width: 100%;

        margin-left: 0;
        padding: 40px 20px;

        border-radius: 20px;
    }

    .business-right {
        margin-left: 10px;
        flex: none;
        width: 100%;
        padding-top: 0;
    }
}

/* =========================
   FORM
========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input {
    padding: 12px;
    border: 1px solid #ddd;
}

.contact-form button {
    margin-top: 10px;
}

/* =========================
   FAQ
========================= */
.faq {
    padding: 120px 20px;
    background: #fff;
}

.faq-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 타이틀 */
.faq-header {
    text-align: left;
    margin-bottom: 30px;
}

.faq-header h2 {
    text-align: left;
    font-size: 70px;
    font-weight: 700;
}

.faq-header span {
    display: block;
    margin-top: 20px; /* 너무 멀면 숫자를 줄이세요 */
    font-size: 50px;  /* 원하는 만큼 키우세요 */
    color: #1d4ed8;
    font-weight: 700; /* 좀 더 두껍게 */
}

/* 검색 */
.faq-search {
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 17px 40px 17px 17px; /* 🔥 오른쪽 공간 확보 */
    font-size: 15px; /* 검색어 글자 크기 확대 */
    border: 1px solid #ddd;
    border-radius: 12px;
}

/* 버튼 */
.faq-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: none;
    cursor: pointer;

    font-size: 18px;
}

/* 설명 */
.faq-desc {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 20px;
    color: #0e0d0d;
}

/* 리스트 */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

/* 질문 */
.faq-question {
    display: flex;
    align-items: center;
    padding: 18px 10px;
    cursor: pointer;
    font-size: 23px;    /* 질문 글자 크기 확대 */
    font-weight: 600;
}

/* 화살표 */
.arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* 답변 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    font-size: 20px;
    color: #555;
    line-height: 1.7;
    transition: all 0.3s ease;
    padding: 0 10px;
}

/* 열림 상태 */
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 10px;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.faq-answer b,
.faq-question b {
    color: #1d4ed8;
    font-weight: 700;
    background: rgba(29, 78, 216, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}

.q-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    background: #1d4ed8;
    color: #fff;

    font-weight: 700;
    font-size: 17px;

    border-radius: 50%;

    margin-right: 20px;
}

.q-text {
    flex: 1;
}

/* FAQ Q&A 모바일 */
@media (max-width: 768px) {
    .faq-header h2 {
        font-size: 32px !important; /* 70px -> 32px */
    }

    .faq-header span {
        font-size: 24px !important; /* 50px -> 24px */
        margin-top: 10px;
    }

    .faq-question {
        font-size: 16px !important; /* 23px -> 16px */
        padding: 15px 5px;
    }

    .q-label {
        width: 24px;
        height: 24px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .faq-answer {
        font-size: 14px !important;
    }
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

@media (max-width: 768px) {
    /* 1. 컨테이너 너비 강제 조정 */
    .container, .header-inner, .business-header, .faq-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box; /* 패딩이 너비를 키우지 않도록 설정 */
    }

    /* 2. 이미지가 화면 밖으로 나가는 것 방지 */
    img, video, canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 3. 절대 위치(absolute) 요소 점검 */
    /* 특히 .content나 .about-card가 width: 600px 등으로 고정되어 있으면 범인입니다. */
    .content, .about-card, .service-info {
        width: calc(100% - 40px) !important; /* 좌우 여백 20px씩 제외 */
        left: 20px !important;
        right: 20px !important;
        box-sizing: border-box;
    }
}