/* ═══════════════════════════════════════════
   NCOS — ระบบจัดการฌาปนกิจสงเคราะห์
   ═══════════════════════════════════════════ */

:root {
  --ncos-blue: #5ba8f5;
  --ncos-blue-light: #8ec8ff;
  --ncos-blue-dark: #3b8de0;
  --ncos-sky: #f4f9ff;
  --ncos-navy: #2c5f8a;
}

body { font-family: 'Sarabun', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Sarabun', sans-serif; }

/* ─── Hero ─── */
.ncos-hero {
  min-height: auto;
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #b8d9f2 0%, #daedf9 40%, #f2f9ff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ncos-hero::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(173,216,255,0.2) 0%, transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
}
.ncos-hero .hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #1a3a5c;
  line-height: 1.3;
}
.ncos-hero .hero-text h1 span { color: var(--ncos-blue); }
.ncos-hero .hero-text .lead {
  color: #3d5a7a;
  font-size: 1.15rem;
  margin-top: 1rem;
  max-width: 520px;
}
.ncos-hero .hero-img img {
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 110%;
  max-width: 110%;
}
.btn-ncos {
  display: inline-block;
  background: linear-gradient(135deg, var(--ncos-blue-light), var(--ncos-blue));
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s;
  margin-top: 1.5rem;
}
.btn-ncos:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(91,168,245,0.35);
  color: #fff;
}
.btn-ncos-outline {
  display: inline-block;
  background: transparent;
  color: var(--ncos-navy);
  padding: 13px 34px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ncos-blue);
  transition: all .3s;
  margin-top: 1.5rem;
}
.btn-ncos-outline:hover {
  background: var(--ncos-blue);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(91,168,245,0.25);
}

/* ─── Pain Points ─── */
.ncos-pain {
  padding: 50px 0;
  background: #ffffff;
}
.ncos-pain .pain-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  height: 100%;
  transition: all .3s;
  border: none;
}
.ncos-pain .pain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.ncos-pain .pain-card .icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.ncos-pain .pain-card h5 { font-weight: 700; color: #1a1a2e; margin-bottom: 0.6rem; }
.ncos-pain .pain-card p { color: #555; font-size: 0.93rem; margin: 0; }

/* Pain card color variants */
.pain-row-danger .pain-card { background: linear-gradient(160deg, #fef2f2 0%, #fecaca 100%); border: 1px solid #fca5a5; }
.pain-row-danger .pain-card .icon { background: #dc2626; color: #fff; }
.pain-row-warning .pain-card { background: linear-gradient(160deg, #fffbeb 0%, #fde68a 100%); border: 1px solid #fbbf24; }
.pain-row-warning .pain-card .icon { background: #d97706; color: #fff; }

/* ─── Solution / Features ─── */
.ncos-solution {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.ncos-solution .sol-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.ncos-solution .sol-item .sol-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ncos-blue-light), var(--ncos-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.ncos-solution .sol-item h5 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: #1a1a2e; }
.ncos-solution .sol-item p { margin: 0; color: #555; font-size: 0.92rem; }

/* ─── Dashboard Showcase ─── */
.ncos-showcase {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  text-align: center;
}
.ncos-showcase .carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative;
}
.ncos-showcase .carousel-inner {
  aspect-ratio: 21/9;
}
.ncos-showcase .carousel-item {
  height: 100%;
}
.ncos-showcase .showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.ncos-showcase .carousel-control-prev,
.ncos-showcase .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  opacity: 0.8;
  margin: 0 12px;
  bottom: auto;
}
.ncos-showcase .carousel-control-prev:hover,
.ncos-showcase .carousel-control-next:hover {
  opacity: 1;
  background: rgba(0,0,0,0.6);
}
.ncos-showcase .carousel-indicators {
  bottom: 12px;
}
.ncos-showcase .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
}
.ncos-showcase .carousel-indicators button.active {
  background: #fff;
}

/* ─── Highlights / ข้อดี ─── */
.ncos-highlights {
  padding: 90px 0;
  background: #fff;
}
.ncos-highlights .hl-card {
  padding: 36px 28px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f0f7ff 0%, #fff 100%);
  border: 1px solid #e3f2fd;
  height: 100%;
  transition: all .3s;
}
.ncos-highlights .hl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(21,101,192,0.1);
  border-color: var(--ncos-blue-light);
}
.ncos-highlights .hl-card .hl-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ncos-blue-light), var(--ncos-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.ncos-highlights .hl-card .hl-icon i { font-size: 1.6rem; color: #fff; }
.ncos-highlights .hl-card h5 { font-weight: 700; color: #1a1a2e; margin-bottom: 0.6rem; }
.ncos-highlights .hl-card p { color: #555; font-size: 0.93rem; margin-bottom: 0; }
.ncos-highlights .hl-card .hl-img-placeholder {
  width: 100%;
  height: 160px;
  background: #e3f2fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.2rem;
  color: #90caf9;
  font-size: 0.85rem;
  border: 2px dashed #90caf9;
}

/* ─── Why Us ─── */
.ncos-why {
  padding: 90px 0;
  background: #ffffff;
}
.ncos-why .why-card {
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e3f2fd;
  height: 100%;
  text-align: center;
  transition: all .3s;
}
.ncos-why .why-card:hover {
  border-color: var(--ncos-blue-light);
  box-shadow: 0 10px 30px rgba(21,101,192,0.08);
}
.ncos-why .why-card .num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ncos-blue);
  line-height: 1;
}
.ncos-why .why-card h5 { font-weight: 700; margin-top: 0.8rem; color: #1a1a2e; }
.ncos-why .why-card p { color: #555; font-size: 0.92rem; margin: 0; }

/* ─── CTA ─── */
.ncos-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #2c6fad 100%);
  text-align: center;
}
.ncos-cta h2 { color: #fff; font-weight: 700; font-size: 2rem; }
.ncos-cta .sub-text { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 1rem auto 0; }
.ncos-cta .cta-note { color: rgba(255,255,255,0.55); font-size: 0.85rem; margin-top: 1.2rem; }
.ncos-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--ncos-navy);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.ncos-cta .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--ncos-blue-dark);
}
.ncos-cta .btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all .3s;
}
.ncos-cta .btn-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

/* ─── Section Title ─── */
.sec-title { text-align: center; margin-bottom: 3rem; }
.sec-title h2 { font-size: 2rem; font-weight: 700; color: #1a1a2e; }
.sec-title h2 span { color: var(--ncos-blue); }
.sec-title p { color: #666; max-width: 550px; margin: 0.5rem auto 0; }

/* ─── Comparison ─── */
.ncos-compare {
  padding: 90px 0;
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
}
.compare-card {
  border-radius: 16px;
  overflow: hidden;
}
.compare-header {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.compare-old { border: 2px solid #fca5a5; background: #fff5f5; }
.compare-old .compare-header { background: #fee2e2; color: #b91c1c; }
.compare-new { border: 2px solid #86efac; background: #f0fdf4; }
.compare-new .compare-header { background: #dcfce7; color: #166534; }
.compare-list {
  list-style: none;
  padding: 20px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: #333;
  line-height: 1.5;
}
.compare-list li i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.compare-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ncos-blue);
}
.compare-arrow i { font-size: 2.5rem; }
.compare-arrow span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  text-align: center;
}
.compare-banner {
  margin-top: 2.5rem;
  padding: 18px 28px;
  background: linear-gradient(135deg, var(--ncos-blue-light), var(--ncos-blue));
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-size: 1rem;
}
.compare-banner strong { font-weight: 700; }

.compare-subtitle {
  color: #b91c1c;
  font-weight: 600;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.5rem auto 0;
  line-height: 1.7;
}
.sec-title h2 .text-danger {
  color: #dc2626;
}
