/* ─── Reset ─── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Page ─── */
.Main {
  width: 100%;
  min-height: 100vh;
  background: white;
  overflow-x: hidden;
}

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.SiteHeader {
  width: 100%;
  background: #6A8CA0;
  display: flex;
  flex-direction: column;
}

.BtnLogin {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.DynamicUserIcon {
    object-fit: contain;
    /* ใส่เงาเล็กน้อยให้รูปดูเด่นขึ้น */
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.2));
}

/* ─── Top Bar ─── */
.TopBar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 40px;
}

.TopBar-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.Image2 {
  width: 41px;
  height: 41px;
}

.BtnLogin {
  background: var(--color-white);
  border-radius: var(--radius-btn);
  border: 2px solid var(--color-white);
  padding: 10px 28px;
  cursor: pointer;
}

.BtnLogin-text {
  color: var(--color-header);
  font-size: 24px;
  font-weight: 900;
}

.BtnLogin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #ffffff;
  padding: 10px 28px;
  cursor: pointer;
  text-decoration: none;
}

.BtnLogin-text {
  color: #6A8CA0;
  font-size: 24px;
  font-weight: 900;
  font-family: 'Hanuman', serif;
}

.Rectangle8 {
  background: white;
  border-radius: 20px;
  border: 2px solid white;
  padding: 10px 24px;
  cursor: pointer;
}

.Login {
  color: #6A8CA0;
  font-size: 20px;
  font-family: 'Hanuman', serif;
  font-weight: 900;
}

/* ─── Hero Area ─── */
.HeroArea {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 20px 60px 30px;
}

.HeroText {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.HeroR-top,
.HeroC-top {
  color: white;
  font-size: 96px;
  font-family: 'Headland One', serif;
  font-weight: 400;
  line-height: 0.85;
}

.HeroR-top { align-self: flex-end; margin-right: 12px; }
.HeroC-top { align-self: flex-end; }

.HeroSubtitle-top {
  color: white;
  font-size: 40px;
  font-family: 'Hedvig Letters Serif', serif;
  font-weight: 400;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.HeroImage {
  width: 222px;
  height: 220px;
  object-fit: cover;
}

/* ─── Navbar ─── */
.Navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px 24px;
  flex-wrap: nowrap;
}

.NavBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 20px;
  border: 2px solid white;
  background: #6A8CA0;
  color: white;
  font-size: 18px;
  font-family: 'Hanuman', serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.NavBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.NavBtn--active {
  background: #114E72;
}

/* ══════════════════════════════════
   BODY SECTION + CAROUSEL
══════════════════════════════════ */
.BodySection {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #D9D9D9;
}

/* ── Carousel wrapper ── */
.Carousel {
  width: 100%;
  overflow: hidden;
}

/* ── Track: รูปทั้งหมดเรียงแนวนอน ── */
.Carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.Icon-faq {
  width: 41px;
  height: 41px;
  object-fit: contain;
}

.Icon-faq-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s, filter 0.2s;
  text-decoration: none;
}

.Icon-faq-link:hover {
  filter: brightness(0.85);
}

/* ── แต่ละสไลด์ ── */
.Carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.Carousel-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

/* ── Hero Text overlay ── */
.HeroSubtitle-bottom {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #114E72;
  font-family: 'Hedvig Letters Serif', serif;
  white-space: nowrap;
  pointer-events: none;
  /* ทำให้ข้อความอ่านออกบนรูปสว่าง */
  text-shadow: 0 2px 12px rgba(255,255,255,0.45);
}

.rc-logo {
  font-size: 110px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -2px;
}

.rc-text {
  font-size: 52px;
  letter-spacing: 4px;
  margin-top: -12px;
}

/* ── Arrows ── */
.ArrowPrev,
.ArrowNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.25);
  border: none;
  color: white;
  font-size: 80px;
  font-family: 'Radley', serif;
  font-weight: 400;
  line-height: 1;
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
  user-select: none;
  z-index: 10;
}

.ArrowPrev:hover,
.ArrowNext:hover {
  background: rgba(0, 0, 0, 0.50);
}

.ArrowPrev { left: 20px; }
.ArrowNext { right: 20px; }

/* ── Dot indicators ── */
.Carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.Carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.Carousel-dot.active {
  background: white;
  transform: scale(1.3);
}