/* หน้างานวิจัย 7 หน้า — สไตล์อยู่ใน .rs เพื่อไม่ชนเมนูและหน้าในอื่น
   ทำไม: mockup ใช้ชื่อ class สั้น (.tile .side) ซึ่งซ้ำกับเมนูของเว็บ */
.rs {
  --p: #9e5da5;
  --pd: #7d4485;
  --pl: #f5edf6;
  --gr: #2e8b57;
  --gl: #e8f4ec;
  --t: #2b2430;
  --m: #6b6070;
  --cream: #faf6ee;
  --line: #ece4ee;
  position: relative;
  z-index: 1;
  color: var(--t);
  font-family: "LINE Seed Sans TH", system-ui, -apple-system, sans-serif;
  line-height: 1.8;
}

body.rs-page { background: #fcfafc; }

.rs h1,
.rs h2,
.rs h3 { line-height: 1.5; margin: 0 0 0.5em; }

.rs h2 { font-size: 2.1rem; color: var(--pd); }

.rs .w { box-sizing: border-box; max-width: 1200px; margin: auto; padding: 0 32px; }

.rs .top { padding: 64px 0 8px; }

.rs .top h1 { margin-top: 12px; font-size: 3rem; color: var(--pd); font-weight: 700; }

.rs .crumb { margin: 0; color: var(--m); font-size: 0.95rem; }

.rs .crumb a { color: inherit; text-decoration: none; }

.rs .lead { max-width: 720px; color: var(--m); margin: 0; }

.rs small,
.rs .dbrow h3 + span { color: var(--m); }

.rs .mt { margin-top: 12px; }

.rs .h-sm { font-size: 1.7rem; }

.rs .h-xs { font-size: 1.6rem; }

.rs .tight { margin: 0; }

.rs .ex {
  display: inline-block;
  background: #fff4d6;
  color: #8a6200;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 700;
  vertical-align: middle;
}

.rs .tag {
  display: inline-block;
  background: var(--gl);
  color: var(--gr);
  padding: 6px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
}

.rs .btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--p);
  color: #fff;
  padding: 12px 26px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
}

.rs .btn.s { background: var(--pl); color: var(--pd); }

.rs .btn.wh { background: #fff; color: var(--pd); }

.rs .snav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 36px;
}

.rs .snav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--pl);
  color: var(--pd);
  padding: 8px 18px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
}

.rs .snav a.on { background: var(--p); color: #fff; }

.rs .bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
  padding-bottom: 80px;
}

.rs .tile {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: transform 0.3s;
}

.rs .tile:hover { transform: translateY(-4px); }

.rs .tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.rs .tile:hover img { transform: scale(1.05); }

.rs .tile .lb {
  position: relative;
  background: rgba(43, 36, 48, 0.72);
  border-radius: 18px;
  padding: 16px 20px;
  align-self: flex-start;
}

.rs .tile h3 { margin: 0; font-size: 1.4rem; line-height: 1.5; }

.rs .tile p { margin: 0; font-size: 0.95rem; opacity: 0.9; }

.rs .tile.c { background: var(--pd); }

.rs .tile.c2 { background: var(--pl); color: var(--pd); }

.rs .tile.c .lb,
.rs .tile.c2 .lb { background: none; padding: 0; }

.rs .big { grid-column: span 2; grid-row: span 2; }

.rs .wide { grid-column: span 2; }

.rs .tall { grid-row: span 2; }

.rs .grp { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }

.rs .n { font-size: 3.6rem; font-weight: 800; line-height: 1.2; }

.rs .sub {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  padding-bottom: 80px;
}

.rs .feat { border-radius: 24px; overflow: hidden; background: #fff; }

.rs .link-card { text-decoration: none; color: inherit; }

.rs .feat .pic { aspect-ratio: 16 / 10; }

.rs .feat .b { padding: 32px; }

.rs .pic { overflow: hidden; background: var(--line); }

.rs .pic img,
.rs .full img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs .side .it {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 20px;
  align-items: center;
}

.rs .side .it .pic { height: 130px; }

.rs .side .it div { padding-right: 16px; }

.rs .yr {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.rs .yr + .yr { border-top: 1px solid var(--line); }

.rs .yr .lbl { font-size: 1.1rem; font-weight: 800; color: var(--p); line-height: 1.5; }

.rs .yr.last { margin-bottom: 60px; }

.rs .cf {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
}

.rs .cf .pic { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }

.rs .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}

.rs .split.later { margin-top: 56px; }

.rs .split.flat { padding-bottom: 0; }

.rs .split .pic { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; }

.rs .band {
  background: var(--pd);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.rs .band b { font-size: 3.4rem; display: block; line-height: 1.25; }

.rs .dbrow {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.rs .dbrow:hover { transform: translateX(6px); }

.rs .dbrow .ic {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--pl);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--p);
}

.rs .pub {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 22px 0;
  align-items: center;
}

.rs .pub + .pub { border-top: 1px solid var(--line); }

.rs .pub .y { font-size: 1.6rem; font-weight: 800; color: var(--p); line-height: 1.25; }

.rs .k {
  background: var(--gl);
  color: var(--gr);
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
}

.rs .pl {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 80px;
}

.rs .fbox {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--pl);
  border-radius: 24px;
  padding: 24px;
}

.rs .fl { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 20px; }

.rs .fl button {
  font: inherit;
  min-height: 44px;
  border: 0;
  background: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  color: var(--pd);
  text-align: left;
}

.rs .fbox .fl { flex-direction: column; align-items: stretch; }

.rs .fl button.on { background: var(--p); color: #fff; }

.rs .pub[hidden] { display: none; }

.rs .full {
  position: relative;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 56px;
}

.rs .full img { position: absolute; inset: 0; }

.rs .full .tx {
  position: absolute;
  left: 32px;
  bottom: 32px;
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  max-width: 520px;
}

.rs .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

.rs .step { background: #fff; border-radius: 24px; padding: 28px; }

.rs .step .n {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gr);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.rs .groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.rs .grpb { border-radius: 24px; padding: 32px; }

.rs .grpb.a { background: var(--pd); color: #fff; }

.rs .grpb.b { background: var(--pl); }

.rs .grpb.c { background: var(--gl); }

.rs .grpb.d { background: #fff; }

.rs .grpb h3 { font-size: 1.3rem; }

.rs .pills { display: flex; flex-wrap: wrap; gap: 10px; }

.rs .pills span {
  background: #fff;
  color: var(--pd);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 99px;
  line-height: 1.5;
}

.rs .grpb.a .pills span { background: rgba(255, 255, 255, 0.15); color: #fff; }

.rs .pills .soft { background: var(--pl); }

.rs .cta {
  background: var(--pd);
  color: #fff;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 40px 0 80px;
}

.rs .cta h2 { color: #fff; }

.rs .cta p { margin: 0; }

.rs .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }

.rs .rv.in { opacity: 1; transform: none; }

.rs .credit {
  color: var(--m);
  font-size: 0.85rem;
  max-width: 720px;
  padding-bottom: 48px;
}

.rs a:focus-visible,
.rs button:focus-visible { outline: 2px solid var(--pd); outline-offset: 3px; }

@media (min-width: 901px) {
  .rs .w {
    max-width: none;
    margin: 0;
    padding-left: calc(var(--g) + 380px);
    padding-right: var(--g);
  }

  .rs .top { padding-top: 96px; }
}

@media (min-width: 1441px) {
  .rs .w {
    --rs-gap: max(var(--g), (100% - var(--g) - 380px - 1200px) / 2);
    padding-left: calc(var(--g) + 380px + var(--rs-gap));
    padding-right: var(--rs-gap);
  }
}

@media (max-width: 900px) {
  .rs .bento { grid-template-columns: repeat(2, 1fr); }

  .rs .big,
  .rs .wide,
  .rs .tall { grid-column: auto; grid-row: auto; }

  .rs .sub,
  .rs .yr,
  .rs .cf,
  .rs .split,
  .rs .pl,
  .rs .groups,
  .rs .steps,
  .rs .band { grid-template-columns: 1fr; }

  .rs .side .it { grid-template-columns: 110px 1fr; }

  .rs .fbox { position: static; }

  .rs .fbox .fl { flex-direction: row; }

  .rs .pub { grid-template-columns: 1fr; gap: 6px; }

  .rs .pub .k { justify-self: start; }

  .rs .full { height: 520px; }

  .rs .full .tx { left: 16px; right: 16px; bottom: 16px; padding: 22px; }

  .rs .cta { flex-direction: column; align-items: flex-start; }

  .rs .dbrow { grid-template-columns: 48px 1fr auto; padding: 18px; }

  .rs .dbrow .ic { width: 48px; height: 48px; font-size: 1.2rem; }

  .rs .band b { font-size: 2.6rem; }

  .rs .top { padding-top: 168px; }
}

@media (max-width: 680px) {
  .rs .w { padding: 0 20px; }

  .rs h2 { font-size: 1.7rem; }

  .rs .snav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -20px;
    padding-right: 20px;
  }

  .rs .snav a { white-space: nowrap; }

  .rs .dbrow .btn { padding: 8px 14px; font-size: 0.85rem; }
}

@media (max-width: 600px) {
  .rs .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }

  .rs .top h1 { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rs .rv { opacity: 1; transform: none; transition: none; }

  .rs .tile,
  .rs .tile img,
  .rs .dbrow { transition: none; }

  .rs .tile:hover,
  .rs .tile:hover img,
  .rs .dbrow:hover { transform: none; }
}
