﻿/* Panel base */
.panel-image-focus{
  position:relative;
  background:rgba(15,23,42,.9);
  border-radius:20px;
  padding:28px 22px 26px;
  color:#fff;
  box-shadow:0 20px 45px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
}

/* Icon */
.panel-image-focus .panel-icon{
  font-size:28px;
  margin-bottom:10px;
  background:linear-gradient(135deg,#6366f1,#2dd4bf);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Title */
.panel-image-focus .panel-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:16px;
}

/* Image wrapper */
.panel-image{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:18px;
}

/* Image */
.panel-image img{
  width:100%;
  height:auto;
  display:block;
  transition:transform .6s ease;
}

/* Hover effect */
.panel-image-focus:hover .panel-image img{
  transform:scale(1.06);
}

/* Arrow */
.panel-arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:#2dd4bf;
  transition:.3s ease;
}
.panel-arrow:hover{
  background:linear-gradient(135deg,#6366f1,#2dd4bf);
  color:#020617;
}



.services-modern{
  background: radial-gradient(1200px 500px at 20% 10%, rgba(56,189,248,.18), transparent 60%),
              radial-gradient(900px 420px at 80% 30%, rgba(99,102,241,.18), transparent 60%),
              linear-gradient(180deg, #062a47 0%, #04223b 60%, #031b2f 100%);
  position: relative;
  overflow: hidden;
}

.svc-card{
  border-radius: 18px;
  padding: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.svc-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.075);
}

.svc-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #e8f4ff;
  background: linear-gradient(145deg, rgba(59,130,246,.28), rgba(16,185,129,.18));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  flex: 0 0 auto;
}

.svc-badge{
  color: #eaf6ff !important;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08) !important;
}

.svc-divider{
  border-color: rgba(255,255,255,.12);
  opacity: 1;
}

.svc-list{
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.svc-list li{
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: rgba(255,255,255,.80);
  line-height: 1.45;
}

.svc-list li::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: .45rem;
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(99,102,241,.95));
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

.text-white-75{ color: rgba(255,255,255,.75) !important; }
.svc-list,
.svc-list li {
    color: #fff !important;
}

.features-1,
.features-1 h3,
.features-1 h4,
.features-1 p,
.features-1 li {
     color: #fff !important;
}




.services {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #f6f7f8;
}
/* Market Merge style */
#services-1 .mm-title{
  letter-spacing: 0.5px;
  line-height: 1.05;
}

#services-1 .text-secondary{
  color: #475569 !important; /* slate-ish */
}

#services-1 .btn-primary{
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#services-1 .btn-outline-primary{
  border-color: rgba(29,78,216,.35);
  color: #1d4ed8;
}

#services-1 .btn-outline-primary:hover{
  background: rgba(29,78,216,.08);
  border-color: rgba(29,78,216,.6);
}

#services-1 .mm-stat{
  border-radius: 16px;
}

#services-1 .mm-hero-img{
  border-radius: 24px;
  overflow: hidden;
}

#services-1 .mm-glow{
  position:absolute;
  inset:-30px;
  z-index:-1;
  background: radial-gradient(circle at 30% 30%, rgba(29,78,216,.18), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(30,64,175,.14), transparent 60%);
  filter: blur(10px);
}
#services-1 .mm-label{
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #1e3a8a;   /* น้ำเงินเข้ม */
  text-transform: uppercase;
  margin-bottom: 12px;
}


.mm-scroll-animate{
  opacity: 0;
  transform: translateY(40px);
  transition: all .8s ease;
}

.mm-scroll-animate.show{
  opacity: 1;
  transform: translateY(0);
}



/* วางไว้ใน section เดียวกัน */
.features.features-1{
  position: relative;
  overflow: hidden;
}

/* layer background pulse */
.energy-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

/* ให้ content อยู่หน้า */
.features.features-1 .container{
  position: relative;
  z-index: 2;
}

/* เส้นพลังงาน */
.energy-line{
  fill: none;
  stroke: rgba(255,255,255,.22);
  stroke-width: 1.6;
  stroke-dasharray: 10 10;
  animation: dashFlow 14s linear infinite;
  filter: drop-shadow(0 0 6px rgba(59,130,246,.35));
}

.energy-line-2{
  stroke: rgba(255,255,255,.16);
  stroke-width: 1.3;
  animation-duration: 18s;
}

.energy-line-3{
  stroke: rgba(255,255,255,.12);
  stroke-width: 1.1;
  animation-duration: 12s;
}

@keyframes dashFlow{
  from{ stroke-dashoffset: 0; }
  to  { stroke-dashoffset: -1200; }
}

/* ลูกพลังงาน (หัวจรวดพลังงาน) */
.pulse{
  fill: rgba(255,255,255,.95);
  filter:
    drop-shadow(0 0 10px rgba(96,165,250,.95))
    drop-shadow(0 0 24px rgba(37,99,235,.55));
  opacity: .95;
}

/* เพิ่ม “คลื่นกระเพื่อม” ให้ลูกพลังงาน */
.pulse-1, .pulse-2, .pulse-3{
  animation: pulseGlow 1.1s ease-in-out infinite alternate;
}

@keyframes pulseGlow{
  from{ transform: scale(1); opacity: .85; }
  to  { transform: scale(1.35); opacity: 1; }
}

/* ลดการเคลื่อนไหวสำหรับคนที่เปิด reduce motion */
@media (prefers-reduced-motion: reduce){
  .energy-line{ animation: none; }
  .pulse{ animation: none; }
}



.energy-bg::after{
  content:"";
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(59,130,246,.25) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.10) 0%, transparent 60%);
  animation: glowMove 10s ease-in-out infinite alternate;
}

@keyframes glowMove{
  from{ transform: translate3d(0,0,0) scale(1); }
  to  { transform: translate3d(-2%,2%,0) scale(1.05); }
}
.energy-line{
  fill:none;
  stroke:rgba(255,255,255,.15);
  stroke-width:1.4;
  stroke-dasharray:8 8;
  animation: dashFlow 40s linear infinite;
}

.node{
  fill:#60a5fa;
  filter: drop-shadow(0 0 8px #3b82f6);
  opacity:.8;
}

.pulse{
  fill: url(#blueGlow);
  filter:
    drop-shadow(0 0 8px #3b82f6)
    drop-shadow(0 0 18px #2563eb);
}
.mm-team.bg-theme2{
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% 10%, rgba(59,130,246,.20), transparent 55%),
              radial-gradient(900px 400px at 85% 90%, rgba(34,211,238,.14), transparent 55%),
              linear-gradient(180deg, #041a33 0%, #021427 100%);
  color: #eaf2ff;
}

.mm-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .75rem;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  font-weight:600;
  letter-spacing:.2px;
  color: rgba(234,242,255,.9);
}
.mm-title{
  margin-top:.75rem;
  font-weight:800;
  letter-spacing:.2px;
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  color:#ffffff;   /* 👈 เพิ่มบรรทัดนี้ */
}
.mm-subtitle{
  margin-top:.5rem;
  color: rgba(234,242,255,.75);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Card */
.mm-card{
  height:100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}
.mm-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(59,130,246,.22), transparent 60%),
              radial-gradient(500px 200px at 90% 20%, rgba(34,211,238,.16), transparent 55%);
  opacity: .75;
  pointer-events:none;
}
.mm-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 32%);
  pointer-events:none;
}

.mm-card:hover{
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 22px 60px rgba(0,0,0,.40);
}

/* Top */
.mm-card-top{
  padding: 1.35rem 1.35rem .5rem;
}

.mm-avatar-wrap{
  width: 180px;
  height: 180px;
  margin: 0 auto;
  padding: 10px;              /* 👈 เพิ่มช่องว่าง */
  border-radius: 1.5rem;
  position: relative;
}
.mm-avatar{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center 20%;  /* 👈 ดันภาพลง */
}
.mm-card:hover .mm-avatar{ transform: scale(1.08); }

/* Ring + dot */
.mm-ring{
  position:absolute;
  inset:-10px;
  border-radius: 1.6rem;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.18);
  pointer-events:none;
}
.mm-dot{
  position:absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  right: 12px;
  bottom: 12px;
  background: #3b82f6;
  box-shadow: 0 0 0 6px rgba(59,130,246,.18), 0 0 22px rgba(59,130,246,.55);
  pointer-events:none;
}

/* Body */
.mm-card-body{
  padding: .35rem 1.35rem 1.35rem;
  position: relative;
  z-index: 1;
}
.mm-name{
  font-weight: 800;
  font-size: 1.05rem;
  margin: .15rem 0 .25rem;
  color: #9ddcff;
}
.mm-role{
  margin: 0 0 .8rem;
  color: rgba(234,242,255,.80);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
}
.mm-divider{
  height: 1px;
  background: linear-gradient(90deg, rgba(59,130,246,.0), rgba(59,130,246,.55), rgba(34,211,238,.0));
  margin: .9rem 0 .95rem;
}
.mm-bio{
  margin:0;
  color: rgba(234,242,255,.72);
  line-height: 1.7;
  font-size: .95rem;

  /* จำกัดความยาวให้ดูโมเดิร์น */
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reveal effect */
.mm-reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--mm-delay, 0s);
}
.mm-reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

/* Decorative blobs */
.mm-blob{
  position:absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .35;
  pointer-events:none;
}
.mm-blob-1{
  left:-180px; top:-160px;
  background: radial-gradient(circle at 35% 35%, rgba(59,130,246,.9), transparent 60%);
  animation: mmFloat 7s ease-in-out infinite;
}
.mm-blob-2{
  right:-200px; bottom:-220px;
  background: radial-gradient(circle at 45% 45%, rgba(34,211,238,.85), transparent 62%);
  animation: mmFloat 9s ease-in-out infinite reverse;
}

@keyframes mmFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(18px, -14px, 0); }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .mm-card, .mm-avatar, .mm-reveal, .mm-blob{ transition:none !important; animation:none !important; }
}
 /* Match the image: single blue bar */
  .mm-footer-bar{
    background:#0b4ea2; /* close to the image */
    padding:16px 0;
  }
  .mm-footer-left, .mm-footer-right, .mm-company, .mm-item, .mm-link{
    color:#fff;
  }
  .mm-company{
    font-weight:700;
    letter-spacing:.2px;
  }
  .mm-footer-right{
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .mm-item{
    display:flex;
    align-items:center;
    gap:8px;
    line-height:1.35;
    font-size:14px;
  }
  .mm-ic{
    display:inline-flex;
    width:22px;
    height:22px;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    opacity:.95;
    flex:0 0 auto;
  }
  .mm-link{
    text-decoration:none;
    border-bottom:1px solid rgba(255,255,255,.35);
  }
  .mm-link:hover{
    border-bottom-color:rgba(255,255,255,.9);
  }
  @media (min-width:992px){
    .mm-footer-right{ align-items:flex-start; }
  }
