/* style/index-uu-diem-shbet800.css */
.page-index-uu-diem-shbet800 {
  color: var(--text-main);
  background-color: var(--background-color);
}

.page-index-uu-diem-shbet800__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Rely on body padding-top for header offset */
  margin-bottom: 40px;
}

.page-index-uu-diem-shbet800__hero-slider {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust as needed */
}

.page-index-uu-diem-shbet800__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.page-index-uu-diem-shbet800__hero-slide.is-active {
  opacity: 1;
}

.page-index-uu-diem-shbet800__hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-uu-diem-shbet800__hero-slider-prev,
.page-index-uu-diem-shbet800__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 5px;
}

.page-index-uu-diem-shbet800__hero-slider-prev {
  left: 20px;
}

.page-index-uu-diem-shbet800__hero-slider-next {
  right: 20px;
}

.page-index-uu-diem-shbet800__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(13, 14, 18, 0.8), rgba(13, 14, 18, 0));
  padding: 40px 20px 20px;
  text-align: center;
  color: var(--text-main);
  z-index: 5;
}

.page-index-uu-diem-shbet800__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Flexible font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-uu-diem-shbet800__description {
  font-size: 1.1em;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-index-uu-diem-shbet800__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index-uu-diem-shbet800__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-index-uu-diem-shbet800__btn-primary,
.page-index-uu-diem-shbet800__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index-uu-diem-shbet800__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-uu-diem-shbet800__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index-uu-diem-shbet800__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-index-uu-diem-shbet800__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index-uu-diem-shbet800__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-index-uu-diem-shbet800__guide-box {
  padding: 40px 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  margin: 0 auto 40px;
  max-width: 1200px;
  border: 1px solid var(--border-color);
}

.page-index-uu-diem-shbet800__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-index-uu-diem-shbet800__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-index-uu-diem-shbet800__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  text-align: center;
  position: relative;
}

.page-index-uu-diem-shbet800__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-index-uu-diem-shbet800__guide-card a {
  text-decoration: none;
  color: inherit;
}

.page-index-uu-diem-shbet800__guide-card a:hover img {
  transform: translateY(-5px);
}

.page-index-uu-diem-shbet800__guide-card--pos-1,
.page-index-uu-diem-shbet800__guide-card--pos-5 {
  padding-top: 50px;
}

.page-index-uu-diem-shbet800__guide-card--pos-2,
.page-index-uu-diem-shbet800__guide-card--pos-4 {
  padding-top: 25px;
}

.page-index-uu-diem-shbet800__content-section {
  padding: 40px 20px;
  background-color: var(--background-color);
}

.page-index-uu-diem-shbet800__home-content-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  border: 5px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--glow-color);
  height: 700px; /* Fixed height for desktop with scroll */
  background-color: var(--card-bg);
}

.page-index-uu-diem-shbet800__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* Space for scrollbar */
  color: var(--text-main);
}

.page-index-uu-diem-shbet800__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-index-uu-diem-shbet800__home-content-inner::-webkit-scrollbar-track {
  background: var(--card-bg);
  border-radius: 10px;
}

.page-index-uu-diem-shbet800__home-content-inner::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.page-index-uu-diem-shbet800__content-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index-uu-diem-shbet800__sub-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-index-uu-diem-shbet800 p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-index-uu-diem-shbet800 ul {
  list-style: disc inside;
  margin-bottom: 15px;
  padding-left: 20px;
}

.page-index-uu-diem-shbet800 li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-index-uu-diem-shbet800__figure {
  margin: 20px 0;
  text-align: center;
}

.page-index-uu-diem-shbet800__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-index-uu-diem-shbet800__figure figcaption {
  margin-top: 10px;
  font-style: italic;
  color: var(--text-main);
  font-size: 0.9em;
}

.page-index-uu-diem-shbet800__blog-section {
  padding: 40px 20px;
  background-color: var(--background-color);
  margin-top: 40px;
}

.page-index-uu-diem-shbet800__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-uu-diem-shbet800__blog-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index-uu-diem-shbet800__blog-card:hover {
  transform: translateY(-5px);
}

.page-index-uu-diem-shbet800__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index-uu-diem-shbet800__blog-card-content {
  padding: 15px;
}

.page-index-uu-diem-shbet800__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index-uu-diem-shbet800__blog-card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-index-uu-diem-shbet800__blog-card-title a:hover {
  color: var(--primary-color);
}

.page-index-uu-diem-shbet800__blog-card-meta {
  font-size: 0.85em;
  color: #a0a0a0;
  margin-bottom: 10px;
}

.page-index-uu-diem-shbet800__blog-card-excerpt {
  font-size: 0.9em;
  color: #FFF3E6;
}

.page-index-uu-diem-shbet800__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

/* General image responsiveness */
.page-index-uu-diem-shbet800 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-index-uu-diem-shbet800__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
  }
  .page-index-uu-diem-shbet800__guide-card--pos-1,
  .page-index-uu-diem-shbet800__guide-card--pos-5 {
    padding-top: 0;
  }
  .page-index-uu-diem-shbet800__guide-card--pos-2,
  .page-index-uu-diem-shbet800__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-index-uu-diem-shbet800__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 1. 顶区轮播 */
  .page-index-uu-diem-shbet800__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .page-index-uu-diem-shbet800__hero-slider {
    height: 300px;
  }
  .page-index-uu-diem-shbet800__hero-slider-prev,
  .page-index-uu-diem-shbet800__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
    left: 10px;
    right: 10px;
  }
  .page-index-uu-diem-shbet800__hero-content {
    padding: 20px 10px 10px;
  }
  .page-index-uu-diem-shbet800__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }
  .page-index-uu-diem-shbet800__description {
    font-size: 1em;
    margin-bottom: 15px;
  }
  .page-index-uu-diem-shbet800__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index-uu-diem-shbet800__btn-primary,
  .page-index-uu-diem-shbet800__btn-secondary {
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-index-uu-diem-shbet800__guide-box {
    padding: 20px 10px;
    margin-bottom: 20px;
  }
  .page-index-uu-diem-shbet800__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-index-uu-diem-shbet800__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .page-index-uu-diem-shbet800__guide-card {
    padding-top: 0 !important; /* Reset specific padding-top */
    flex: auto;
    max-width: 100%;
  }
  .page-index-uu-diem-shbet800__guide-card--pos-1,
  .page-index-uu-diem-shbet800__guide-card--pos-2 {
    grid-column: span 3;
  }
  .page-index-uu-diem-shbet800__guide-card--pos-3,
  .page-index-uu-diem-shbet800__guide-card--pos-4,
  .page-index-uu-diem-shbet800__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* 3. `home_content` 外框 */
  .page-index-uu-diem-shbet800__home-content-box {
    height: auto; /* Allow content to expand */
    max-width: 100%;
    margin: 0 10px;
    padding: 15px;
  }
  .page-index-uu-diem-shbet800__home-content-inner {
    height: auto; /* Remove fixed height */
    overflow-y: visible; /* Remove scrollbar */
    padding-right: 0; /* Remove scrollbar space */
  }
  .page-index-uu-diem-shbet800__content-title {
    font-size: 1.5em;
  }
  .page-index-uu-diem-shbet800__sub-title {
    font-size: 1.2em;
  }
  .page-index-uu-diem-shbet800 p,
  .page-index-uu-diem-shbet800 li {
    font-size: 0.95em;
  }

  /* 4. 博客卡片区 */
  .page-index-uu-diem-shbet800__blog-section {
    padding: 20px 10px;
  }
  .page-index-uu-diem-shbet800__blog-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 15px;
  }
  .page-index-uu-diem-shbet800__blog-card img {
    
  }
  .page-index-uu-diem-shbet800__blog-card-title {
    font-size: 1.1em;
  }
  .page-index-uu-diem-shbet800__blog-card-excerpt {
    font-size: 0.85em;
  }

  /* 5. 通用图片与按钮 */
  .page-index-uu-diem-shbet800 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-uu-diem-shbet800__cta-buttons,
  .page-index-uu-diem-shbet800__button-group,
  .page-index-uu-diem-shbet800__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index-uu-diem-shbet800__cta-buttons--center {
    flex-direction: column;
  }
  .page-index-uu-diem-shbet800__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}