/* 모바일 반응형 CSS (768px 이하) */
@media screen and (max-width: 768px) {
  .container-wrap {
    overflow: hidden;
  }
  /* 헤더 스타일 */
  .headers-wrap {
    gap: 20px;
    padding: 20px 10px;
    align-items: center;
  }

  .header-logo {
    width: 100%;
  }

  .headers-wrap img {
    width: 35%;
    max-width: 120px;
  }

  /* 모바일에서 기존 네비게이션 숨김 */
  .desktop-navigation {
    display: none;
  }

  /* 모바일 햄버거 버튼 표시 */
  .mobile-menu-btn {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
  }

  .mobile-menu-btn img {
    width: 24px;
    height: 24px;
  }

  /* 모바일 사이드바 */
  .mobile-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-sidebar.active {
    visibility: visible;
    opacity: 1;
  }

  .mobile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-sidebar.active .mobile-sidebar-content {
    transform: translateX(0);
  }

  .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    color: #666;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-sidebar-close:hover {
    background-color: #f5f5f5;
  }

  .mobile-sidebar-nav {
    padding: 30px 20px;
  }

  .mobile-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-sidebar-nav ul li {
    padding: 18px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease;
  }

  .mobile-sidebar-nav ul li:hover {
    color: #007025;
  }

  .mobile-lang-container {
    padding: 30px 20px;
    display: flex;
    justify-content: center;
  }



  /* 메인 배너 */
  .main-banner-wrap img {
    width: 100%;
    height: 47vh;
    object-fit: cover;
  }

  /* 메인 배너 텍스트 - 모바일 반응형 */
  .main-banner-text p {
    font-size: 18px;
    line-height: 1.4;
  }

  .main-banner-text h2 {
    font-size: 24px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .title-line1,
  .title-line2 {
    display: block;
  }

  /* 솔루션 섹션 */
  .solutions {
    padding-top: 80px;
    gap: 80px;
    padding: 80px 16px 0;
  }

  .solutions-wrap h2 {
    font-size: 26px;
    margin-bottom: 30px;
    text-align: center;
  }

  /* 스마트보험 이미지 크기 통일 - 모바일 */
  #insurance-desktop-image,
  #insurance-mobile-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
  }

  /* 공통 서비스 레이아웃 - 세로 정렬 */
  .blockchain-svc,
  .smart-insu-svc,
  .ESG-solution-svc {
    flex-direction: column;
    width: 100%;
    gap: 20px;
    display: flex;
  }

  .smart-insu-svc {
    flex-direction: column;
  }

  /* 기존 이미지 컨테이너는 모바일에서 숨김 */
  .blockchain-svc-images,
  .smart-insu-svc-images,
  .ESG-solution-svc-images {
    display: none;
  }


  /* 모바일 전용 이미지 표시 */
  .mobile-content-image {
    display: block;
    width: 80%;
    max-width: 300px;
    margin: 20px auto;
    object-fit: contain;
  }

  /* 콘텐츠 스타일 */
  .blockchain-svc-contents,
  .smart-insu-svc-contents,
  .ESG-solution-svc-contents {
    text-align: center;
    padding: 0;
  }

  .blockchain-svc-contents span,
  .smart-insu-svc-contents span,
  .ESG-solution-svc-contents span {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .blockchain-svc-contents h3,
  .smart-insu-svc-contents h3,
  .ESG-solution-svc-contents h3 {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
  }

  .blockchain-svc-contents p,
  .smart-insu-svc-contents p,
  .ESG-solution-svc-contents p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .blockchain-svc-contents p br,
  .smart-insu-svc-contents p br,
  .ESG-solution-svc-contents p br {
    display: none;
  }

  /* 외부 링크 버튼 */
  .out-link-btn,
  .smart-out-link-btn {
    justify-content: center;
    padding-top: 20px;
  }

  .out-link-btn img,
  .smart-out-link-btn img {
    width: 35px;
    height: 32px;
  }

  .ESG-solution-svc-partner {
    padding-top: 20px;
  }
  /* 파트너 정보 */
  .blockchain-svc-partnerinfo,
  .smart-insu-svc-partnerinfo,
  .ESG-solution-svc-partnerinfo {
    padding-top: 50px;
    gap: 15px;
  }

  .blockchain-svc-partnerinfo p,
  .smart-insu-svc-partnerinfo p,
  .ESG-solution-svc-partnerinfo p {
    font-size: 18px;
  }

  .blockchain-svc-partner,
  .smart-insu-svc-partner,
  .ESG-solution-svc-partner {
    gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .blockchain-svc-partner img {
    width: 120px;
    max-width: 30%;
  }
  .ESG-solution-svc-partner img {
    width: 120px;
    max-width: 100%;
  }

  .ESG-solution-svc-partner img:nth-child(1) {
    filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%)
      hue-rotate(0deg) brightness(1.2) contrast(80%);
  }

  .smart-insu-svc-partner img {
    width: 150px;
    max-width: 100%;
  }

  .service-secu-image img {
    position: relative;
    top: 10px;
  }

  /* 한 눈에 보기 섹션 */
  .all-view {
    width: 90%;
    padding-top: 120px;
    margin-bottom: 20px;
  }

  .all-view h2 {
    font-size: 24px;
    padding-bottom: 20px;
  }

  .view-grid-box {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    height: auto;
    width: 100%;
  }

  .view-grid-item {
    padding: 24px 12px;
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .view-grid-item img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .view-grid-item-title {
    gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .view-grid-item-title span {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #333333;
    text-align: center;
  }

  .view-grid-item-title p {
    font-size: 12px;
    line-height: 1.4;
    color: #666666;
    text-align: center;
    margin: 0;
  }

  /* 리트러스트 소식 섹션 */
  .rt-news {
    padding: 60px 16px 80px;
    margin-top: 0px;
  }

  .rt-news-container {
    width: 100%;
  }

  .rt-news-header {
    margin-bottom: 4px;
  }
  .rt-news-header h2 {
    font-size: 24px;
    text-align: center;
    margin-left: 10px;
  }

  .rt-news-controls {
    display: none;
  }

  .rt-news-item {
    width: 85%;
    min-width: 280px;
  }

  .imagesBox {
    height: 320px;
  }

  .image-container {
    height: 180px;
  }

  .imagesBoxText {
    padding: 15px;
    gap: 10px;
  }

  .imagesBoxText h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .imagesBoxText p {
    font-size: 14px;
  }

  /* Web3 에코 섹션 */
  .web3-echo-contents {
    padding: 40px 16px;
    gap: 30px;
  }

  .web3-echo-contents h2 {
    font-size: 24px;
    text-align: center;
    line-height: 1.4;
    width: 90%;
    margin: 0 auto;
  }

  .web3-echo-image-wrap {
    width: 90%;
  }

  /* 파트너 섹션 */
  .our-partner {
    padding: 60px 0;
  }

  .our-partner-wrap {
    padding: 0 16px;
  }

  .our-partner-wrap > p {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .partner-row-1,
  .partner-row-2 {
    gap: 30px;
    margin-bottom: 10px;
  }

  .partner-logo {
    min-height: 40px;
    max-height: 55px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
  }

  /* 모바일 모달 스타일 */
  .modal-overlay.show {
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
  }

  .modal-overlay.show .modal-content {
    transform: translateY(0);
  }

  .modal-header {
    padding: 12px 0;
  }

  .modal-header p {
    font-size: 24px;
    font-weight: 700;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .modal-overlay .inquiry-form {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
  }

  .modal-overlay .inquiry-form-wrap {
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .modal-overlay .inquiry-form-wrap::-webkit-scrollbar {
    display: none;
  }

  .modal-overlay .inputWrap {
    margin-bottom: 14px;
    gap: 0px;
  }

  .modal-overlay .inputWrap label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .modal-overlay .inputWrap input {
    padding: 14px 18px;
    font-size: 14px;
  }

  .modal-overlay .inputWrap textarea {
    min-height: 100px;
    padding: 14px 18px;
    font-size: 14px;
  }

  .modal-overlay .inquiry-btn-contents {
    flex-direction: row;
    gap: 12px;
    padding-top: 20px;
  }

  .modal-overlay .inquiry-send,
  .modal-overlay .inquiry-contact {
    padding: 14px 16px;
    flex: 1;
  }

  .modal-overlay .inquiry-send p,
  .modal-overlay .inquiry-contact p {
    font-size: 15px;
  }

  .inputWrap {
    gap: 10px;
    margin-bottom: 12px;
  }

  .inputWrap label {
    font-size: 14px;
  }

  .inputWrap input {
    padding: 15px 12px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
  }

  .inputWrap textarea {
    min-height: 120px;
    border-radius: 12px;
    border: none;
    padding: 15px 12px;
    font-size: 14px;
    resize: vertical;
  }

  .inquiry-btn-contents {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    padding-top: 15px;
  }

  .inquiry-send,
  .inquiry-contact {
    padding: 12px 0;
    border-radius: 25px;
  }

  .inquiry-send p,
  .inquiry-contact p {
    font-size: 16px;
  }

  .inquiry-send img {
    width: 16px;
  }

  /* 푸터 */
  .footer-wrap {
    padding: 30px 12px;
  }

  .footer-logo {
    gap: 20px;
    margin-bottom: 40px;
    text-align: center;
  }

  .footer-logo img:nth-child(1) {
    width: 140px;
  }

  .footer-logo img:nth-child(2) {
    width: 35px;
    height: 35px;
  }

  .footer-info {
    flex-direction: column;
    gap: 30px;
  }

  .footer-info-list {
    margin-left: 0;
    text-align: center;
  }

  .footer-info-list ul {
    gap: 2px;
    align-items: start;
  }

  .footer-info-list ul li {
    font-size: 14px;
    line-height: 1.5;
  }

  .copyright {
    text-align: center;
    font-size: 12px;
  }

  /* 모바일 진짜 무한스크롤 애니메이션 (점프 없음) */
  @keyframes scrollRightMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  @keyframes scrollLeftMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(50%);
    }
  }

  /* JavaScript 애니메이션으로 통일 - CSS 애니메이션 제거 */
  .partner-row-1,
  .partner-row-2 {
    /* CSS 애니메이션 비활성화 */
    animation: none;
  }

  /* 호버 효과 비활성화 (터치 디바이스) */
  .partner-logo:hover {
    filter: grayscale(100%);
    opacity: 0.7;
    transform: none;
  }

  /* 뉴스 슬라이더 터치 스크롤 활성화 */
  .rt-news-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: visible;
  }

  .rt-news-slider::-webkit-scrollbar {
    display: none;
  }

  .rt-news-track {
    transition: none;
  }

  /* 서비스 섹션 - 모바일 (768px 이하) */
  .rt-service {
    width: 90%;
    padding: 60px 0;
  }

  .rt-service h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .rt-service-contents {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    margin-left: -2.5vw;
    padding-right: 30px;
  }

  .rt-service-contents::-webkit-scrollbar {
    display: none;
  }

  /* 모바일 스크롤 카드 - 높이 자동 조정 */
  .rt-service-contents-insu,
  .rt-service-contents-trip,
  .rt-service-contents-secu {
    flex: 0 0 240px;
    width: 240px;
  }

  .service-content-context-wrap {
    gap: 8px;
  }

  .service-insu-image img,
  .service-trip-image img,
  .service-secu-image img {
    height: 120px;
    object-fit: contain;
  }

  .service-title-insu,
  .service-title-trip,
  .service-title-secu {
    font-size: 14px;
    line-height: 1.4;
  }

  .more-btn {
    padding-top: 10px;
  }

  .more-btn p {
    font-size: 12px;
  }
}

/* 소형 모바일 - 초소형 기기 (360px 이하) */
@media screen and (max-width: 360px) {
  .headers-wrap img {
    width: 70%;
  }

  .headers-wrap ul {
    gap: 10px;
  }

  .headers-wrap ul li {
    font-size: 15px;
  }

  .solutions {
    padding: 60px 12px 0;
    gap: 60px;
  }

  .solutions-wrap h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .blockchain-svc-contents h3,
  .smart-insu-svc-contents h3,
  .ESG-solution-svc-contents h3 {
    font-size: 24px;
    font-weight: 700;
  }

  .blockchain-svc-contents p,
  .smart-insu-svc-contents p,
  .ESG-solution-svc-contents p {
    font-size: 14px;
  }

  .all-view h2 {
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 20px;
  }

  .view-grid-item {
    padding: 16px 12px;
  }

  .view-grid-item-title span {
    font-size: 20px;
    font-weight: 700;
  }

  .view-grid-item-title p {
    font-size: 14px;
  }

  .rt-news {
    padding: 50px 12px 60px;
  }

  .rt-news-header h2 {
    font-size: 22px;
    font-weight: 700;
  }

  .rt-news-item {
    width: 90%;
    min-width: 250px;
  }

  .imagesBox {
    height: 300px;
  }

  .image-container {
    height: 160px;
  }

  /* 메인 배너 텍스트 - 더 작은 모바일 */
  .main-banner-text p {
    font-size: 16px;
  }

  .main-banner-text h2 {
    font-size: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .web3-echo-contents h2 {
    font-size: 22px;
    font-weight: 700;
  }

  .our-partner-wrap > p {
    font-size: 22px;
    font-weight: 700;
  }

  .partner-logo {
    min-height: 35px;
    max-height: 45px;
    max-width: 90px;
    width: auto;
    object-fit: contain;
  }

  /* JavaScript 애니메이션으로 통일 - CSS 애니메이션 제거 */
  .partner-row-1,
  .partner-row-2 {
    animation: none;
  }

  .inquiry p {
    font-size: 22px;
    font-weight: 700;
  }

  .modal-content {
    max-height: 80vh;
  }

  .footer-info-list ul li {
    font-size: 13px;
  }

  .copyright {
    font-size: 11px;
  }

  /* 서비스 섹션 - 소형 모바일 (360px 이하) */
  .rt-service {
    width: 98%;
    padding: 40px 0;
  }

  .rt-service h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .rt-service-contents {
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100vw;
    margin-left: -1vw;
    padding: 0 1vw;
  }

  .rt-service-contents::-webkit-scrollbar {
    display: none;
  }

  .rt-service-contents-insu,
  .rt-service-contents-trip,
  .rt-service-contents-secu {
    flex: 0 0 220px;
    width: 220px;
    min-height: 320px; /* 최소 높이 보장 */
  }

  .service-content-context-wrap {
    gap: 6px;
  }

  .service-insu-image img,
  .service-trip-image img,
  .service-secu-image img {
    height: 100px;
    object-fit: contain;
  }

  .service-title-insu,
  .service-title-trip,
  .service-title-secu {
    font-size: 13px;
    line-height: 1.3;
  }

  .more-btn {
    padding-top: 8px;
  }

  .more-btn p {
    font-size: 12px;
  }
}
