/* Responsive styles for screens up to 768px wide (Tablet/Mobile) */
@media (max-width: 768px) {
  body {
    padding-bottom: 57px;
  }

  .banner__inner {
    padding-top: 78px;
    /* 모바일/태블릿 상단 여백 */
    padding-left: 40px;
    /* 모바일/태블릿 좌우 여백 */
    padding-right: 40px;
    /* 모바일/태블릿 좌우 여백 */
    min-height: auto;
    /* 내용에 따라 높이 조절 */
  }

  .eyebrow {
    font-size: 28px;
    /* 모바일/태블릿 폰트 크기 */
  }

  .note {
    margin: 0 0 53px 0;
    /* 모바일/태블릿 하단 여백 */
    font-size: 16px;
    /* 모바일/태블릿 폰트 크기 */
  }

  .title img.desktop-title-image {
    display: none;
    /* 768px 이하에서는 s3.png 숨김 */
  }

  .title img.mobile-title-image {
    display: block;
    /* 768px 이하에서는 s4.png 표시 */
  }

  .mobile-only-break {
    display: inline;
  }
}

/* Responsive styles for screens up to 390px wide (Small Mobile) */
@media (max-width: 390px) {
  .banner__inner {
    padding-left: 56px;
    /* 390px 이하 좌우 여백 */
    padding-right: 56px;
    /* 390px 이하 좌우 여백 */
  }
  .eyebrow {
    font-size: 24px;
  } /* 390px 이하 폰트 크기 */
  .note {
    font-size: 14px;
  } /* 390px 이하 폰트 크기 */
}

/* --- Responsive styles specific to 2.html (moved from inline) --- */
/* New media query for success-stories-container stacking */
@media (max-width: 1200px) {
  .success-stories-container {
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items when stacked */
    gap: 40px;
    /* More space between stacked items */
  }

  .story-item {
    width: calc(100% - 40px);
    /* 화면 너비에서 좌우 20px씩 여백을 둠 */
    max-width: 386px;
    /* Maintain max width */
  }
}

/* Responsive styles for 2.html */
@media (max-width: 768px) {
  body {
    padding-top: 58px;
    /* Mobile top padding */
  }

  .section-title__main,
  .section-title__sub {
    font-size: 32px;
    /* Adjust for smaller screens */
    line-height: 40px;
  }

  .section-title__sub {
    margin-bottom: 50px;
    /* Adjust margin for mobile */
  }

  .swiper-slide-b {
    width: 214px; /* 모바일 슬라이드 너비 */
    height: 118px; /* 모바일 슬라이드 높이 */
  }
  /* .swiper-slide-b img의 height는 .swiper-slide-b의 height에 맞춰지므로 별도 설정 불필요 */

  .story-item__highlight,
  .story-item__name {
    font-size: 16px;
    /* Adjust font size for mobile */
    line-height: 24px;
  }

  .slider-section {
    margin-top: 80px;
    /* Adjust margin for mobile */
  }
}

@media (max-width: 390px) {
  .section-title__main,
  .section-title__sub {
    font-size: 28px;
    /* Even smaller for very small screens */
    line-height: 36px;
  }

  .mobile-only-break-2 {
    display: inline;
    /* 390px 이하에서 보이도록 설정 */
  }
}

/* --- Responsive styles specific to 4.html --- */
@media (max-width: 500px) {
  .card-grid-container {
    width: 150%; /* 500px 이하에서 150% 너비 적용 */
    padding-left: 20px; /* 500px 이하 좌측 여백 */
    padding-right: 0; /* 우측 패딩 0 */
  }
}

@media (max-width: 1440px) {
  /* 1440px 이하 */
  .card-grid-container {
    padding-left: 120px; /* 좌측 여백 30px */
    padding-right: 0; /* 우측 패딩 0 */
  }

  .card-item {
    width: auto; /* Swiper 슬라이드 내에서 크기 조절 허용 */
    height: auto; /* 높이 자동 조절 */
  }
}

@media (max-width: 768px) {
  .why-landit-section__point .point-bg {
    font-size: 18px;
    line-height: 28px;
    padding: 3px 10px;
  }

  .why-landit-section__title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 12px;
  }

  .why-landit-section__subtitle {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 40px;
  }

  .why-landit-section {
    margin-bottom: 0;
    /* Mobile margin below subtitle */
  }

  .card-grid-container {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
    gap: 30px;
    /* Mobile gap between cards */
    padding: 0 20px;
    /* Mobile padding for the grid container */
  }

  .card-item {
    width: 100%; /* swiper-slide의 너비를 채움 */
    max-height: 438px;
    /* 모바일에서 최대 높이 438px */
    height: auto;
    /* 내용에 따라 높이 조절 */
    margin: 0 auto;
    /* 슬라이드 중앙 정렬 */
  }

  .card-image.desktop-card-image {
    display: none;
  }

  .swiper-slide {
    width: 278px; /* 모바일에서 슬라이드 고정 너비 */
  }
  .card-grid-container {
    padding-left: 20px; /* 모바일 좌측 여백 20px */
    padding-right: 0; /* 우측 패딩 0 */
  }
  .card-image.mobile-card-image {
    display: block;
  }

  .card-content {
    padding: 25px 25px 15px 25px;
    /* Adjust padding for mobile */
  }

  .card-title {
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 12px;
  }

  .card-description {
    font-size: 14px;
    line-height: 30px;
    margin-bottom: 0px;
  }

  .author-image {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }

  .author-name {
    font-size: 14px;
    line-height: 18px;
  }
}

@media (max-width: 390px) {
  .why-landit-section__title {
    font-size: 28px;
    line-height: 36px;
  }

  .why-landit-section__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .card-grid-container {
    padding: 0 15px;
    /* Even smaller padding for very small screens */
  }

  .card-content {
    padding: 20px 20px 10px 20px;
  }

  .card-title {
    font-size: 18px;
    line-height: 28px;
  }

  .card-description {
    font-size: 14px;
    line-height: 16px;
  }
}

/* --- Responsive styles specific to 3.html (moved from inline) --- */
@media (max-width: 768px) {
  .why-landit-grid {
    grid-template-columns: 1fr;
    /* 1x4 grid on mobile */
    gap: 20px;
    /* Gap between grid items */
    margin-top: 40px;
    /* Mobile margin below title section */
    padding: 0 20px;
    /* Mobile padding for the grid container */
  }

  .grid-item {
    flex-direction: column;
    /* Stack left and right content vertically */
    align-items: flex-start;
    /* Align content to the left */
    padding: 30px 20px;
    /* Adjust padding for mobile */
    gap: 10px;
    /* Adjust gap between stacked content */
  }

  .grid-item__point {
    font-size: 16px;
    /* Adjust font size for mobile */
    line-height: 1.2;
  }

  .grid-item__number {
    font-size: 24px;
    /* Adjust font size for mobile */
    line-height: 1.2;
  }

  .grid-item__title {
    font-size: 20px;
    /* Adjust font size for mobile */
    line-height: 1.3;
  }

  .grid-item__description {
    font-size: 24px;
    /* Adjust font size for mobile */
    line-height: 1.3;
  }
}

@media (max-width: 390px) {
  .why-landit-grid {
    padding: 0 15px;
    /* Even smaller padding for very small screens */
  }
  .grid-item {
    padding: 25px 15px;
    /* Adjust padding for very small screens */
  }
}

/* --- Responsive styles specific to 5.html --- */
@media (max-width: 1200px) {
  .tabs-container,
  .image-scroll-container {
    /* 1200px 이하 화면에서 좌우 여백 추가 */
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .tabs-container {
    margin-top: 40px;
    margin-bottom: 20px;
    gap: 15px;
    height: 60px;
  }

  .tab-button {
    font-size: 24px;
  }

  .image-scroll-container {
    height: 60vh; /* 모바일에서는 뷰포트 높이의 60%를 사용 */
  }
}

/* --- Responsive styles specific to 6.html --- */
@media (max-width: 1200px) {
  .management-grid-container {
    padding: 0 20px;
  }

  .management-card {
    width: 100%; /* 화면 작아지면 여백을 제외하고 꽉 차게 변경 */
    max-width: 585px;
  }

  .review-cards-container {
    padding: 0 20px;
    flex-direction: column;
    align-items: center; /* 카드들을 중앙 정렬 */
  }

  .review-card {
    width: 387px;
    max-width: 100%; /* 아주 작은 폰 화면에서 잘리는 것 방지 */
    flex: none; /* PC버전의 flex: 1 해제 */
  }

  /* --- Responsive styles specific to 7.html --- */
  .eval-legend-wrap {
    flex-wrap: wrap; /* 1200px 이하부터 공간 부족 시 줄바꿈 허용 */
    padding: 0 20px;
  }

  .slider-wrapper,
  .eval-section__title {
    margin-left: 20px; /* 1200px 이하일 때 좌측 여백 축소 */
  }

  .swiper-slide-eval {
    width: 600px; /* 태블릿 환경에서 카드 폭 축소 */
  }
  .card-body {
    flex-direction: column;
    align-items: center;
  }

  /* --- Responsive styles specific to 10.html --- */
  .benefit-grid {
    grid-template-columns: 1fr; /* 1200px 이하부터 1열(1x4) 레이아웃 */
    padding: 0 20px;
  }
}

@media (max-width: 1100px) {
  .management-grid {
    grid-template-columns: 1fr; /* 1100px 이하부터 1열(세로) 배치 */
  }
}

@media (max-width: 768px) {
  .management-grid-container {
    margin-top: 27px;
  }

  .management-grid {
    row-gap: 24px;
  }
  .management-card {
    height: auto;
  }

  .management-card.card-1 .msg-wrap.align-start {
    width: 78.2%;
    max-width: 100%;
    height: auto;
  }

  .management-card.card-1 .msg-wrap.align-end {
    width: 92%;
    max-width: 100%;
    height: auto;
  }

  .management-card.card-1 .msg-wrap picture {
    height: auto;
  }

  .management-card.card-1 .msg-wrap img {
    height: auto;
    object-fit: contain;
    max-width: 100%;
    object-position: top;
  }

  .anim-pop-1-set1 {
    aspect-ratio: 564 / 128;
    width: 100%;
  }
  .anim-pop-1-set2 {
    aspect-ratio: 666 / 126;
    width: 100%;
  }
  .anim-pop-2-set1 {
    aspect-ratio: 800 / 324;
    width: 100%; /* 부모 크기인 83.7%에 맞춰 꽉 차게 변경 */
  }
  .anim-pop-2-set2 {
    aspect-ratio: 660 / 374;
    width: 100%; /* 부모 크기인 83.7%에 맞춰 꽉 차게 변경 */
  }

  .management-card.card-1 .management-img-box {
    gap: 16px;
    padding: 24px 21px 25px 14px; /* 상 우 하 좌 */
  }

  .management-img-box {
    height: auto; /* 비율 유지를 위해 자동 높이 설정 */
    aspect-ratio: 350 / 276;
  }

  .management-text-box {
    padding: 30px 20px; /* 모바일에서 패딩 축소 */
  }

  .management-text-box__desc br {
    display: none; /* 모바일에서 자연스럽게 줄바꿈되도록 br 숨김 */
  }

  /* --- Responsive styles specific to 8.html --- */
  .habit-image-container {
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
    aspect-ratio: 350 / 239; /* 모바일 이미지 비율 */
  }

  .operation-container {
    margin-top: 50px;
    padding: 0 20px;
  }

  .operation-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .operation-block {
    width: 100%;
    height: 70px;
    font-size: 16px;
    justify-content: flex-start; /* 모바일에서는 좌측 정렬이 조금 더 깔끔할 수 있음 */
    padding-left: 20px;
  }

  /* 모바일에서는 지그재그 해제하고 1열 배치 */
  .operation-block.block-1,
  .operation-block.block-2,
  .operation-block.block-3,
  .operation-block.block-4 {
    margin-left: 0;
  }

  .circle-dots {
    margin-top: 30px;
  }

  .review-cards-container {
    gap: 16px;
  }

  .review-text br {
    display: none; /* 모바일에서 화면 크기에 맞게 자연스럽게 줄바꿈 되도록 설정 */
  }

  /* --- Responsive styles specific to 7.html --- */
  .eval-title {
    font-size: 24px;
    font-weight: 600; /* semibold */
    margin-bottom: 12px;
  }

  .eval-title .desktop-text,
  .eval-subtitle .desktop-text {
    display: none;
  }

  .eval-title .mobile-text,
  .eval-subtitle .mobile-text {
    display: block;
  }

  .eval-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    word-break: keep-all;
  }

  .eval-legend-wrap {
    gap: 10px; /* 모바일에서는 항목 간 간격을 약간 좁힘 */
  }

  .eval-section__title {
    font-size: 24px;
    margin: 50px 0 20px 20px; /* 모바일에서는 여백을 약간 줄임 */
  }
  .slider-wrapper {
    margin-left: 20px;
    width: calc(100% - 20px);
  }
  .swiper-slide-eval {
    width: 85vw; /* 모바일 환경에서는 화면의 85% 차지 */
  }
  .professor-card {
    min-height: 634px;
  }
  .card-header {
    height: 100px;
    padding-left: 24px;
  }
  .prof-name {
    font-size: 24px;
  }
  .card-body {
    padding: 24px;
    gap: 20px;
    padding-top: 10px;
  }
  .satisfaction-badge {
    margin-top: 8px;
  }
  .chart-box {
    width: 184px;
    height: 184px;
  }
  /* 모바일에서 캔버스 크기 강제 적용 */
  .chart-box canvas {
    width: 184px !important;
    height: 184px !important;
  }
  .stars-row {
    margin-bottom: 15px;
  }
  .stars-row i {
    font-size: 28px;
  }
  .review-item {
    min-height: 49px;
    font-size: 16px;
    line-height: 29px; /* 글자 크기 16px + 위아래 간격 13px */
    padding: 8px 22px;
    text-align: center;
    justify-content: center; /* flex 환경에서 중앙 정렬을 위해 추가 */
  }
  .review-item br {
    /* display: inline;  */
  }

  /* --- Responsive styles specific to 9.html --- */
  .final-title {
    font-size: 26px; /* 모바일 타이틀 크기 조절 */
    margin-bottom: 20px;
  }
  .final-quote-text {
    font-size: 16px; /* 모바일 리뷰 텍스트 크기 조절 */
  }
  .final-author {
    font-size: 14px;
  }
  .quote-wrapper {
    margin-bottom: 31px;
  }
  /* --- Responsive styles specific to 10.html --- */
  .benefit-header-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 55px;
  }
  .benefit-grid {
    row-gap: 21px; /* 모바일 세로 갭 */
  }
  .benefit-card {
    padding: 30px 24px; /* 모바일 카드 내부 여백 축소 */
  }
  .benefit-card__top {
    flex-direction: column;
    align-items: center;
    text-align: center; /* 텍스트 중앙 정렬 */
  }
  .benefit-card__info {
    order: 2; /* 텍스트를 아래로 */
  }
  .benefit-sub {
    font-size: 13px;
  }
  .benefit-title,
  .benefit-title.title-28,
  .benefit-title.title-26 {
    font-size: 18px;
  }
  .benefit-card:nth-child(3) .benefit-title .highlight {
    color: #222222; /* 모바일에서 '무료 강의' 텍스트 검정색으로 변경 */
  }
  .benefit-img {
    width: 88px;
    height: 88px;
    order: 1; /* 이미지를 위로 */
    margin-bottom: 16px; /* 이미지와 텍스트 사이 여백 */
  }
  .benefit-btn {
    font-size: 18px;
    height: 56px;
    padding: 0;
  }
  br.mobile-only-break-2 {
    display: block;
  }
}

@media (max-width: 500px) {
  .swiper-slide-eval,
  .professor-card {
    width: 78vw;
  }
  .eval-legend-wrap {
    display: none;
  }
}
