/* ============================================================
   PLA — Pattani Learning Academy
   Design System v3.0  |  Modern Redesign
   ============================================================ */

/* ── Google Font ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:        #4A7C59;
  --primary-dark:   #2D5A27;
  --primary-mid:    #5A8F6A;
  --primary-soft:   #E8F5EC;
  --primary-ghost:  color-mix(in srgb, var(--primary) 7%, transparent);
  --accent:         #E9B44C;
  --accent-light:   #F4C430;
  --accent-soft:    #FEF6DC;
  --footer-bg:      #1a3320;
  --footer-mid:     #2D5A27;
  --text:           #18202B;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;
  --border:         #E8EDF2;
  --border-soft:    #F1F5F9;
  --surface:        #fff;
  --bg:             #F6F8FA;
  --bg-dark:        #0F1923;
  --radius-xs:      6px;
  --radius-sm:      10px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --shadow-xs:      0 1px 4px rgba(0,0,0,.05);
  --shadow-sm:      0 2px 10px rgba(0,0,0,.07);
  --shadow-md:      0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:      0 20px 48px rgba(0,0,0,.14);
  --shadow-primary: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
  --transition:     .28s cubic-bezier(.4,0,.2,1);
  --transition-slow:.5s cubic-bezier(.4,0,.2,1);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  font-family: 'Prompt', sans-serif !important;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,span,div,td,th,li {
  font-family: 'Prompt', sans-serif !important;
}
h1 { font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h3 { font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-weight: 600; line-height: 1.4; }
h5 { font-weight: 600; line-height: 1.45; }
h6 { font-weight: 600; line-height: 1.5; }
p  { line-height: 1.75; margin-bottom: 1rem; }
a  { transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ── Utilities ───────────────────────────────────────────── */
.py-6  { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
.py-7  { padding-top: 6rem   !important; padding-bottom: 6rem   !important; }
.mt-6  { margin-top: 4.5rem  !important; }
.fw-700{ font-weight: 700    !important; }
.fw-800{ font-weight: 800    !important; }
.text-primary-pla { color: var(--primary) !important; }
.bg-surface { background: var(--surface) !important; }

/* ── Announcement Bar ────────────────────────────────────── */
.announcement-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.88);
  font-size: .8rem;
  font-weight: 500;
  padding: 8px 16px;
  text-align: center;
  letter-spacing: .3px;
  position: relative;
  z-index: 1060;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.announcement-bar .dot-sep { opacity: .4; margin: 0 8px; }

/* ── Navbar ──────────────────────────────────────────────── */
.custom-navbar {
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  z-index: 1040;
  transition: box-shadow var(--transition), background var(--transition);
}
.custom-navbar.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,.09) !important;
  background: rgba(255,255,255,.99) !important;
}
.custom-navbar .container-fluid { padding: 0 1.5rem; }
.custom-navbar .navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  letter-spacing: .1px;
  padding: .75rem 0;
  gap: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
}
/* Logo image — preserve PNG transparency on navbar (white bg) */
.site-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  /* No background needed — navbar is white so transparent PNG looks fine */
}

/* Footer logo — wrap in a white pill so transparent PNG is always legible */
.site-logo-footer {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

/* Logo wrapper pill used on dark/coloured backgrounds */
.logo-bg-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 4px;
  line-height: 0;
  backdrop-filter: blur(4px);
}
.brand-text-wrap  { line-height: 1.25; }
.brand-title      { font-size: .92rem; font-weight: 700; color: var(--text); }
.brand-sub        { font-size: .7rem; color: var(--text-muted); font-weight: 400; }

/* Nav links */
.custom-navbar .navbar-nav { gap: 2px; }
.custom-navbar .nav-link {
  color: #4A5568 !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .6rem .85rem !important;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.custom-navbar .nav-link:hover {
  color: var(--primary) !important;
  background: var(--primary-ghost);
}
.custom-navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft);
  font-weight: 600;
}
.custom-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.navbar-search-btn {
  background: var(--primary-soft);
  border: none;
  color: var(--primary);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.navbar-search-btn:hover { background: var(--primary); color: #fff; }
.navbar-toggler { border: none; padding: .3rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* Mobile nav */
@media (max-width: 991px) {
  .custom-navbar .container-fluid { padding: 0 1rem; }
  #navMain { border-top: 1px solid var(--border); padding: .75rem 0; }
  .custom-navbar .nav-link { padding: .55rem 1rem !important; }
}
@media (max-width: 576px) {
  .custom-navbar .brand-text-wrap { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}
/* ── Hero — background image via inline style, overlay via ::before ── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Fallback solid colour when no image is set */
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}
/* Semi-transparent overlay — ใช้สีธีมเว็บทับรูปพื้นหลัง */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--primary-dark) 82%, transparent) 0%,
    color-mix(in srgb, var(--primary)      60%, transparent) 55%,
    color-mix(in srgb, var(--primary-mid)  30%, transparent) 100%
  );
  z-index: 0;
}
/* Push all child elements above the overlay */
.hero-section > * { position: relative; z-index: 1; }
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  animation: riseUp .7s ease both;
}
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: .75rem;
  animation: riseUp .8s .1s ease both;
}
.hero-title .highlight { color: var(--accent-light); }
.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  opacity: .88;
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: riseUp .8s .2s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  animation: riseUp .8s .3s ease both;
}
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  animation: riseUp .8s .4s ease both;
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-item .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.hero-stat-item .stat-lbl {
  font-size: .75rem;
  opacity: .7;
  font-weight: 400;
}
.hero-stat-sep {
  width: 1px;
  background: rgba(255,255,255,.2);
  align-self: stretch;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: .5;
  animation: bounceY 2.4s ease infinite;
  text-decoration: none;
}
.hero-scroll-hint span { font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.hero-scroll-hint i { color: #fff; font-size: 1rem; }
@keyframes bounceY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
@keyframes riseUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero responsive */
@media (max-width: 767px) {
  .hero-section { min-height: 80vh; }
  .hero-content { padding: 5rem 0 4rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .hero-stats-row { gap: 1rem; }
  .hero-stat-item .stat-num { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .hero-scroll-hint { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-pla {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: 'Prompt', sans-serif !important;
  font-weight: 600;
  border-radius: 999px;
  padding: .72rem 1.8rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-size: .925rem;
  white-space: nowrap;
  letter-spacing: .1px;
}
.btn-pla:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.btn-pla-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-pla-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 38%, transparent);
  transform: translateY(-2px);
}
.btn-pla-primary:active { transform: translateY(0); }

.btn-pla-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.14);
}
.btn-pla-white:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transform: translateY(-2px);
}

.btn-pla-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-pla-ghost:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.btn-pla-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-pla-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: color-mix(in srgb, var(--accent) 25%, black);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-pla-accent {
  background: var(--accent);
  color: color-mix(in srgb, var(--accent) 25%, black);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-pla-accent:hover {
  background: var(--accent-light);
  color: color-mix(in srgb, var(--accent) 25%, black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.btn-pla-sm { padding: .5rem 1.25rem; font-size: .85rem; border-radius: 999px; }
.btn-pla-xs { padding: .35rem .9rem; font-size: .78rem; border-radius: 999px; }

.btn-pla:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Bootstrap compat overrides */
.btn-success, .btn-outline-success {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-outline-success {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-color: #fff;
}
.btn-success:hover, .btn-outline-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 25%, transparent);
}
.text-success  { color: var(--primary) !important; }
.bg-success    { background-color: var(--primary) !important; }
.badge.bg-success { background-color: var(--primary) !important; }
.border-success { border-color: var(--primary) !important; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ── Section Headers ─────────────────────────────────────── */
.section-header {
  margin-bottom: 2.5rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.section-header h2, .section-header h3 {
  color: var(--text);
  margin-bottom: .4rem;
}
.section-header p { color: var(--text-muted); margin: 0; }
.section-header.center { text-align: center; }
.section-label i { color: var(--accent); }
.section-header.white .section-label { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.section-header.white h2, .section-header.white h3 { color: #fff; }
.section-header.white p { color: rgba(255,255,255,.75); }

/* Old section-bar compatibility (used sparingly) */
.section-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 20%, transparent);
}
.section-bar h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
.section-bar a  { color: rgba(255,255,255,.85); font-weight: 600; text-decoration: none; font-size: .88rem; display: flex; align-items: center; gap: 4px; transition: color var(--transition); }
.section-bar a:hover { color: #fff; }

/* ── Stat Bar ────────────────────────────────────────────── */
.stats-belt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-belt-inner {
  display: flex;
  align-items: stretch;
}
.stat-belt-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  transition: background var(--transition);
}
.stat-belt-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-belt-item:hover { background: var(--primary-ghost); }
.stat-belt-item .s-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .75rem;
  transition: background var(--transition), color var(--transition);
}
.stat-belt-item:hover .s-icon { background: var(--primary); color: #fff; }
.stat-belt-item .s-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-belt-item .s-lbl {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Old stat-box compat */
.stat-bar { position: relative; z-index: 3; }
.stat-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden; position: relative;
}
.stat-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-primary); }
.stat-box .stat-icon {
  font-size: 1.5rem; margin-bottom: .4rem;
  background: var(--primary-soft); width: 50px; height: 50px;
  border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; margin: .4rem 0 .2rem; }
.stat-box .label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ── Cards ───────────────────────────────────────────────── */
/* Modern card */
.card-modern {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-modern .card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--primary-soft);
  position: relative;
  flex-shrink: 0;
}
.card-modern .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card-modern:hover .card-thumb img { transform: scale(1.06); }
.card-modern .card-thumb .card-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
}
.card-modern .card-body-wrap {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-modern .card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .55rem;
}
.card-modern .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-modern .card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.card-modern .card-title a:hover { color: var(--primary); }
.card-modern .card-excerpt {
  font-size: .855rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-modern .card-footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card-modern .read-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.card-modern .read-more:hover { gap: 8px; }
.card-modern .read-more i { font-size: .75rem; color: var(--accent); }

/* NF-Card (legacy compat) */
.nf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  height: 100%;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.nf-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.nf-card .row.g-0 { display: flex; align-items: stretch; }
.nf-card .row.g-0 > div { display: flex; flex-direction: column; }
.nf-card .row.g-0 .nf-media { flex: 0 0 auto; }
.nf-card .row.g-0 .nf-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.nf-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--primary-soft);
  flex-shrink: 0;
}
.nf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.nf-card:hover .nf-media img { transform: scale(1.06); }
.nf-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.nf-body h5, .nf-body h6 { font-weight: 700; color: var(--text); margin-bottom: .3rem; line-height: 1.35; }
.nf-body h5 a, .nf-body h6 a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.nf-body h5 a:hover, .nf-body h6 a:hover { color: var(--primary); }

/* Card-pla variant */
.card-pla {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.card-pla::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
  border-radius: 3px 0 0 3px;
}
.card-pla:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-pla .card-body { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
.card-pla .card-title { font-weight: 700; color: var(--text); margin-bottom: .4rem; }

/* Featured card (home) */
.featured-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.featured-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.featured-card:hover img { transform: scale(1.06); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.featured-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.2rem;
  color: #fff;
}
.featured-card-body h5, .featured-card-body h6 { color: #fff; margin-bottom: .2rem; font-size: .95rem; }
.featured-card-body p { font-size: .78rem; opacity: .8; margin: 0; }

/* ── Badges ──────────────────────────────────────────────── */
.badge-pla {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .73rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-accent {
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 35%, black);
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .73rem;
}
.badge-dark {
  background: rgba(15,25,35,.08);
  color: var(--text);
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .73rem;
}

/* ── Search Bar ──────────────────────────────────────────── */
.search-wrap {
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent), var(--shadow-md);
}
.search-wrap .form-control {
  border: 0; padding: .9rem 1.25rem;
  box-shadow: none !important; font-size: .92rem; background: transparent;
}
.search-wrap .btn-search {
  border: 0;
  background: var(--accent);
  color: color-mix(in srgb, var(--accent) 25%, black);
  padding: 0 1.4rem;
  font-size: 1rem;
  border-radius: 0 999px 999px 0;
  transition: background var(--transition);
  cursor: pointer;
  min-width: 52px;
}
.search-wrap .btn-search:hover { background: var(--accent-light); }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, color-mix(in srgb, var(--primary) 40%, transparent), transparent),
    radial-gradient(ellipse 40% 60% at 10% 80%, color-mix(in srgb, var(--primary-mid) 35%, transparent), transparent);
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-weight: 800; margin: 0 0 .4rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: #fff; letter-spacing: -0.02em;
}
.page-header p { margin: 0; color: rgba(255,255,255,.8); font-size: 1rem; }
.page-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-size: .8rem;
}
.page-header .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; transition: color var(--transition); }
.page-header .breadcrumb-item a:hover { color: #fff; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,.9); font-weight: 500; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); content: "/"; padding: 0 .5rem; }

/* ── Detail Layouts ──────────────────────────────────────── */
.detail-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  background: var(--primary-soft);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.info-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: var(--shadow-sm); }
.info-card h6 {
  font-weight: 700; color: var(--primary); margin-bottom: 1.1rem;
  font-size: .85rem; text-transform: uppercase; letter-spacing: .7px;
  padding-bottom: .6rem; position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.info-card h6::before {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.info-row {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: .9rem; font-size: .9rem;
}
.info-row:last-child { margin-bottom: 0; }
.info-row i { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.info-row .info-label { font-weight: 600; font-size: .78rem; color: var(--text-muted); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: .4px; }

/* Sticky sidebar */
.sticky-sidebar { position: sticky; top: 6rem; }

/* ── Tab Navigation ─────────────────────────────────────── */
.nav-pills .nav-link {
  color: var(--text); border-radius: var(--radius-sm);
  padding: .55rem 1.1rem; font-weight: 500; font-size: .9rem;
  transition: all var(--transition); border: 1.5px solid transparent;
}
.nav-pills .nav-link.active { background: var(--primary); color: #fff; }
.nav-pills .nav-link:hover:not(.active) { background: var(--primary-soft); color: var(--primary); }
.tabs-pla { border-bottom: 2px solid var(--border); margin-bottom: 2rem; gap: .5rem; }
.tabs-pla .nav-link {
  border-radius: 0; border: none;
  color: var(--text-muted); padding: .65rem 1.2rem;
  font-weight: 500; font-size: .9rem; position: relative;
  background: none; transition: color var(--transition);
}
.tabs-pla .nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--primary); border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform var(--transition);
}
.tabs-pla .nav-link.active,
.tabs-pla .nav-link:hover { color: var(--primary); }
.tabs-pla .nav-link.active::after,
.tabs-pla .nav-link:hover::after { transform: scaleX(1); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4.5rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-state-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: var(--primary-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary); margin-bottom: 1.25rem;
}
.empty-state h5 { color: var(--text); font-weight: 700; margin-bottom: .5rem; }
.empty-state p  { color: var(--text-muted); max-width: 360px; margin: 0 auto .5rem; font-size: .9rem; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -50%; left: 5%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.cta-section h2, .cta-section h3 { color: #fff; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,.82); position: relative; z-index: 1; }
.cta-section .cta-actions { position: relative; z-index: 1; }

/* ── Partner Logos ─────────────────────────────────────── */
.partner-strip {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
.partner-strip:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ── Toast / Alerts ──────────────────────────────────────── */
.toast-pla {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  min-width: 300px; background: var(--surface);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  display: flex; align-items: flex-start; gap: 12px;
  animation: slideInRight .4s ease both;
}
.toast-pla.toast-success { border-left-color: #22c55e; }
.toast-pla.toast-error   { border-left-color: #ef4444; }
.toast-pla-icon { font-size: 1.35rem; flex-shrink: 0; }
.toast-pla.toast-success .toast-pla-icon { color: #22c55e; }
.toast-pla.toast-error   .toast-pla-icon { color: #ef4444; }
.toast-pla h6 { margin: 0 0 2px; font-weight: 700; font-size: .9rem; }
.toast-pla p  { margin: 0; font-size: .82rem; color: var(--text-muted); }
.toast-pla .btn-close { margin-left: auto; flex-shrink: 0; }
@keyframes slideInRight  { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { to   { opacity: 0; transform: translateX(32px); } }
.toast-pla.hiding { animation: slideOutRight .35s ease both; }

/* ── Scroll-to-top ───────────────────────────────────────── */
#scrollTop {
  position: fixed; bottom: 28px; left: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}
#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px); background: var(--primary-dark); }

/* ── Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.form-label { font-weight: 500; font-size: .88rem; color: var(--text-muted); margin-bottom: 5px; }

/* ── Fade-in Scroll ──────────────────────────────────────── */
.fade-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.animate {
  opacity: 0; transform: translateY(28px);
}
.fade-in.animate.visible {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.82);
  padding: 4rem 0 0;
  margin-top: 5rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-mid), var(--accent), var(--primary-mid));
}
.footer-brand-name { font-size: 1rem; font-weight: 700; color: #fff; }
.footer-tagline    { font-size: .82rem; opacity: .65; line-height: 1.65; margin-top: .5rem; }
.footer-heading {
  color: #fff; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 1.1rem; padding-bottom: .6rem; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-heading::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 28px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.footer-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.65); text-decoration: none;
  font-size: .88rem; padding: .3rem 0;
  transition: color var(--transition), gap var(--transition);
}
.footer-link:hover { color: #fff; gap: 10px; }
.footer-link i { font-size: .7rem; opacity: .6; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.72);
  padding: .35rem 0; line-height: 1.55;
}
.footer-contact-item i { color: var(--accent); font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 0; }
.footer-bottom {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .75rem;
  font-size: .78rem; opacity: .6;
}
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; opacity: 1; }

/* ── Responsive global ───────────────────────────────────── */
@media (max-width: 991px) {
  .stats-belt-inner { flex-wrap: wrap; }
  .stat-belt-item { flex: 0 0 50%; min-width: 0; }
  .stat-belt-item:nth-child(2)::after { display: none; }
}
@media (max-width: 767px) {
  .page-header { padding: 2.5rem 0 1.75rem; }
  .page-header h1 { font-size: 1.6rem; }
  .cta-section { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .footer { margin-top: 3.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toast-pla { right: 12px; left: 12px; min-width: unset; bottom: 16px; }
}
@media (max-width: 576px) {
  .nf-card:hover { transform: none; }
  .card-modern:hover { transform: none; }
  .stat-belt-item { flex: 0 0 50%; }
  .stat-belt-item .s-num { font-size: 1.6rem; }
  .nf-card .row.g-0 { flex-direction: column; }
  .nf-card .row.g-0 > div { width: 100% !important; }
  .nf-card .row.g-0 .nf-media { aspect-ratio: 16/9 !important; min-height: 140px !important; }
  .search-wrap .form-control { padding: .75rem 1rem; font-size: .88rem; }
}

/* ── Alert overrides ─────────────────────────────────────── */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-info    { background: #eff6ff; color: #1d4ed8; }
.alert-warning { background: #fffbeb; color: #92400e; }
.alert-danger  { background: #fef2f2; color: #991b1b; }
.alert-success { background: #f0fdf4; color: #166534; }

/* ── Table ───────────────────────────────────────────────── */
.table th { font-weight: 600; font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }

/* ─────────────────────────────────────────────────────────
   ADMIN — untouched block (keep below all public styles)
   ───────────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; min-height: 100vh;
  background: linear-gradient(175deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(26,35,71,.18); overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 1.5rem 1.2rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar-brand .brand-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; letter-spacing: .5px; flex-shrink: 0;
}
.admin-sidebar-brand .brand-text h6 { margin: 0; font-weight: 700; font-size: .92rem; }
.admin-sidebar-brand .brand-text small { opacity: .65; font-size: .75rem; }
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section { padding: .5rem 1.2rem .25rem; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: 1.2px; text-transform: uppercase; margin-top: .5rem; }
.admin-nav .nav-link {
  color: rgba(255,255,255,.78) !important; border-radius: var(--radius-sm);
  margin: 2px 10px; padding: .62rem 1rem;
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500;
  transition: background var(--transition), color var(--transition); position: relative;
}
.admin-nav .nav-link i { font-size: 1rem; flex-shrink: 0; }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { background: rgba(255,255,255,.14); color: #fff !important; }
.admin-nav .nav-link.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--accent-light); border-radius: 2px;
}
.admin-sidebar-footer { padding: 1rem 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; opacity: .55; }
.admin-main { margin-left: 250px; flex: 1; min-height: 100vh; background: #f4f6fb; }
.admin-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm);
}
.admin-topbar h6 { margin: 0; font-weight: 700; color: var(--primary); font-size: .95rem; }
.admin-content { padding: 1.8rem; }
.admin-stat-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 1.4rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(46,62,121,.06);
  display: flex; align-items: center; gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.admin-stat-card::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-mid));
}
.admin-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.admin-stat-card .stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.admin-stat-card .stat-num { font-size: 1.9rem; font-weight: 800; color: var(--primary); line-height: 1; }
.admin-stat-card .stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 767px) {
  .admin-sidebar { width: 100%; position: relative; min-height: auto; }
  .admin-main { margin-left: 0; }
}
