/* ------------------------------------------------------------------
   Cyborg Develop - Custom overrides
   ที่มา: _design/index.html (inline <style>) นำมาใช้ร่วมกันทุกหน้า
   ------------------------------------------------------------------ */

:root { --cd-nav-h: 92px; }
.brand-tile.symbol img { height: 64px; }
.cd-nav.scrolled .brand-tile.symbol img { height: 48px; }

/* เมนูและปุ่มขนาด 18px เป็นสไตล์เฉพาะหน้าแรก (มีเฉพาะใน _design/index.html)
   หน้าอื่นใช้ขนาดมาตรฐานจาก style.css คือ .nav-link .95rem และ .btn-sm .875rem */
.is-home .cd-nav .nav-link { font-size: 18px; white-space: nowrap; }
.is-home .btn-sm { padding: .5rem 1.15rem; font-size: 18px; }
.is-home .cd-nav .nav-cta-wrap .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .is-home .cd-nav .nav-link { padding: .55rem .5rem !important; }
  .is-home .cd-nav .nav-cta-wrap { margin-left: .5rem !important; }
  .is-home .cd-nav .nav-cta-wrap .btn { padding: .5rem .85rem; }
}

.container {
  max-width: 1320px;
  width: 95%;
  padding-left: .75rem;
  padding-right: .75rem;
}
@media (max-width: 1389.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

.section { padding: 60px 20px 60px 20px; }

.section-services {
  background:
    radial-gradient(900px 380px at 100% 0%, rgba(249, 115, 22, .10), transparent 60%),
    radial-gradient(760px 360px at 0% 100%, rgba(109, 40, 217, .10), transparent 60%),
    #F5F3FB;
  border-top: 1px solid var(--cd-line);
  border-bottom: 1px solid var(--cd-line);
}
.section-services .card-cd { background: #fff; }

.card-cd {
  border-color: transparent;
  box-shadow: var(--cd-sh-lg);
}
.card-cd:hover {
  border-color: var(--cd-purple-200);
  box-shadow: var(--cd-sh-lg);
}

.post-thumb.has-img {
  background: var(--cd-soft);
  aspect-ratio: 4 / 3;
}
.post-thumb.has-img::after { display: none; }
.post-thumb.has-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-thumb.has-img .post-cat {
  box-shadow: 0 4px 14px -6px rgba(23, 19, 42, .35);
}

.hero-slider { padding-top: 0; }

.topbar {
  background-image: linear-gradient(100deg, #4C1D95 0%, #6D28D9 40%, #9333EA 62%, #EA580C 100%);
  color: #fff;
  padding: 12px 0;
  font-size: 14px;
  position: relative;
  z-index: 1031;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.top-bar-left {
  font-family: 'Prompt', sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.top-bar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.topbar .social-button {
  color: #fff;
  text-decoration: none;
  height: 45px;
  padding: 0 18px 0 4px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50px;
  font-family: 'Prompt', sans-serif;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: all .26s cubic-bezier(.22, .8, .3, 1);
}
.topbar .social-button:hover {
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
}
.topbar .social-button-phone { background: #4C1D95; }
.topbar .social-button-phone:hover { background: #2E1065; }
.topbar .social-button-line { background: #EA580C; padding-left: 14px; }
.topbar .social-button-line:hover { background: #C2410C; }
.topbar .social-button .btn-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar .social-button-phone .btn-icon {
  width: 35px;
  height: 35px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 19px;
}
.topbar .social-button-line .btn-icon { font-size: 24px; }

@media (max-width: 991.98px) {
  .top-bar-left { font-size: 15px; }
}
@media (max-width: 750px) {
  .top-bar-inner { display: block; text-align: center; }
  .top-bar-right { justify-content: center; margin-top: 10px; }
}
@media (max-width: 400px) {
  .topbar .social-button { font-size: 12px; height: 38px; padding-right: 12px; }
  .topbar .social-button-line { padding-left: 10px; }
  .topbar .social-button-phone .btn-icon { width: 28px; height: 28px; font-size: 15px; }
  .topbar .social-button-line .btn-icon { font-size: 19px; }
}


.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

#scrollBar { display: none; }

.ticker {
  -webkit-mask-image: none;
  mask-image: none;
  overflow: visible;
  max-width: 1320px;
  width: 95%;
  margin-inline: auto;
  padding-inline: .75rem;
}
.ticker-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: auto;
}
.ticker-static .client-logo {
  flex: 0 0 calc((100% - 5rem) / 6);
  min-width: 0;
  padding: 1rem;
  height: 100px;
}
.ticker-static .client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
@media (max-width: 1199.98px) {
  .ticker-static .client-logo { flex-basis: calc((100% - 3rem) / 4); }
}
@media (max-width: 767.98px) {
  .ticker-static .client-logo { flex-basis: calc((100% - 2rem) / 3); }
}
@media (max-width: 479.98px) {
  .ticker-static { gap: .75rem; }
  .ticker-static .client-logo { flex-basis: calc((100% - .75rem) / 2); height: 86px; padding: .75rem; }
}

.card-cd:hover,
.post-card:hover,
.client-logo:hover,
.glass:hover,
.svc-item:hover,
.contact-tile:hover,
.testi-card:hover,
.btn:hover,
.btn-brand:hover,
.btn-outline-brand:hover,
.btn-light-brand:hover,
.btn-outline-light-2:hover,
.soc:hover,
.topbar .social-button:hover,
.navbar-brand:hover .brand-tile { transform: none; }

.card-cd:hover .ico-tile { transform: none; }
.card-cd::after { display: none; }
.card-cd, .post-card, .glass, .svc-item, .contact-tile, .client-logo, .ico-tile {
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}
.btn:hover i.bi-arrow-right,
.card-cd:hover .card-link i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cd-nav, .card-cd, .post-card, .glass, .svc-item, .contact-tile,
  .client-logo, .ico-tile, .btn, .soc { transition: none !important; }
}

/* ------------------------------------------------------------------
   หน้าใน: แถบเมนูเป็น fixed-top จึงลอยอยู่นอกโฟลว์และทับเนื้อหาด้านบน
   ต้องเผื่อระยะด้านบนของแบนเนอร์เท่ากับความสูงเมนูจริง (--cd-nav-h)
   ธีมนี้ override --cd-nav-h เป็น 92px (โลโก้สูง 64px) ค่าคงที่ 80px
   จาก style.css จึงไม่พอ ทำให้ขอบบนของภาพแบนเนอร์โดนเมนูบัง
   ------------------------------------------------------------------ */
.page-hero-banner { padding-top: var(--cd-nav-h); }
@media (max-width: 1199.98px) {
  .page-hero-banner { padding-top: var(--cd-nav-h); }
}
