* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}
body {
  --fp-enabled: 0;
}

@media (min-width: 1200px) {
  body {
    --fp-enabled: 1;
  }
}
/* Khi đang fullpage, khóa cuộn trang chính */
body.fullpage-active {
  overflow: hidden;
}

/* Controls */
.fp-controls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  gap: 8px;
}

.fp-controls button {
  padding: 8px 12px;
  cursor: pointer;
}

/* Fullpage */
#fp-root {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#fp-wrapper {
  width: 100%;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Section */
.fp-section {
  width: 100%;
  height: 100vh;
  display: block;
  overflow: hidden;
}
.fp-section-small {
  height: auto !important;     /* buộc trả về chiều cao thật */
  min-height: unset !important;
  overflow: visible !important;
}
.fp-section .section-inner {
  height: 100%;
  padding: 36px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* color */
.fp-section:nth-child(odd) .section-inner {
  background: linear-gradient(180deg, #f5f7fa, #e6eef8);
}

.fp-section:nth-child(even) .section-inner {
  background: linear-gradient(180deg, #fff5e6, #ffe8c8);
}

.fp-section h1 {
  margin-bottom: 12px;
}

/* special animation visuals */
.section_special .special-animation-area {
  margin-top: 12px;
  height: 260px;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section_special .anim-box {
  width: 110px;
  height: 110px;
  background: #ffd54f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* footer */
#page-footer {
  background: #222;
  color: #fff;
  padding: 60px 20px;
}

#page-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* debug helpers */
.fp-section.active {
  outline: 2px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .fp-section {
    width: 100%;
    height: auto;        /* cao theo nội dung */
    min-height: 0;       /* hoặc bỏ luôn */
    overflow-y: auto;    /* cho scroll nội dung */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
}

