:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;

  --pink:#ec4899;
  --pinkSoft:#fde7f3;

  --shadow: 0 12px 30px rgba(17,24,39,.12);
  --shadowSoft: 0 10px 22px rgba(17,24,39,.08);

  --radius: 16px;
  --radius2: 22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Sarabun", "Prompt", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a{color:inherit;text-decoration:none}
.container{max-width:1160px;margin:0 auto;padding:0 18px}

/* ===== Announcement ===== */
.announce{
  background:#fff7fb;
  border-bottom:1px solid #ffe0f0;
}
.announce-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 0;
}
.announce-left{display:flex; align-items:center; gap:10px}
.announce-text{color:#374151}

/* ===== Navbar (ทางการ) ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; min-width:240px}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.5px;
  background: linear-gradient(135deg, #ff6fb3, #ec4899);
  color:#fff;
  box-shadow: 0 10px 18px rgba(236,72,153,.25);
}
.brand-title{font-weight:800}
.brand-sub{font-size:12px;color:var(--muted)}

.nav{display:flex; gap:16px; align-items:center; flex-wrap:wrap; justify-content:center}
.nav a{
  font-size:14px; color:#374151;
  padding:8px 10px; border-radius:12px;
}
.nav a:hover{background:#f3f4f6}
.nav a.active{
  background: var(--pinkSoft);
  color:#9d174d;
  font-weight:700;
}

.lang{display:flex; gap:8px; align-items:center}
.chip{
  border:1px solid var(--line);
  padding:6px 10px; border-radius:999px;
  font-size:12px; color:#374151;
  background:#fff;
}
.chip small{color:var(--muted); font-weight:600}
.chip.active{
  border-color:#fbcfe8;
  background: var(--pinkSoft);
  color:#9d174d; font-weight:800;
}

/* ===== Hero (ภาพจริง + ดูเป็นทางการ) ===== */
.hero{
  position:relative;
  min-height: 520px;
  display:flex;
  align-items:stretch;
}
.hero-bg{
  position:absolute; inset:0;
  background:
    url("../img/hero.jpg") center/cover no-repeat;
  /* ถ้ายังไม่มีรูป ให้เป็นพื้นหลังสวย ๆ ไปก่อน */
  background-color:#dbeafe;
}
.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.50), rgba(0,0,0,.10));
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: 1.45fr .85fr;
  gap:18px;
  padding:46px 18px;
  align-items:stretch;
}
.hero-card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  border-radius: var(--radius2);
  padding:26px;
  box-shadow: var(--shadow);
}
.kicker{
  letter-spacing:.18em;
  font-size:12px;
  color:#9d174d;
  font-weight:800;
  margin-bottom:10px;
}
.hero-card h1{
  margin:0 0 10px;
  font-size:40px;
  line-height:1.15;
}
.hero-card p{
  margin:0 0 16px;
  color:#374151;
  max-width: 60ch;
}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin:10px 0 12px}
.note{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px;
  border-radius:999px;
  background:#f9fafb;
  border:1px solid var(--line);
  color:#374151;
  font-size:13px;
}
.note-icon{font-size:14px}

/* ===== Side Card (ปุ่มแบบรูป) ===== */
.side-card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.55);
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: var(--shadowSoft);
  display:flex; flex-direction:column;
}
.side-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.side-title{font-weight:900; font-size:18px}
.side-sub{font-size:13px;color:var(--muted); margin-top:2px}
.side-divider{height:1px;background:var(--line); margin:14px 0}
.side-mini-title{font-weight:900}
.side-mini-sub{color:var(--muted); font-size:13px; margin-top:4px}

.quick-grid{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}
.quick{
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-weight:700;
  color:#374151;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.quick:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(17,24,39,.10);
  border-color:#fbcfe8;
}

/* ===== Sections ===== */
.main{padding: 26px 0 40px}
.section{margin: 22px 0 28px}
.section-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  margin-bottom:14px;
}
.section-head h2{margin:0; font-size:22px}
.link{color:#9d174d; font-weight:800}
.link:hover{text-decoration:underline}

/* ===== Banner Grid ===== */
.banner-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.banner{
  position:relative;
  border-radius: var(--radius);
  min-height: 190px;
  background: #e5e7eb;
  background-size: cover;
  background-position: center;
  overflow:hidden;
  box-shadow: var(--shadowSoft);
  border:1px solid #e5e7eb;
}
.banner-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58));
}
.banner-meta{
  position:absolute; left:14px; right:14px; bottom:14px;
  color:#fff;
}
.banner-title{font-weight:900; font-size:16px; margin-top:8px}
.banner-date{opacity:.9; font-size:12px; margin-top:4px}

/* ===== Cards ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  background: var(--surface);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 10px 20px rgba(17,24,39,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(17,24,39,.10);
}
.card h3{margin:10px 0 6px; font-size:16px}
.card p{margin:0;color:var(--muted); font-size:13px}
.card-img{
  height:150px;
  border-radius: 12px;
  background: #f3f4f6;
  background-size: cover;
  background-position: center;
}

/* ===== Pills / Buttons ===== */
.pill{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  color:#374151;
  background:#fff;
  font-weight:800;
}
.pill-pink{
  background: var(--pinkSoft);
  border-color:#fbcfe8;
  color:#9d174d;
}
.pill-announce{
  background:#fff;
  border-color:#ffd1e7;
  color:#9d174d;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
}
.btn-sm{padding:9px 12px; border-radius:12px}
.btn-primary{
  border-color: #fbcfe8;
  background: var(--pink);
  color:#fff;
  box-shadow: 0 12px 18px rgba(236,72,153,.22);
}
.btn-primary:hover{filter:brightness(.98)}
.btn-outline{
  border-color:#fbcfe8;
  background:#fff;
  color:#9d174d;
}
.btn-ghost{
  background:#fff;
  color:#374151;
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  padding:18px 0;
  display:flex; gap:12px;
  justify-content:space-between;
  flex-wrap:wrap;
  color:#374151;
}
.footer-links{display:flex; gap:12px; flex-wrap:wrap}
.footer a{color:#6b7280; font-weight:700}
.footer a:hover{color:#111827}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr; padding:26px 18px}
  .hero{min-height:auto}
  .grid{grid-template-columns:1fr}
  .banner-grid{grid-template-columns:1fr}
  .nav{display:none} /* ถ้าจะทำเมนูมือถือเดี๋ยวผมเพิ่มให้รอบต่อไป */
}
