/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
  overflow-x: hidden;
}

/* =============================================
   SHARED: LOGO / HEADER
   ============================================= */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-th {
  font-size: 13px;
  font-weight: 700;
  color: #C21020;
  letter-spacing: 0.01em;
}

.logo-text-en {
  font-size: 10px;
  font-weight: 600;
  color: #C21020;
  letter-spacing: 0.08em;
}

/* =============================================
   PAGE 1 — LANDING PAGE
   ============================================= */
.landing-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Landing header — positioned over the hero */
.landing-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 18px 32px;
}

/* Full-screen hero background */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #dfe6e9;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95) saturate(0.8);
}

/* Subtle right-side fade overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.10) 55%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

/* Landing main — centers content vertically */
.landing-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10vw;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* "ONE TU" giant heading */
.hero-title {
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}

.title-one {
  color: #111111;
}

.title-t {
  color: #C21020;
}

.title-u {
  color: #F2A900;
}

/* "DASHBOARD" sub-heading */
.hero-subtitle {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #111111;
  margin-top: -8px;
  margin-bottom: 36px;
}

/* CTA pill button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #C21020;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background-color: #a00d18;
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-chevron {
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* =============================================
   PAGE 2 — DASHBOARD PAGE
   ============================================= */
.dashboard-page {
  position: relative;
  min-height: 100vh;
  background-color: #f8f8f8;
}

/* Sticky white header/nav */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  height: 68px;
}

/* Navigation tabs */
.dash-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #555555;
  text-decoration: none;
  padding: 22px 28px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-item:hover {
  color: #C21020;
}

.nav-item.active {
  color: #C21020;
}

.nav-item.active::after {
  background: #C21020;
}

/* Faded background image */
.dash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dash-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.13;
  filter: grayscale(30%);
}

/* Dashboard content area */
.dash-main {
  position: relative;
  z-index: 5;
  padding: 40px;
  min-height: calc(100vh - 68px);
}

.dash-content-area {
  max-width: 1400px;
  margin: 0 auto;
  /* Chart widgets and grids placed here */
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
  .landing-main {
    padding: 0 6vw;
    align-items: flex-start;
    padding-top: 100px;
  }

  .hero-subtitle {
    letter-spacing: 0.2em;
  }

  .dash-header {
    flex-direction: column;
    height: auto;
    padding: 12px 20px;
    gap: 8px;
  }

  .dash-nav {
    width: 100%;
    justify-content: space-around;
  }

  .nav-item {
    padding: 12px 10px;
    font-size: 14px;
  }
}
