/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
  --sky-50:  #EAF6FD;
  --sky-100: #D7EFFB;
  --sky-300: #8ECDF4;

  --ink:     #2F3A44;
  --muted:   #6B7A88;
  --line:    #E5EAF0;
  --card:    #FFFFFF;

  --radius:  18px;
  --shadow:  0 10px 30px rgba(16, 24, 40, 0.08);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Anuphan",
               system-ui,
               -apple-system,
               "Segoe UI",
               Arial,
               "Noto Sans Thai",
               sans-serif;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    var(--sky-50) 0%,
    #ffffff 40%,
    #ffffff 100%
  );
}

/* =========================================================
   FONTS Thai
   ========================================================= */

@font-face {
  font-family: "Anuphan";
  src: url("../fonts/Anuphan-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anuphan";
  src: url("../fonts/Anuphan-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anuphan";
  src: url("../fonts/Anuphan-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



/* =========================================================
   PAGE LAYOUT CONTROLLER
   ใช้ padding = white space (วิธีที่ถูกต้องจริง)
   ========================================================= */
.site-wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;

  /* mobile default */
  padding-left: 16px;
  padding-right: 16px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.nav-blur {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-dot {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--sky-300);
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(142, 205, 244, 0.25);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;

  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(229, 234, 240, 0.7);
  box-shadow: var(--shadow);

  background:
    linear-gradient(
      135deg,
      rgba(142,205,244,0.65) 0%,
      rgba(234,246,253,0.35) 60%,
      rgba(255,255,255,0.35) 100%
    ),  
    url("../images/bkgd_dortmund.jpg")
    center / cover no-repeat;
}




.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    800px 400px at 30% 30%,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.10) 60%,
    rgba(255, 255, 255, 0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

/* =========================================================
   UI ELEMENTS
   ========================================================= */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(229, 234, 240, 0.8);
  color: var(--muted);
  font-size: 0.95rem;
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.section-sub {
  color: var(--muted);
}

.card-soft {
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(229, 234, 240, 0.85);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.10);
}

/* original 
.thumb {
  height: 210px;
  background-size: cover;
  background-position: center;
}
*/
.thumb {
  width: 100%;
  /* กำหนดอัตราส่วนรูป (แล้วแต่ที่คุณอยากได้) */
  aspect-ratio: 16 / 9;   /* หรือ 4 / 3, 1 / 1 ก็ได้ */

  background-size: contain;      /* เห็นรูปครบ ไม่โดนตัด */
  background-position: center;   /* จัดให้อยู่กลาง */
  background-repeat: no-repeat;  /* ไม่ให้ tile ซ้ำ */

  background-color: #fff;        /* พื้นหลังเวลาเหลือขอบ (เปลี่ยนสีได้) */
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(142, 205, 244, 0.18);
  border: 1px solid rgba(142, 205, 244, 0.35);
  color: #0c2b3a;
  font-size: 0.85rem;
  font-weight: 600;
}

/* =========================================================
   QUOTE & FOOTER
   ========================================================= */
.quote {
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(
    135deg,
    rgba(142, 205, 244, 0.25),
    rgba(234, 246, 253, 0.55)
  );
  border: 1px solid rgba(142, 205, 244, 0.25);
  box-shadow: var(--shadow);
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   RESPONSIVE — EXACT WHITE SPACE CONTROL
   ========================================================= */

/* ≥ 1280px : 120px / side */
@media (min-width: 1280px) {
  .site-wrap {
    padding-left: 120px;
    padding-right: 120px;
  }
}

/* ≥ 1920px : 150px / side */
@media (min-width: 1920px) {
  .site-wrap {
    padding-left: 150px;
    padding-right: 150px;
  }

  .hero-content {
    max-width: 820px;
  }
}

/* ≥ 2560px : 180px / side (Ultrawide) */
@media (min-width: 2560px) {
  .site-wrap {
    padding-left: 180px;
    padding-right: 180px;
  }

  .hero {
    min-height: 680px;
    border-radius: 32px;
    background-position: center top;
  }

  .hero-content {
    max-width: 900px;
  }

  h1,
  .display-6 {
    font-size: 3rem;
  }

  .lead {
    font-size: 1.25rem;
  }
}

/* =========================================================
   MOBILE TUNING
   ========================================================= */
@media (max-width: 575.98px) {
  .thumb {
    height: 190px;
  }
}

/* =========================================================
   FONT
   ========================================================= */
@font-face {
  font-family: "Anuphan";
  src: url("./fonts/Anuphan-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
