:root {
  --navy-950: #020f2a;
  --navy-900: #031b43;
  --navy-850: #052454;
  --navy-800: #07366f;
  --blue-700: #0a55a8;
  --blue-500: #168fe8;
  --cyan: #16c4ff;
  --red: #ed1c2f;
  --red-dark: #c90d21;
  --white: #fff;
  --ice: #eef7ff;
  --muted: #abc5e8;
  --line: rgba(103, 191, 255, .26);
  --card: rgba(3, 39, 84, .78);
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
  --radius: 12px;
  --max: 1540px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Inter", "Kanit", sans-serif;
  background: radial-gradient(circle at 85% 12%, rgba(20, 129, 220, .18), transparent 28%), linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #061b3b);
  color: #fff;
  line-height: 1.45;
  min-height: 100vh
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17, 115, 194, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 115, 194, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -1
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

.container {
  width: min(calc(100% - 54px), var(--max));
  margin-inline: auto
}

.section {
  padding: 38px 0
}

.section--tight {
  padding: 20px 0
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 18px
}

.section-title::before {
  content: "";
  width: 5px;
  height: 24px;
  background: var(--red);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(237, 28, 47, .5)
}

.section-kicker {
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em
}

.lead {
  color: #d8e8fb;
  font-size: 18px;
  max-width: 720px
}

.muted {
  color: var(--muted)
}

.small {
  font-size: 13px
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0
}

.grid {
  display: grid;
  gap: 18px
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: linear-gradient(180deg,
      rgba(2, 15, 42, .98) 0%,
      rgba(3, 27, 67, .92) 55%,
      rgba(5, 55, 112, .55) 100%);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(94, 174, 255, .22);
  box-shadow: 0 8px 25px rgba(0, 20, 60, .18);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.logo {
  width: 300px;
  display: flex;
  align-items: center;
  flex: none
}

.logo img {
  width: 100%;
  height: 80px;
  object-fit: contain;
  object-position: left center;
  border-radius: 2px
}

.nav {
  display: flex;
  align-items: center;
  gap: 7px
}

.nav a {
  position: relative;
  padding: 31px 18px 25px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: #edf5ff
}

.nav a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 4px;
  border-radius: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: .22s
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1)
}

.nav a:hover {
  color: #fff
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(10, 76, 146, .35);
  color: #fff;
  border-radius: 9px;
  width: 45px;
  height: 43px;
  font-size: 24px
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 25px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .8);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: .22s;
  background: transparent;
  color: #fff
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .22)
}

.btn-primary {
  background: linear-gradient(135deg, #fb2239, var(--red-dark));
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(237, 28, 47, .22)
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff3b50, #df1228)
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue-700), #0c75c7);
  border-color: #34aaff
}

.btn-sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 12px
}

.btn-icon {
  font-size: 18px
}

/* Hero */
.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background-color: #052354
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 18, 49, .98) 0%, rgba(3, 30, 70, .93) 31%, rgba(4, 36, 79, .56) 55%, rgba(4, 29, 67, .12) 100%);
  z-index: 1
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/');
  background-position: left center;
  background-size: 60% auto;
  opacity: .22;
  mix-blend-mode: screen;
  z-index: 0
}

.hero-bg {
  position: absolute;
  inset: 0 0 0 31%;
  width: 69%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.06) contrast(1.05)
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0 58px;
  max-width: 680px
}

.hero h1 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
  margin: 10px 0 14px;
  letter-spacing: -.03em
}

.hero h2 {
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.22;
  margin: 0 0 14px
}

.hero p {
  font-size: 18px;
  color: #d8e8fb;
  max-width: 660px
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px
}

.hero--compact {
  min-height: 310px
}

.hero--compact .hero-content {
  padding: 55px 0 45px;
  max-width: 620px
}

.hero--compact h1 {
  font-size: 48px
}

.hero--compact .hero-bg {
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ABOUT HERO - ภาพเต็มจอ */
body[data-page="about"] .hero--compact .hero-bg {
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Cards and panels */
.panel {
  background: linear-gradient(145deg, rgba(7, 54, 112, .92), rgba(4, 31, 71, .86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  overflow: hidden
}

.panel-pad {
  padding: 20px
}

.card {
  background: linear-gradient(150deg, rgba(8, 59, 119, .94), rgba(3, 35, 79, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(72, 190, 255, .52);
  box-shadow: var(--shadow)
}

.white-card {
  background: linear-gradient(145deg, #fff, #eef6ff);
  color: #062b64;
  border-radius: 10px;
  border: 1px solid #d4e8fb;
  box-shadow: 0 14px 28px rgba(0, 19, 52, .18)
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid #40aaff;
  border-radius: 18px;
  background: linear-gradient(145deg, #0964b7, #093a80);
  clip-path: polygon(25% 0, 75% 0, 100% 24%, 100% 76%, 75% 100%, 25% 100%, 0 76%, 0 24%)
}

.icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: none
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.icon-lg {
  width: 44px;
  height: 44px
}

/* Home */
.services-wrap {
  position: relative;
  z-index: 4;
  margin-top: -35px
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.service-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 21px;
  min-height: 132px;
  align-items: center
}

.service-card h3 {
  margin: 0 0 7px;
  font-size: 17px
}

.service-card p {
  margin: 0;
  color: #3e5571;
  font-size: 14px
}

.service-card a {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  margin-top: 10px;
  gap: 8px
}

.home-dashboard {
  display: grid;
  grid-template-columns: 1.8fr .75fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.dashboard-box {
  padding: 16px;
  min-height: 215px
}

.product-mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px
}

.product-mini {
  background: #f2f8ff;
  border-radius: 8px;
  color: #092d61;
  overflow: hidden;
  border: 1px solid #cbe3f8;
  font-size: 11px;
  font-weight: 800
}

.product-mini img {
  height: 130px;
  width: 100%;
  object-fit: cover
}

.product-mini span {
  display: block;
  padding: 8px 6px
}

.feature-list {
  display: grid;
  gap: 12px
}

.feature-list li {
  list-style: none;
  display: flex;
  gap: 10px;
  color: #dcecff;
  font-size: 13px
}

.feature-list strong {
  display: block;
  color: #fff
}

.news-mini {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line)
}

.news-mini:last-child {
  border-bottom: 0
}

.news-mini img {
  width: 102px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px
}

.logo-tile {
  height: 65px;
  background: white;
  color: #0a3a78;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  text-align: center;
  padding: 8px
}

.logo-tile.red {
  color: #d31024
}

.logo-tile.green {
  color: #1b9852
}

.logo-tile.orange {
  color: #e96914
}

.stats-bar {
  display: grid;

  /* 3 ตัวเลข + 1 ข้อความด้านขวา */
  grid-template-columns:
    repeat(3, minmax(180px, 230px)) minmax(320px, 420px);

  justify-content: center;
  align-items: center;

  gap: 55px;
  padding: 18px 40px;

  width: 100%;

  background: linear-gradient(90deg,
      #04235c,
      #073f87,
      #031d4c);
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-copy {
  justify-self: center;
}

.stat b {
  font-size: 28px;
  display: block;
  line-height: 1
}

.stat span {
  font-size: 11px;
  color: #c5daf1
}

.cta-copy h3 {
  margin: 0 0 4px
}

.cta-copy p {
  margin: 0;
  color: #d3e3f4
}

/* ปรับข้อความหน้า Home ให้ชิดด้านซ้าย */
.hero .container.hero-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
  text-align: left;
}

/* About */
.about-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Company Overview เต็มแถวบน */
.about-overview>.panel:first-child {
  grid-column: 1 / -1;
}

/* Vision และ Mission สูงเท่ากัน */
.about-overview .feature-panel {
  height: 100%;
}

/* ==================================
   ABOUT - COMPANY / VISION / MISSION
================================== */

body[data-page="about"] .about-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Company Overview เต็มด้านบน */
body[data-page="about"] .about-overview>.panel:first-child {
  grid-column: 1 / -1;
}

/* Vision + Mission อย่างละ 50% */
body[data-page="about"] .feature-panel {
  width: 100%;
  height: 100%;
}

/* มือถือกลับมาเป็น 1 ช่อง */
@media (max-width: 650px) {
  body[data-page="about"] .about-overview {
    grid-template-columns: 1fr;
  }

  body[data-page="about"] .about-overview>.panel:first-child {
    grid-column: auto;
  }
}

.feature-panel {
  display: flex;
  gap: 18px;
  padding: 22px
}

.feature-panel h3 {
  margin: 0 0 8px
}

.feature-panel p {
  margin: 0;
  color: #cee0f4
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 20px
}

.stats-strip .stat {
  justify-content: center;
  padding: 20px;
  border-right: 1px solid var(--line)
}

.stats-strip .stat:last-child {
  border-right: 0
}

.about-bottom {
  display: grid;
  grid-template-columns: .9fr 1.5fr;
  gap: 30px
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
  padding-top: 28px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 37px;
  height: 2px;
  background: #8bbff0
}

.timeline-item {
  text-align: center;
  position: relative
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 4px solid #327ed1;
  box-shadow: 0 0 14px #1ca8ff;
  border-radius: 50%;
  margin: 0 auto 14px;
  position: relative;
  z-index: 1
}

.timeline-item b {
  font-size: 17px;
  color: #59aaff
}

.timeline-item p {
  font-size: 12px;
  color: #d4e5f9
}

/* ทำให้ Popup ไม่ถูกตัด */
.about-bottom,
.timeline {
  overflow: visible;
}

/* จุด Timeline */
.timeline-dot {
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* จุดขยายเมื่อเมาส์ชี้ */
.timeline-item:hover .timeline-dot,
.timeline-dot:focus {
  transform: scale(1.25);
  box-shadow:
    0 0 0 6px rgba(50, 126, 225, 0.22),
    0 0 22px rgba(89, 170, 255, 0.95);
  outline: none;
}

/* กล่อง Popup */
.timeline-popup {
  position: absolute;
  left: 50%;
  bottom: 30px;

  width: 220px;
  padding: 14px 16px;

  background: rgba(4, 30, 72, 0.98);
  border: 1px solid rgba(89, 170, 255, 0.85);
  border-radius: 10px;

  color: #ffffff;
  text-align: left;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(89, 170, 255, 0.25);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;

  z-index: 999;
}

/* หัวข้อใน Popup */
.timeline-popup strong {
  display: block;
  margin-bottom: 7px;

  color: #59aaff;
  font-size: 14px;
  line-height: 1.4;
}

/* รายละเอียดใน Popup */
.timeline-popup span {
  display: block;

  color: #dcecff;
  font-size: 12px;
  line-height: 1.6;
}

/* ลูกศรใต้ Popup */
.timeline-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;

  border-width: 8px;
  border-style: solid;
  border-color:
    rgba(4, 30, 72, 0.98) transparent transparent transparent;

  transform: translateX(-50%);
}

/* แสดง Popup เมื่อเมาส์ไปโดน */
.timeline-item:hover .timeline-popup,
.timeline-dot:focus .timeline-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Popup ปีแรกให้ขยายไปทางขวา */
.timeline-item:first-child .timeline-popup {
  left: 0;
  transform: translate(0, 10px);
}

.timeline-item:first-child:hover .timeline-popup,
.timeline-item:first-child .timeline-dot:focus .timeline-popup {
  transform: translate(0, 0);
}

.timeline-item:first-child .timeline-popup::after {
  left: 8px;
  transform: none;
}

/* Popup ปีสุดท้ายให้ขยายไปทางซ้าย */
.timeline-item:last-child .timeline-popup {
  right: 0;
  left: auto;
  transform: translate(0, 10px);
}

.timeline-item:last-child:hover .timeline-popup,
.timeline-item:last-child .timeline-dot:focus .timeline-popup {
  transform: translate(0, 0);
}

.timeline-item:last-child .timeline-popup::after {
  right: 8px;
  left: auto;
  transform: none;
}

.strength-grid {
  grid-template-columns: repeat(4, 1fr)
}

.strength-card img {
  height: 125px;
  width: 100%;
  object-fit: cover
}

.strength-card div {
  padding: 13px
}

.strength-card h4 {
  margin: 0 0 5px
}

.strength-card p {
  font-size: 12px;
  color: #c3d9ef;
  margin: 0
}

.quote {
  padding: 25px;
  text-align: center;
  background: linear-gradient(90deg, rgba(10, 76, 158, .65), rgba(17, 114, 202, .26));
  font-size: 22px;
  font-style: italic;
  border-top: 1px solid var(--line)
}

.quote strong {
  color: var(--red);
  font-size: 38px;
  vertical-align: middle
}



/* Products */
.category-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background: #f2f8ff;
  color: #072b63;
  border-radius: 10px;
  padding: 10px;
  margin-top: -13px;
  position: relative;
  z-index: 3;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2)
}

.category-tab {
  border: 0;
  background: transparent;
  color: #0a386f;
  padding: 12px 8px;
  border-radius: 7px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.category-tab:hover,
.category-tab.active {
  background: var(--red);
  color: #fff
}

.product-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px
}

.filter-panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 105px
}

.filter-panel h3 {
  margin: 0 0 18px;
  font-size: 14px
}

.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line)
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
  color: #dbeafb
}

.filter-group select {
  width: 100%;
  background: #082f68;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.product-card {
  background: linear-gradient(#fff, #eff7ff);
  color: #082e64;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 445px
}

.product-card img {
  height: 185px;
  width: 100%;
  object-fit: cover;
  border-radius: 7px
}

.product-card .tag {
  font-size: 10px;
  background: #d8edff;
  color: #0965bf;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 8px
}

.product-card h3 {
  font-size: 18px;
  margin: 7px 0
}

.product-card ul {
  font-size: 12px;
  padding-left: 18px;
  margin: 0 0 12px;
  flex: 1
}

.product-card .btn {
  color: #07529e;
  border-color: #4b9fe8;
  width: 100%;
  min-height: 36px
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 25px
}

.benefit {
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-right: 1px solid var(--line)
}

.benefit:last-child {
  border-right: 0
}

.benefit h4 {
  margin: 0 0 4px
}

.benefit p {
  margin: 0;
  color: #c7dcf1;
  font-size: 12px
}

/* Brands */
.trust-points {
  display: flex;
  gap: 55px;
  margin-top: 30px
}

.trust-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 260px
}

.trust-point h4 {
  margin: 0
}

.trust-point p {
  margin: 2px 0 0;
  color: #ccddf1;
  font-size: 13px
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px
}

.partner-row img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8ecff
}

.brand-content {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.05fr;
  gap: 15px
}

.featured-brand {
  padding: 18px
}

.featured-brand-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px
}

.featured-brand-grid img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px
}

.brand-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px
}

.field-item {
  display: flex;
  gap: 10px
}

.field-item h4 {
  margin: 0
}

.field-item p {
  font-size: 12px;
  color: #c3d8ee;
  margin: 2px 0
}

.check-list {
  padding: 18px
}

.check-list li {
  list-style: none;
  margin: 13px 0;
  display: flex;
  gap: 10px
}

.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #148de5;
  font-weight: 900
}

.benefit-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px
}

.benefit-icons .benefit {
  border: 0
}

/* Download */
.download-layout {
  display: grid;
  grid-template-columns: 235px 1fr
}

.download-sidebar {
  border-right: 1px solid var(--line);
  padding: 18px
}

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  color: #e2edfa;
  font-size: 13px
}

.side-link.active,
.side-link:hover {
  background: linear-gradient(90deg, #0b72d3, #0d55ac)
}

.count {
  background: rgba(255, 255, 255, .15);
  padding: 2px 7px;
  border-radius: 30px;
  font-size: 11px
}

.download-main {
  padding: 18px
}

.search-bar {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 18px;
  margin-bottom: 20px
}

.input,
.select,
.textarea {
  width: 100%;
  background: #f5f9ff;
  color: #18314e;
  border: 1px solid #cbdff2;
  border-radius: 7px;
  padding: 12px 14px;
  outline: none
}

.dark-input {
  background: #072a5f;
  color: #fff;
  border-color: var(--line)
}

.dark-input::placeholder {
  color: #a9c3df
}

.download-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.download-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  min-height: 190px
}

.download-card img {
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px
}

.download-card h3 {
  margin: 3px 0 7px;
  font-size: 16px
}

.download-card p {
  font-size: 12px;
  color: #bfd4eb
}

.file-meta {
  font-size: 12px;
  color: #dcecff
}

.download-card>div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-card .btn {
  width: 100%;
  margin-top: auto;
}

.download-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 20px
}

.download-benefits .benefit {
  justify-content: center
}

/* News */
.news-hero-content {
  display: grid;
  grid-template-columns: .95fr 1.35fr;
  gap: 40px;
  align-items: center
}

.featured-article {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 20px;
  align-items: center
}

.featured-article img {
  height: 230px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px
}

.featured-article h2 {
  font-size: 25px
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 28px
}

.latest-grid {
  grid-template-columns: repeat(4, 1fr)
}

.article-card img {
  height: 150px;
  width: 100%;
  object-fit: cover
}

.article-card .content {
  padding: 14px
}

.article-card h3 {
  font-size: 16px;
  margin: 5px 0
}

.article-card p {
  font-size: 12px;
  color: #c6d9ee
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #b9cee4
}

.sidebar-box {
  padding: 18px;
  margin-bottom: 16px
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tag-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 12px
}

.tag-btn:hover,
.tag-btn.active {
  background: #0c72c8
}

.article-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px
}

.list-article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 11px;
  border-bottom: 1px solid var(--line)
}

.list-article img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px
}

.list-article h4 {
  margin: 0;
  font-size: 14px
}

.list-article p {
  margin: 4px 0;
  font-size: 12px;
  color: #c0d6ec
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr 1.08fr;
  gap: 14px;
  margin-top: -5px
}

.contact-panel {
  padding: 20px
}

.contact-panel h2 {
  font-size: 18px
}

.contact-list {
  display: grid;
  gap: 14px
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.contact-item p {
  margin: 0
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.contact-form .full {
  grid-column: 1/-1
}

.form-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cce0f5;
  font-size: 12px
}

.map-image {
  height: 298px;
  width: 100%;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--line)
}

.connect-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0
}

.connect-item {
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-right: 1px solid var(--line)
}

.connect-item:last-child {
  border: 0
}

.connect-item h4 {
  margin: 0
}

.connect-item p {
  margin: 2px 0;
  color: #c9dcef;
  font-size: 12px
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #07326a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900
}

/* Modal/toast/footer */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 9, 25, .78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100
}

.modal.open {
  display: flex
}

.modal-card {
  width: min(720px, 100%);
  background: linear-gradient(145deg, #073c7b, #031e49);
  border: 1px solid #3da9fa;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .48);
  padding: 24px;
  position: relative
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px
}

.modal-body {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 22px
}

.modal-body img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #fff;
  color: #06316a;
  border-left: 5px solid #18a45a;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: .25s;
  z-index: 110
}

.toast.show {
  transform: translateY(0);
  opacity: 1
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020e28;
  margin-top: 36px
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  padding: 38px 0
}

.footer-logo {
  width: 230px
}

.footer-inner h4 {
  margin-top: 0
}

.footer-inner ul {
  padding: 0;
  margin: 0
}

.footer-inner li {
  list-style: none;
  margin: 8px 0;
  color: #b9cee4;
  font-size: 13px
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 16px 0;
  color: #91acd0;
  font-size: 12px;
  display: flex;
  justify-content: space-between
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d72cc;
  border: 1px solid #60bdff;
  color: #fff;
  z-index: 40;
  display: none
}

.back-top.show {
  display: block
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px;
  color: #c9dcef;
  border: 1px dashed var(--line);
  border-radius: 10px
}

/* Responsive */
@media(max-width:1250px) {
  .container {
    width: min(calc(100% - 34px), var(--max))
  }

  .logo {
    width: 220px
  }

  .nav a {
    padding-left: 11px;
    padding-right: 11px;
    font-size: 13px
  }

  .nav a::after {
    left: 11px;
    right: 11px
  }

  .home-dashboard {
    grid-template-columns: 1.5fr 1fr 1fr
  }

  .home-dashboard>div:last-child {
    grid-column: 2/4
  }

  .product-mini-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .download-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .latest-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .contact-grid {
    grid-template-columns: 1fr 1.25fr
  }

  .contact-grid>.contact-panel:last-child {
    grid-column: 1/-1
  }

  .map-image {
    height: 340px
  }
}

@media(max-width:980px) {
  .header-inner {
    height: 72px
  }

  .logo {
    width: 205px
  }

  .logo img {
    height: 55px
  }

  .menu-toggle {
    display: block
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: linear-gradient(180deg, rgba(3, 24, 59, .98), rgba(5, 55, 112, .78));
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    max-height: calc(100vh - 72px);
    overflow: auto
  }

  .nav.open {
    display: flex
  }

  .nav a {
    padding: 13px 10px
  }

  .nav a::after {
    bottom: 4px;
    left: 10px;
    right: auto;
    width: 70px
  }

  .hero {
    min-height: 480px
  }

  .hero-bg {
    left: 28%;
    width: 72%;
    opacity: .85
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(2, 18, 49, .98), rgba(3, 30, 70, .88) 55%, rgba(4, 36, 79, .32))
  }

  .hero-content {
    padding-top: 62px
  }

  .hero h1 {
    font-size: 45px
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .home-dashboard {
    grid-template-columns: 1fr 1fr
  }

  .home-dashboard>div:first-child {
    grid-column: 1/-1
  }

  .home-dashboard>div:last-child {
    grid-column: auto
  }

  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-bar .cta-copy {
    grid-column: 1/4
  }

  .stats-bar .btn {
    grid-column: 4
  }

  .about-overview {
    grid-template-columns: 1fr 1fr
  }

  .about-overview>.panel:first-child {
    grid-column: 1/-1
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr)
  }

  .stats-strip .stat:nth-child(3) {
    border-right: 0
  }

  .about-bottom {
    grid-template-columns: 1fr
  }

  .strength-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .category-tabs {
    grid-template-columns: repeat(4, 1fr)
  }

  .product-layout {
    grid-template-columns: 1fr
  }

  .filter-panel {
    position: static
  }

  .filter-panel .filter-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
  }

  .benefits-row {
    grid-template-columns: repeat(2, 1fr)
  }

  .partner-row {
    grid-template-columns: repeat(4, 1fr)
  }

  .brand-content {
    grid-template-columns: 1fr 1fr
  }

  .brand-content>.panel:last-child {
    grid-column: 1/-1
  }

  .benefit-icons {
    grid-template-columns: repeat(2, 1fr)
  }

  .download-layout {
    grid-template-columns: 1fr
  }

  .download-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .download-sidebar .filter-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px
  }

  .download-benefits {
    grid-template-columns: repeat(2, 1fr)
  }

  .news-hero-content {
    grid-template-columns: 1fr
  }

  .news-layout {
    grid-template-columns: 1fr
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
  }

  .article-columns {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  .contact-grid>.contact-panel:last-child {
    grid-column: auto
  }

  .connect-row {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:650px) {
  .container {
    width: min(calc(100% - 24px), var(--max))
  }

  .section {
    padding: 28px 0
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr
  }

  .logo {
    width: 185px
  }

  .hero {
    min-height: 530px
  }

  .hero-bg {
    left: 0;
    width: 100%;
    opacity: .5
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(2, 18, 49, .96) 0%, rgba(3, 30, 70, .85) 65%, rgba(3, 30, 70, .65))
  }

  .hero-content {
    padding: 55px 0 45px
  }

  .hero h1 {
    font-size: 37px
  }

  .hero h2 {
    font-size: 23px
  }

  .hero p {
    font-size: 16px
  }

  .hero--compact {
    min-height: 390px
  }

  .hero--compact .hero-bg {
    left: 0;
    width: 100%
  }

  .hero--compact h1 {
    font-size: 38px
  }

  .services-wrap {
    margin-top: -28px
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .home-dashboard {
    grid-template-columns: 1fr
  }

  .home-dashboard>div:first-child,
  .home-dashboard>div:last-child {
    grid-column: auto
  }

  .product-mini-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    padding: 20px
  }

  .stats-bar .cta-copy {
    grid-column: 1/-1
  }

  .stats-bar .btn {
    grid-column: 1/-1
  }

  .stat b {
    font-size: 23px
  }

  .about-overview {
    grid-template-columns: 1fr
  }

  .about-overview>.panel:first-child {
    grid-column: auto
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr
  }

  .stats-strip .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px
  }

  .timeline::before {
    display: none
  }

  .strength-grid {
    grid-template-columns: 1fr
  }

  .category-tabs {
    grid-template-columns: 1fr 1fr
  }

  .filter-panel .filter-body {
    grid-template-columns: 1fr
  }

  .product-grid {
    grid-template-columns: 1fr
  }

  .benefits-row {
    grid-template-columns: 1fr
  }

  .benefit {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .trust-points {
    flex-direction: column;
    gap: 18px
  }

  .partner-row {
    grid-template-columns: 1fr 1fr
  }

  .brand-content {
    grid-template-columns: 1fr
  }

  .brand-content>.panel:last-child {
    grid-column: auto
  }

  .featured-brand-grid {
    grid-template-columns: 1fr
  }

  .brand-fields {
    grid-template-columns: 1fr
  }

  .benefit-icons {
    grid-template-columns: 1fr
  }

  .download-sidebar .filter-body {
    grid-template-columns: 1fr 1fr
  }

  .search-bar {
    grid-template-columns: 1fr
  }

  .download-grid {
    grid-template-columns: 1fr
  }

  .download-card {
    grid-template-columns: 90px 1fr
  }

  .download-card img {
    width: 100px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
  }

  .download-benefits {
    grid-template-columns: 1fr
  }

  .featured-article {
    grid-template-columns: 1fr
  }

  .latest-grid {
    grid-template-columns: 1fr
  }

  .news-sidebar {
    grid-template-columns: 1fr
  }

  .article-columns {
    grid-template-columns: 1fr
  }

  .list-article {
    grid-template-columns: 95px 1fr
  }

  .list-article img {
    width: 95px
  }

  .contact-form {
    grid-template-columns: 1fr
  }

  .contact-form .full {
    grid-column: auto
  }

  .connect-row {
    grid-template-columns: 1fr
  }

  .connect-item {
    border-right: 0;
    border-bottom: 1px solid var(--line)
  }

  .modal-body {
    grid-template-columns: 1fr
  }

  .modal-body img {
    height: 190px
  }

  .footer-inner {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px
  }
}

/* ==================================
   AUTOMATIC COVER SLIDER
================================== */

.cover-panel {
  padding: 0;
  overflow: hidden;
}

.cover-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 10px;
  background: #061f48;
}

/* ภาพแต่ละสไลด์ */
.cover-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

/* ภาพที่กำลังแสดง */
.cover-slide.active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

/* ลิงก์ครอบภาพ */
.cover-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

/* รูปภาพ Cover */
.cover-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

/* จุดบอกตำแหน่ง */
.cover-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

.cover-dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.cover-dot.active {
  width: 25px;
  border-color: #f21f3d;
  border-radius: 10px;
  background: #f21f3d;
}

/* หน้าจอโทรศัพท์ */
@media (max-width: 768px) {
  .brand-marquee {
    padding: 12px 0;
  }

  .brand-marquee-group {
    gap: 20px;
    padding-right: 20px;
    width: max-content;
  }

  .brand-marquee-group a {
    flex: 0 0 145px;
    width: 145px;
    height: 78px;
  }

  .brand-marquee-group img {
    width: auto !important;
    height: auto !important;

    max-width: 130px;
    max-height: 55px;

    object-fit: contain;
  }

  .brand-marquee-track {
    animation-duration: 22s;
  }
}

/* ==================================
   AUTO-SCROLLING BRAND SHOWCASE
   ใช้ภาพรวมโลโก้: assets/img/brands-strip.png
================================== */

.brand-showcase {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(10, 85, 168, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 19, 52, 0.18);
}

.brand-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  border-bottom: 1px solid #dceaf7;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.brand-showcase-head h2 {
  margin: 0;
  color: #07366f;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-showcase-head a {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

/* เงาขาวด้านซ้าย-ขวา ทำให้ภาพเข้า-ออกนุ่มขึ้น */
.brand-marquee::before,
.brand-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 80px;
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

.brand-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: brand-marquee-scroll 24s linear infinite;
}

/* แถวโลโก้ทั้งหมด */
.brand-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: brand-marquee-scroll 28s linear infinite;
}

/* โลโก้แต่ละชุดเรียงแนวนอน */
.brand-marquee-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;

  /* ระยะห่างระหว่างโลโก้ */
  gap: 10px;

  /* ทำให้ระยะห่างระหว่างชุดที่ 1 และชุดที่ 2 เท่ากัน */
  padding-right: 10px;

  width: max-content;
}

/* กล่องของโลโก้แต่ละแบรนด์ */
.brand-marquee-group a {
  flex: 0 0 220px;
  width: 220px;
  height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px 10px;
  border-radius: 8px;
}

/* ขนาดรูปโลโก้ */
.brand-marquee-group img {
  max-width: 200px;
  max-height: 90px;
}

/* หยุดเลื่อนชั่วคราวเมื่อเอาเมาส์วาง */
.brand-marquee:hover .brand-marquee-track {
  animation-play-state: running;
}

@keyframes brand-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .brand-showcase-head {
    padding: 12px 14px;
  }

  .brand-showcase-head h2 {
    font-size: 14px;
  }

  .brand-showcase-head a {
    font-size: 10px;
  }

  .brand-marquee::before,
  .brand-marquee::after {
    width: 35px;
  }

  /* ป้องกันโลโก้ยืดทุกขนาดหน้าจอ */
  .brand-marquee-group {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    width: max-content;
    flex: 0 0 auto;
  }

  .brand-marquee-group a {
    flex: 0 0 180px;
    width: 180px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-marquee-group img {
    display: block;

    /* รักษาสัดส่วนเดิมของโลโก้ */
    width: auto;
    height: auto;

    max-width: 165px;
    max-height: 68px;

    object-fit: contain;
  }

  .brand-marquee-track {
    animation-duration: 18s;
  }
}

/* เคารพการตั้งค่าลดการเคลื่อนไหวของผู้ใช้ */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee-track {
    animation: none;
  }
}

/* OUR PARTNER BRANDS แบบขาวโปร่งใส */
.services-grid .brand-showcase {
  background: rgba(255, 255, 255, 0.87);
  border: 1px solid rgba(255, 255, 255, 0.795);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: 0 14px 35px rgba(0, 20, 55, 0.20);
}

/* ส่วนหัว OUR PARTNER BRANDS */
.services-grid .brand-showcase-head {
  background: rgba(255, 255, 255, 0.925);
  border-bottom: 1px solid rgba(7, 54, 111, 0.14);
}

/* พื้นที่โลโก้ */
.services-grid .brand-marquee {
  background: transparent;
}

/* ไล่ขอบซ้าย-ขวาให้โปร่งใส */
.services-grid .brand-marquee::before {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0));
}

.services-grid .brand-marquee::after {
  background: linear-gradient(270deg,
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0));
}

/* ==================================
   BLOCK REVEAL ANIMATION
================================== */

body[data-page="home"] .reveal-block {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  filter: blur(4px);

  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease;

  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

/* เมื่อบล็อกเข้ามาในหน้าจอ */
body[data-page="home"] .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* เพิ่มเอฟเฟกต์ตอนเอาเมาส์ชี้ */
body[data-page="home"] .service-card,
body[data-page="home"] .dashboard-box,
body[data-page="home"] .brand-showcase {
  transition:
    opacity 0.75s ease,
    transform 0.3s ease,
    filter 0.75s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body[data-page="home"] .service-card:hover,
body[data-page="home"] .dashboard-box:hover,
body[data-page="home"] .brand-showcase:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 196, 255, 0.55);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(22, 143, 232, 0.18);
}

/* ปิด Animation สำหรับผู้ที่ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .reveal-block {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ==================================
   ONLINE CHANNELS
================================== */

.online-channels-section {
  padding-top: 12px;
}

.online-channel-panel {
  overflow: hidden;
  border: 1px solid rgba(86, 169, 255, 0.28);
  border-radius: 14px;

  background:
    linear-gradient(145deg,
      rgba(7, 54, 112, 0.94),
      rgba(3, 27, 67, 0.94));

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.online-channel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 22px 26px;

  border-bottom: 1px solid rgba(103, 191, 255, 0.22);

  background:
    linear-gradient(90deg,
      rgba(9, 75, 150, 0.78),
      rgba(4, 36, 82, 0.45));
}

.online-channel-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.online-channel-kicker {
  color: #ff3348;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.online-channel-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 9px 18px;

  border-radius: 7px;

  color: #ffffff;
  font-size: 12px;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.facebook-link {
  background: linear-gradient(135deg, #1877f2, #0959bd);
  box-shadow: 0 9px 22px rgba(24, 119, 242, 0.22);
}

.youtube-link {
  background: linear-gradient(135deg, #ff253c, #c90018);
  box-shadow: 0 9px 22px rgba(255, 0, 25, 0.2);
}

/* กล่อง Facebook และ YouTube */
.social-feed-block {
  padding: 24px;
  border-bottom: none;
}

.social-feed-block:last-child {
  border-bottom: 0;
}

.social-feed-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.social-feed-title h3 {
  margin: 0;
  font-size: 19px;
}

.social-feed-title p {
  margin: 2px 0 0;
  color: #abc5e8;
  font-size: 13px;
}

.social-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: none;

  border-radius: 10px;

  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
}

.facebook-icon {
  background: #1877f2;
}

.youtube-icon {
  background: #ff0019;
  font-size: 18px;
}

/* Facebook */
.facebook-embed {
  min-height: 620px;
  padding: 18px;

  display: flex;
  justify-content: center;

  overflow: hidden;

  border-radius: 11px;
  background: #f1f3f6;
}

.facebook-embed iframe {
  width: 500px;
  max-width: 100%;
  border-radius: 8px;
}

/* YouTube */
.youtube-channel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: center;

  padding: 18px;

  border: 1px solid rgba(103, 191, 255, 0.2);
  border-radius: 11px;

  background: rgba(1, 18, 47, 0.55);
}

/* เว้นขอบกรอบ YouTube ไม่ให้ติดขอบจอ */
.youtube-channel {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.youtube-channel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;

  border: 0;
  border-radius: 9px;

  background: #000000;
}

.youtube-channel-info {
  padding: 8px;
}

.youtube-channel-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.youtube-channel-info p {
  margin: 0 0 20px;

  color: #c5daf1;
  font-size: 14px;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .youtube-channel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .online-channel-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .online-channel-links {
    width: 100%;
  }

  .social-link {
    flex: 1;
    padding-inline: 10px;
  }

  .social-feed-block {
    padding: 16px;
  }

  .facebook-embed {
    min-height: 560px;
    padding: 8px;
  }

  .facebook-embed iframe {
    height: 560px;
  }

  .youtube-channel {
    padding: 10px;
  }
}

/* ทำให้ Online Channels กว้างเท่าบล็อกด้านบน */
.online-channels-section {
  display: block;
  width: 100%;
  padding: 24px 0 38px;
}

.online-channels-section>.container {
  width: min(calc(100% - 54px), var(--max));
  margin-left: auto;
  margin-right: auto;
}

.online-channel-panel {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ==================================
   FACEBOOK FEED MOCKUP
================================== */

.facebook-section {
  padding-top: 15px;
}

.facebook-feed-mockup {
  width: 100%;
  overflow: hidden;

  border: 1px solid rgba(103, 191, 255, 0.3);
  border-radius: 14px;

  background: #f0f2f5;
  color: #1c1e21;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(22, 143, 232, 0.08);
}

/* แถบสีน้ำเงิน */
.facebook-cover-bar {
  position: relative;
  height: 46px;

  background: linear-gradient(90deg,
      #315899 0%,
      #4267a9 50%,
      #315899 100%);
}

.facebook-page-buttons {
  position: absolute;
  top: 9px;
  right: 14px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.facebook-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 27px;
  padding: 4px 10px;

  border: 1px solid #d5d8dc;
  border-radius: 3px;

  background: #ffffff;
  color: #3b5998;

  font-size: 11px;
  font-weight: 700;
}

.facebook-small-button span {
  width: 14px;
  height: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 2px;
  background: #1877f2;
  color: #ffffff;
}

/* ข้อมูลเพจ */
.facebook-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;

  min-height: 88px;
  padding: 14px 22px;

  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
}

.facebook-page-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.facebook-page-avatar {
  width: 70px;
  height: 70px;
  flex: none;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px;
  margin-top: 0px;

  border: 4px solid #ffffff;
  border-radius: 12px;

  background: #ffffff;

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2);
}

.facebook-page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.facebook-page-name h3 {
  margin: 0;
  color: #1c1e21;
  font-size: 18px;
}

.facebook-page-name p {
  margin: 2px 0;
  color: #4b4f56;
  font-size: 12px;
}

.facebook-page-name span {
  color: #8a8d91;
  font-size: 11px;
}

.facebook-view-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 8px 16px;

  border-radius: 6px;

  background: linear-gradient(135deg, #1877f2, #0d5fc4);
  color: #ffffff;

  font-size: 12px;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.facebook-view-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(24, 119, 242, 0.28);
}

/* Tabs */
.facebook-tabs {
  display: flex;
  align-items: center;
  gap: 2px;

  padding: 0 22px;

  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
}

.facebook-tab {
  position: relative;

  padding: 13px 13px 11px;

  border: 0;
  background: transparent;

  color: #65676b;
  font-size: 11px;
  font-weight: 700;
}

.facebook-tab::after {
  content: "";
  position: absolute;

  right: 10px;
  bottom: 0;
  left: 10px;

  height: 3px;
  border-radius: 3px 3px 0 0;

  background: #1877f2;

  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.facebook-tab:hover,
.facebook-tab.active {
  color: #1877f2;
}

.facebook-tab:hover::after,
.facebook-tab.active::after {
  transform: scaleX(1);
}

/* ตารางโพสต์ */
.facebook-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  padding: 18px;

  background: #f0f2f5;
}

.facebook-post-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid #e2e5e9;
  border-radius: 7px;

  background: #ffffff;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.facebook-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.14);
}

/* ชื่อเพจบนโพสต์ */
.facebook-post-owner {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 11px;
}

.facebook-post-owner img {
  width: 38px;
  height: 38px;
  flex: none;

  padding: 3px;

  border: 1px solid #e2e5e9;
  border-radius: 50%;

  object-fit: contain;
}

.facebook-post-owner strong {
  display: block;

  overflow: hidden;
  color: #1c1e21;

  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.facebook-post-owner span {
  display: block;
  margin-top: 2px;

  color: #8a8d91;
  font-size: 10px;
}

/* รูปโพสต์ */
.facebook-post-image {
  display: block;
  overflow: hidden;

  background: #e4e6eb;
}

.facebook-post-image img {
  width: 100%;
  aspect-ratio: 1 / 1;

  display: block;
  object-fit: cover;

  transition: transform 0.45s ease;
}

.facebook-post-card:hover .facebook-post-image img {
  transform: scale(1.035);
}


/* ด้านล่าง */
.facebook-feed-footer {
  padding: 14px 18px;
  text-align: center;

  border-top: 1px solid #dfe3e8;
  background: #ffffff;
}

.facebook-feed-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 9px 22px;

  border-radius: 6px;

  background: #1877f2;
  color: #ffffff;

  font-size: 12px;
  font-weight: 800;
}

/* Tablet */
@media (max-width: 980px) {
  .facebook-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facebook-post-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .facebook-cover-bar {
    height: 50px;
  }

  .facebook-page-buttons {
    right: 8px;
  }

  .facebook-page-header {
    align-items: flex-start;
    flex-direction: column;

    padding: 14px;
  }

  .facebook-page-avatar {
    width: 60px;
    height: 60px;
  }

  .facebook-page-name h3 {
    font-size: 15px;
  }

  .facebook-view-page {
    width: 100%;
  }

  .facebook-tabs {
    overflow-x: auto;
    padding-inline: 8px;
  }

  .facebook-post-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .facebook-post-card:last-child {
    grid-column: auto;
    width: 100%;
  }
}

.facebook-post-caption {
  padding: 12px 14px 16px;
  color: #1c1e21;
  font-size: 13px;
  line-height: 1.6;
  background: #ffffff;
}

/* ==================================
   TIKTOK CHANNEL
================================== */

/* ปุ่ม TikTok ด้านบน */
.tiktok-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);

  background:
    linear-gradient(135deg,
      #00f2ea 0%,
      #111111 45%,
      #ff0050 100%);
}

/* โลโก้ TikTok */
.tiktok-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  color: #ffffff;
  font-size: 25px;
  font-weight: 900;

  background:
    linear-gradient(135deg,
      #00f2ea 0%,
      #111111 45%,
      #ff0050 100%);

  box-shadow:
    -2px 0 0 rgba(0, 242, 234, 0.75),
    2px 0 0 rgba(255, 0, 80, 0.75);
}

/* กรอบ TikTok */
.tiktok-channel {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr) minmax(280px, 0.75fr);

  gap: 22px;
  align-items: center;

  padding: 18px;

  border: 1px solid rgba(103, 191, 255, 0.2);
  border-radius: 11px;

  background: rgba(1, 18, 47, 0.55);
}

/* ภาพตัวอย่าง */
.tiktok-preview {
  position: relative;
  display: block;

  width: 100%;
  height: 420px;

  overflow: hidden;
  border-radius: 9px;

  background: #050505;
}

.tiktok-preview img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.45s ease;
}

.tiktok-preview:hover img {
  transform: scale(1.05);
}

/* ปุ่มสัญลักษณ์กลางภาพ */
.tiktok-play {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;

  color: #ffffff;
  font-size: 32px;
  font-weight: 900;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);

  transform: translate(-50%, -50%);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.tiktok-preview:hover .tiktok-play {
  transform: translate(-50%, -50%) scale(1.1);

  background:
    linear-gradient(135deg,
      rgba(0, 242, 234, 0.9),
      rgba(255, 0, 80, 0.9));
}

/* รายละเอียดช่อง */
.tiktok-channel-info {
  padding: 8px;
}

.tiktok-channel-info h3 {
  margin: 7px 0 10px;
  font-size: 22px;
}

.tiktok-channel-info p {
  margin: 0 0 20px;

  color: #c5daf1;
  font-size: 14px;
  line-height: 1.7;
}

.tiktok-label {
  color: #00f2ea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ปุ่มเข้าช่อง TikTok */
.tiktok-button {
  color: #ffffff;
  border: 0;

  background:
    linear-gradient(135deg,
      #00bdb7,
      #111111 48%,
      #ff0050);
}

/* แท็บเล็ต */
@media (max-width: 900px) {
  .tiktok-channel {
    grid-template-columns: 1fr;
  }

  .tiktok-preview {
    height: 380px;
  }
}

/* โทรศัพท์ */
@media (max-width: 650px) {
  .tiktok-channel {
    padding: 10px;
  }

  .tiktok-preview {
    height: 330px;
  }

  .online-channel-links {
    flex-wrap: wrap;
  }

  .online-channel-links .social-link {
    min-width: calc(50% - 5px);
  }
}

/* ==================================
   TIKTOK VIDEO GRID
================================== */

.tiktok-video-panel {
  overflow: hidden;

  border: 1px solid rgba(103, 191, 255, 0.22);
  border-radius: 11px;

  background: rgba(1, 18, 47, 0.55);
}

.tiktok-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
  padding: 18px;
}

/* การ์ดแต่ละคลิป */
.tiktok-video-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;

  background: linear-gradient(145deg,
      rgba(10, 35, 70, 0.98),
      rgba(2, 17, 42, 0.98));

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.tiktok-video-card:hover {
  transform: translateY(-6px);

  border-color: rgba(0, 242, 234, 0.7);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    -4px 0 18px rgba(0, 242, 234, 0.12),
    4px 0 18px rgba(255, 0, 80, 0.12);
}

/* กรอบวิดีโอแนวตั้ง 9:16 */
.tiktok-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;

  overflow: hidden;
  background: #000000;
}

.tiktok-iframe-wrap iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

/* ข้อความใต้คลิป */
.tiktok-video-caption {
  padding: 14px 15px 16px;
}

.tiktok-video-caption h4 {
  margin: 0 0 5px;

  color: #ffffff;
  font-size: 15px;
}

.tiktok-video-caption p {
  margin: 0;

  color: #abc5e8;
  font-size: 12px;
  line-height: 1.55;
}

/* ปุ่มด้านล่าง */
.tiktok-feed-footer {
  padding: 14px 18px 18px;
  text-align: center;

  border-top: 1px solid rgba(103, 191, 255, 0.16);
}

.tiktok-feed-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 10px 22px;

  border-radius: 8px;

  color: #ffffff;
  font-size: 13px;
  font-weight: 800;

  background: linear-gradient(135deg,
      #00bdb7,
      #101010 48%,
      #ff0050);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tiktok-feed-footer a:hover {
  transform: translateY(-3px);

  box-shadow:
    -4px 0 15px rgba(0, 242, 234, 0.25),
    4px 0 15px rgba(255, 0, 80, 0.25);
}

/* ==================================
   TIKTOK VIDEO GRID
================================== */

.tiktok-video-panel {
  overflow: hidden;

  border: 1px solid rgba(103, 191, 255, 0.22);
  border-radius: 11px;

  background: rgba(1, 18, 47, 0.55);
}

.tiktok-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
  padding: 18px;
}

/* การ์ดแต่ละคลิป */
.tiktok-video-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;

  background: linear-gradient(145deg,
      rgba(10, 35, 70, 0.98),
      rgba(2, 17, 42, 0.98));

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.tiktok-video-card:hover {
  transform: translateY(-6px);

  border-color: rgba(0, 242, 234, 0.7);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    -4px 0 18px rgba(0, 242, 234, 0.12),
    4px 0 18px rgba(255, 0, 80, 0.12);
}

/* กรอบวิดีโอแนวตั้ง 9:16 */
.tiktok-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;

  overflow: hidden;
  background: #000000;
}

.tiktok-iframe-wrap iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
}

/* ข้อความใต้คลิป */
.tiktok-video-caption {
  padding: 14px 15px 16px;
}

.tiktok-video-caption h4 {
  margin: 0 0 5px;

  color: #ffffff;
  font-size: 15px;
}

.tiktok-video-caption p {
  margin: 0;

  color: #abc5e8;
  font-size: 12px;
  line-height: 1.55;
}

/* ปุ่มด้านล่าง */
.tiktok-feed-footer {
  padding: 14px 18px 18px;
  text-align: center;

  border-top: 1px solid rgba(103, 191, 255, 0.16);
}

.tiktok-feed-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 10px 22px;

  border-radius: 8px;

  color: #ffffff;
  font-size: 13px;
  font-weight: 800;

  background: linear-gradient(135deg,
      #00bdb7,
      #101010 48%,
      #ff0050);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.tiktok-feed-footer a:hover {
  transform: translateY(-3px);

  box-shadow:
    -4px 0 15px rgba(0, 242, 234, 0.25),
    4px 0 15px rgba(255, 0, 80, 0.25);
}

/* หน้า Home หลังลบ Why Choose PAC */
.home-dashboard--two-columns {
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

/* ป้องกันภาพดันบล็อกออกนอกกรอบ */
.home-dashboard--two-columns .cover-panel {
  min-width: 0;
  width: 100%;
}

/* แท็บเล็ต */
@media (max-width: 980px) {
  .home-dashboard--two-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
}

/* โทรศัพท์ */
@media (max-width: 650px) {
  .home-dashboard--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .home-dashboard--two-columns .cover-slider {
    height: 300px;
  }
}

/* ================================
   HERO VIDEO BACKGROUND
================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: #052354;
}

/* วิดีโอพื้นหลัง */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
}

/* ชั้นสีน้ำเงินทับวิดีโอ เพื่อให้ข้อความอ่านง่าย */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(90deg,
      rgba(2, 18, 49, 0.96) 0%,
      rgba(3, 30, 70, 0.82) 40%,
      rgba(4, 36, 79, 0.35) 70%,
      rgba(4, 29, 67, 0.18) 100%);
}

/* ให้ข้อความอยู่เหนือวิดีโอ */
.hero-content {
  position: relative;
  z-index: 2;
}

/* =====================================
   HOME PAGE MOTION EFFECTS
===================================== */

/* 1. ข้อความ Hero เลื่อนขึ้นเมื่อเปิดหน้าเว็บ */
body[data-page="home"] .hero-content>* {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-content-in 0.8s ease forwards;
}

body[data-page="home"] .hero-content>*:nth-child(1) {
  animation-delay: 0.15s;
}

body[data-page="home"] .hero-content>*:nth-child(2) {
  animation-delay: 0.3s;
}

body[data-page="home"] .hero-content>*:nth-child(3) {
  animation-delay: 0.45s;
}

body[data-page="home"] .hero-content>*:nth-child(4) {
  animation-delay: 0.6s;
}

body[data-page="home"] .hero-content>*:nth-child(5) {
  animation-delay: 0.75s;
}

@keyframes hero-content-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 2. พื้นหลัง Hero เคลื่อนไหวช้า ๆ */
body[data-page="home"] .hero-bg,
body[data-page="home"] .hero-video {
  animation: hero-background-move 18s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes hero-background-move {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}


/* 3. บล็อกค่อย ๆ ปรากฏเมื่อเลื่อนหน้าจอ */
.motion-reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.985);

  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);

  transition-delay: var(--motion-delay, 0ms);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* 4. การ์ดบริการลอยขึ้นเมื่อวางเมาส์ */
body[data-page="home"] .service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body[data-page="home"] .service-card:hover {
  transform: translateY(-9px);

  border-color: rgba(22, 143, 232, 0.7);

  box-shadow:
    0 20px 40px rgba(0, 20, 55, 0.25),
    0 0 24px rgba(22, 143, 232, 0.18);
}


/* ไอคอนขยับเล็กน้อย */
body[data-page="home"] .service-card:hover .icon-box {
  animation: service-icon-float 0.8s ease-in-out infinite alternate;
}

@keyframes service-icon-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-6px);
  }
}


/* 5. ภาพข่าวขยายเมื่อวางเมาส์ */
.news-mini {
  overflow: hidden;
  transition:
    background 0.25s ease,
    padding-left 0.25s ease;
}

.news-mini img {
  transition: transform 0.4s ease;
}

.news-mini:hover {
  padding-left: 7px;
  background: rgba(22, 143, 232, 0.08);
}

.news-mini:hover img {
  transform: scale(1.08);
}


/* 6. ลูกศรบนปุ่มเลื่อนไปทางขวา */
.btn .btn-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon {
  transform: translateX(6px);
}


/* 7. บล็อก Dashboard มีแสงเมื่อวางเมาส์ */
body[data-page="home"] .dashboard-box {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body[data-page="home"] .dashboard-box:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 196, 255, 0.5);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(22, 143, 232, 0.12);
}


/* 8. Header มีเงาเพิ่มเมื่อเลื่อนหน้าจอ */
.site-header {
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(180deg,
      rgba(2, 15, 42, 0.98) 0%,
      rgba(3, 27, 67, 0.92) 55%,
      rgba(5, 55, 112, 0.55) 100%);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom-color: rgba(22, 196, 255, 0.35);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(22, 143, 232, 0.08);
}


/* ปิดเอฟเฟกต์สำหรับผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {

  .motion-reveal,
  body[data-page="home"] .hero-content>*,
  body[data-page="home"] .hero-bg,
  body[data-page="home"] .hero-video {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ==================================
   FLOATING CONTACT POPUP
================================== */

.floating-contact {
  position: fixed;
  top: 75%;
  right: 0;
  z-index: 9998;

  width: 48px;
  height: 150px;

  transform: translateY(-50%);
}

/* ปุ่ม Contact ด้านข้าง */
.contact-toggle {
  position: relative;
  z-index: 3;

  width: 48px;
  min-height: 150px;
  padding: 12px 7px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 0;
  border-radius: 15px 0 0 15px;

  background: linear-gradient(180deg, #168fe8, #07366f);
  color: #ffffff;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.contact-toggle span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.contact-toggle b {
  font-size: 21px;
}

/* ตัวกล่อง */
.contact-popup {
  position: absolute;
  top: 60%;
  right: 48px;

  width: 430px;
  min-height: 300px;
  padding: 10px 130px 10px 10px;

  background: transparent;
  /* ไม่มีพื้นหลัง */
  border: none;
  /* ไม่มีเส้นกรอบ */
  border-radius: 0;
  box-shadow: none;
  /* ไม่มีเงากล่อง */

  overflow: visible;
  /* สำคัญ: ให้รูปโผล่ออกมาได้ */

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(110%, -50%);
  transition:
    transform 0.35s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* เปิดกล่อง */
.floating-contact.is-open .contact-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translate(0, -50%);
}

/* รายการติดต่อ */
.contact-popup .contact-list {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-popup .contact-item {
  display: grid;
  grid-template-columns: 178px 70px;
  align-items: center;
  gap: 10px;

  color: #151515;
  text-decoration: none;

  transition: transform 0.25s ease;
}

.contact-popup .contact-item:hover {
  transform: translateX(-7px);
}

/* ช่องข้อความ */
.contact-label {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 50px;
  padding: 10px 20px;

  border-radius: 17px;
  background: #f1f1f1;

  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}

/* สามเหลี่ยมด้านขวา */
.contact-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;

  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 14px solid #f1f1f1;

  transform: translateY(-50%);
}

/* วงกลมไอคอน */
.contact-circle {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #ffffff;
  font-weight: 800;
  font-size: 28px;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.contact-line {
  background: #17c900;
  font-size: 14px;
}

.contact-phone {
  background: #f00018;
}

.contact-email {
  background: #0874ef;
}

/* รูปหุ่นยนต์ */
.contact-robot {
  position: absolute;
  right: -45px;
  bottom: -10px;

  width: 190px;
  max-width: none;

  object-fit: contain;
  pointer-events: none;

  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.18));
}

/* ปุ่มปิด */
.contact-close:hover {
  background: #ed1c2f;
}

/* โทรศัพท์มือถือ */
@media (max-width: 650px) {
  .floating-contact {
    width: 43px;
    height: 125px;
  }

  .contact-popup {
    right: 43px;
    width: min(340px, calc(100vw - 55px));
  }

  .contact-popup .contact-item {
    grid-template-columns: minmax(115px, 1fr) 55px;
    gap: 7px;
  }

  .contact-label {
    min-height: 43px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .contact-circle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .contact-line {
    font-size: 11px;
  }

  .contact-robot {
    right: -50px;
    width: 175px;
  }
}

/* ซ่อนปุ่ม CONTACT เมื่อ Popup เปิด */
.floating-contact.is-open .contact-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
}

/* ทำให้ปุ่มซ่อน–แสดงแบบนุ่มนวล */
.contact-toggle {
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

/* ปุ่มปิด Popup ใต้รายการส่งอีเมล */
.contact-close-item {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

/* วงกลมปุ่มปิด ขนาดเท่ากับไอคอนอื่น */
.contact-close-circle {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 70px;
  border-radius: 50%;

  background: #153d71;
  color: #ffffff;

  font-size: 36px;
  font-weight: 400;
  line-height: 1;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.contact-close-item:hover .contact-close-circle {
  background: #ed1c2f;
  transform: scale(1.06);
}

/* ป้องกันรูปแบบเริ่มต้นของ button */
.contact-close-item .contact-label {
  color: #151515;
}

/* ปุ่มปิด Popup */
.contact-close-item {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

/* วงกลมปุ่มปิด */
.contact-popup .contact-item .contact-close-circle {
  width: 70px;
  height: 70px;
  min-width: 70px;
  max-width: 70px;
  flex: 0 0 70px;

  padding: 0;
  margin: 0;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;
  box-sizing: border-box;

  background: #153d71;
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

/* ปรับขนาดบนโทรศัพท์ให้เท่ากับไอคอนอื่น */
@media (max-width: 650px) {
  .contact-popup .contact-item .contact-close-circle {
    width: 55px;
    height: 55px;
    min-width: 55px;
    max-width: 55px;
    flex: 0 0 55px;

    font-size: 25px;
    line-height: 1;
  }
}

/* ========================================
   PRODUCT CATEGORY CARDS
======================================== */

.services-grid {
  gap: 12px;
}

/* กล่องสีขาวแต่ละช่อง */
.product-category-card {
  position: relative;
  min-width: 0;
  min-height: 265px;
  padding: 22px 18px 17px;

  background: linear-gradient(145deg,
      #ffffff 0%,
      #ffffff 70%,
      #f4f8fc 100%);

  color: #102d60;
  border: 1px solid #d6e3f0;
  border-radius: 10px;

  box-shadow:
    0 10px 25px rgba(0, 20, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* เอฟเฟกต์ตอนเอาเมาส์ชี้ */
.product-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 125, 210, 0.55);

  box-shadow:
    0 18px 35px rgba(0, 20, 55, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* กล่องข้อความด้านซ้าย */
.product-category-content {
  position: relative;
  z-index: 2;

  width: 47%;
  min-height: 225px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* หัวข้อ */
.product-category-content h3 {
  margin: 0;
  color: #17386f;

  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* เส้นสีแดงใต้หัวข้อ */
.product-category-line {
  display: block;
  width: 23px;
  height: 3px;

  margin: 12px 0 13px;

  background: #ed1c2f;
  border-radius: 10px;
}

/* รายละเอียด */
.product-category-content p {
  margin: 0;
  color: #36475d;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

/* ปุ่ม Learn More */
.product-category-content a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: auto;

  color: #ed1c2f;
  font-size: 12px;
  font-weight: 800;

  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.product-category-content a:hover {
  gap: 12px;
  color: #c90d21;
}

/* พื้นที่รูปด้านขวา */
.product-category-image {
  position: absolute;
  z-index: 1;

  right: 4px;
  bottom: 8px;

  width: 64%;
  height: 82%;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  pointer-events: none;
}

/* รูปสินค้า */
.product-category-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: right bottom;

  filter: drop-shadow(0 8px 8px rgba(0, 20, 50, 0.15));

  transition: transform 0.3s ease;
}

.product-category-card:hover .product-category-image img {
  transform: scale(1.035);
}


/* แท็บเล็ต: แถวละ 2 ช่อง */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-category-card {
    min-height: 255px;
  }

  .product-category-content {
    width: 45%;
    min-height: 215px;
  }
}


/* โทรศัพท์: แถวละ 1 ช่อง */
@media (max-width: 620px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .product-category-card {
    min-height: 235px;
    padding: 20px 16px 16px;
  }

  .product-category-content {
    width: 46%;
    min-height: 195px;
  }

  .product-category-content h3 {
    font-size: 16px;
  }

  .product-category-image {
    width: 62%;
    height: 80%;
  }
}

/* ช่อง INDUSTRIAL SPARE PART */
.product-category-card:nth-child(4) .product-category-content {
  width: 62%;
}

.product-category-card:nth-child(4) .product-category-content h3 {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

.product-category-card:nth-child(4) .product-category-image {
  width: 55%;
}

/* ช่อง ROBOT PART */
.product-category-card:nth-child(3) .product-category-content {
  width: 62%;
}

.product-category-card:nth-child(3) .product-category-content h3 {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

.product-category-card:nth-child(3) .product-category-image {
  width: 55%;
}

/* ช่อง ELECTRIC PART */
.product-category-card:nth-child(2) .product-category-content {
  width: 62%;
}

.product-category-card:nth-child(2) .product-category-content h3 {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

.product-category-card:nth-child(2) .product-category-image {
  width: 55%;
}

/* ช่อง MECHANIC PART */
.product-category-card:nth-child(1) .product-category-content {
  width: 62%;
}

.product-category-card:nth-child(1) .product-category-content h3 {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0;
}

.product-category-card:nth-child(1) .product-category-image {
  width: 55%;
}

/* =========================
   PROJECT & AFTER SERVICE
========================= */
.project-service-section {
  padding: 22px 0 10px;
}

.project-service-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.project-service-title {
  margin-bottom: 0;
}

.project-service-intro {
  margin: 0;
  color: #cfe0f4;
  font-size: 14px;
  line-height: 1.7;
  max-width: 640px;
  justify-self: end;
}

.project-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(95, 180, 255, 0.25);
  background:
    linear-gradient(145deg, rgba(7, 42, 92, 0.98), rgba(4, 26, 62, 0.96));
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 330px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(95, 180, 255, 0.45);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(95, 180, 255, 0.08) inset;
}

.project-service-image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.project-service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 26, 62, 0.08) 0%, rgba(4, 26, 62, 0.42) 100%);
}

.project-service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-service-card:hover .project-service-image img {
  transform: scale(1.05);
}

.project-service-content {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-service-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 143, 232, 0.14);
  border: 1px solid rgba(95, 180, 255, 0.24);
  color: #9fd5ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.project-service-content h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
}

.project-service-content p {
  margin: 0;
  color: #d4e6f8;
  font-size: 14px;
  line-height: 1.75;
}

.project-service-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
}

.project-service-points li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6f2ff;
  font-size: 13px;
}

.project-service-points li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #168fe8, #0a55a8);
  color: #fff;
  font-weight: 800;
  flex: none;
}

.service-card-showcase .btn {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.service-card-showcase .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1180px) {
  .project-service-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-service-intro {
    justify-self: start;
    max-width: 100%;
  }

  .project-service-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-service-image {
    height: 230px;
  }
}

@media (max-width: 980px) {
  .project-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-service-section {
    padding-top: 10px;
  }

  .project-service-content {
    padding: 22px 18px;
  }

  .project-service-content h3 {
    font-size: 22px;
  }

  .project-service-content p {
    font-size: 13px;
  }

  .project-service-image {
    height: 200px;
  }
}

/* =================================
   PROMOTION POPUP
================================= */

.promo-popup {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}


/* ตอนแสดง Popup */
.promo-popup.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* พื้นหลังมืด */
.promo-popup-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 12, 35, 0.78);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}


/* กล่อง Popup */
.promo-popup-box {
  position: relative;
  z-index: 2;

  width: min(620px, 100%);

  background:
    linear-gradient(145deg,
      #ffffff,
      #f3f8ff);

  border: 1px solid rgba(90, 180, 255, 0.5);

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(22, 143, 232, 0.15);

  transform: translateY(25px) scale(0.96);

  transition:
    transform 0.35s cubic-bezier(.2, .8, .2, 1);
}


/* Animation ตอนเปิด */
.promo-popup.is-show .promo-popup-box {
  transform: translateY(0) scale(1);
}


/* รูป */
.promo-popup-image {
  display: block;
  width: 100%;

  overflow: hidden;
}


.promo-popup-image img {
  width: 100%;
  max-height: 70vh;

  object-fit: contain;

  display: block;

  background: #ffffff;
}


/* ปุ่ม X */
.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;

  z-index: 10;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;
  margin: 0;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;

  background: rgba(2, 15, 42, 0.78);

  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}


.promo-popup-close:hover {
  transform: translateY(-1px);

  background: #ed1c2f;
}


/* ด้านล่าง */
.promo-popup-footer {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 16px 18px;

  background:
    linear-gradient(135deg,
      #052454,
      #07366f);
}


/* Checkbox */
.promo-popup-check {
  display: flex;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  color: #ffffff;

  font-size: 14px;

  user-select: none;
}


.promo-popup-check input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}


/* Checkbox custom */
.promo-checkmark {
  position: relative;

  width: 21px;
  height: 21px;

  flex: 0 0 21px;

  border: 2px solid rgba(255, 255, 255, 0.7);

  border-radius: 5px;

  background: rgba(255, 255, 255, 0.08);

  transition: 0.2s;
}


/* ตอนติ๊ก */
.promo-popup-check input:checked+.promo-checkmark {
  background: #ed1c2f;

  border-color: #ed1c2f;
}


/* เครื่องหมายถูก */
.promo-popup-check input:checked+.promo-checkmark::after {
  content: "";

  position: absolute;

  left: 6px;
  top: 2px;

  width: 5px;
  height: 10px;

  border: solid #ffffff;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}


/* ปุ่มปิด */
.promo-popup-button {
  flex: none;

  border: 0;

  border-radius: 8px;

  padding: 9px 18px;

  background:
    linear-gradient(135deg,
      #fb2239,
      #c90d21);

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.promo-popup-button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 7px 18px rgba(237, 28, 47, 0.3);
}


/* MOBILE */
@media (max-width: 600px) {

  .promo-popup {
    padding: 14px;
  }

  .promo-popup-box {
    border-radius: 15px;
  }

  .promo-popup-footer {
    flex-direction: column;

    align-items: stretch;

    padding: 14px;
  }

  .promo-popup-check {
    justify-content: center;
  }

  .promo-popup-button {
    width: 100%;
  }

  .promo-popup-image img {
    max-height: 65vh;
  }

}

/* =============================
   PROMOTION SLIDER
============================= */

.promo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}


/* แต่ละภาพ */
.promo-slide {
  display: none;
  width: 100%;
}

.promo-slide.active {
  display: block;
  animation: promoFade 0.45s ease;
}


@keyframes promoFade {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* รูป */
.promo-slide a {
  display: block;
}

.promo-slide img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 70vh;

  object-fit: contain;

  background: #ffffff;
}


/* =============================
   ARROW
============================= */

.promo-slider-arrow {
  position: absolute;

  top: 50%;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;

  background: rgba(2, 15, 42, 0.65);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  color: #ffffff;

  font-size: 31px;
  line-height: 1;

  z-index: 5;

  cursor: pointer;

  transition:
    background .2s ease,
    transform .2s ease;
}


.promo-slider-arrow:hover {
  background: #ed1c2f;
}


.promo-prev {
  left: 14px;
}


.promo-next {
  right: 14px;
}


/* =============================
   DOT
============================= */

.promo-slider-dots {
  position: absolute;

  left: 50%;
  bottom: 14px;

  transform: translateX(-50%);

  display: flex;
  align-items: center;

  gap: 7px;

  z-index: 6;

  padding: 6px 10px;

  border-radius: 20px;

  background: rgba(2, 15, 42, 0.55);

  backdrop-filter: blur(6px);
}


.promo-dot {
  width: 8px;
  height: 8px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, .55);

  cursor: pointer;

  transition:
    width .25s ease,
    background .25s ease;
}


.promo-dot.active {
  width: 23px;

  border-radius: 10px;

  background: #ed1c2f;
}


/* Mobile */
@media (max-width: 600px) {

  .promo-slider-arrow {
    width: 36px;
    height: 36px;

    font-size: 25px;
  }

  .promo-prev {
    left: 8px;
  }

  .promo-next {
    right: 8px;
  }

  .promo-slide img {
    max-height: 65vh;
  }

}

.contact-toggle b {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 21px;

  /* หมุนไอคอนให้ไปทางเดียวกับ CONTACT */
  transform: rotate(-90deg);
}

/* ==================================
   ABOUT - OUR JOURNEY FULL WIDTH
================================== */

body[data-page="about"] .about-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Our Journey เต็มความกว้าง */
body[data-page="about"] .about-bottom>section:first-child {
  width: 100%;
}

/* Timeline กระจายเต็มพื้นที่ */
body[data-page="about"] .timeline {
  width: 100%;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

/* เส้น Timeline เต็มแนวกว้าง */
body[data-page="about"] .timeline::before {
  left: 4%;
  right: 4%;
}

/* ==================================
   ABOUT - BETTER ICON STYLE
================================== */

body[data-page="about"] .feature-panel {
  align-items: flex-start;
  gap: 18px;
}

body[data-page="about"] .feature-panel .icon-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 18px;
  border: 1px solid rgba(92, 183, 255, 0.45);
  background: linear-gradient(145deg, #0e6fd0, #083d87);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(22, 196, 255, 0.18);
  clip-path: none;
}

body[data-page="about"] .feature-panel .icon {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

body[data-page="about"] .feature-panel:hover .icon-box {
  transform: translateY(-2px);
  transition: 0.25s ease;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.26),
    0 0 22px rgba(22, 196, 255, 0.28);
}

/* =========================================
   ABOUT PAGE - MODERN MOTION EFFECT
========================================= */


/* -------------------------
   1. SCROLL REVEAL
------------------------- */

body[data-page="about"] .about-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.22, 1, .36, 1);

  transition-delay: var(--delay, 0ms);
}

body[data-page="about"] .about-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------
   2. COMPANY / VISION / MISSION
------------------------- */

body[data-page="about"] .about-overview .panel {
  position: relative;

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

body[data-page="about"] .about-overview .panel:hover {

  transform: translateY(-7px);

  border-color: rgba(63, 178, 255, .7);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, .25),
    0 0 25px rgba(22, 143, 232, .18);
}


/* เส้นแสงวิ่งด้านบน */
body[data-page="about"] .about-overview .panel::before {

  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 70%;
  height: 2px;

  background: linear-gradient(90deg,
      transparent,
      #16c4ff,
      transparent);

  transition: left .8s ease;
}

body[data-page="about"] .about-overview .panel:hover::before {
  left: 130%;
}


/* -------------------------
   3. VISION / MISSION ICON
------------------------- */

body[data-page="about"] .feature-panel .icon-box {

  transition:
    transform .35s ease,
    box-shadow .35s ease;

}

body[data-page="about"] .feature-panel:hover .icon-box {

  transform:
    translateY(-4px) scale(1.08);

  box-shadow:
    0 0 25px rgba(22, 196, 255, .55);

}


/* Icon ลอยเบา ๆ */

body[data-page="about"] .feature-panel .icon {

  animation: about-icon-float 2.5s ease-in-out infinite alternate;

}

@keyframes about-icon-float {

  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-5px);
  }

}


/* -------------------------
   4. STATS
------------------------- */

body[data-page="about"] .stats-strip .stat {

  transition:
    background .3s ease,
    transform .3s ease,
    box-shadow .3s ease;

}

body[data-page="about"] .stats-strip .stat:hover {

  transform: translateY(-5px);

  background:
    rgba(22, 143, 232, .10);

  box-shadow:
    inset 0 -3px 0 #168fe8;

}


/* ตัวเลข */

body[data-page="about"] .stats-strip .stat b {

  transition:
    transform .3s ease,
    color .3s ease,
    text-shadow .3s ease;

}

body[data-page="about"] .stats-strip .stat:hover b {

  transform: scale(1.12);

  color: #59c5ff;

  text-shadow:
    0 0 18px rgba(22, 196, 255, .45);

}


/* -------------------------
   5. TIMELINE
------------------------- */

body[data-page="about"] .timeline-dot {

  animation:
    timeline-pulse 2s ease-in-out infinite;

}

@keyframes timeline-pulse {

  0%,
  100% {

    box-shadow:
      0 0 8px rgba(28, 168, 255, .6);

  }

  50% {

    box-shadow:
      0 0 0 7px rgba(28, 168, 255, .08),
      0 0 22px rgba(28, 168, 255, 1);

  }

}


/* ปี Timeline */

body[data-page="about"] .timeline-item b {

  transition:
    color .25s ease,
    text-shadow .25s ease,
    transform .25s ease;

  display: inline-block;
}

body[data-page="about"] .timeline-item:hover b {

  color: #ffffff;

  transform: translateY(-2px);

  text-shadow:
    0 0 15px rgba(89, 170, 255, .85);

}


/* -------------------------
   6. OUR STRENGTHS
------------------------- */

body[data-page="about"] .strength-card {

  position: relative;

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;

}

body[data-page="about"] .strength-card img {

  transition: transform .55s ease;

}

body[data-page="about"] .strength-card:hover {

  transform: translateY(-8px);

  border-color:
    rgba(89, 170, 255, .7);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, .3),
    0 0 22px rgba(22, 143, 232, .15);

}

body[data-page="about"] .strength-card:hover img {

  transform: scale(1.08);

}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  body[data-page="about"] *,
  body[data-page="about"] *::before,
  body[data-page="about"] *::after {

    animation: none !important;
    transition-duration: .01ms !important;

  }

}

/* ==================================
   COMPANY PROFILE VIDEO
================================== */

body[data-page="about"] .company-video-section {

  position: relative;

  padding: 55px 0 30px;

}


/* -------------------------
   HEADER
------------------------- */

body[data-page="about"] .company-video-header {

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 22px;

}


body[data-page="about"] .company-video-header h2 {

  margin: 6px 0 8px;

  font-size: clamp(28px, 3vw, 42px);

  line-height: 1.1;

  letter-spacing: -0.02em;

}


body[data-page="about"] .company-video-header p {

  margin: 0;

  max-width: 670px;

  color: #bcd2eb;

  font-size: 15px;

  line-height: 1.7;

}


/* -------------------------
   AUTO PLAY BADGE
------------------------- */

.video-status {

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 8px 13px;

  border: 1px solid rgba(56, 178, 255, 0.35);

  border-radius: 30px;

  background:
    rgba(8, 67, 130, 0.35);

  color: #a9dfff;

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.08em;

  white-space: nowrap;

}


.video-status-dot {

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #16c4ff;

  box-shadow:
    0 0 12px #16c4ff;

  animation:
    video-status-pulse 1.8s ease-in-out infinite;

}


@keyframes video-status-pulse {

  0%,
  100% {

    opacity: .45;

    box-shadow:
      0 0 6px #16c4ff;

  }

  50% {

    opacity: 1;

    box-shadow:
      0 0 16px #16c4ff;

  }

}


/* ==================================
   VIDEO FRAME
================================== */

.company-video-frame {

  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: 18px;

  background: #020f2a;

  border:
    1px solid rgba(64, 170, 255, 0.45);

  box-shadow:

    0 25px 60px rgba(0, 0, 0, .30),

    0 0 30px rgba(22, 143, 232, .10),

    inset 0 1px 0 rgba(255, 255, 255, .06);

}


/* วิดีโอ */

.company-profile-video {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

}


/* ==================================
   TECHNOLOGY OVERLAY
================================== */

.company-video-overlay {

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:

    linear-gradient(180deg,
      rgba(2, 15, 42, .08) 45%,
      rgba(2, 15, 42, .55) 100%),

    linear-gradient(90deg,
      rgba(4, 49, 100, .16),
      transparent 30%);

}


/* เส้น Tech ด้านบน */

.company-video-frame::before {

  content: "";

  position: absolute;

  top: 0;

  left: -40%;

  width: 40%;
  height: 2px;

  z-index: 5;

  background:

    linear-gradient(90deg,
      transparent,
      #16c4ff,
      #ffffff,
      transparent);

  box-shadow:
    0 0 12px #16c4ff;

  animation:
    company-video-scan 5s linear infinite;

}


@keyframes company-video-scan {

  from {

    left: -40%;

  }

  to {

    left: 120%;

  }

}


/* ==================================
   LEFT BOTTOM LABEL
================================== */

.video-corner-label {

  position: absolute;

  z-index: 4;

  left: 24px;
  bottom: 22px;

  display: flex;
  align-items: center;

  gap: 9px;

  color: #ffffff;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: .04em;

}


.video-corner-label strong {

  color: #63c7ff;

}


.video-live-dot {

  width: 8px;
  height: 8px;

  background: #16c4ff;

  border-radius: 50%;

  box-shadow:
    0 0 13px #16c4ff;

}


/* ==================================
   SOUND BUTTON
================================== */

.video-sound-btn {

  position: absolute;

  z-index: 6;

  right: 20px;
  bottom: 18px;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border:
    1px solid rgba(255, 255, 255, .45);

  background:
    rgba(3, 27, 67, .68);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #ffffff;

  font-size: 18px;

  cursor: pointer;

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;

}


.video-sound-btn:hover {

  transform: scale(1.1);

  background:
    rgba(10, 100, 190, .85);

  box-shadow:
    0 0 20px rgba(22, 196, 255, .30);

}


/* ==================================
   MOBILE
================================== */

@media (max-width: 650px) {

  body[data-page="about"] .company-video-section {

    padding:
      35px 0 15px;

  }


  body[data-page="about"] .company-video-header {

    display: block;

  }


  .video-status {

    display: inline-flex;

    margin-top: 15px;

  }


  .company-video-frame {

    border-radius: 12px;

    aspect-ratio: 16 / 9;

  }


  .video-corner-label {

    left: 12px;
    bottom: 12px;

    font-size: 9px;

  }


  .video-sound-btn {

    right: 10px;
    bottom: 10px;

    width: 38px;
    height: 38px;

    font-size: 15px;

  }

}

/* TikTok บนมือถือ: 1 โพสต์ต่อ 1 แถว */
@media (max-width: 768px) {
  .tiktok-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }

  .tiktok-video-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .tiktok-video-caption h4 {
    font-size: 18px;
  }

  .tiktok-video-caption p {
    font-size: 14px;
  }
}

.social-icon i {
  font-size: 22px;
  line-height: 1;
}

/* Facebook */
.facebook-icon {
  background: linear-gradient(135deg, #1877f2, #0d4da8);
}

/* YouTube */
.youtube-icon {
  background: linear-gradient(135deg, #ff0033, #c50024);
}

/* TikTok */
.tiktok-icon {
  background: linear-gradient(135deg,
      #00f2ea 0%,
      #101010 48%,
      #ff0050 100%);
}

.tiktok-icon i {
  font-size: 23px;
  text-shadow:
    -2px 0 #00f2ea,
    2px 0 #ff0050;
}

/* แก้ Hero หน้า Home สำหรับมือถือ */
@media (max-width: 650px) {
  .hero {
    min-height: auto;
  }

  .hero .container.hero-content {
    padding: 35px 20px;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 12px;
  }

  .hero h2 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 12px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.65;
    max-width: 100%;
  }

  /* ซ่อน br บนมือถือ เพื่อลดการตัดบรรทัดแปลก ๆ */
  .hero p br {
    display: none;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero::before {
    background: linear-gradient(180deg,
        rgba(2, 18, 49, 0.92) 0%,
        rgba(3, 30, 70, 0.82) 60%,
        rgba(3, 30, 70, 0.72) 100%);
  }
}

@media (max-width: 650px) {

  .hero {
    min-height: 530px;

    display: flex;
    align-items: center;
  }

  .hero .container.hero-content {
    width: 100%;
    padding: 25px 20px;
    margin: 0;
  }

  .hero h1 {
    margin-top: 0;
  }

}

/* Facebook Post - มือถือแสดงภาพเต็ม ไม่ตัด */
@media (max-width: 650px) {

  .facebook-post-image {
    background: #ffffff;
    overflow: hidden;
  }

  .facebook-post-image img {
    width: 100%;
    height: auto;

    /* ยกเลิกการบังคับ 1:1 */
    aspect-ratio: auto;

    /* แสดงภาพครบทั้งภาพ */
    object-fit: contain;

    /* กันภาพขยายจาก hover */
    transform: none;
  }

  .facebook-post-card:hover .facebook-post-image img {
    transform: none;
  }
}

/* =========================================================
   NEWS & KNOWLEDGE PAGE - PAC 2026
   Add-on styles designed to match the existing PAC website.
========================================================= */

body[data-page="news"] {
  background:
    radial-gradient(circle at 83% 10%, rgba(22, 143, 232, .16), transparent 26%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #061b3b);
}

.news-page {
  overflow: hidden;
}

.news-page-hero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(103, 191, 255, .2);
  background: #031b43;
}

.news-page-hero-media,
.news-page-hero-overlay {
  position: absolute;
  inset: 0;
}

.news-page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  filter: saturate(.9) contrast(1.04);
  animation: news-hero-zoom 16s ease-in-out infinite alternate;
}

.news-page-hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 15, 42, .98) 0%, rgba(3, 27, 67, .92) 39%, rgba(4, 36, 79, .55) 65%, rgba(4, 29, 67, .32) 100%),
    linear-gradient(0deg, rgba(2, 15, 42, .65), transparent 50%);
}

.news-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 196, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 196, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.news-page-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 72px;
}

.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.news-eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(237, 28, 47, .58);
}

.news-page-hero h1 {
  margin: 13px 0 14px;
  font-size: clamp(45px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
}

.news-page-hero p {
  max-width: 720px;
  margin: 0;
  color: #d6e7fa;
  font-size: 17px;
  line-height: 1.75;
}

.news-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 28px;
  color: #aac7e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.news-hero-breadcrumb a {
  transition: color .2s ease;
}

.news-hero-breadcrumb a:hover,
.news-hero-breadcrumb strong {
  color: #fff;
}

@keyframes news-hero-zoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.09);
  }
}

.news-featured-section {
  padding-top: 54px;
}

.news-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.news-section-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.15;
}

.news-view-all,
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.news-view-all {
  color: #bcd6ef;
}

.news-view-all span,
.news-read-more span {
  transition: transform .25s ease;
}

.news-view-all:hover,
.news-read-more:hover {
  color: var(--cyan);
}

.news-view-all:hover span,
.news-read-more:hover span {
  transform: translateX(5px);
}

.news-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(310px, .83fr);
  gap: 18px;
}

.news-featured-main,
.news-featured-small,
.news-card,
.news-sidebar-card {
  border: 1px solid rgba(103, 191, 255, .24);
  background: linear-gradient(145deg, rgba(7, 54, 112, .86), rgba(3, 27, 67, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.news-featured-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
  min-height: 430px;
  border-radius: 15px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.news-featured-main:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 196, 255, .48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .24), 0 0 25px rgba(22, 143, 232, .1);
}

.news-featured-image,
.news-featured-small-image,
.news-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #052454;
}

.news-featured-image img,
.news-featured-small-image img,
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .5s ease;
}

.news-featured-main:hover .news-featured-image img,
.news-featured-small:hover .news-featured-small-image img,
.news-card:hover .news-card-image img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.news-image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .10) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}

.news-featured-main:hover .news-image-shine {
  transform: translateX(120%);
}

.news-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.news-featured-copy h2 {
  margin: 14px 0 15px;
  font-size: clamp(24px, 2.1vw, 35px);
  line-height: 1.34;
}

.news-featured-copy p {
  margin: 0 0 24px;
  color: #bfd4ec;
  font-size: 14px;
  line-height: 1.75;
}

.news-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #9fbeda;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.news-meta-row i {
  margin-right: 3px;
}

.news-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(22, 143, 232, .18);
  border: 1px solid rgba(22, 143, 232, .35);
  color: #78c9ff;
}

.news-category--event {
  color: #ff7c8a;
  border-color: rgba(237, 28, 47, .38);
  background: rgba(237, 28, 47, .13);
}

.news-category--knowledge {
  color: #7ee7ff;
  border-color: rgba(22, 196, 255, .34);
  background: rgba(22, 196, 255, .10);
}

.news-featured-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-featured-small {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0;
  min-height: 206px;
  border-radius: 13px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.news-featured-small>div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.news-featured-small h3 {
  margin: 12px 0 18px;
  font-size: 17px;
  line-height: 1.42;
}

.news-featured-small:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 196, 255, .45);
  box-shadow: 0 17px 35px rgba(0, 0, 0, .2);
}

.news-list-section {
  padding-top: 54px;
  padding-bottom: 58px;
}

.news-section-heading--filter {
  margin-bottom: 16px;
}

.news-filter-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px;
  margin-bottom: 22px;
  border: 1px solid rgba(103, 191, 255, .22);
  border-radius: 11px;
  background: rgba(4, 34, 76, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.news-filter-btn {
  min-height: 39px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #bbd2ea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  transition: .22s ease;
}

.news-filter-btn:hover {
  color: #fff;
  background: rgba(22, 143, 232, .12);
}

.news-filter-btn.active {
  color: #fff;
  border-color: rgba(42, 161, 255, .58);
  background: linear-gradient(135deg, #0a55a8, #0b78c8);
  box-shadow: 0 7px 20px rgba(10, 85, 168, .25);
}

.news-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 22px;
  align-items: start;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  overflow: hidden;
  border-radius: 12px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 196, 255, .52);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .23), 0 0 22px rgba(22, 143, 232, .08);
}

.news-card-image {
  height: 185px;
}

.news-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(2, 15, 42, .55), transparent);
  pointer-events: none;
}

.news-card-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  background: rgba(3, 27, 67, .78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  min-height: 235px;
  padding: 17px;
}

.news-card-body h3 {
  margin: 10px 0 9px;
  font-size: 16px;
  line-height: 1.45;
}

.news-card-body h3 a {
  transition: color .2s ease;
}

.news-card-body h3 a:hover {
  color: #77ccff;
}

.news-card-body p {
  margin: 0 0 18px;
  color: #b8cee5;
  font-size: 12px;
  line-height: 1.7;
}

.news-card-body .news-read-more {
  margin-top: auto;
  color: #9fd6fb;
}

.news-page-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.news-sidebar-card {
  overflow: hidden;
  padding: 19px;
  border-radius: 12px;
}

.news-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(103, 191, 255, .18);
}

.news-sidebar-title>span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}

.news-sidebar-title h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
}

.news-popular-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(103, 191, 255, .14);
  transition: padding-left .22s ease, background .22s ease;
}

.news-popular-item:last-child {
  border-bottom: 0;
  padding-bottom: 3px;
}

.news-popular-item:hover {
  padding-left: 5px;
}

.news-popular-number {
  color: rgba(127, 192, 238, .40);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.news-popular-item small {
  display: block;
  margin-bottom: 4px;
  color: #4ebcff;
  font-size: 9px;
  font-weight: 800;
}

.news-popular-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.news-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
}

.news-tag-cloud button {
  padding: 7px 10px;
  border: 1px solid rgba(103, 191, 255, .25);
  border-radius: 7px;
  background: rgba(22, 143, 232, .07);
  color: #c3d9ef;
  font-size: 10px;
  font-weight: 700;
  transition: .2s ease;
}

.news-tag-cloud button:hover,
.news-tag-cloud button.active {
  border-color: #1d9cf4;
  background: rgba(22, 143, 232, .2);
  color: #fff;
}

.news-newsletter-card {
  position: relative;
  overflow: hidden;
  padding: 25px 21px 22px;
  border: 1px solid rgba(22, 196, 255, .28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 196, 255, .16), transparent 45%),
    linear-gradient(145deg, rgba(7, 54, 112, .96), rgba(3, 27, 67, .96));
}

.news-newsletter-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -50px;
  bottom: -65px;
  border: 1px solid rgba(22, 196, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(22, 196, 255, .025), 0 0 0 50px rgba(22, 196, 255, .02);
}

.news-newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  margin-bottom: 16px;
  border: 1px solid rgba(22, 196, 255, .34);
  border-radius: 11px;
  background: rgba(22, 143, 232, .17);
  color: #79d7ff;
  font-size: 17px;
}

.news-newsletter-kicker {
  display: block;
  color: #68cfff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.news-newsletter-card h3 {
  margin: 7px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.news-newsletter-card p {
  margin: 0 0 16px;
  color: #b8cee6;
  font-size: 11px;
  line-height: 1.65;
}

.news-newsletter-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.news-newsletter-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(103, 191, 255, .25);
  border-radius: 7px;
  outline: 0;
  background: rgba(2, 15, 42, .54);
  color: #fff;
  font-size: 12px;
}

.news-newsletter-form input:focus {
  border-color: #2ba8f6;
  box-shadow: 0 0 0 3px rgba(22, 143, 232, .10);
}

.news-newsletter-form button {
  min-height: 41px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, #0d7dcc, #0a55a8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(10, 85, 168, .28);
}

.news-empty {
  display: none;
  padding: 60px 20px;
  border: 1px dashed rgba(103, 191, 255, .28);
  border-radius: 12px;
  text-align: center;
  color: #b8cee5;
}

.news-empty i {
  font-size: 30px;
  color: #51baff;
}

.news-empty h3 {
  margin: 12px 0 4px;
  color: #fff;
}

.news-empty p {
  margin: 0;
  font-size: 12px;
}

.news-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.news-knowledge-cta-section {
  padding-top: 6px;
  padding-bottom: 58px;
}

.news-knowledge-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 36px;
  border: 1px solid rgba(103, 191, 255, .28);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(7, 54, 112, .96), rgba(3, 27, 67, .93)),
    radial-gradient(circle at 90% 50%, rgba(22, 196, 255, .18), transparent 38%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}

.news-knowledge-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--red);
  box-shadow: 0 0 23px rgba(237, 28, 47, .4);
}

.news-knowledge-cta h2 {
  margin: 4px 0 7px;
  font-size: clamp(21px, 2.2vw, 30px);
}

.news-knowledge-cta p {
  margin: 0;
  color: #bed3e9;
  font-size: 13px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Motion for News page */
body[data-page="news"] .news-featured-main,
body[data-page="news"] .news-featured-small,
body[data-page="news"] .news-card,
body[data-page="news"] .news-sidebar-card,
body[data-page="news"] .news-newsletter-card,
body[data-page="news"] .news-knowledge-cta {
  animation: news-card-in .65s both;
}

body[data-page="news"] .news-featured-small:nth-child(2),
body[data-page="news"] .news-card:nth-child(2),
body[data-page="news"] .news-sidebar-card:nth-child(2) {
  animation-delay: .07s;
}

body[data-page="news"] .news-card:nth-child(3),
body[data-page="news"] .news-newsletter-card {
  animation-delay: .12s;
}

body[data-page="news"] .news-card:nth-child(4) {
  animation-delay: .16s;
}

body[data-page="news"] .news-card:nth-child(5) {
  animation-delay: .20s;
}

body[data-page="news"] .news-card:nth-child(6) {
  animation-delay: .24s;
}

@keyframes news-card-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1250px) {
  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-content-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .news-featured-main {
    grid-template-columns: 1fr;
  }

  .news-featured-image {
    min-height: 280px;
  }
}

@media (max-width: 980px) {
  .news-page-hero {
    min-height: 350px;
  }

  .news-featured-grid,
  .news-content-layout {
    grid-template-columns: 1fr;
  }

  .news-featured-main {
    grid-template-columns: 1.1fr .9fr;
  }

  .news-featured-image {
    min-height: 0;
  }

  .news-featured-side {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .news-featured-small {
    grid-template-columns: 38% 1fr;
  }

  .news-page-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .news-newsletter-card {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  .news-page-hero-content {
    padding-block: 58px;
  }

  .news-page-hero p {
    font-size: 15px;
  }

  .news-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .news-featured-main {
    grid-template-columns: 1fr;
  }

  .news-featured-image {
    min-height: 270px;
  }

  .news-featured-copy {
    padding: 25px;
  }

  .news-featured-side,
  .news-card-grid,
  .news-page-sidebar {
    grid-template-columns: 1fr;
  }

  .news-featured-small {
    min-height: 190px;
  }

  .news-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .news-filter-btn {
    flex: none;
    white-space: nowrap;
  }

  .news-card-image {
    height: 220px;
  }

  .news-card-body {
    min-height: 0;
  }

  .news-knowledge-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 24px;
  }
}

@media (max-width: 520px) {
  .news-page-hero {
    min-height: 320px;
  }

  .news-page-hero h1 {
    font-size: 42px;
  }

  .news-featured-small {
    grid-template-columns: 1fr;
  }

  .news-featured-small-image {
    min-height: 180px;
  }

  .news-featured-small>div:last-child {
    padding: 19px;
  }

  .news-card-image {
    height: 190px;
  }

  .news-filter-bar {
    margin-inline: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .news-page-hero-media img,
  body[data-page="news"] .news-featured-main,
  body[data-page="news"] .news-featured-small,
  body[data-page="news"] .news-card,
  body[data-page="news"] .news-sidebar-card,
  body[data-page="news"] .news-newsletter-card,
  body[data-page="news"] .news-knowledge-cta {
    animation: none !important;
  }
}

/* =========================================================
   NEWS DETAIL / ARTICLE PAGE
   ========================================================= */
body.news-detail-page {
  background:
    radial-gradient(circle at 82% 7%, rgba(22, 143, 232, .13), transparent 22%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #061b3b);
}

.article-reading-progress {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 70;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
}

.article-reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff596a, var(--cyan));
  box-shadow: 0 0 16px rgba(22, 196, 255, .45);
  transition: width .08s linear;
}

.article-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  border-bottom: 1px solid rgba(103, 191, 255, .16);
  background:
    linear-gradient(125deg, rgba(2, 15, 42, .98), rgba(5, 45, 99, .92));
}

.article-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59, 151, 231, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 151, 231, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 95%);
}

.article-detail-hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .14;
  pointer-events: none;
}

.article-detail-hero-glow--1 {
  top: -170px;
  right: 5%;
  background: var(--cyan);
}

.article-detail-hero-glow--2 {
  bottom: -260px;
  left: 12%;
  background: var(--red);
  opacity: .08;
}

.article-detail-hero-inner {
  position: relative;
  z-index: 2;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 38px;
  color: #7698be;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.article-breadcrumb a {
  transition: color .2s ease;
}

.article-breadcrumb a:hover,
.article-breadcrumb strong {
  color: #fff;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  gap: clamp(44px, 5vw, 82px);
  align-items: center;
}

.article-top-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 22px;
  color: #8faed0;
  font-size: 11px;
  font-weight: 700;
}

.article-top-meta>span:not(.news-category) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(38px, 4.15vw, 66px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.article-hero-lead {
  max-width: 760px;
  margin: 25px 0 0;
  color: #b8cde4;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.8;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(103, 191, 255, .17);
}

.article-author-avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(51, 173, 255, .55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(145deg, #0d67b9, #05265a);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: 0 0 24px rgba(22, 143, 232, .16);
}

.article-author-row strong,
.article-author-row span {
  display: block;
}

.article-author-row strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.article-author-row span {
  color: #7f9fc2;
  font-size: 11px;
}

.article-hero-image-frame {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(65, 169, 255, .34);
  border-radius: 18px;
  background: #041a3c;
  box-shadow:
    0 28px 75px rgba(0, 0, 0, .33),
    0 0 50px rgba(22, 143, 232, .08),
    inset 0 1px rgba(255, 255, 255, .04);
}

.article-hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(2, 15, 42, .32), transparent 42%),
    linear-gradient(115deg, rgba(22, 196, 255, .08), transparent 35%);
}

.article-hero-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 8s ease;
}

.article-hero-image-frame:hover img {
  transform: scale(1.035);
}

.article-image-chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(118, 202, 255, .23);
  border-radius: 999px;
  background: rgba(2, 15, 42, .72);
  backdrop-filter: blur(10px);
  color: #dff3ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.article-image-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ce88d;
  box-shadow: 0 0 12px rgba(60, 232, 141, .8);
}

.article-detail-content-section {
  padding: 74px 0 82px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(42px, 5vw, 78px);
  align-items: start;
}

.article-main-content {
  min-width: 0;
  max-width: 930px;
}

.article-main-content>p {
  margin: 0 0 22px;
  color: #bdd0e4;
  font-size: 16px;
  line-height: 1.95;
}

.article-main-content>h2 {
  position: relative;
  margin: 56px 0 20px;
  padding-left: 20px;
  color: #fff;
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1.35;
  letter-spacing: -.02em;
  scroll-margin-top: 135px;
}

.article-main-content>h2::before {
  content: "";
  position: absolute;
  top: .2em;
  bottom: .15em;
  left: 0;
  width: 4px;
  border-radius: 5px;
  background: linear-gradient(to bottom, var(--red), #ff4357);
  box-shadow: 0 0 18px rgba(237, 28, 47, .32);
}

.article-main-content strong {
  color: #fff;
  font-weight: 700;
}

.article-intro-box {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border: 1px solid rgba(78, 173, 255, .22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(7, 54, 112, .62), rgba(4, 31, 71, .64));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.article-intro-box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(22, 196, 255, .5);
}

.article-intro-kicker {
  display: block;
  margin-bottom: 8px;
  color: #56c8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.article-intro-box p {
  margin: 0;
  color: #d6e6f6;
  font-size: 18px;
  line-height: 1.8;
}

.article-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 52px;
}

.article-fact-card {
  min-width: 0;
  padding: 19px 15px;
  border: 1px solid rgba(89, 182, 255, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(7, 54, 112, .78), rgba(4, 31, 71, .73));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.article-fact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 196, 255, .45);
  box-shadow: 0 15px 28px rgba(0, 0, 0, .18);
}

.article-fact-card i {
  margin-bottom: 18px;
  color: #4ec5ff;
  font-size: 20px;
}

.article-fact-card span,
.article-fact-card strong {
  display: block;
}

.article-fact-card span {
  margin-bottom: 5px;
  color: #6f91b5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.article-fact-card strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.article-highlight-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 48px;
}

.article-highlight-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(91, 177, 255, .18);
  border-radius: 12px;
  background: rgba(5, 41, 90, .42);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.article-highlight-item:hover {
  transform: translateX(5px);
  border-color: rgba(22, 196, 255, .34);
  background: rgba(7, 58, 122, .55);
}

.article-highlight-item>span {
  color: rgba(89, 196, 255, .26);
  font-size: 39px;
  font-weight: 800;
  line-height: 1;
}

.article-highlight-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.article-highlight-item p {
  margin: 0;
  color: #91aac5;
  font-size: 13px;
  line-height: 1.7;
}

.article-content-image {
  margin: 48px 0;
}

.article-content-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid rgba(90, 182, 255, .28);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .24);
}

.article-content-image figcaption {
  padding: 10px 3px 0;
  color: #6485a8;
  font-size: 10px;
}

.article-quote {
  position: relative;
  overflow: hidden;
  margin: 44px 0;
  padding: 30px 34px 30px 74px;
  border: 1px solid rgba(237, 28, 47, .24);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(93, 12, 30, .25), rgba(5, 39, 86, .55));
}

.article-quote::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: radial-gradient(circle, rgba(237, 28, 47, .12), transparent 68%);
}

.article-quote-mark {
  position: absolute;
  top: 23px;
  left: 25px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 62px;
  line-height: 1;
}

.article-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #eef7ff;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.85;
}

.article-tech-note {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  margin: 34px 0 50px;
  padding: 24px 25px;
  border: 1px solid rgba(22, 196, 255, .25);
  border-radius: 13px;
  background: rgba(4, 51, 105, .46);
}

.article-tech-note-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #0b70c4, #07366f);
  color: #70d8ff;
  font-size: 20px;
}

.article-tech-note span {
  display: block;
  margin-bottom: 3px;
  color: #51c8ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.article-tech-note h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.article-tech-note p {
  margin: 0;
  color: #9eb6cf;
  font-size: 13px;
  line-height: 1.7;
}

.article-tags-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(103, 191, 255, .16);
  border-bottom: 1px solid rgba(103, 191, 255, .16);
}

.article-tags,
.article-share-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags>span,
.article-share-inline>span {
  margin-right: 4px;
  color: #748fad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-tags a {
  padding: 7px 10px;
  border: 1px solid rgba(83, 169, 255, .19);
  border-radius: 999px;
  background: rgba(9, 64, 133, .3);
  color: #a9c3df;
  font-size: 10px;
  transition: .22s ease;
}

.article-tags a:hover {
  border-color: rgba(22, 196, 255, .45);
  color: #fff;
  background: rgba(9, 91, 181, .42);
}

.article-share-btn {
  border: 1px solid rgba(83, 169, 255, .22);
  background: rgba(7, 55, 115, .55);
  color: #cce4fb;
  transition: .22s ease;
}

.article-share-inline .article-share-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.article-share-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 196, 255, .5);
  background: #0a55a8;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.article-nav-card {
  padding: 20px 22px;
  border: 1px solid rgba(85, 171, 255, .18);
  border-radius: 11px;
  background: rgba(4, 36, 79, .38);
  transition: .24s ease;
}

.article-nav-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 196, 255, .4);
  background: rgba(7, 63, 132, .55);
}

.article-nav-card span,
.article-nav-card strong {
  display: block;
}

.article-nav-card span {
  margin-bottom: 5px;
  color: #5f80a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.article-nav-card strong {
  font-size: 12px;
}

.article-nav-card--next {
  text-align: right;
}

.article-sidebar {
  position: sticky;
  top: 114px;
  display: grid;
  gap: 15px;
}

.article-sidebar-card {
  overflow: hidden;
  border: 1px solid rgba(79, 168, 255, .2);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(7, 54, 112, .77), rgba(4, 31, 71, .76));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}

.article-toc-card {
  padding: 22px 20px 18px;
}

.article-sidebar-title {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(103, 191, 255, .14);
}

.article-sidebar-title span,
.article-share-card>span {
  display: block;
  color: #ef3348;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.article-sidebar-title h3 {
  margin: 3px 0 0;
  font-size: 17px;
}

.article-toc {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.article-toc a {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 7px;
  align-items: center;
  padding: 10px 9px;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  color: #8da9c5;
  font-size: 11px;
  transition: .22s ease;
}

.article-toc a span {
  color: #4e7095;
  font-size: 9px;
  font-weight: 800;
}

.article-toc a:hover,
.article-toc a.active {
  border-left-color: var(--red);
  background: rgba(18, 96, 172, .2);
  color: #fff;
}

.article-toc a.active span {
  color: #56c8ff;
}

.article-contact-card {
  position: relative;
  padding: 25px 23px;
}

.article-contact-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: rgba(22, 196, 255, .08);
  filter: blur(2px);
}

.article-contact-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(22, 196, 255, .34);
  border-radius: 13px;
  background: rgba(8, 91, 176, .58);
  color: #63ceff;
  font-size: 19px;
}

.article-contact-card h3 {
  margin: 4px 0 8px;
  font-size: 20px;
}

.article-contact-card p {
  margin: 0 0 18px;
  color: #91aac4;
  font-size: 11px;
  line-height: 1.7;
}

.article-contact-card .btn {
  width: 100%;
}

.article-share-card {
  padding: 20px;
}

.article-sidebar-share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.article-sidebar-share-buttons .article-share-btn {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 8px;
}

.article-sidebar-share-buttons i {
  font-size: 16px;
}

.article-sidebar-share-buttons b {
  font-size: 8px;
  font-weight: 700;
}

.article-related-section {
  padding: 60px 0 68px;
  border-top: 1px solid rgba(103, 191, 255, .12);
  border-bottom: 1px solid rgba(103, 191, 255, .12);
  background: rgba(2, 17, 43, .35);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-related-grid .news-card-body {
  min-height: 190px;
}

.article-detail-cta-section {
  padding-top: 48px;
}

@media (max-width: 1180px) {
  .article-hero-grid {
    grid-template-columns: 1fr;
  }

  .article-hero-copy {
    max-width: 930px;
  }

  .article-hero-image-frame,
  .article-hero-image-frame img {
    min-height: 0;
  }

  .article-detail-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 36px;
  }

  .article-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .article-reading-progress {
    top: 72px;
  }

  .article-detail-hero {
    padding-top: 46px;
  }

  .article-breadcrumb {
    margin-bottom: 28px;
  }

  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-main-content {
    max-width: none;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-toc-card {
    grid-column: 1 / -1;
  }

  .article-toc {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .article-detail-hero {
    padding: 36px 0 44px;
  }

  .article-hero-grid {
    gap: 34px;
  }

  .article-hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .article-hero-lead {
    line-height: 1.7;
  }

  .article-detail-content-section {
    padding: 50px 0 58px;
  }

  .article-main-content>p {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-main-content>h2 {
    margin-top: 46px;
    font-size: 26px;
  }

  .article-intro-box {
    padding: 23px 22px;
  }

  .article-intro-box p {
    font-size: 16px;
  }

  .article-fact-grid,
  .article-related-grid,
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-highlight-item {
    grid-template-columns: 48px 1fr;
    gap: 13px;
    padding: 20px 18px;
  }

  .article-highlight-item>span {
    font-size: 30px;
  }

  .article-quote {
    padding: 56px 23px 25px;
  }

  .article-quote-mark {
    top: 14px;
    left: 22px;
  }

  .article-quote p {
    font-size: 17px;
  }

  .article-tech-note {
    grid-template-columns: 1fr;
  }

  .article-tags-share {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-nav-card--next {
    text-align: left;
  }

  .article-toc-card {
    grid-column: auto;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-top-meta {
    gap: 9px;
  }

  .article-fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-fact-card {
    padding: 16px 12px;
  }

  .article-fact-card strong {
    font-size: 11px;
  }

  .article-sidebar-share-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {

  .article-hero-image-frame img,
  .article-share-btn,
  .article-fact-card,
  .article-highlight-item,
  .article-nav-card {
    transition: none !important;
  }
}

/* =========================================================
   PROJECT PORTFOLIO PAGE
   Scoped to body[data-page="project"]
========================================================= */

body[data-page="project"] {
  background:
    radial-gradient(circle at 86% 4%, rgba(22, 143, 232, .16), transparent 28%),
    radial-gradient(circle at 8% 40%, rgba(22, 196, 255, .07), transparent 22%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #061b3b);
}

/* HERO */
.project-page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  border-bottom: 1px solid rgba(103, 191, 255, .15);
  background:
    linear-gradient(120deg, rgba(2, 15, 42, .97), rgba(3, 30, 70, .90) 52%, rgba(6, 49, 101, .68));
}

.project-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(44, 143, 229, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 143, 229, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 95%);
}

.project-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.project-hero-orb--one {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -260px;
  background: radial-gradient(circle, rgba(22, 196, 255, .14), transparent 66%);
}

.project-hero-orb--two {
  width: 360px;
  height: 360px;
  left: 28%;
  bottom: -250px;
  background: radial-gradient(circle, rgba(10, 85, 168, .20), transparent 70%);
}

.project-page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr);
  align-items: center;
  gap: 68px;
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #7fa7d1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-breadcrumb a {
  color: #d5e9ff;
}

.project-breadcrumb a:hover {
  color: #fff;
}

.project-page-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ff3348;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
}

.project-page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.project-page-hero h1 span {
  color: #9fd6ff;
  background: linear-gradient(90deg, #ffffff, #76c8ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-page-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c9def3;
  font-size: 16px;
  line-height: 1.9;
}

.project-hero-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 28px;
}

.project-hero-tags span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e8f4ff;
  font-size: 13px;
  font-weight: 600;
}

.project-hero-tags i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  box-shadow: 0 0 16px rgba(22, 143, 232, .25);
  font-size: 9px;
}

.project-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.project-text-link {
  color: #c8def4;
  font-size: 13px;
  font-weight: 700;
  transition: .22s;
}

.project-text-link span {
  color: #60c6ff;
}

.project-text-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.project-hero-visual {
  position: relative;
  min-height: 520px;
}

.project-hero-image {
  position: absolute;
  inset: 28px 18px 20px 34px;
  overflow: hidden;
  border: 1px solid rgba(86, 169, 255, .38);
  border-radius: 26px;
  background: #06265a;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .36),
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 0 45px rgba(22, 143, 232, .08);
}

.project-hero-image::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: inherit;
  pointer-events: none;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 36%, rgba(2, 16, 41, .78) 100%),
    linear-gradient(90deg, rgba(3, 30, 70, .08), rgba(3, 30, 70, .2));
}

.project-image-label {
  position: absolute;
  left: 28px;
  bottom: 26px;
  z-index: 3;
}

.project-image-label small {
  display: block;
  margin-bottom: 4px;
  color: #7fcaff;
  font-weight: 800;
  letter-spacing: .11em;
}

.project-image-label strong {
  display: block;
  font-size: 23px;
  letter-spacing: -.02em;
}

.project-floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid rgba(104, 190, 255, .32);
  border-radius: 14px;
  background: rgba(3, 30, 70, .88);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .28);
}

.project-floating-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #158fe7, #0753a8);
}

.project-floating-card small {
  display: block;
  color: #7ea8d5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-floating-card strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.project-floating-card--top {
  top: 0;
  left: 0;
}

.project-floating-card--bottom {
  right: 0;
  bottom: 0;
}

/* CAPABILITY STRIP */
.project-capability-strip {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  border-top: 1px solid rgba(103, 191, 255, .08);
  border-bottom: 1px solid rgba(103, 191, 255, .15);
  background: linear-gradient(90deg, rgba(3, 28, 67, .94), rgba(7, 59, 121, .72), rgba(3, 28, 67, .94));
}

.project-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-capability-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 20px 26px;
  border-right: 1px solid rgba(103, 191, 255, .13);
}

.project-capability-grid article:first-child {
  border-left: 1px solid rgba(103, 191, 255, .13);
}

.project-capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(76, 180, 255, .35);
  border-radius: 12px;
  color: #74c9ff;
  background: rgba(22, 143, 232, .11);
}

.project-capability-grid b {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.project-capability-grid small {
  color: #8fb1d3;
  font-size: 11px;
}

/* GENERIC SECTION HEADING */
.project-section-head,
.project-portfolio-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 46px;
  align-items: end;
  margin-bottom: 24px;
}

.project-page-section-title {
  margin: 4px 0 0;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.project-section-head>p,
.project-portfolio-top>div:first-child>p {
  margin: 0;
  color: #b9d0e7;
  font-size: 14px;
  line-height: 1.8;
}

/* FEATURED */
.project-featured-section {
  padding-top: 58px;
}

.project-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: 490px;
  overflow: hidden;
  border: 1px solid rgba(95, 180, 255, .25);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(7, 48, 102, .94), rgba(3, 27, 67, .96));
  box-shadow: 0 25px 60px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .035);
}

.project-featured-media {
  position: relative;
  min-height: 490px;
  overflow: hidden;
}

.project-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 19, 48, .08), rgba(3, 30, 70, .32));
}

.project-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

.project-featured-media img,
.project-featured-media video {
  transition: transform 0.65s cubic-bezier(.22, 1, .36, 1);
}

.project-featured-card:hover .project-featured-media img,
.project-featured-card:hover .project-featured-media video {
  transform: scale(1.045);
}

.project-featured-badge {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 18, 49, .72);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-featured-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2d43;
  box-shadow: 0 0 12px rgba(255, 45, 67, .75);
}

.project-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta-row span,
.project-card-tags span {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(95, 180, 255, .23);
  border-radius: 6px;
  color: #79c8ff;
  background: rgba(22, 143, 232, .08);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
}

.project-featured-content h3 {
  margin: 18px 0 13px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.08;
}

.project-featured-content>p {
  margin: 0;
  color: #c7dced;
  font-size: 14px;
  line-height: 1.85;
}

.project-featured-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 28px;
}

.project-featured-specs div {
  padding: 14px;
  border: 1px solid rgba(103, 191, 255, .14);
  border-radius: 10px;
  background: rgba(4, 27, 65, .55);
}

.project-featured-specs small {
  display: block;
  margin-bottom: 5px;
  color: #6e9ac5;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-featured-specs b {
  font-size: 11px;
}

.project-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
}

.project-inline-link span {
  color: #4abaff;
  transition: transform .2s;
}

.project-inline-link:hover span {
  transform: translateX(5px);
}

/* PORTFOLIO */
.project-portfolio-section {
  padding-top: 60px;
}

.project-portfolio-top {
  align-items: start;
}

.project-count-box {
  justify-self: end;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas: "small strong" "span strong";
  align-items: center;
  gap: 0 15px;
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid rgba(95, 180, 255, .2);
  border-radius: 12px;
  background: rgba(7, 54, 112, .42);
}

.project-count-box small {
  grid-area: small;
  color: #73a6d7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-count-box span {
  grid-area: span;
  color: #bcd4ec;
  font-size: 10px;
}

.project-count-box strong {
  grid-area: strong;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid rgba(103, 191, 255, .16);
  border-radius: 13px;
  background: rgba(3, 30, 70, .55);
}

.project-filter button {
  min-height: 37px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9ebddd;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  transition: .22s;
}

.project-filter button:hover {
  color: #fff;
  background: rgba(22, 143, 232, .10);
}

.project-filter button.active {
  color: #fff;
  border-color: rgba(60, 174, 255, .38);
  background: linear-gradient(135deg, #0a55a8, #168fe8);
  box-shadow: 0 8px 20px rgba(4, 74, 145, .25);
}

.project-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-portfolio-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(95, 180, 255, .20);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(7, 50, 105, .90), rgba(3, 29, 69, .94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, opacity .22s ease;
}

.project-portfolio-card.is-hidden {
  display: none;
}

.project-portfolio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(74, 184, 255, .46);
  box-shadow: 0 22px 42px rgba(0, 0, 0, .28), 0 0 24px rgba(22, 143, 232, .08);
}

.project-portfolio-media {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: #052354;
}

.project-portfolio-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 15, 42, .03) 45%, rgba(2, 15, 42, .67) 100%);
}

.project-portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), filter .4s ease;
}

.project-portfolio-card:hover .project-portfolio-media img {
  transform: scale(1.065);
  filter: saturate(1.08) contrast(1.04);
}

.project-card-index {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 15px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.project-card-arrow {
  position: absolute;
  z-index: 3;
  right: 15px;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 18, 49, .58);
  backdrop-filter: blur(9px);
  transition: .24s;
}

.project-portfolio-card:hover .project-card-arrow {
  transform: rotate(45deg);
  border-color: transparent;
  background: #ed1c2f;
}

.project-portfolio-content {
  padding: 20px 20px 17px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-portfolio-content h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.project-portfolio-content>p {
  min-height: 67px;
  margin: 0;
  color: #bdd2e8;
  font-size: 12px;
  line-height: 1.75;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(103, 191, 255, .13);
}

.project-card-footer>span {
  color: #7499bf;
  font-size: 10px;
}

.project-card-footer a {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.project-card-footer a:hover {
  color: #60c8ff;
}

.project-empty {
  display: none;
  place-items: center;
  padding: 70px 20px;
  color: #8fb3d6;
  text-align: center;
}

.project-empty.is-show {
  display: grid;
}

.project-empty i {
  margin-bottom: 10px;
  font-size: 38px;
}

.project-empty p {
  margin: 0;
}

/* PROCESS */
.project-process-section {
  margin-top: 20px;
  padding: 64px 0 72px;
  border-top: 1px solid rgba(103, 191, 255, .13);
  border-bottom: 1px solid rgba(103, 191, 255, .13);
  background:
    linear-gradient(120deg, rgba(3, 27, 67, .82), rgba(6, 54, 111, .48), rgba(3, 27, 67, .84));
}

.project-process-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.project-process-heading>p {
  margin: 12px 0 0;
  color: #b8d0e7;
  font-size: 14px;
  line-height: 1.8;
}

.project-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.project-process-grid article {
  position: relative;
  min-height: 245px;
  padding: 22px 19px;
  overflow: hidden;
  border: 1px solid rgba(95, 180, 255, .16);
  border-radius: 14px;
  background: rgba(3, 32, 74, .74);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.project-process-grid article::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 143, 232, .13), transparent 70%);
}

.project-process-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(80, 187, 255, .40);
  background: rgba(6, 52, 109, .82);
}

.project-process-number {
  position: absolute;
  top: 15px;
  right: 15px;
  color: rgba(124, 190, 240, .32);
  font-size: 24px;
  font-weight: 800;
}

.project-process-grid i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  margin-bottom: 24px;
  border: 1px solid rgba(86, 185, 255, .30);
  border-radius: 12px;
  color: #79ccff;
  background: rgba(22, 143, 232, .10);
  font-size: 18px;
}

.project-process-grid h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.3;
}

.project-process-grid p {
  margin: 0;
  color: #afc8df;
  font-size: 11px;
  line-height: 1.75;
}

/* CTA */
.project-page-cta-section {
  padding: 42px 0 54px;
}

.project-page-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 29px 32px;
  border: 1px solid rgba(95, 180, 255, .26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(22, 143, 232, .15), transparent 25%),
    linear-gradient(110deg, rgba(7, 54, 112, .95), rgba(3, 27, 67, .95));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.project-page-cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #ed1c2f;
  box-shadow: 0 0 22px rgba(237, 28, 47, .45);
}

.project-page-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(96, 193, 255, .33);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0964b7, #093a80);
  font-size: 28px;
}

.project-page-cta-copy>span {
  color: #ff394d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.project-page-cta-copy h2 {
  margin: 5px 0 5px;
  font-size: 25px;
  line-height: 1.2;
}

.project-page-cta-copy p {
  margin: 0;
  color: #bcd3e9;
  font-size: 12px;
  line-height: 1.65;
}

/* REVEAL */
body[data-page="project"] .project-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .72s ease var(--project-delay, 0ms),
    transform .72s cubic-bezier(.22, 1, .36, 1) var(--project-delay, 0ms);
}

body[data-page="project"] .project-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entry */
body[data-page="project"] .project-page-hero-copy>* {
  opacity: 0;
  transform: translateY(22px);
  animation: projectHeroIn .72s cubic-bezier(.22, 1, .36, 1) forwards;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(1) {
  animation-delay: .08s;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(2) {
  animation-delay: .16s;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(3) {
  animation-delay: .24s;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(4) {
  animation-delay: .32s;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(5) {
  animation-delay: .40s;
}

body[data-page="project"] .project-page-hero-copy>*:nth-child(6) {
  animation-delay: .48s;
}

body[data-page="project"] .project-hero-visual {
  opacity: 0;
  transform: translateX(34px) scale(.985);
  animation: projectVisualIn .9s cubic-bezier(.22, 1, .36, 1) .18s forwards;
}

@keyframes projectHeroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectVisualIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .project-page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .88fr);
    gap: 38px;
  }

  .project-hero-visual {
    min-height: 450px;
  }

  .project-featured-card {
    grid-template-columns: 1fr 1fr;
  }

  .project-featured-content {
    padding: 32px;
  }

  .project-portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .project-page-hero {
    padding: 52px 0 58px;
  }

  .project-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-page-hero-copy {
    max-width: 760px;
  }

  .project-hero-visual {
    min-height: 500px;
  }

  .project-hero-image {
    inset: 20px 28px;
  }

  .project-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .project-capability-grid article:nth-child(-n+2) {
    border-bottom: 1px solid rgba(103, 191, 255, .13);
  }

  .project-section-head,
  .project-portfolio-top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-count-box {
    justify-self: start;
  }

  .project-featured-card {
    grid-template-columns: 1fr;
  }

  .project-featured-media {
    min-height: 380px;
  }

  .project-featured-specs {
    grid-template-columns: 1fr;
  }

  .project-page-cta {
    grid-template-columns: auto 1fr;
  }

  .project-page-cta .btn {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (max-width: 650px) {
  .project-page-hero {
    padding: 34px 0 42px;
  }

  .project-breadcrumb {
    margin-bottom: 20px;
  }

  .project-page-hero h1 {
    font-size: 40px;
  }

  .project-page-lead {
    font-size: 14px;
    line-height: 1.78;
  }

  .project-hero-tags {
    grid-template-columns: 1fr;
  }

  .project-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-hero-actions .btn {
    width: 100%;
  }

  .project-text-link {
    text-align: center;
  }

  .project-hero-visual {
    min-height: 355px;
  }

  .project-hero-image {
    inset: 16px 0 10px;
    border-radius: 18px;
  }

  .project-floating-card {
    display: none;
  }

  .project-image-label {
    left: 18px;
    bottom: 18px;
  }

  .project-image-label strong {
    font-size: 18px;
  }

  .project-capability-grid {
    grid-template-columns: 1fr;
  }

  .project-capability-grid article {
    min-height: 88px;
    padding: 15px 12px;
    border-right: 0;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(103, 191, 255, .13);
  }

  .project-capability-grid article:last-child {
    border-bottom: 0;
  }

  .project-page-section-title {
    font-size: 30px;
  }

  .project-featured-section,
  .project-portfolio-section {
    padding-top: 40px;
  }

  .project-featured-card {
    border-radius: 16px;
  }

  .project-featured-media {
    min-height: 250px;
  }

  .project-featured-content {
    padding: 24px 18px;
  }

  .project-featured-content h3 {
    font-size: 29px;
  }

  .project-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px;
    scrollbar-width: none;
  }

  .project-filter::-webkit-scrollbar {
    display: none;
  }

  .project-filter button {
    flex: 0 0 auto;
  }

  .project-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-portfolio-media {
    height: 220px;
  }

  .project-portfolio-content>p {
    min-height: 0;
  }

  .project-process-section {
    padding: 45px 0 48px;
  }

  .project-process-grid {
    grid-template-columns: 1fr;
  }

  .project-process-grid article {
    min-height: 210px;
  }

  .project-page-cta-section {
    padding: 30px 0 40px;
  }

  .project-page-cta {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .project-page-cta-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 22px;
  }

  .project-page-cta-copy h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {

  body[data-page="project"] .project-reveal,
  body[data-page="project"] .project-page-hero-copy>*,
  body[data-page="project"] .project-hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}


/* =====================================
   PROJECT DETAIL PAGE
===================================== */
body[data-page="project-detail"] {
  background:
    radial-gradient(circle at 12% 16%, rgba(19, 136, 235, 0.16), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(22, 196, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #02122f 0%, #041d47 52%, #03173b 100%);
}

.project-detail-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #16c4ff, #ed1c2f);
  z-index: 120;
  box-shadow: 0 0 18px rgba(22, 196, 255, 0.55);
}

.project-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 28px;
}

.project-detail-hero::before,
.project-detail-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: .68;
  pointer-events: none;
}

.project-detail-hero::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(22, 196, 255, 0.26), rgba(22, 196, 255, 0));
  top: -70px;
  right: 7%;
}

.project-detail-hero::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(237, 28, 47, 0.18), rgba(237, 28, 47, 0));
  bottom: -95px;
  left: 4%;
}

.project-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #aac7ea;
  font-size: 13px;
  margin-bottom: 18px;
}

.project-detail-breadcrumb a:hover {
  color: #fff;
}

.project-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .88fr);
  gap: 28px;
  align-items: start;
}

.project-detail-visual {
  position: relative;
}

.project-detail-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(103, 191, 255, 0.24);
  background: linear-gradient(150deg, rgba(6, 39, 87, 0.96), rgba(3, 22, 54, 0.98));
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

.project-detail-image-card img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.04);
}

.project-detail-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 22, 54, 0.06), rgba(3, 22, 54, 0.14) 35%, rgba(3, 22, 54, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 22, 57, 0.24) 0%, rgba(4, 22, 57, 0) 38%);
  pointer-events: none;
}

.project-detail-hud,
.project-detail-hud-small,
.project-detail-hud-bottom {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(114, 202, 255, 0.28);
  background: linear-gradient(145deg, rgba(5, 38, 82, 0.8), rgba(3, 23, 55, 0.75));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, .04);
}

.project-detail-hud {
  top: 18px;
  left: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 188px;
}

.project-detail-hud strong,
.project-detail-hud-small strong,
.project-detail-hud-bottom strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
}

.project-detail-hud span,
.project-detail-hud-small span,
.project-detail-hud-bottom span {
  display: block;
  color: #8fbbeb;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-detail-hud em,
.project-detail-hud-small em,
.project-detail-hud-bottom em {
  display: inline-block;
  margin-top: 8px;
  color: #7ce9ff;
  font-style: normal;
  font-size: 12px;
}

.project-detail-hud-small {
  right: 18px;
  top: 22px;
  border-radius: 18px;
  padding: 14px 14px 12px;
  min-width: 122px;
  text-align: center;
}

.project-detail-hud-small .arrow-circle {
  width: 52px;
  height: 52px;
  margin: 6px auto 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(135, 214, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  font-size: 21px;
}

.project-detail-hud-bottom {
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-detail-caption {
  position: absolute;
  left: 18px;
  bottom: 112px;
  z-index: 2;
  max-width: 78%;
}

.project-detail-caption small {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(9, 84, 167, 0.58);
  border: 1px solid rgba(94, 174, 255, 0.28);
  color: #bfe4ff;
  font-weight: 700;
  letter-spacing: .08em;
}

.project-detail-caption h2 {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.08;
  color: #fff;
}

.project-detail-copy {
  position: relative;
}

.project-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(103, 191, 255, 0.28);
  background: rgba(9, 70, 145, 0.34);
  color: #cce7ff;
  font-weight: 800;
  margin-bottom: 16px;
}

.project-detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.project-detail-tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(92, 174, 255, 0.26);
  background: rgba(10, 71, 142, 0.26);
  color: #dff3ff;
  font-size: 13px;
  font-weight: 800;
}

.project-detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.03;
  letter-spacing: -.03em;
}

.project-detail-copy .lead {
  max-width: 660px;
  font-size: 17px;
  color: #d8e8fb;
  margin-bottom: 20px;
}

.project-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.project-detail-meta-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 191, 255, 0.22);
  background: linear-gradient(145deg, rgba(7, 54, 112, 0.62), rgba(3, 27, 67, 0.75));
}

.project-detail-meta-card small {
  display: block;
  margin-bottom: 7px;
  color: #8ab8e7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-detail-meta-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.project-detail-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(103, 191, 255, 0.24);
  color: #dff3ff;
  font-weight: 700;
}

.project-detail-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.project-detail-main {
  display: grid;
  gap: 22px;
}

.project-detail-panel {
  background: linear-gradient(145deg, rgba(7, 54, 112, .92), rgba(4, 31, 71, .86));
  border: 1px solid rgba(103, 191, 255, 0.24);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  overflow: hidden;
}

.project-detail-panel-inner {
  padding: 24px 24px 26px;
}

.project-detail-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-detail-section-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.project-detail-section-head p {
  max-width: 540px;
  margin: 0;
  color: #cfe2f9;
}

.project-detail-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-detail-richtext p {
  margin: 0 0 14px;
  color: #dcecff;
}

.project-detail-checklist,
.project-detail-scope-list,
.project-detail-benefits-list,
.project-detail-toc {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-detail-checklist li,
.project-detail-scope-list li,
.project-detail-benefits-list li,
.project-detail-toc li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.project-detail-checklist li::before,
.project-detail-scope-list li::before,
.project-detail-benefits-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500), #38d4ff);
  color: #fff;
  font-weight: 800;
  margin-top: 2px;
}

.project-detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-detail-highlight {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(2, 28, 66, 0.72), rgba(5, 47, 99, 0.72));
  border: 1px solid rgba(99, 186, 255, 0.22);
}

.project-detail-highlight small {
  display: block;
  margin-bottom: 8px;
  color: #8acbff;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 700;
}

.project-detail-highlight strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.project-detail-highlight p {
  margin: 0;
  color: #d4e8fb;
  font-size: 14px;
}

.project-detail-architecture-grid,
.project-detail-benefits-grid,
.project-detail-gallery-grid,
.project-detail-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-detail-arch-card,
.project-detail-benefit-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(2, 28, 66, 0.72), rgba(5, 47, 99, 0.72));
  border: 1px solid rgba(99, 186, 255, 0.22);
}

.project-detail-arch-card .icon-wrap,
.project-detail-benefit-card .icon-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(12, 113, 204, 0.8), rgba(8, 57, 118, 0.88));
  border: 1px solid rgba(96, 185, 255, 0.3);
  margin-bottom: 14px;
  color: #fff;
  font-size: 22px;
}

.project-detail-arch-card h3,
.project-detail-benefit-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.project-detail-arch-card p,
.project-detail-benefit-card p {
  margin: 0;
  color: #d1e6fb;
}

.project-detail-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(99, 186, 255, 0.22);
  min-height: 250px;
}

.project-detail-gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-detail-gallery-card:hover img {
  transform: scale(1.05);
}

.project-detail-gallery-card .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(3, 22, 54, .9));
}

.project-detail-gallery-card .caption strong {
  display: block;
  margin-bottom: 5px;
}

.project-detail-gallery-card .caption span {
  color: #c9e0f7;
  font-size: 13px;
}

.project-detail-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-detail-process-grid article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 191, 255, .22);
  background: linear-gradient(145deg, rgba(3, 30, 68, .8), rgba(6, 49, 102, .76));
}

.project-detail-process-grid .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #8ed6ff;
  font-size: 12px;
  font-weight: 800;
}

.project-detail-process-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.project-detail-process-grid p {
  margin: 0;
  color: #d3e6fa;
  font-size: 14px;
}

.project-detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.project-detail-aside-card {
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(103, 191, 255, 0.22);
  background: linear-gradient(145deg, rgba(6, 42, 89, 0.92), rgba(3, 25, 57, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.project-detail-aside-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

.project-detail-aside-list {
  display: grid;
  gap: 14px;
}

.project-detail-aside-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(103, 191, 255, 0.16);
}

.project-detail-aside-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-detail-aside-item small {
  display: block;
  color: #8db8e4;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.project-detail-aside-item strong,
.project-detail-aside-item span {
  display: block;
  color: #fff;
  line-height: 1.4;
}

.project-detail-toc li a {
  color: #dbeeff;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(103, 191, 255, 0.14);
  background: rgba(255, 255, 255, .02);
  transition: .22s;
}

.project-detail-toc li a:hover {
  border-color: rgba(103, 191, 255, 0.28);
  background: rgba(22, 143, 232, 0.08);
  transform: translateX(4px);
}

.project-detail-quote {
  position: relative;
  padding: 20px 20px 20px 22px;
  border-radius: 18px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(103, 191, 255, 0.18);
}

.project-detail-quote::before {
  position: absolute;
  top: 6px;
  left: 14px;
  color: rgba(104, 204, 255, 0.42);
  font-size: 62px;
  line-height: 1;
}

.project-detail-quote p {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 16px;
  color: #edf7ff;
}

.project-detail-quote span {
  display: block;
  padding-left: 18px;
  color: #8db6df;
  font-size: 13px;
}

.project-detail-related-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(99, 186, 255, 0.22);
  background: linear-gradient(145deg, rgba(7, 54, 112, .9), rgba(4, 31, 71, .9));
  transition: .28s;
}

.project-detail-related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.project-detail-related-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-detail-related-card .content {
  padding: 18px;
}

.project-detail-related-card .tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.project-detail-related-card .tag-row span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 86, 173, 0.34);
  border: 1px solid rgba(103, 191, 255, 0.18);
  font-size: 11px;
  font-weight: 800;
  color: #d8ecff;
}

.project-detail-related-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.project-detail-related-card p {
  margin: 0 0 12px;
  color: #d5e8fb;
}

.project-detail-related-card a {
  color: #fff;
  font-weight: 800;
}

.project-detail-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-detail-share a,
.project-detail-share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 191, 255, 0.18);
  background: rgba(255, 255, 255, .03);
  color: #e9f6ff;
  font-weight: 700;
}

.project-detail-share button {
  cursor: pointer;
}

.project-detail-share a:hover,
.project-detail-share button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.project-detail-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(7, 54, 112, .96), rgba(4, 31, 71, .96));
  border: 1px solid rgba(99, 186, 255, .22);
}

.project-detail-cta .icon-box {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  clip-path: none;
}

.project-detail-cta-copy span {
  display: inline-block;
  margin-bottom: 6px;
  color: #8fd4ff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 12px;
}

.project-detail-cta-copy h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.project-detail-cta-copy p {
  margin: 0;
  color: #d7e8fb;
}

.project-detail-reveal {
  opacity: 0;
  transform: translateY(36px) scale(.985);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--detail-delay, 0ms);
}

.project-detail-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1180px) {

  .project-detail-shell,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-detail-aside {
    position: static;
    top: auto;
    order: -1;
  }
}

@media (max-width: 980px) {
  .project-detail-image-card img {
    height: 460px;
  }

  .project-detail-caption h2 {
    font-size: 34px;
  }

  .project-detail-overview-grid,
  .project-detail-architecture-grid,
  .project-detail-benefits-grid,
  .project-detail-related-grid,
  .project-detail-gallery-grid,
  .project-detail-process-grid,
  .project-detail-highlight-grid,
  .project-detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-cta {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .project-detail-hero {
    padding-top: 40px;
  }

  .project-detail-image-card img {
    height: 380px;
  }

  .project-detail-shell {
    gap: 22px;
  }

  .project-detail-hud,
  .project-detail-hud-small,
  .project-detail-hud-bottom {
    position: static;
    margin: 14px 14px 0;
  }

  .project-detail-image-card {
    padding-bottom: 14px;
  }

  .project-detail-caption {
    position: static;
    margin: 16px 16px 0;
    max-width: none;
  }

  .project-detail-hud-bottom {
    grid-template-columns: 1fr;
  }

  .project-detail-overview-grid,
  .project-detail-architecture-grid,
  .project-detail-benefits-grid,
  .project-detail-related-grid,
  .project-detail-gallery-grid,
  .project-detail-process-grid,
  .project-detail-highlight-grid,
  .project-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-panel-inner {
    padding: 22px 18px;
  }
}


/* ============================================================
   PROJECT DETAIL HERO V2 — CINEMATIC / CLEAN CASE STUDY
   Replaces the previous split-screen dashboard-like hero.
============================================================ */
body[data-page="project-detail"] .project-detail-hero--cinematic {
  padding: 42px 0 34px;
  overflow: visible;
}

body[data-page="project-detail"] .project-detail-hero--cinematic::before,
body[data-page="project-detail"] .project-detail-hero--cinematic::after {
  opacity: .36;
}

.project-cinematic-card {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(103, 191, 255, .28);
  border-radius: 28px;
  background: #031a40;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, .34),
    inset 0 1px rgba(255, 255, 255, .04);
  isolation: isolate;
}

.project-cinematic-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  transform: scale(1.01);
  transition: transform 8s ease;
  z-index: -4;
}

.project-cinematic-card:hover .project-cinematic-image {
  transform: scale(1.045);
}

.project-cinematic-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg,
      rgba(2, 15, 42, .98) 0%,
      rgba(3, 24, 59, .94) 31%,
      rgba(3, 28, 65, .73) 52%,
      rgba(3, 23, 55, .22) 76%,
      rgba(3, 23, 55, .08) 100%),
    linear-gradient(180deg,
      rgba(2, 15, 42, .12) 0%,
      rgba(2, 15, 42, .02) 44%,
      rgba(2, 15, 42, .86) 100%);
}

.project-cinematic-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(62, 180, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 180, 255, .10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .65) 35%, transparent 72%);
}

.project-cinematic-topbar {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-cinematic-label,
.project-cinematic-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(112, 201, 255, .28);
  border-radius: 999px;
  background: rgba(3, 28, 67, .58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #d9efff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}

.project-cinematic-label i {
  color: #63d8ff;
}

.project-cinematic-back {
  transition: .22s ease;
}

.project-cinematic-back:hover {
  background: rgba(10, 85, 168, .56);
  border-color: rgba(112, 201, 255, .50);
  transform: translateY(-2px);
}

.project-cinematic-content {
  position: absolute;
  left: clamp(28px, 4.6vw, 72px);
  top: 50%;
  width: min(690px, 62%);
  transform: translateY(-53%);
  z-index: 2;
}

.project-detail-tag-row--hero {
  margin-bottom: 18px;
}

.project-detail-tag-row--hero span {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(8, 83, 163, .48);
  border-color: rgba(91, 193, 255, .34);
  color: #e5f7ff;
  font-size: 11px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.project-cinematic-eyebrow {
  margin: 0 0 10px;
  color: #6ddcff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.project-cinematic-content h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

.project-cinematic-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #d8e9fb;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
  text-shadow: 0 3px 16px rgba(0, 0, 0, .28);
}

.project-cinematic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 28px;
}

.project-cinematic-primary {
  min-height: 50px;
  padding-inline: 26px;
  box-shadow: 0 14px 34px rgba(237, 28, 47, .24);
}

.project-cinematic-textlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: .22s ease;
}

.project-cinematic-textlink i {
  color: #63d8ff;
  transition: transform .22s ease;
}

.project-cinematic-textlink:hover {
  color: #fff;
}

.project-cinematic-textlink:hover i {
  transform: translateY(4px);
}

.project-cinematic-facts {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(103, 191, 255, .22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(3, 27, 67, .80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .20);
}

.project-cinematic-fact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border-right: 1px solid rgba(103, 191, 255, .16);
}

.project-cinematic-fact:last-child {
  border-right: 0;
}

.project-cinematic-fact-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 202, 255, .28);
  border-radius: 11px;
  background: rgba(16, 113, 204, .22);
  color: #6ddcff;
}

.project-cinematic-fact small,
.project-cinematic-fact strong {
  display: block;
}

.project-cinematic-fact small {
  margin-bottom: 4px;
  color: #85b8e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.project-cinematic-fact strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}

/* Hide the old split-hero visual language if legacy markup is ever mixed in. */
.project-detail-hero--cinematic .project-detail-shell,
.project-detail-hero--cinematic .project-detail-visual,
.project-detail-hero--cinematic .project-detail-copy,
.project-detail-hero--cinematic .project-detail-image-card,
.project-detail-hero--cinematic .project-detail-meta-grid {
  display: none;
}

@media (max-width: 1180px) {
  .project-cinematic-card {
    min-height: 650px;
  }

  .project-cinematic-content {
    width: min(670px, 70%);
  }

  .project-cinematic-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-cinematic-fact:nth-child(2) {
    border-right: 0;
  }

  .project-cinematic-fact:nth-child(-n+2) {
    border-bottom: 1px solid rgba(103, 191, 255, .16);
  }
}

@media (max-width: 820px) {
  body[data-page="project-detail"] .project-detail-hero--cinematic {
    padding-top: 34px;
  }

  .project-cinematic-card {
    min-height: 760px;
    border-radius: 22px;
  }

  .project-cinematic-image {
    object-position: 64% center;
  }

  .project-cinematic-overlay {
    background:
      linear-gradient(180deg,
        rgba(2, 15, 42, .18) 0%,
        rgba(2, 15, 42, .42) 31%,
        rgba(2, 15, 42, .94) 64%,
        rgba(2, 15, 42, .99) 100%);
  }

  .project-cinematic-grid {
    mask-image: linear-gradient(180deg, transparent 0%, #000 50%, #000 100%);
  }

  .project-cinematic-content {
    left: 26px;
    right: 26px;
    top: auto;
    bottom: 205px;
    width: auto;
    transform: none;
  }

  .project-cinematic-content h1 {
    font-size: clamp(42px, 9vw, 62px);
  }

  .project-cinematic-lead {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .project-detail-breadcrumb {
    font-size: 11px;
    gap: 7px;
    margin-bottom: 14px;
  }

  .project-detail-breadcrumb span:last-child {
    display: none;
  }

  .project-cinematic-card {
    min-height: 850px;
    border-radius: 18px;
  }

  .project-cinematic-topbar {
    top: 16px;
    left: 16px;
    right: 16px;
  }

  .project-cinematic-back {
    width: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .project-cinematic-back i {
    font-size: 13px;
  }

  .project-cinematic-label {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .project-cinematic-image {
    height: 46%;
    object-position: 62% center;
  }

  .project-cinematic-overlay {
    background:
      linear-gradient(180deg,
        rgba(2, 15, 42, .02) 0%,
        rgba(2, 15, 42, .24) 24%,
        rgba(2, 15, 42, .94) 45%,
        #02122f 62%,
        #02122f 100%);
  }

  .project-cinematic-content {
    left: 20px;
    right: 20px;
    bottom: 275px;
  }

  .project-detail-tag-row--hero {
    gap: 7px;
    margin-bottom: 13px;
  }

  .project-detail-tag-row--hero span {
    min-height: 29px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .project-cinematic-eyebrow {
    font-size: 10px;
  }

  .project-cinematic-content h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .project-cinematic-lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .project-cinematic-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 20px;
  }

  .project-cinematic-primary {
    width: 100%;
  }

  .project-cinematic-textlink {
    justify-content: center;
  }

  .project-cinematic-facts {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .project-cinematic-fact,
  .project-cinematic-fact:nth-child(2),
  .project-cinematic-fact:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(103, 191, 255, .13);
    padding: 11px 13px;
  }

  .project-cinematic-fact:last-child {
    border-bottom: 0;
  }

  .project-cinematic-fact-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
    font-size: 12px;
  }

  .project-cinematic-fact small {
    font-size: 9px;
  }

  .project-cinematic-fact strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .project-cinematic-image,
  .project-cinematic-back,
  .project-cinematic-textlink i {
    transition: none !important;
  }
}

.project-featured-media {
  position: relative;
  min-height: 490px;
  overflow: hidden;
}

.project-featured-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

/* ให้ Badge อยู่เหนือวิดีโอ */
.project-featured-badge {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
}

/* ==========================================================
   CONTACT PAGE — REDESIGN 2026
   Scoped to body[data-page="contact"] to avoid class collisions
========================================================== */

body[data-page="contact"] {
  --contact-card: rgba(5, 44, 94, .76);
  --contact-card-strong: rgba(7, 57, 119, .94);
  --contact-soft: rgba(255, 255, 255, .055);
  --contact-border: rgba(103, 191, 255, .24);
  --contact-highlight: #31a9ff;
}

/* Hero */
body[data-page="contact"] .contact-hero {
  min-height: 390px;
}

body[data-page="contact"] .contact-hero::before {
  background:
    linear-gradient(90deg,
      rgba(2, 15, 42, .98) 0%,
      rgba(3, 28, 66, .95) 36%,
      rgba(3, 34, 78, .72) 58%,
      rgba(2, 18, 49, .28) 100%);
}

body[data-page="contact"] .contact-hero .hero-content {
  max-width: 780px;
  padding-top: 64px;
  padding-bottom: 58px;
}

body[data-page="contact"] .contact-hero .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

body[data-page="contact"] .contact-hero .section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 16px rgba(237, 28, 47, .45);
}

body[data-page="contact"] .contact-hero h1 {
  max-width: 760px;
  margin-top: 6px;
  font-size: clamp(42px, 4vw, 60px);
}

body[data-page="contact"] .contact-hero h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(22px, 2.15vw, 31px);
}

body[data-page="contact"] .contact-hero p {
  max-width: 720px;
  color: #d5e8fb;
}

body[data-page="contact"] .contact-hero .hero-actions {
  margin-top: 24px;
}

body[data-page="contact"] .contact-hero .btn .icon {
  width: 21px;
  height: 21px;
}

/* Main contact cards */
body[data-page="contact"] .contact-section {
  position: relative;
  padding-top: 48px;
  padding-bottom: 26px;
}

body[data-page="contact"] .contact-section::before {
  content: "";
  position: absolute;
  left: 8%;
  top: 15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(22, 143, 232, .12);
  filter: blur(90px);
  pointer-events: none;
}

body[data-page="contact"] .contact-grid {
  display: grid;
  grid-template-columns: minmax(380px, .86fr) minmax(0, 1.34fr);
  gap: 22px;
  margin-top: 0;
  align-items: stretch;
}

body[data-page="contact"] .contact-grid>.contact-panel:last-child {
  grid-column: auto;
}

body[data-page="contact"] .contact-panel {
  position: relative;
  min-width: 0;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--contact-border);
  background:
    linear-gradient(145deg, rgba(8, 61, 126, .88), rgba(3, 29, 69, .92));
  box-shadow:
    0 22px 55px rgba(0, 9, 28, .22),
    inset 0 1px 0 rgba(255, 255, 255, .045);
}

body[data-page="contact"] .contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 42%);
}

body[data-page="contact"] .contact-panel-head,
body[data-page="contact"] .location-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

body[data-page="contact"] .contact-panel-head>p {
  max-width: 270px;
  margin: 3px 0 0;
  color: #b9d2ec;
  font-size: 13px;
  line-height: 1.7;
}

body[data-page="contact"] .contact-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #78c8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

body[data-page="contact"] .contact-panel .section-title {
  margin-bottom: 0;
  font-size: 20px;
}

body[data-page="contact"] .contact-company {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
}

/* Prevent floating-contact popup styles from leaking into this page */
body[data-page="contact"] .contact-panel .contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body[data-page="contact"] .contact-panel .contact-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(110, 188, 246, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .038);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

body[data-page="contact"] .contact-panel .contact-item:hover {
  transform: translateX(4px);
  border-color: rgba(72, 190, 255, .46);
  background: rgba(21, 116, 196, .14);
  box-shadow: 0 10px 25px rgba(0, 10, 32, .15);
}

body[data-page="contact"] .contact-icon-wrap,
body[data-page="contact"] .connect-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(145deg, #1593ed, #0865b6);
  border: 1px solid rgba(113, 205, 255, .46);
  box-shadow:
    0 10px 22px rgba(0, 77, 153, .25),
    inset 0 1px 0 rgba(255, 255, 255, .15);
}

body[data-page="contact"] .contact-icon-wrap--red {
  background: linear-gradient(145deg, #fa3248, #c90d21);
  border-color: rgba(255, 124, 137, .55);
}

body[data-page="contact"] .contact-icon-wrap .icon {
  width: 23px;
  height: 23px;
}

body[data-page="contact"] .contact-copy {
  display: block;
  min-width: 0;
}

body[data-page="contact"] .contact-copy small,
body[data-page="contact"] .office-hours-card small {
  display: block;
  margin-bottom: 3px;
  color: #79c8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

body[data-page="contact"] .contact-copy strong {
  display: block;
  min-width: 0;
  color: #eef7ff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body[data-page="contact"] .contact-arrow {
  color: #7ecfff;
  font-size: 18px;
  text-align: center;
  transition: transform .22s ease;
}

body[data-page="contact"] .contact-item:hover .contact-arrow {
  transform: translateX(2px);
}

body[data-page="contact"] .office-hours-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(237, 28, 47, .24);
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(237, 28, 47, .10), rgba(255, 255, 255, .035));
}

body[data-page="contact"] .office-hours-card strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 14px;
}

body[data-page="contact"] .office-hours-card p {
  margin: 0;
  color: #c8ddef;
  font-size: 12px;
  line-height: 1.55;
}

/* Map card */
body[data-page="contact"] .location-panel {
  display: flex;
  flex-direction: column;
}

body[data-page="contact"] .map-link {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 9px 13px;
  border: 1px solid rgba(92, 188, 255, .34);
  border-radius: 10px;
  color: #dff3ff;
  background: rgba(16, 123, 204, .13);
  font-size: 12px;
  font-weight: 750;
  transition: .22s ease;
}

body[data-page="contact"] .map-link:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 188, 255, .72);
  background: rgba(16, 123, 204, .25);
}

body[data-page="contact"] .map-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(81, 171, 239, .28);
  background: #061d45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

body[data-page="contact"] .map-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  filter: saturate(1.08) contrast(1.04);
  transition: transform .55s ease, filter .55s ease;
}

body[data-page="contact"] .map-wrap:hover .map-image {
  transform: scale(1.025);
  filter: saturate(1.16) contrast(1.06);
}

body[data-page="contact"] .map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(2, 18, 49, .78) 100%);
}

body[data-page="contact"] .map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 195, 255, .26);
  border-radius: 14px;
  background: rgba(2, 21, 52, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

body[data-page="contact"] .map-caption strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 13px;
}

body[data-page="contact"] .map-caption p {
  margin: 0;
  color: #bfd8ef;
  font-size: 11px;
}

/* Quick contact */
body[data-page="contact"] .contact-channels-section {
  padding-top: 24px;
  padding-bottom: 34px;
}

body[data-page="contact"] .contact-channel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 16px;
}

body[data-page="contact"] .contact-channel-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -.02em;
}

body[data-page="contact"] .contact-channel-heading>p {
  max-width: 430px;
  margin: 0 0 3px;
  color: #a9c7e5;
  font-size: 13px;
  text-align: right;
}

body[data-page="contact"] .connect-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(92, 175, 239, .18);
}

body[data-page="contact"] .connect-item {
  position: relative;
  min-width: 0;
  min-height: 154px;
  padding: 20px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(155deg, rgba(7, 54, 112, .98), rgba(3, 30, 69, .98));
  transition:
    transform .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

body[data-page="contact"] a.connect-item:hover {
  z-index: 2;
  transform: translateY(-3px);
  background:
    linear-gradient(155deg, rgba(11, 76, 151, .98), rgba(4, 40, 88, .98));
  box-shadow: 0 16px 30px rgba(0, 7, 24, .22);
}

body[data-page="contact"] .connect-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

body[data-page="contact"] .connect-icon .icon {
  width: 24px;
  height: 24px;
}

body[data-page="contact"] .connect-item h4 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: .04em;
}

body[data-page="contact"] .connect-item p {
  margin: 0;
  color: #bcd3e9;
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body[data-page="contact"] .connect-item--social {
  justify-content: center;
}

body[data-page="contact"] .socials {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body[data-page="contact"] .socials a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(70, 163, 232, .22);
  background: rgba(255, 255, 255, .94);
  color: #07326a;
  font-size: 11px;
  transition: .2s ease;
}

body[data-page="contact"] .socials a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

/* Stats + CTA */
body[data-page="contact"] .contact-trust-section {
  padding-top: 18px;
  padding-bottom: 60px;
}

body[data-page="contact"] .contact-trust {
  display: grid;
  gap: 16px;
}

body[data-page="contact"] .contact-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="contact"] .contact-stat {
  min-height: 112px;
  padding: 19px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(103, 191, 255, .20);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(8, 58, 119, .72), rgba(4, 31, 71, .76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

body[data-page="contact"] .contact-stat>.icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: #71c7ff;
  background: rgba(26, 144, 226, .12);
}

body[data-page="contact"] .contact-stat b {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 27px;
  line-height: 1;
}

body[data-page="contact"] .contact-stat span {
  display: block;
  color: #b8d2e9;
  font-size: 11px;
}

body[data-page="contact"] .contact-cta-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(88, 183, 255, .28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 25%, rgba(36, 153, 235, .20), transparent 28%),
    linear-gradient(120deg, rgba(5, 48, 102, .96), rgba(2, 27, 65, .97));
  box-shadow: 0 22px 50px rgba(0, 8, 27, .22);
}

body[data-page="contact"] .contact-cta-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  border: 1px solid rgba(62, 177, 255, .18);
  box-shadow:
    0 0 0 34px rgba(62, 177, 255, .04),
    0 0 0 68px rgba(62, 177, 255, .025);
}

body[data-page="contact"] .contact-cta-card>* {
  position: relative;
  z-index: 1;
}

body[data-page="contact"] .contact-cta-card h3 {
  margin: 0 0 7px;
  font-size: clamp(27px, 2.7vw, 38px);
  letter-spacing: -.025em;
}

body[data-page="contact"] .contact-cta-card p {
  max-width: 620px;
  margin: 0;
  color: #bfd8ee;
}

body[data-page="contact"] .contact-cta-card .btn {
  flex: none;
  min-width: 180px;
}

/* Responsive */
@media (max-width: 1180px) {
  body[data-page="contact"] .contact-grid {
    grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  }

  body[data-page="contact"] .contact-panel {
    padding: 23px;
  }

  body[data-page="contact"] .connect-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="contact"] .connect-item:nth-child(4),
  body[data-page="contact"] .connect-item:nth-child(5) {
    min-height: 135px;
  }
}

@media (max-width: 900px) {
  body[data-page="contact"] .contact-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .contact-grid>.contact-panel:last-child {
    grid-column: auto;
  }

  body[data-page="contact"] .map-wrap,
  body[data-page="contact"] .map-image {
    min-height: 390px;
  }

  body[data-page="contact"] .contact-channel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body[data-page="contact"] .contact-channel-heading>p {
    max-width: 100%;
    text-align: left;
  }

  body[data-page="contact"] .contact-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body[data-page="contact"] .contact-hero {
    min-height: 500px;
  }

  body[data-page="contact"] .contact-hero .hero-content {
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 48px;
    padding-bottom: 42px;
  }

  body[data-page="contact"] .contact-hero h1 {
    font-size: 38px;
  }

  body[data-page="contact"] .contact-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="contact"] .contact-hero .btn {
    width: 100%;
  }

  body[data-page="contact"] .contact-section {
    padding-top: 30px;
  }

  body[data-page="contact"] .contact-panel {
    padding: 18px;
    border-radius: 16px;
  }

  body[data-page="contact"] .contact-panel-head,
  body[data-page="contact"] .location-head {
    display: block;
    margin-bottom: 18px;
  }

  body[data-page="contact"] .contact-panel-head>p {
    max-width: 100%;
    margin-top: 10px;
  }

  body[data-page="contact"] .location-head .map-link {
    display: inline-flex;
    margin-top: 12px;
  }

  body[data-page="contact"] .contact-panel .contact-item {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 64px;
    padding: 9px 10px;
  }

  body[data-page="contact"] .contact-icon-wrap,
  body[data-page="contact"] .connect-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  body[data-page="contact"] .contact-copy strong {
    font-size: 12px;
  }

  body[data-page="contact"] .office-hours-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px;
  }

  body[data-page="contact"] .map-wrap,
  body[data-page="contact"] .map-image {
    min-height: 310px;
  }

  body[data-page="contact"] .map-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
  }

  body[data-page="contact"] .connect-row {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .connect-item {
    min-height: 112px;
    padding: 16px;
    border-bottom: 1px solid rgba(92, 175, 239, .13);
  }

  body[data-page="contact"] .contact-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body[data-page="contact"] .contact-stat {
    min-height: 98px;
    padding: 14px;
    gap: 10px;
  }

  body[data-page="contact"] .contact-stat b {
    font-size: 22px;
  }

  body[data-page="contact"] .contact-cta-card {
    padding: 24px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="contact"] .contact-cta-card .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body[data-page="contact"] .contact-stat-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="contact"] .contact-panel .section-title {
    font-size: 18px;
  }

  body[data-page="contact"] .contact-copy strong {
    font-size: 11.5px;
  }
}

body[data-page="contact"] .map-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(81, 171, 239, .28);
  background: #061d45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

body[data-page="contact"] .map-embed {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
}

body[data-page="contact"] .map-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(111, 195, 255, .26);
  border-radius: 14px;
  background: rgba(2, 21, 52, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

/* ล็อกปุ่ม VIEW FILE ให้อยู่มุมขวาล่างทุก Card */
.download-card>div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-card .btn {
  margin-top: auto;
  align-self: flex-end;
  width: 100%;
}

/* ======================================
   DOWNLOAD CARD - จัดทุกบรรทัดให้ตรงกัน
====================================== */

.download-card {
  align-items: start;
}

/* ฝั่งข้อความ */
.download-card>div {
  height: 100%;
  display: grid;

  /* CATALOGS / TITLE / DESCRIPTION / PDF / BUTTON */
  grid-template-rows:
    20px 58px 45px 20px 38px;

  row-gap: 4px;
}

/* CATALOGS */
.download-card .section-kicker {
  line-height: 20px;
  margin: 0;
}

/* ชื่อสินค้า */
.download-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;

  /* จองพื้นที่ไว้ 3 บรรทัดเท่ากันทุก Card */
  height: 58px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* รายละเอียด */
.download-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;

  /* จองพื้นที่ไว้เท่ากัน */
  height: 45px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PDF */
.download-card .file-meta {
  margin: 0;
  height: 20px;
  line-height: 20px;
}

/* VIEW FILE */
.download-card .btn {
  margin: 0;
  width: 100%;
  height: 38px;
  align-self: end;
}

/* =====================================
   DOWNLOAD CARD - MOBILE
===================================== */
@media (max-width: 650px) {

  .download-card {
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 10px;
    min-height: auto;
    align-items: start;
  }

  /* รูป PDF */
  .download-card img {
    width: 74px;
    height: 110px;
    object-fit: cover;
  }

  /* ฝั่งข้อความ */
  .download-card > div {
    height: auto;

    display: flex;
    flex-direction: column;

    /* ลดระยะห่างระหว่างข้อความ */
    gap: 3px;
  }

  /* CATALOGS */
  .download-card .section-kicker {
    height: auto;
    line-height: 1.2;
    margin: 0 0 2px;
    font-size: 12px;
  }

  /* ชื่อสินค้า */
  .download-card h3 {
    height: auto;
    min-height: 0;
    margin: 0 0 5px;

    font-size: 14px;
    line-height: 1.25;

    /* ไม่ล็อกจำนวนบรรทัดบนมือถือ */
    display: block;
    overflow: visible;
  }

  /* Description */
  .download-card p {
    height: auto;
    min-height: 0;
    margin: 0 0 5px;

    font-size: 11px;
    line-height: 1.35;

    display: block;
    overflow: visible;
  }

  /* PDF Size */
  .download-card .file-meta {
    height: auto;
    line-height: 1.2;
    margin: 0 0 6px;
    font-size: 11px;
  }

  /* VIEW FILE */
  .download-card .btn {
    height: 36px;
    margin: 0;
    margin-top: 2px;
    width: 100%;
  }
}