:root {
  --c-yellow: #F5D200;
  --c-black: #0F0F0F;
  --c-white: #FFFFFF;
  --c-gray: #909090;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html,body { margin:0; padding:0; font-family: 'Poppins', system-ui, -apple-system, Arial, sans-serif; color: var(--c-white); background: var(--c-black); }

.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header { position: sticky; top:0; z-index:10; background: rgba(15,15,15,.7); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }

.brand { display:flex; align-items:center; gap:12px; }
.brand-mark {
  width: 70px;
  height: 70px;
  border-radius: 70%;
  overflow: hidden; /* ทำให้รูปภาพอยู่ในวงกลม */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* ถ้าโลโก้เป็น PNG โปร่งใส จะมีพื้นหลังเหลือง */
  padding:6px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title{ font-size:1.65rem; font-weight:700; line-height:1.1; }
.brand-sub{   font-size:.95rem;  opacity:.9;      margin-top:.15rem; }

.nav a { color: var(--c-white); text-decoration:none; margin-left:16px; opacity:.9 }
.nav a:hover { opacity:1; color: var(--c-yellow); }

.hero { background: radial-gradient(900px 500px at 20% 10%, rgba(245,210,0,.25), transparent 60%), radial-gradient(600px 400px at 80% 0%, rgba(245,210,0,.15), transparent 60%); border-bottom: 1px solid rgba(255,255,255,.06); }
.hero .container { padding: 56px 0 44px; text-align:center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 8px; }
.hero p { margin: 0 0 20px; color:#ddd; }
.hl { color: var(--c-yellow); text-shadow: 0 6px 40px rgba(245,210,0,.25); }

.cta { display:flex; gap:12px; justify-content:center; }
.btn { padding: 10px 16px; border-radius: 999px; text-decoration:none; font-weight:600; display:inline-block; border:1px solid rgba(255,255,255,.15); }
.btn-primary { background: var(--c-yellow); color:#000; border-color: transparent; }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: transparent; color: var(--c-white); }
.btn-ghost:hover { border-color: var(--c-yellow); color: var(--c-yellow); }

.card { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 20px 0; }
.card h2 { margin: 0 0 10px; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.link { color: var(--c-yellow); text-decoration:none; }
.link:hover { text-decoration:underline; }

.status-body { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.stat { background:#111; border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:12px 14px; min-width:160px; }
.stat .k { font-size: 1.15rem; font-weight:700; }
.stat .s { font-size:.8rem; color:#bbb; }

.news-list { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.news-card { background:#111; border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:14px; }
.news-card h3 { margin:0 0 6px; font-size:1rem; }
.news-card .meta { font-size:.78rem; color:#bbb; margin-bottom:6px; }

.gallery-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:10px; }
.gallery-grid img { width:100%; height:160px; object-fit:cover; border-radius:12px; border:1px solid rgba(255,255,255,.06); }

.steps { padding-left: 18px; }
.steps li { margin: 8px 0; color:#ddd; }
code { background: #111; padding: 2px 6px; border-radius: 6px; border:1px solid rgba(255,255,255,.06); }

.site-footer { border-top: 1px solid rgba(255,255,255,.06); margin-top: 34px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; padding: 20px 0 40px; }
.footer-links a { color:#ccc; text-decoration:none; margin-left: 14px; }
.footer-links a:hover { color: var(--c-yellow); }

@media (max-width: 640px) {
  .nav a { margin-left:12px; }
}


/* ==== TLC Theme overrides ==== */
:root{
  --bg: #012745;          /* พื้นหลังใหม่ */
  --card: rgba(0,0,0,0.25);/* เผื่อใช้บนการ์ดอื่น */
  --accent: #FBB822;      /* แถบโลโก้/ปุ่มหลัก */
  --accent-ink: #012745;  /* สีตัวอักษรบนแถบ/ปุ่มเหลือง */
  --ink: #E8F2FF;         /* ตัวอักษรหลักบนพื้นน้ำเงินเข้ม */
}

body{ background:#012745; color:var(--ink); }

/* แถบด้านบน (navbar) */
.header, .nav, header.site-header{
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  border-bottom: none !important;
}
.header a, .nav a{
  color: var(--accent-ink) !important;
}
.header a:hover, .nav a:hover{
  opacity:.85;
}

/* ฮีโร่ด้านบนให้ไล่เฉดเข้ากับธีมใหม่ */
.hero, .hero::before{
  background: radial-gradient( at 50% 0%, rgba(251,184,34,.25), rgba(1,39,69,0) 40%),
              linear-gradient(#012745, #012745) !important;
}

/* เอากรอบ/พื้นสีดำของสองบรรทัดแรกออก */
.status-intro, .status-steps{
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: .25rem 0 !important;
}

/* กล่อง Server IP Connect แบบตัวอย่าง */
.copy-line{
  display:flex; align-items:center; gap:.5rem;
  background:#0b1f36;          /* เข้มกว่าพื้นนิดนึง */
  border-radius:.6rem; padding:.5rem .6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color:#cde2ff; border:1px solid rgba(255,255,255,.08);
}
.copy-line code{ background:transparent; color:inherit; padding:0; }
.copy-btn{
  margin-left:auto; border:none; cursor:pointer;
  background:#fff; color:#000; border-radius:999px; padding:.35rem .75rem; font-weight:600;
}
.copy-btn:hover{ filter: brightness(.95); }

/* ปุ่มหลักให้เข้ากับแถบเหลือง */
.btn, a.btn{
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding:.55rem 1rem; display:inline-block;
}
.btn:hover{ filter:brightness(.95); }

/* การ์ดข่าว/แกลเลอรีคงเดิมแต่ปรับโทนเล็กน้อย */
.news-card, .gallery-card, .panel{
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
}
.section-title{ color:#fff; }

.floating-video {
  position: fixed;       /* ลอยอยู่ตลอด */
  bottom: 20px;          /* ระยะจากด้านล่าง */
  left: 20px;            /* ระยะจากด้านซ้าย */
  width: 300px;          /* กำหนดขนาด */
  height: 170px;         /* อัตราส่วน 16:9 */
  z-index: 1000;         /* ให้อยู่เหนือ element อื่น */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.floating-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}
