/* cavity.css - 충치치료 페이지 */

/* --------------------- cavity header */

#cavity_header {
  position: relative;
  width: 100%;
  height: 920px;
  overflow: hidden;
}

#cavity_header .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#cavity_header .hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#cavity_header .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

#cavity_header .container {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cavity_header .wrapper {
  text-align: center;
}

#cavity_header .hero-content {
  color: #fff;
}

#cavity_header .hero-content h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* --------------------- cavity section 01 */

#cavity_section_1 {
  background: #f9f9f9;
  padding: 100px 0;
}

#cavity_section_1 .container .wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#cavity_section_1 .section-content {
  text-align: center;
}

#cavity_section_1 h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.4;
}

#cavity_section_1 .subtitle {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #333;
  margin-bottom: 50px;
  line-height: 1.6;
}

#cavity_section_1 .description {
  max-width: 900px;
  margin: 0 auto;
}

#cavity_section_1 .description p {
  font-size: var(--text-sm);
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* --------------------- cavity section 02 */

#cavity_section_2 {
  background: #e5e5e5;
  padding: 100px 0;
}

#cavity_section_2 .container .wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

#cavity_section_2 h2 {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.4;
}

#cavity_section_2 .cards-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

#cavity_section_2 .cavity-card {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
}

#cavity_section_2 .cavity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#cavity_section_2 .card-image {
  width: 100%;
  height: 250px;
  background: #fff;
  overflow: hidden;
}

#cavity_section_2 .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#cavity_section_2 .card-content {
  background: #17a2a2;
  padding: 25px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#cavity_section_2 .step-label {
  font-size: var(--text-md);
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cavity_section_2 .card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

#cavity_section_2 .card-description {
  font-size: var(--text-sm);
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

#cavity_section_2 .arrow {
  font-size: var(--text-md);
  color: #fff;
  margin: 15px 0;
}

#cavity_section_2 .treatment {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}

/* --------------------- cavity section 03 */

#cavity_section_3 {
  background: #fff;
  padding: 100px 0;
}

#cavity_section_3 .container .wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

#cavity_section_3 h2 {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #333;
  margin-bottom: 80px;
  line-height: 1.4;
}

#cavity_section_3 .process-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

#cavity_section_3 .process-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#cavity_section_3 .process-step {
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  min-height: 160px;
  width: 290px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cavity_section_3 .process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#cavity_section_3 .process-step.teal {
  background: #b3e5e0;
}

#cavity_section_3 .process-step.white {
  background: #fff;
  border: 2px solid #e5e5e5;
}

#cavity_section_3 .step-number {
  width: 50px;
  height: 50px;
  background: #17a2a2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 auto 20px;
}

#cavity_section_3 .step-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

#cavity_section_3 .process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#cavity_section_3 .process-arrow img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* --------------------- cavity section 04 */

#cavity_section_4 {
  background: #f9f9f9;
  padding: 100px 0;
}

#cavity_section_4 .container .wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

#cavity_section_4 h2 {
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #333;
  margin-bottom: 60px;
  line-height: 1.4;
}

#cavity_section_4 .materials-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

#cavity_section_4 .material-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 30px;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cavity_section_4 .material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

#cavity_section_4 .material-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 2px solid #00a79d;
  margin-bottom: 25px;
}

#cavity_section_4 .material-header .checkmark {
  flex-shrink: 0;
}

#cavity_section_4 .material-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: #00a79d;
  margin: 0;
}

#cavity_section_4 .consult-link {
  margin-left: auto;
  font-size: var(--text-xs);
  color: #888 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  /* Override aesthetic.css styles */
  display: inline;
  width: auto;
  height: auto;
  background: none !important;
  border-radius: 0;
  box-shadow: none !important;
  font-weight: 400;
}

#cavity_section_4 .consult-link:hover {
  color: #00a79d !important;
  background: none !important;
  transform: none;
  box-shadow: none !important;
}

#cavity_section_4 .material-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#cavity_section_4 .material-section h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
}

#cavity_section_4 .material-section p {
  font-size: var(--text-sm);
  font-weight: 400;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* =====================================================
   모바일 반응형 스타일
   ===================================================== */

/* --------------------- 태블릿 (768px 이하) */
@media screen and (max-width: 768px) {
  /* Header */
  #cavity_header {
    height: 450px;
  }
  #cavity_header .hero-content h1 {
    font-size: 38px;
  }

  /* Section 1 */
  #cavity_section_1 {
    padding: 60px 0;
  }
  #cavity_section_1 .container .wrapper {
    padding: 0 24px;
  }
  #cavity_section_1 h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  #cavity_section_1 .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  #cavity_section_1 .description p {
    font-size: 16px;
  }

  /* Section 2 - 치아 상태 단계 (2열 그리드) */
  #cavity_section_2 {
    padding: 60px 0;
  }
  #cavity_section_2 .container .wrapper {
    padding: 0 24px;
  }
  #cavity_section_2 h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  #cavity_section_2 .cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  #cavity_section_2 .cavity-card {
    border-radius: 12px;
  }
  #cavity_section_2 .card-image {
    height: 140px;
  }
  #cavity_section_2 .card-content {
    padding: 16px 12px;
  }
  #cavity_section_2 .step-label {
    font-size: 12px;
  }
  #cavity_section_2 .card-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  #cavity_section_2 .card-description {
    font-size: 12px;
    margin-bottom: 10px;
  }
  #cavity_section_2 .arrow {
    font-size: 18px;
    margin: 10px 0;
  }
  #cavity_section_2 .treatment {
    font-size: 12px;
  }

  /* Section 3 - 신경치료 절차 */
  #cavity_section_3 {
    padding: 60px 0;
  }
  #cavity_section_3 .container .wrapper {
    padding: 0 24px;
  }
  #cavity_section_3 h2 {
    font-size: 28px;
    margin-bottom: 50px;
  }
  #cavity_section_3 .process-flow {
    gap: 30px;
  }
  #cavity_section_3 .process-row {
    flex-wrap: wrap;
    gap: 15px;
  }
  #cavity_section_3 .process-step {
    width: calc(50% - 10px);
    min-height: 130px;
    padding: 25px 15px;
  }
  #cavity_section_3 .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 15px;
  }
  #cavity_section_3 .step-text {
    font-size: 14px;
  }
  #cavity_section_3 .process-arrow {
    display: none;
  }

  /* Section 4 - 재료 비교 (1열 그리드) */
  #cavity_section_4 {
    padding: 60px 0;
  }
  #cavity_section_4 .container .wrapper {
    padding: 0 24px;
  }
  #cavity_section_4 h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  #cavity_section_4 .materials-grid {
    gap: 16px;
  }
  #cavity_section_4 .materials-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #cavity_section_4 .material-card {
    padding: 24px;
    border-radius: 12px;
  }
  #cavity_section_4 .material-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  #cavity_section_4 .material-title {
    font-size: 20px;
  }
  #cavity_section_4 .consult-link {
    font-size: 13px;
  }
  #cavity_section_4 .material-content {
    gap: 16px;
  }
  #cavity_section_4 .material-section h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  #cavity_section_4 .material-section p {
    font-size: 15px;
  }
}

/* --------------------- 모바일 (480px 이하) */
@media screen and (max-width: 480px) {
  /* Header */
  #cavity_header {
    height: 380px;
  }
  #cavity_header .hero-content h1 {
    font-size: 30px;
  }

  /* Section 1 */
  #cavity_section_1 {
    padding: 50px 0;
  }
  #cavity_section_1 .container .wrapper {
    padding: 0 16px;
  }
  #cavity_section_1 h2 {
    font-size: 24px;
  }
  #cavity_section_1 .subtitle {
    font-size: 15px;
  }
  #cavity_section_1 .description p {
    font-size: 15px;
  }

  /* Section 2 (2열 그리드) */
  #cavity_section_2 {
    padding: 50px 0;
  }
  #cavity_section_2 .container .wrapper {
    padding: 0 16px;
  }
  #cavity_section_2 h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  #cavity_section_2 .cards-row {
    gap: 12px;
  }
  #cavity_section_2 .cavity-card {
    border-radius: 10px;
  }
  #cavity_section_2 .card-image {
    height: 100px;
  }
  #cavity_section_2 .card-content {
    padding: 12px 10px;
  }
  #cavity_section_2 .step-label {
    font-size: 10px;
    margin-bottom: 6px;
  }
  #cavity_section_2 .card-title {
    font-size: 13px;
    margin-bottom: 8px;
  }
  #cavity_section_2 .card-description {
    font-size: 10px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  #cavity_section_2 .card-description br {
    display: none;
  }
  #cavity_section_2 .arrow {
    font-size: 14px;
    margin: 6px 0;
  }
  #cavity_section_2 .treatment {
    font-size: 10px;
  }

  /* Section 3 */
  #cavity_section_3 {
    padding: 50px 0;
  }
  #cavity_section_3 .container .wrapper {
    padding: 0 16px;
  }
  #cavity_section_3 h2 {
    font-size: 24px;
    margin-bottom: 40px;
  }
  #cavity_section_3 .process-step {
    width: 100%;
    min-height: 110px;
    padding: 20px 15px;
    border-radius: 14px;
  }
  #cavity_section_3 .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 12px;
  }
  #cavity_section_3 .step-text {
    font-size: 13px;
  }
  #cavity_section_3 .step-text br {
    display: none;
  }

  /* Section 4 (1열 그리드) */
  #cavity_section_4 {
    padding: 50px 0;
  }
  #cavity_section_4 .container .wrapper {
    padding: 0 16px;
  }
  #cavity_section_4 h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  #cavity_section_4 .materials-grid {
    gap: 14px;
  }
  #cavity_section_4 .materials-row {
    gap: 14px;
  }
  #cavity_section_4 .material-card {
    padding: 20px;
    border-radius: 10px;
  }
  #cavity_section_4 .material-header {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  #cavity_section_4 .material-title {
    font-size: 18px;
  }
  #cavity_section_4 .consult-link {
    font-size: 12px;
  }
  #cavity_section_4 .material-content {
    gap: 14px;
  }
  #cavity_section_4 .material-section h4 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  #cavity_section_4 .material-section p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ============================================
   WISDOM HEADER: 사랑니 발치 히어로 섹션
   ============================================ */

