/* =====================================================
   main.css — 메인 페이지 전용
   hero · why · cards · doctor · health · notice · map
   ===================================================== */

/* ===== Hero ===== */
.hero {
    position: relative; 
    height: 100vh; 
    min-height: 600px;
    display: flex; 
    align-items: flex-end; 
    overflow: hidden;
    z-index: 3;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg::after {
content: ''; position: absolute; inset: 0;
background: rgba(10,42,67,0.3);
}
.hero-content {
position: relative; z-index: 2; flex: 1;
padding: 100px 180px 120px;
display: flex; flex-direction: column; gap: 60px;
}
.hero-text { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}
.hero-title { 
    color: #FFF;
    font-family: Pretendard;
    font-size: 96px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.92px; 
}
.hero-sub { 
    color: #FFF;
    font-family: Pretendard;
    font-size: 56px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -1.68px; 
}
  .hero-slider-ctrl { display: flex; align-items: center; gap: 24px; }
  .slider-indicator { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: white; letter-spacing: -0.07em; }
  .slider-line { width: 120px; height: 2px; background: rgba(255,255,255,0.5); border-radius: 2px; position: relative; overflow: hidden; }
  .slider-line-inner { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: white; border-radius: 2px; transition: width 4s linear; }
  .slider-arrows { display: flex; gap: 12px; align-items: center; }
  .slider-arrows button { background: none; border: none; cursor: pointer; color: white; font-size: 20px; padding: 4px 8px; opacity: 0.8; transition: opacity 0.2s; }
  .slider-arrows button:hover { opacity: 1; }
  
  /* 컨트롤러는 슬라이드 최상단 */
    .hero .hero-slider-ctrl {
    position: absolute;
    z-index: 10;
    bottom: 100px;
    /* 기존 좌표값 유지 */
  }

  .hero .hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .hero .hero-slider .slide_box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
  }
  
  .hero .hero-slider .slide_box > .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    overflow: hidden;
    transition: opacity .7s ease-in-out;
  }
  
  .hero .hero-slider .slide_box > .slide.on {
    opacity: 1;
    z-index: 5;
  }
  
  /* 슬라이드 안 배경 - 구체성 높여서 기존 .hero-bg 덮어쓰기 */
  .hero .hero-slider .slide_box > .slide > .hero-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
  }
  
  /* 슬라이드 안 콘텐츠 - 기존 hero-content가 absolute일 가능성 대비 */
  .hero .hero-slider .slide_box > .slide > .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    /* 기존 padding/정렬은 이 안에서 조정 */
  }

  .hero-bg {
    /* 첫 슬라이드 이미지를 기본 배경으로 미리 지정 */
    background-image: url('/resource/images/main/pc/images/main-hero-bg.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    opacity: 1;            /* 0 → 1 로 변경: 처음부터 보이게 */
    transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.8s ease;
  }

  .hero-bg.is-active {
    transform: scale(1);
    opacity: 1;
  }
  
  .hero-content {
      position: relative;
      z-index: 2;
      flex: 1;
      padding: 100px 180px 200px;
      display: flex;
      flex-direction: column;
      gap: 60px;
  }
  
  .hero-title,
  .hero-sub {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease,
                transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* 활성 상태: 제자리로 이동 + 불투명 */
  .hero-title.is-active,
  .hero-sub.is-active {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* 제목 먼저, 서브텍스트는 살짝 늦게 등장 (순차 효과) */
  .hero-title.is-active {
    transition-delay: 0.1s;
  }
  .hero-sub.is-active {
    transition-delay: 0.25s;
  }
  
  /* 슬라이드 전환 시 빠지는 효과: 왼쪽으로 사라짐 */
  .hero-title.fade-out,
  .hero-sub.fade-out {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  /* ===== Why Section ===== */
  .why-section { position: relative; min-height: 960px; display: flex; align-items: center; overflow: hidden; }
  .why-bg { position: absolute; inset: 0; }
  .why-content {
    position: relative; z-index: 2; width: 100%;
    display: flex; flex-direction: column; align-items: flex-end;
    padding: 100px 100px; gap: 40px;
  }
  .why-text-wrap { width: 55%; max-width: 820px; }
  .why-tag {
font-family: "Libre Caslon Text";
font-size: 22px;
font-style: italic;
font-weight: 400;
line-height: normal;
letter-spacing: 4.4px;
    color: var(--point-color); margin-bottom: 14px;
  }
  .why-title { 
    color: var(--font-1); margin-bottom: 40px; 
    font-family: Pretendard;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.28px;
}
  .why-desc { color: #747474;
    font-family: Inter;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 46px; /* 143.75% */ 
	letter-spacing:-2.5px;}
  .why-btns { width: 55%; max-width: 820px; display: flex; gap: 20px; flex-wrap: wrap; }
  
  /* ===== Cards Section ===== */
  .cards-section { position: relative; overflow: hidden; }
  .cards-bg { position: absolute; inset: 0; }
  
  /* 5등분 세로 구분선 */
  /* 섹션 기본 설정 */
.cards-section { 
    position: relative; 
    overflow: hidden; 
    background-color: #0a2a43; /* 배경색 유지 */
}

.cards-bg { position: absolute; inset: 0; z-index: 1; }
/*
.cards-bg::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: rgba(10,42,67,0.72); 
}*/

/* 1. 제목 영역: absolute로 띄워서 카드들과 겹치게 배치 */
.cards-head { 
    position: absolute;
    top: 164px; /* 기존 padding-top 값 유지 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center; 
    z-index: 10; /* 카드보다 위에 위치 */
    pointer-events: none; /* 중요: 제목 영역 때문에 마우스 오버가 끊기지 않게 함 */
}
.cards-head .section-tag { color: #4ec4d2; }
.cards-head .section-title { color: white; font-size: 52px; margin-top: 10px; }

/* 2. 그리드: 5개 열이 섹션 전체 높이를 채움 */
.cards-grid {
    position: relative; 
    z-index: 2;
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    width: 100%;
    /* 기존 구분선 유지 */
    background-image:
      linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
      linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
      linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
      linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18));
    background-size: 1px 100%;
    background-position: 20% 0, 40% 0, 60% 0, 80% 0;
    background-repeat: no-repeat;
}

/* 3. 개별 아이템: 세로 전체 영역을 점유 */
.card-item {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: flex-end; /* 내용을 아래쪽으로 배치 */
    gap: 40px; 
    padding: 0 24px 80px; /* 기존 하단 padding 유지 */
    min-height: 800px; /* 섹션 전체의 높이를 결정하는 값 */
    transition: background 0.4s ease;
    cursor: pointer;
    position: relative;
}

/* 자세히보기 링크가 카드 전체를 덮도록 확장 */
.card-item .card-more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  /* 카드에 마우스 올렸을 때 커서를 포인터로 */
  .card-item {
    cursor: pointer;
  }

/* [마우스 오버 효과] */
.card-item:hover {
    background-color: rgba(255, 255, 255, 0.05); /* 마우스 올린 칸 전체 배경 살짝 밝게 */
}

/* 아이콘 흰색 반전 (마우스 오버 시) */
.card-item:hover .card-icon-wrap img {
    filter: brightness(0) invert(1);
}

/* 텍스트/버튼 흰색 유지 및 활성화 */
.card-item:hover .card-name,
.card-item:hover .card-desc {
    color: #FFF !important;
}
.card-item:hover .card-more {
    color: #FFF !important; /* 세부사항 버튼도 마우스 오버 시 흰색으로 */
}

/* 마우스 오버 시 원형 배경을 흰색으로 */
.card-item:hover .card-icon-wrap {
    background: #fff;
    backdrop-filter: none; /* 배경이 흰색일 땐 블러 제거가 깔끔함 */
}

/* 중요: 배경이 흰색이 될 때 아이콘은 원래 색상으로(또는 특정 포인트 컬러로) */
.card-item:hover .card-icon-wrap img {
    filter: none !important; /* 또는 포인트 컬러가 필요하면 brightness(0.5) 등 조절 */
}
/* 기존 스타일 유지 */
.card-icon-wrap {
    width: 140px; height: 140px; border-radius: 70px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform 0.3s ease;
}



.card-icon-wrap img { width: 60px; height: 60px; object-fit: contain; transition: all 0.3s; }
.card-text { text-align: center; display: flex; flex-direction: column; gap: 18px; }
.card-name { 
    color: #FFF; font-family: Pretendard; font-size: 30px; font-weight: 700; 
    letter-spacing: -0.6px; 
}
.card-desc { 
    color: #FFF; font-family: Pretendard; font-size: 18px; font-weight: 400; 
    line-height: 26px; 
}
.card-more {
    color: #9F9F9F !important; font-family: Inter; font-size: 16px; 
    display: flex; align-items: center; gap: 6px; cursor: pointer; margin-top: 30px;
}
  
  /* ===== Doctor Section ===== */
  .doctor-section { background: var(--main-color); padding: 160px 60px 0; }
  .doctor-head { text-align: center; margin-bottom: 60px; }
  .doctor-head .section-tag { color: #83cdda; }
  .doctor-head .section-title { color: white; margin-top: 10px; }
  .doctor-inner { display: flex; align-items: flex-start; justify-content: center; gap: 80px; flex-wrap: wrap; }
  .doctor-photo { /*width: 440px;*/ max-width: 100%; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
  .doctor-photo img { width: 100%; height: 100%; display: block; }
  .doctor-info { flex: 1; min-width: 280px; max-width: 705px; display: flex; flex-direction: column; gap: 40px; margin-top:60px;}
  .doctor-quote {
font-family: 'NanumMyeongjo';
font-size: 42px;
font-style: normal;
font-weight: 300;
line-height: 62px; /* 147.619% */
    color: #EAF3F8;
    margin-top: -35px;
    margin-bottom: 48px;
  }
  .doctor-name-row { color: #FFF;
    font-family: Pretendard;
    font-size: 46px;
    font-style: normal;
    font-weight: 400;
    line-height: normal; }
  .doctor-name-row strong { font-weight: 700; margin-right: 8px; }
  .career-section { display: flex; flex-direction: column; gap: 12px; }
  .career-title { font-size: 22px; font-weight: 600; color: var(--background); }
  .career-list { color: #FFF; font-family: Pretendard; font-size: 20px; font-weight: 200; line-height: 30px; }
  
  /* ===== Health Section ===== */
  .health-section { padding: 200px 100px; background: #EAF3F8; }
  .health-section .health-head { text-align: center; margin-bottom: 80px; }
  .health-inner { display: flex; gap: 80px; align-items: stretch; }
  
  .health-video {
    flex: 0 0 800px; width: 800px; height: 450px;
    position: relative; overflow: hidden;
    border-radius: 10px;
  }
  .health-video picture,
  .health-video picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .health-video .play-btn {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px; cursor: pointer;
  }
  
  .health-articles {
    flex: 1; display: flex; flex-direction: column; gap: 35px;
    overflow-y: scroll; max-height: 450px; padding-right: 8px;
    scrollbar-width: thin; scrollbar-color: #fff transparent;
  }
  .health-articles::-webkit-scrollbar { width: 5px; }
  .health-articles::-webkit-scrollbar-track { background: transparent; }
  .health-articles::-webkit-scrollbar-thumb { background: #fff; border-radius: 10px; }
  
  .article-item { display: flex; gap: 40px; align-items: center; cursor: pointer; }
  .article-thumb { flex: 0 0 225px; height: 127px; overflow: hidden; border-radius: 5px;}
  .article-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .article-text { flex: 1; }
  .article-title {
    color: #2E302F; font-family: Pretendard;
    font-size: 20px; font-weight: 700; line-height: normal; letter-spacing: -1.47px;
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .article-tags {
    color: #AEAEAE; font-family: Pretendard;
    font-size: 16px; font-weight: 400; letter-spacing: -1.12px;
  }
  
  /* ===== Notice Section ===== */
  .notice-section { background: white; padding: 100px 80px; }
  .notice-head { text-align: center; margin-bottom: 60px; }
  .notice-head .section-tag { color: #83cdda; }
  .notice-head .section-title { color: #2e302f; margin-top: 10px; }
  .notice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 66px; }
  .notice-card { display: flex; flex-direction: column; gap: 20px; cursor: pointer; }
  .notice-thumb { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
  .notice-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
  .notice-card:hover .notice-thumb img { transform: scale(1.04); }
  .notice-info { display: flex; flex-direction: column; gap: 10px;
    margin-top: 20px; }
  .notice-title { color: #2E302F;
    font-family: Pretendard;
    font-size: 21px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -1.47px; }
  .notice-date { font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal; color: #AEAEAE; }
  
  /* ===== Map Section ===== */
  .map-section { background: #F7F7F7; padding: 200px 112px; display: flex; justify-content: center; }
  .map-inner {
    display: flex; border-radius: 20px; overflow: hidden;
    width: 100%; box-shadow: 0 4px 30px rgba(0,0,0,0.1); height: 655px;
  }
  .map-image { flex: 1; min-width: 0; }
  .map-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 440px; }
  .map-info {
    background: var(--point-color); width: 600px; flex-shrink: 0;
    padding: 60px; display: flex; flex-direction: column; gap: 40px;
  }
  .map-headline { color: #FFF; font-family: Pretendard; font-size: 46px; font-weight: 700; line-height: normal; }
  .map-details { display: flex; flex-direction: column; gap: 20px; }
  .map-detail { display: flex; flex-direction: column; }
  .map-detail.row { flex-direction: row; gap: 20px; }
  .map-detail-label {
    color: #FFDFB3; font-family: Pretendard;
    font-size: 18px; font-weight: 700; line-height: 26px; margin-bottom: 20px;
  }
  .map-detail-value { color: #FFF; font-family: Pretendard; font-size: 18px; font-weight: 400; line-height: 26px; margin-bottom: 4px; }
  .map-detail-value strong { color: #FFF; font-family: Pretendard; font-size: 20px; font-weight: 700; line-height: 26px; }
  .time-rows { display: flex; flex-direction: column; gap: 2px; }
  .time-row { display: flex; gap: 16px; color: #FFF; font-family: Pretendard; font-size: 18px; font-weight: 400; line-height: 26px; }
  .time-row.small { color: #FFF; font-family: Pretendard; font-size: 16px; font-weight: 400; line-height: 26px; }
  .time-label { width: 100px; flex-shrink: 0; }
  
  /* ===== 배경 이미지 (PC 기본) ===== */
  .hero-bg   { background-image: url('/resource/images/main/pc/images/main-hero-bg.webp');    background-size: cover; background-position: center; }
  .why-bg    { background-image: url('/resource/images/main/pc/images/snoring-section-bg.webp'); background-size: cover; background-position: center; }
  .cards-bg  { background-image: url('/resource/images/main/pc/images/clinic-snoring-bg.png');  background-size: cover; background-position: center; }
  .doctor-bg { background-image: url('/resource/images/main/pc/images/doctor-bg.png');        background-size: cover; background-position: center; }
  

  @media (max-width: 1400px) {
    .card-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 40px;
        padding: 0 15px 80px;
    }

    .card-name {
        font-size: 21px;
    }
  }
  /* ===== Responsive — Main (tablet 1024px) ===== */
  @media (max-width: 1024px) {
    .hero-bg  { background-image: url('/resource/images/main/tablet/images/main-hero-bg.webp'); }
    .why-bg   { background-image: url('/resource/images/main/tablet/images/snoring-section-bg.webp'); }
    .hero-content { padding: 60px 60px 200px; }
    .hero-title { color: #FFF;
        font-family: Pretendard;
        font-size: 76px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -1.52px; }
    .hero-sub { color: #FFF;
        font-family: Pretendard;
        font-size: 42px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -1.26px; }
    .why-content { 
        padding: 0px 60px;
        align-items: start;
        margin-top: 110px;
     }
    .why-text-wrap, .why-btns { width: 65%; }
    .why-title { font-size: 52px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -1.04px; }
    .why-desc { color: #747474;
        font-family: Inter;
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: 40px; /* 142.857% */ 
		letter-spacing:-2.5px;}
    .cards-section {
            padding:0 0 100px 0;
        }
    .cards-head .section-title { color: #FFF;
        text-align: center;
        font-family: Pretendard;
        font-size: 64px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        letter-spacing: -1.28px; }
    .card-icon-wrap { width: 110px; height: 110px; border-radius: 55px; }
    .card-icon-wrap img { width: 48px; height: 48px; }
    .card-name { font-size: 30px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -0.6px; }
    .card-desc { font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px; /* 144.444% */ }
    .card-more {
        display: none;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        background-image: none; /* 구분선 제거 */
        padding-top: 400px;
      }
      .cards-head {
        padding: 100px 40px 60px;
      }
    
      .card-item {
        gap: 28px;
        padding: 20px;
        min-height: 300px;
      }
      .card-icon-wrap { width: 110px; height: 110px; border-radius: 55px; }
      .card-icon-wrap img { width: 48px; height: 48px; }
    
    .doctor-section { padding: 70px 60px; }
    .doctor-photo { width: 320px; margin: 0 auto;}
    .doctor-quote { 
        font-size: 36px;
        font-style: normal;
        font-weight: 300;
        line-height: 62px; /* 172.222% */ }
    .doctor-inner {
        display: flex;
        align-items: start;
        justify-content: center;
        gap: 120px;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .doctor-name-row {
        font-size: 36px;
    }
    .health-section { padding: 70px 60px; }
    .health-inner {
        display: flex;
        gap: 40px;
        align-items: stretch;
        flex-direction: column;
    }
    .health-video { width: 100%; max-width: initial; 
        flex: 0 0 100%;
        width: 100%;
        height: 450px;
        position: relative;
        overflow: hidden;
        aspect-ratio: 680 / 450;
        
    }
    .notice-section { padding: 70px 36px; }
    .notice-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .map-section { padding: 70px 36px; }
    .map-inner { flex-direction: column; height: initial; }
   
    .map-image img { min-height: 320px; }
    .map-info { width: 100%; padding: 40px 36px; }
    .map-headline { font-size: 28px; }
    
  }
  
  /* ===== Responsive — Main (mobile 767px) ===== */
  @media (max-width: 767px) {
    .cards-grid {
        padding-top: 0;
    }

    .hero-bg { background-image: url('/resource/images/main/mobile/images/main-hero-bg.webp'); }
    .why-bg  { background-image: url('/resource/images/main/mobile/images/snoring-section-bg.webp'); }
    .hero-content { padding: 40px 20px 180px; }
    .hero-title { color: #FFF;
        font-family: Pretendard;
        font-size: 48px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -0.96px; }
    .hero-sub { color: #FFF;
        font-family: Pretendard;
        font-size: 26px;
        font-style: normal;
        font-weight: 400;
        line-height: 36px; /* 138.462% */
        letter-spacing: -0.78px; }
    .hero { min-height: 500px; }
    .why-section {
        position: relative;
        min-height: 500px;
        display: flex;
        align-items: center;
        overflow: hidden;
        height: 100vh;
    }
    .why-content {         padding: 60px 20px;
        align-items: flex-start;
        gap: 80px;
        box-sizing: border-box;
        margin-top: 60px;}
    .why-text-wrap, .why-btns { width: 100%; max-width: 100%; }
    .why-title { font-size: 36px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -0.72px; }
    .why-desc { color: #747474;
        font-family: Inter;
        font-size: 18px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px; /* 144.444% */ 
		letter-spacing:-2.5px;}
    .why-tag {
        font-size: 14px;
        font-style: italic;
        font-weight: 400;
        line-height: normal;
        letter-spacing: 2.8px;
    }.cards-section {
        padding: 60px 0 0; /* 상단 여백 축소 */
        min-height: auto;
    }
    .career-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--background);
        margin-top: -20px;
    }

    /* 1. 제목 영역 수정 */
    .cards-head {
        position: relative; /* 모바일에서는 카드를 가리지 않게 상단에 고정 */
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .cards-head .section-title {
        font-size: 32px; /* 폰트 크기 축소 */
        word-break: keep-all; /* 단어 단위 줄바꿈 */
    }

    /* 2. 그리드를 1열로 변경 */
    .cards-grid {
        grid-template-columns: 1fr; /* 한 줄에 하나씩 */
        background-image: none; /* 세로 구분선 제거 */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* 3. 개별 아이템 레이아웃 수정 */
    .card-item {
        min-height: auto;
        padding: 50px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 세로선 대신 가로선 */
        gap: 24px; /* 간격 축소 */
        justify-content: center;
    }

    /* 4. 아이콘 및 텍스트 크기 미세 조정 */
    .card-icon-wrap {
        width: 100px;
        height: 100px;
        margin-bottom: 0;
    }

    .card-icon-wrap img {
        width: 45px;
        height: 45px;
    }

    .card-name {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
   
    .card-desc { color: #FFF;
        text-align: center;
        font-family: Pretendard;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px; /* 162.5% */ }
    .doctor-section { padding: 60px 20px; }
    .doctor-inner { flex-direction: column; align-items: center; gap: 36px; }
    .doctor-photo { width: 100%; max-width: 340px; }
    .doctor-quote { 
        font-size: 26px;
        font-style: normal;
        font-weight: 300;
        line-height: 36px; /* 138.462% */
        margin-bottom: 0;
     }
    .doctor-name-row { font-size: 26px; }
    .career-list { color: #FFF;
        font-family: Pretendard;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 171.429% */
        letter-spacing: -0.28px; }
    .health-section { padding: 60px 20px; }
    .health-inner { flex-direction: column; }
    .health-video { flex: none;
        width: 100%;
        max-width: initial;
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
        aspect-ratio: 335 / 189;
    }
    .article-thumb {
        flex: 0 0 160px;
        height: 90px;
    }
    .article-title {
        font-size: 14px;
        color: #2E302F;
        font-family: Pretendard;
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: 20px;
        letter-spacing: -0.98px;
        margin-bottom: 10px;
    }
    .article-tags {
        color: var(--Color, #AEAEAE);
        font-family: Pretendard;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -0.98px;
    }
    .article-item {
        gap: 10px;
    }
    .notice-section { padding: 60px 20px; }
    .notice-grid { grid-template-columns: repeat(1, 1fr); gap: 40px; }
    .map-section { padding: 60px 20px; }
    .notice-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .map-inner { flex-direction: column; border-radius: 16px; }
    .map-info { width: 100%; padding: 30px 24px; gap: 20px; }
    .map-headline { font-size: 24px; }
    .map-detail-label { font-size: 14px; }
    .map-detail-value { color: #FFF;
        font-family: Pretendard;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px; /* 162.5% */}

    .map-detail-value strong {
        color: #FFF;
font-family: Pretendard;
font-size: 26px;
font-style: normal;
font-weight: 700;
line-height: 26px; /* 100% */
    }
    .map-detail.row {
        flex-direction: column;
        gap: 10px;
    }
    .map-detail-label {
        color: #FFDFB3;
font-family: Pretendard;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 26px; /* 144.444% */
        margin-bottom: 10px;
    }

    .map-inner {
        height: initial;
    }
  }
  
  /* 카카오맵 컨테이너 높이 반응형 */
.map-image .root_daum_roughmap,
.map-image .root_daum_roughmap .wrap_map {
  width: 100% !important;
  height: 655px !important;
}

@media (max-width: 1024px) {
    .map-image .root_daum_roughmap,
    .map-image .root_daum_roughmap .wrap_map {
      height: 450px !important;
    }
  }

@media (max-width: 767px) {
  .map-image .root_daum_roughmap,
  .map-image .root_daum_roughmap .wrap_map {
    height: 420px !important;
  }

  
}

/* 어두운 배경 */
.overlay {
    display: none;
    position: fixed;   /* ✅ absolute → fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;      /* min-height 대신 height 고정 */
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    justify-content: center;
    align-items: flex-start; /* 필요에 따라 center */
    padding: 100px 0;
    box-sizing: border-box;
    overflow-y: auto;  /* 내용이 많으면 스크롤 */
  }

  /* 약관 전문 팝업 */
  .terms-popup {
    background: #fff;
    width: 560px;
    max-width: 100%;
    padding: 0;
    position: relative;
    border-radius: 0;
    box-sizing: border-box;
}

/* 닫기 버튼 */
.terms-popup .close-btn {
  position: absolute;
  top: 35px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 제목 */
.terms-popup .terms-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F1014;
    height: 108px;
    display: flex;
    align-items: center;
    font-family: Inter;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
    padding-left: 40px;
}

/* 스크롤 영역 */
.terms-popup .terms-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    border: 1px solid var(---, #CDCDCD);
    background: #F8F8FA;
    padding: 32px 55px 30px 35px;
    box-sizing: border-box;
    color: var(---, #616161);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.28px;
    max-height: 50vh;
    overflow-y: auto;
}

.terms-popup .terms-content h3 {
    color: var(---, #616161);
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 22px; /* 137.5% */
letter-spacing: -0.32px;
}

.public-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.sub-public-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px; /* 137.5% */
    letter-spacing: -0.32px;
}

.sub-public {
    margin-bottom: 20px;
}


@media (max-width: 760px) {

    .terms-popup {
        background: #fff;
        width: 95%;
        max-width: initial;
        padding: 0;
        position: relative;
        border-radius: 0;
        box-sizing: border-box;
    }
    /* 제목 */
    .terms-popup .terms-title {
        font-size: 24px;
        font-weight: 700;
        color: #0F1014;
        height: 80px;
        display: flex;
        align-items: center;
        font-family: Inter;
        font-size: 26px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: -0.72px;
        padding-left: 30px;
    }
    
    /* 스크롤 영역 */
    .terms-popup .terms-content {
        font-size: 14px;
        line-height: 1.6;
        color: #333;
        border: 1px solid var(---, #CDCDCD);
        background: #F8F8FA;
        padding: 32px 25px 30px 25px;
        box-sizing: border-box;
        color: var(---, #616161);
        font-family: Inter;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: -0.28px;
        max-height: 50vh;
        overflow-y: auto;
    }

    .close-btn {
        position: absolute;
        top: 27px !important;
        right: 20px !important;
        background: none;
        border: none;
        cursor: pointer;
    }

    .close-btn img {
        width: 30px;
    }
}