/* =====================================================
   MOMCARE CHONBURI - Main Stylesheet (Soft Pink Theme)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
  --pink:         #f7b8cc;
  --pink-light:   #fde8f0;
  --pink-mid:     #f080a8;
  --pink-d:       #e0558a;
  --pink-deep:    #c83870;
  --blush:        #fad0df;
  --peach:        #fce4cc;
  --peach-light:  #fef3eb;
  --lavender:     #e8d4f0;
  --mint:         #c8ece8;
  --mint-light:   #edf8f6;
  --white:        #ffffff;
  --gray-light:   #fdf5f8;
  --text-dark:    #3d2535;
  --text-muted:   #9a7a88;
  --primary:      #e0558a;
  --primary-d:    #c83870;
  --shadow:       0 4px 20px rgba(224, 85, 138, .12);
  --shadow-card:  0 2px 12px rgba(224, 85, 138, .09);
  --radius:       16px;
  --radius-sm:    10px;
}

* { font-family: 'Kanit', sans-serif; box-sizing: border-box; }
html { height: 100%; }
body {
  background: #fef5f8;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .navbar-momcare { flex-shrink: 0; }
body > footer.footer-momcare { flex-shrink: 0; margin-top: auto; }

/* ── Navbar ── */
.navbar-momcare {
  background: linear-gradient(135deg, #e8608e 0%, #d84882 60%, #e06090 100%);
  box-shadow: 0 2px 12px rgba(224, 85, 138, .22);
}
.navbar-momcare .navbar-brand { color: #fff; font-weight: 700; font-size: 1.2rem; }
.navbar-momcare .nav-link     { color: rgba(255,255,255,.92) !important; font-weight: 500; }
.navbar-momcare .nav-link:hover { color: #fff !important; }
.navbar-momcare .navbar-toggler { border-color: rgba(255,255,255,.45); }

/* ── Admin Sidebar ── */
.admin-sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, #d04880 0%, #a82860 100%);
  width: 250px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  box-shadow: 3px 0 15px rgba(0,0,0,.12);
  transition: transform .3s;
}
.admin-sidebar .sidebar-brand {
  padding: 20px 15px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.88);
  padding: 10px 20px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 0;
  transition: background .2s, color .2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-content { margin-left: 250px; padding: 20px; min-height: 100vh; }
@media(max-width:768px){
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

/* ── KPI Cards ── */
/* ── KPI Cards ─────────────────────────────────────────────────────── */
.kpi-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 2px 16px rgba(180,80,120,.08);
  border-top: 4px solid var(--primary);
  border-left: 1px solid rgba(0,0,0,.05);
  border-right: 1px solid rgba(0,0,0,.05);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: transform .32s cubic-bezier(.34,1.56,.64,1),
              box-shadow .32s ease;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  position: relative;
  cursor: default;
  /* entry: hidden until JS triggers */
  opacity: 0;
  transform: translateY(28px);
}
.kpi-card.kpi-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1),
              box-shadow .32s ease;
}

/* decorative blobs */
.kpi-card::before {
  content: '';
  position: absolute;
  right: -16px; top: -16px;
  width: 88px; height: 88px;
  border-radius: 50%;
  opacity: .07;
  background: var(--kpi-accent, #e0558a);
  transition: transform .4s ease, opacity .4s ease;
}
.kpi-card::after {
  content: '';
  position: absolute;
  right: 28px; bottom: -28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  opacity: .05;
  background: var(--kpi-accent, #e0558a);
  transition: transform .4s ease;
}
.kpi-card:hover::before { transform: scale(1.3); opacity: .12; }
.kpi-card:hover::after  { transform: scale(1.5); opacity: .08; }

.kpi-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(180,80,120,.18);
}

/* shimmer sweep on hover */
.kpi-card .kpi-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .55s ease;
  pointer-events: none;
}
.kpi-card:hover .kpi-shimmer { transform: translateX(100%); }

/* ripple */
.kpi-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: kpiRipple .55s linear;
  background: rgba(255,255,255,.45);
  pointer-events: none;
}
@keyframes kpiRipple {
  to { transform: scale(4); opacity: 0; }
}

.kpi-icon {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  position: relative; z-index: 1;
}
.kpi-card:hover .kpi-icon {
  transform: scale(1.15) rotate(-8deg);
  animation: iconBounce .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes iconBounce {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.25) rotate(-10deg); }
  70%  { transform: scale(1.1) rotate(4deg); }
  100% { transform: scale(1.15) rotate(-8deg); }
}

.kpi-body { flex: 1; min-width: 0; position: relative; z-index: 1; }

.kpi-card .kpi-value {
  font-size: 2rem; font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  transition: letter-spacing .3s ease;
}
.kpi-card:hover .kpi-value { letter-spacing: .01em; }

.kpi-card .kpi-label {
  font-size: .84rem; color: var(--text-muted);
  margin-top: 5px; font-weight: 500;
  line-height: 1.38;
  white-space: normal;
}

/* progress bar at bottom */
.kpi-card .kpi-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  border-radius: 0 0 18px 18px;
  background: var(--kpi-accent, #e0558a);
  opacity: .35;
  transition: width .6s cubic-bezier(.25,.46,.45,.94);
}
.kpi-card:hover .kpi-bar { width: 100%; opacity: .6; }

/* colour variants */
.kpi-card.pink   { border-top-color: #e0558a; --kpi-accent: #e0558a; }
.kpi-card.peach  { border-top-color: #e8906a; --kpi-accent: #e8906a; }
.kpi-card.purple { border-top-color: #c878b0; --kpi-accent: #c878b0; }
.kpi-card.sky    { border-top-color: #60a8d0; --kpi-accent: #60a8d0; }
.kpi-card.mint   { border-top-color: #50b0a0; --kpi-accent: #50b0a0; }

.kpi-card.pink   .kpi-icon { background: #fde8f2; color: #e0558a; }
.kpi-card.peach  .kpi-icon { background: #fef0e8; color: #e8906a; }
.kpi-card.purple .kpi-icon { background: #f3e8f8; color: #c878b0; }
.kpi-card.sky    .kpi-icon { background: #e4f3fa; color: #60a8d0; }
.kpi-card.mint   .kpi-icon { background: #e4f5f2; color: #50b0a0; }

.kpi-card.pink   .kpi-value { color: #e0558a; }
.kpi-card.peach  .kpi-value { color: #e8906a; }
.kpi-card.purple .kpi-value { color: #c878b0; }
.kpi-card.sky    .kpi-value { color: #60a8d0; }
.kpi-card.mint   .kpi-value { color: #50b0a0; }

.kpi-card.pink   .kpi-bar { background: #e0558a; }
.kpi-card.peach  .kpi-bar { background: #e8906a; }
.kpi-card.purple .kpi-bar { background: #c878b0; }
.kpi-card.sky    .kpi-bar { background: #60a8d0; }
.kpi-card.mint   .kpi-bar { background: #50b0a0; }

/* Badge animations */
.badge-good   { background: #52a85a; animation: none; }
.badge-warn   { background: #c8882a; animation: badgePulse 2s ease-in-out infinite; }
.badge-danger { background: #c03050; animation: badgePulse 1.2s ease-in-out infinite; }
@keyframes badgePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .8; transform: scale(1.06); }
}

/* KPI counter animation */
/* entry controlled by JS IntersectionObserver (.kpi-visible) */

/* ── Chart Cards ── */
.chart-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 20px;
}
.chart-card .card-title {
  font-weight: 700;
  color: var(--primary-d);
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--pink-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-card .card-title i,
.chart-card .card-title .title-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.chart-card .card-title i.text-pink   { background: #fde8f2; }
.chart-card .card-title i.text-mint   { background: #e4f5f2; }
.chart-card .card-title i.text-sky    { background: #e4f3fa; }
.chart-card .card-title i.text-purple { background: #f3e8f8; }
.chart-card .card-title i.text-peach  { background: #fef0e8; }

/* ── Color helpers ── */
.text-pink   { color: #e0558a !important; }
.text-peach  { color: #e8906a !important; }
.text-purple { color: #c878b0 !important; }
.text-sky    { color: #60a8d0 !important; }
.text-mint   { color: #50b0a0 !important; }

/* ── Status badges ── */
.badge-good   { background: #7ab87a; }
.badge-warn   { background: #d4a060; }
.badge-danger { background: #c06070; }

/* ── Hero Banner ── */
.hero-banner {
  background: linear-gradient(135deg, #e8608e 0%, #d84882 60%, #d85888 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='50' cy='50' r='80' fill='rgba(255,255,255,.06)'/%3E%3Ccircle cx='150' cy='150' r='60' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E") center/cover;
}
.hero-banner h1 { font-weight: 700; font-size: 2.2rem; position: relative; }
.hero-banner p  { font-size: 1.1rem; opacity: .92; position: relative; }

/* ── Section Titles ── */
.section-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-d);
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--pink-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 5px; height: 24px;
  background: linear-gradient(180deg, var(--primary), var(--pink-mid));
  border-radius: 3px;
}

/* ── One Page Cards ── */
.onepage-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(180,80,120,.10);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.onepage-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 36px rgba(233,30,140,.22);
}
.onepage-img-wrap {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: #fce4ec;
}
.onepage-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.onepage-card:hover .onepage-img-wrap img { transform: scale(1.1); }
.onepage-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(233,30,140,.85) 0%, rgba(233,30,140,.25) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.onepage-card:hover .onepage-img-overlay { opacity: 1; }
.onepage-img-overlay-title {
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.onepage-img-overlay-btn {
  background: #fff;
  color: #e91e8c;
  border-radius: 30px;
  padding: 5px 18px;
  font-weight: 700;
  font-size: .82rem;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: block;
  text-align: center;
}
.onepage-img-overlay-btn:hover { background: #e91e8c; color: #fff; }
.onepage-pdf-wrap {
  position: relative;
  overflow: hidden;
  height: 190px;
  background: #fce4ec;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.onepage-card:hover .onepage-pdf-wrap { background: #f8bbd0; }
.onepage-card .card-body { padding: 14px; }
.onepage-card .card-title { font-weight: 600; font-size: .92rem; color: var(--primary-d); line-height: 1.35; }
.onepage-card .card-cat   { font-size: .75rem; color: var(--pink-d); font-weight: 600; }
.onepage-card .card-date  { font-size: .76rem; color: var(--text-muted); }

/* ── PR Cards ── */
.pr-card {
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(156,39,176,.10);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.pr-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 36px rgba(156,39,176,.22);
}
.pr-img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
  background: #f3e5f5;
}
.pr-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.pr-card:hover .pr-img-wrap img { transform: scale(1.1); }
.pr-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(156,39,176,.85) 0%, rgba(156,39,176,.25) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .35s ease;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.pr-card:hover .pr-img-overlay { opacity: 1; }
.pr-img-overlay-title {
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-img-overlay-btn {
  background: #fff;
  color: #9c27b0;
  border-radius: 30px;
  padding: 5px 18px;
  font-weight: 700;
  font-size: .82rem;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
  transition: background .2s, color .2s;
  display: block;
  text-align: center;
}
.pr-img-overlay-btn:hover { background: #9c27b0; color: #fff; }
/* PDF placeholder */
.pr-pdf-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
  background: #f3e5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.pr-card:hover .pr-pdf-wrap { background: #e1bee7; }

/* ── Tables ── */
.table-momcare thead th {
  background: linear-gradient(90deg, #e0558a, #d06098);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
}
.table-momcare tbody tr:hover { background: var(--pink-light); }
.table-momcare td { vertical-align: middle; font-size: 1rem; }

/* ── Forms ── */
.form-control:focus, .form-select:focus {
  border-color: var(--pink-mid);
  box-shadow: 0 0 0 .2rem rgba(200,100,130,.15);
}
.btn-primary-mom {
  background: linear-gradient(90deg, #e0558a, #d06098);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 24px;
  transition: opacity .2s, transform .15s;
}
.btn-primary-mom:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-outline-mom {
  border: 2px solid #e0558a;
  color: #e0558a;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 20px;
  background: transparent;
  transition: all .2s;
}
.btn-outline-mom:hover { background: #e0558a; color: #fff; }

/* ── Bootstrap button overrides ── */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-d);
  border-color: var(--primary-d);
}

/* ── Auth Cards ── */
.auth-card {
  max-width: 500px;
  margin: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 36px rgba(180,80,110,.14);
  padding: 40px;
}
.auth-logo { text-align: center; margin-bottom: 25px; }
.auth-logo img { width: 80px; }
.auth-logo h4 { font-weight: 700; color: var(--primary); margin-top: 10px; }

/* ── Upload Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--pink-mid);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  background: var(--pink-light);
}
.drop-zone:hover, .drop-zone.dragover { background: var(--lavender); }
.drop-zone i { font-size: 3rem; color: var(--primary); }

/* ── Ranking ── */
.rank-top    { background: linear-gradient(90deg, #fff8ec, #fff3d6); }
.rank-bottom { background: linear-gradient(90deg, var(--pink-light), var(--blush)); }

.rank-section-label {
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.rank-section-label.rank-good { background: #edf7ed; color: #3a7a3a; }
.rank-section-label.rank-bad  { background: #fdedf0; color: #c03050; }

.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 5px;
  font-size: .88rem;
}
.rank-row-top    { background: linear-gradient(90deg, #fffdf0, #fffae0); border-left: 3px solid #d4aa30; }
.rank-row-bottom { background: linear-gradient(90deg, #fff5f7, #ffeaee); border-left: 3px solid #e07080; }
.rank-medal { font-size: 1.2rem; line-height: 1; }
.rank-num   { font-weight: 700; font-size: .88rem; min-width: 26px; }
.rank-name  { flex: 1; color: var(--text-dark); }
.rank-val   { font-weight: 700; font-size: .9rem; text-align: right; white-space: nowrap; }
.rank-val small { font-weight: 400; font-size: .75rem; opacity: .8; }

/* ── Filter Bar ── */
.filter-bar {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  margin-bottom: 20px;
}

/* ── PDF Viewer ── */
.pdf-viewer { width: 100%; height: 600px; border: none; border-radius: var(--radius-sm); }

/* ── Footer ── */
.footer-momcare {
  background: linear-gradient(90deg, #a82860, #902050);
  color: rgba(255,255,255,.88);
  padding: 36px 0 24px;
  font-size: 1rem;
  width: 100%;
}
.footer-momcare h6 { font-size: 1.05rem; }
.footer-momcare p, .footer-momcare li, .footer-momcare a { font-size: 1rem; }
.footer-momcare a { color: rgba(255,255,255,.80); text-decoration: none; }
.footer-momcare a:hover { color: #fff; }
.footer-momcare .footer-copy {
  font-size: 1rem;
  color: rgba(255,255,255,.80);
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5eff2; }
::-webkit-scrollbar-thumb { background: var(--pink-mid); border-radius: 3px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .4s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── Scroll Buttons ── */
#scrollBtns {
  position: fixed;
  bottom: 28px;
  right: 22px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
#scrollBtns button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(224,85,138,.30);
  transition: transform .15s, opacity .2s;
}
#btnTop    { background: var(--primary); color: #fff; }
#btnBottom { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
#scrollBtns button:hover { transform: scale(1.12); }

/* ── DataTable font size ── */
.dataTables_wrapper,
.dataTables_wrapper th,
.dataTables_wrapper td,
.dataTables_wrapper input,
.dataTables_wrapper select,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { font-size: 1rem; }

/* ── DataTable pagination — momcare theme ── */
.dataTables_wrapper .pagination .page-link {
  color: #c2185b;
  background-color: #fce4ec;
  border-color: #f8bbd0;
  font-family: 'Kanit', sans-serif;
  transition: background .18s, color .18s;
}
.dataTables_wrapper .pagination .page-link:hover {
  color: #fff;
  background-color: #e91e8c;
  border-color: #c2185b;
}
.dataTables_wrapper .pagination .page-item.active .page-link {
  background-color: #e91e8c;
  border-color: #c2185b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(233,30,140,.30);
}
.dataTables_wrapper .pagination .page-item.disabled .page-link {
  color: #aaa;
  background-color: #f9f9f9;
  border-color: #eee;
}

/* ── fw helpers ── */
.fw-600 { font-weight: 600; }

/* ── Hero Canvas ── */
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
/* hero gradient shift */
.hero-banner {
  background: linear-gradient(135deg, #e0558a 0%, #e8608e 25%, #d84882 50%, #c83870 75%, #e0558a 100%);
  background-size: 300% 300%;
  animation: heroBgShift 10s ease infinite;
}
@keyframes heroBgShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* hero title glow */
@keyframes heroGlow {
  0%,100% { text-shadow: 0 2px 10px rgba(0,0,0,.12); }
  50%      { text-shadow: 0 2px 20px rgba(255,255,255,.35), 0 4px 30px rgba(0,0,0,.12); }
}
.hero-banner h1 { animation: heroGlow 5s ease-in-out infinite; }

/* ── Footer Enhancements ── */
.footer-momcare {
  background: linear-gradient(135deg, #c83870 0%, #a82860 35%, #d04880 70%, #c83870 100%);
  background-size: 300% 300%;
  animation: footerBgShift 12s ease infinite;
  position: relative; overflow: hidden;
}
@keyframes footerBgShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* footer wave top — animated */
.footer-wave {
  position: absolute; top: -1px; left: 0;
  width: 100%; line-height: 0; z-index: 0;
  overflow: hidden;
}
.footer-wave-track {
  display: flex;
  width: 200%;
}
.footer-wave-track.speed-1 { animation: waveSlide 9s linear infinite; }
.footer-wave-track.speed-2 { animation: waveSlide 14s linear infinite reverse; margin-top: -28px; opacity: .7; }
.footer-wave-track.speed-3 { animation: waveSlide 6s linear infinite; margin-top: -22px; opacity: .45; }
.footer-wave-track svg { display: block; flex-shrink: 0; width: 50%; }
@keyframes waveSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.footer-momcare .container { position: relative; z-index: 1; }
/* sparkle rise */
@keyframes sparkleRise {
  0%   { transform: translateY(0) scale(1); opacity: .9; }
  100% { transform: translateY(-180px) translateX(var(--sx,0px)) scale(0); opacity: 0; }
}
/* footer column reveal */
.footer-col {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.footer-col.visible {
  opacity: 1; transform: translateY(0);
}
/* footer link hover underline */
.footer-momcare a {
  display: inline-block;
  transition: color .2s, transform .2s;
}
.footer-momcare a:hover { color: #fff; transform: translateX(4px); }

/* ── Pagination momcare theme ── */
.pagination .page-link {
  color: var(--primary-d);
  border-color: #f8bbd0;
  background: #fff;
  font-family: 'Kanit', sans-serif;
  font-weight: 500;
  transition: background .18s, color .18s, transform .15s;
  min-width: 38px;
  text-align: center;
}
.pagination .page-link:hover {
  background: var(--pink-light);
  color: var(--primary-d);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pagination .page-item.active .page-link {
  background: var(--primary-d);
  border-color: var(--primary-d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200,56,112,.30);
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #f0d8e4;
  background: #fafafa;
}

/* ── Responsive ── */
@media(max-width:768px) {
  .footer-momcare { padding: 28px 0 20px; }
  .footer-momcare .col-md-4 { margin-bottom: 1.2rem; }
  .footer-momcare h6 { font-size: .95rem; }
  .footer-momcare p,
  .footer-momcare li,
  .footer-momcare a { font-size: .88rem; }
  .footer-copy { font-size: .8rem !important; }
}
@media(max-width:576px) {
  .hero-banner h1 { font-size: 1.5rem; }
  .kpi-card .kpi-value { font-size: 1.5rem; }
  .auth-card { padding: 25px; }
  .footer-momcare { padding: 22px 0 16px; }
  .footer-momcare .row { gap: .5rem; }
}
