/* 기본 세팅 */
body {
  margin: 0; padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fefefe;
  color: #333;
  padding-bottom: 50px; /* 하단 바 높이 + 여유 */
}

.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.custom-back-img {
  width: 60%;      /* 또는 px로 지정 가능: 400px */
  max-width: 600px;
}

/* 포인트 컬러 */
.text-primary-custom {
  color: #cf3946;
}

/* 버튼 커스텀 */
.btn-custom {
  background-color: #cf3946;
  border: none;
  color: white;
  transition: 0.3s;
}
.btn-custom:hover {
  background-color: #3ba9bb;
}

.main-title{
  font-size: 30px;
}



/* 메인 섹션 */
.main-section {
  background-color: #f8f9fc; /* 예시용 배경색 */
}

/* @media (max-width: 768px) {
  .main-section { height: 500px; }
}
@media (max-width: 480px) {
  .main-section { height: 400px; }
} */

/* 헤더 */
#mainHeader {
  width: 100%;
  background: white;
  z-index: 10;
}

.logo-img {
  margin-bottom: 40px;
  width: 140px;
  height: auto;
}
.nav-button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: black;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}
.nav-button:hover {
 color: #cf3946;
 transition: all 0.5s;
}
.nav-button::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #cf3946;
  transition: width 0.3s ease;
}
.nav-button:hover::after,
.nav-button.active::after {
  width: 100%;
}
.nav-button.active {
  font-weight: 700;
  color: #cf3946;
}

/* 카드 섹션 */
.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  cursor: default;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
@media (max-width: 767px) {
  .info-card .card-title {
    font-size: 15px;
    font-weight: bold;
  }

  .info-card .card-text {
    font-size: 12px;
  }

  .info-card .fw-bold.card-text {
    font-size: 10px;
  }

  .info-card img.card-img {
    width: 150px;
  }
}

@media (max-width: 576px) {
  .product-desc .fw-semibold {
    font-size: 10px;
  }

  .product-desc .text-muted {
    font-size: 10px;
  }

  .product-card {
    height: 100%;
  }

  .product-card img {
    max-height: 100%;
  }
}


@media (max-width: 767px) {
  .realtime-status-section h2 {
    font-size: 9px;
  }

  .realtime-status-section p {
    font-size: 9px;
  }

  .status-table .table-header,
  .status-table .table-row {
    font-size: 9px;
    padding: 10px 12px;
    grid-template-columns: 2fr 1.2fr 2fr 1fr 1.3fr;
  }

  .status-table-wrapper {
    max-height: 320px; /* 높이도 모바일에 맞춰 줄일 수 있음 */
  }
}



/* 하단 고정바 */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
  z-index: 9999;
  display: flex;
}
.bottom-box {
  flex: 1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  user-select: none;
  background-color: #cf3946;
}

/* 스크롤 페이드업 애니메이션 */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-fade-up.show {
  opacity: 1;
  transform: translateY(0);
}



/* 이용내역 슬라이더 섹션 */
.usage-slider-section {
  background-color: #cf3946;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 50px 10px;
  background-color: #cf3946;
}

.usage-card {
  display: inline-block;
  vertical-align: top;
  background: rgba(255 255 255 / 0.15);
  border-radius: 12px;
  width: 230px;
  margin: 0 3px;
  padding: 15px 20px;
  box-sizing: border-box;
  color: white;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-weight: 500;
  cursor: default;
  text-align: center;
}

.usage-card .name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.usage-card .amount {
  font-weight: 900;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.star-icon {
  width: 16px;
  height: 16px;
}

.usage-card .date-time {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.usage-card .status-btn {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255 255 255 / 0.3);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  user-select: none;
}

.usage-card:hover {
  transform: translateY(-10px);
}

.realtime-status-section {
  background-color: #cf3946;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.realtime-status-section h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.realtime-status-section p {
  font-size: 15px;
  margin-bottom: 30px;
}

.status-table-wrapper {
  max-width: 940px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  max-height: 400px; /* 최대 7줄 높이 */
  position: relative;
}

.status-table {
  color: #333;
  font-size: 15px;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 2fr 1fr 1.3fr;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.table-header {
  background-color: #fff;
  font-weight: bold;
  color: #222;
}

.status {
  font-weight: bold;
  color: #cf3946;
}

.table-body {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.table-row {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 1;
}

.table-row.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}





.review-section {
  background: #f8f9fc;
  padding: 60px 0;
  text-align: center;
}

.review-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

.review-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.review-card {
  background: white;
  border-radius: 16px;
  padding: 20px 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  text-align: left;
  height: 100%;
}

.review-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review-name {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

.review-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}


.text-overlay-container {
  position: relative;
}

.main-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  padding: 0px;
  max-width: 70%;
}

.text-highlight {
  color: #cf3946;
}

.small-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.main-cta-btn {
  display: inline-block;
  background-color: #cf3946;
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.main-cta-btn:hover {
  background-color: #3cb3c5;
}

.kakao-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.kakao-img {
  width: 550px;
  max-width: 100%;
}


@media (max-width: 480px) {
  .main-text-overlay h1 {
    font-size: 16px;
  }
  .main-text-overlay .small-text {
    font-size: 10px;
  }
  .main-cta-btn {
    font-size: 13px;
  }
}


.certificate-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}


.certificate-img {
  max-width: 100%;
  padding: 50px 50px;
  width: 700px; /* 원하는 최대 너비 */
  height: auto;
  margin: 0 auto;
  display: block;
}


.certificate-img {
  max-width: 70%;
  height: 10%;
}




.partner-status-section {
  background-color: #f8f9fc;
}

.partner-card {
  background: #f4f4f7;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.partner-desc {
  font-size: 0.9rem;
  color: #555;
}

.partner-name {
  font-size: 1.05rem;
  color: #111;
}

.partner-type {
  font-size: 0.8rem;
  color: #888;
}

.partner-count {
  font-size: 1rem;
  color: #000;
}


.warning-section h5 {
  font-family: 'Montserrat', sans-serif;
}

.warning-section p {
  font-size: 15px;
}


.kakao-guide-section h3 {
  font-family: 'Montserrat', sans-serif;
}

.kakao-guide-section .btn {
  border-radius: 999px;
  font-weight: bold;
}

.kakao-guide-section .bg-warning {
  font-size: 14px;
}




.custom-footer {
  background-color: #191f28;
  font-size: 14px;
}

.footer-logo {
  max-height: 36px;
}

.footer-info {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.footer-copy {
  color: #888;
  font-size: 13px;
}


@media (max-width: 576px) {
  .footer-left,
  .footer-right {
    text-align: center !important;
  }
}


/* 모바일 전용 (max-width 767px 이하) */
@media (max-width: 767px) {
  .partner-type {
    font-size: 10px;  /* 카드 상단 설명 텍스트 */
  }

  .partner-count {
    font-size: 11px;  /* 카드 하단 강조 텍스트 */
  }

  .partner-logo {
    max-width: 48px;  /* 로고 크기 작게 조정 */
    height: auto;
  }

  .partner-card {
    padding: 8px 12px;
  }

      .card-img {
      width: 100px;
    }
    .card-title {
      font-size: 1rem;
    }
    .card-text {
      font-size: 11px;
    }

  .usage-slider-section {
    height: 200px; /* 모바일에서 높이 축소 */
  }

  .slider-container {
    top: 50%;
    transform: translateY(-50%);
  }

  .usage-card {
    min-width: 120px;
    font-size: 12px;
    padding: 8px;
  }

  .usage-card .status-btn {
    font-size: 11px;
    padding: 2px 6px;
  }
}



@media (max-width: 767px) {
  .menu-item{
    font-size: 15px;
  }
  .certificate-img {
    max-width: 100%;     /* or 원하는 값: 예 300px */
    height: auto;
  }
  .usage-card .amount {
  font-weight: 900;
  font-size: 1rem;
  }
}


.animate-bounce {
  animation: bounce 1.2s ease infinite;
}
.animate-fadein {
  animation: fadein 1s ease forwards;
  opacity: 0;
}
.animate-fadein.delay-1 { animation-delay: 0.3s; }
.animate-fadein.delay-2 { animation-delay: 0.6s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadein {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}




.step-card {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-5px);
}



.product-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  filter: brightness(0.8);
  width: 100%;
  height: 130px; /* 고정 높이 */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.product-card:hover {
  filter: brightness(1);
  background-color: #fff;
}

.product-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.product-desc {
  text-align: center;
}

.product-desc .fw-semibold {
  font-size: 14px;
}

.product-desc .text-muted {
  font-size: 12px;
}