/* Agronomy — overrides for Soilux to support Thai + KU brand */

:root {
  --ku-green: #006633;
  --ku-green-soft: #2e7d3e;
  --ku-cream: #f9faf6;
  --ku-cream-deep: #f1f4ec;
  --ku-ink: #0f1a14;
  --ku-muted: #6b7e72;
  --ku-line: rgba(15, 26, 20, 0.08);

  --font-sans: 'IBM Plex Sans Thai', 'Inter', 'Sarabun', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-display: 'IBM Plex Sans Thai', 'Inter', 'Sarabun', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Sans Thai', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Re-point Soilux's own token (custom.css) and Bootstrap's at the same stack
     so components we don't select explicitly still inherit the right font. */
  --default-font: var(--font-sans);
  --accent-font: var(--font-display);
  --bs-body-font-family: var(--font-sans);
  --bs-font-sans-serif: var(--font-sans);
  --bs-font-monospace: var(--font-mono);
}

html, body,
.section-title p,
p, a, li, span, button, input, select, optgroup, textarea, label,
table, th, td, blockquote, figcaption, small, strong, em {
  font-family: var(--font-sans) !important;
}

h1, h2, h3, h4, h5, h6,
.section-title h1,
.section-title h2,
.section-title h3 {
  font-family: var(--font-display) !important;
  letter-spacing: 0 !important;
}

code, pre, kbd, samp {
  font-family: var(--font-mono) !important;
}

/* The blanket rules above use !important and would otherwise clobber icon
   glyphs rendered on a <span>/<button>. Hand FontAwesome its family back. */
.fa, .fas, .far, .fal, .fat, .fad, .fab,
.fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands,
[class^='fa-'], [class*=' fa-'] {
  font-family: var(--fa-style-family, 'Font Awesome 7 Free') !important;
}

.btn-default.btn-highlighted {
  background-color: var(--ku-green) !important;
  border-color: var(--ku-green) !important;
  color: #ffffff !important;
}
.btn-default.btn-highlighted::before {
  filter: brightness(0) invert(1) !important;
}
.btn-default.btn-highlighted::after {
  background-color: #ffffff !important;
}
.btn-default.btn-highlighted:hover {
  background-color: var(--ku-green-soft) !important;
  border-color: var(--ku-green-soft) !important;
  color: var(--ku-green) !important;
}
.btn-default.btn-highlighted:hover::before {
  filter: none !important;
}

.btn-default.btn-border {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}
.btn-default.btn-border:hover {
  color: var(--ku-green) !important;
}

/* Light background sections — outline button needs dark text */
.page-blog .btn-default.btn-border,
.page-team .btn-default.btn-border,
.page-services .btn-default.btn-border,
.page-about .btn-default.btn-border,
.page-contact-us .btn-default.btn-border,
.our-blog .btn-default.btn-border,
.our-team .btn-default.btn-border,
.our-services .btn-default.btn-border {
  color: var(--ku-green) !important;
  border-color: var(--ku-green) !important;
}
.page-blog .btn-default.btn-border::before,
.page-team .btn-default.btn-border::before,
.page-services .btn-default.btn-border::before,
.our-blog .btn-default.btn-border::before,
.our-team .btn-default.btn-border::before,
.our-services .btn-default.btn-border::before {
  filter: none !important;
  background-image: url('../images/arrow-primary.svg') !important;
}

/* News card — make image area uniform */
.post-item-box .post-featured-image figure img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}

/* ===== Person card — บุคลากร (home leadership, /personnel, related list) =====
   Markup: resources/views/public/partials/person-card.blade.php */
.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 26, 20, .04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.person-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 51, .25);
  box-shadow: 0 20px 36px -20px rgba(15, 26, 20, .38);
}

/* The studio portraits are all 2:3, so the frame matches them — the photo
   fills the column edge to edge and nothing is cropped. Odd-sized photos
   (older staff records) are cropped from the bottom instead of letterboxed. */
.person-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f1f4ee;
}
.person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease;
}
.person-card:hover .person-card__media img { transform: scale(1.035); }

.person-card__body {
  flex: 1 1 auto;
  padding: 1rem 1.15rem .75rem;
  text-align: center;
  border-top: 2px solid var(--ku-green);
}
.person-card__name {
  margin: 0 0 .35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ku-ink);
  transition: color .25s ease;
}
.person-card__name a { color: inherit; text-decoration: none; }
/* One stretched hit area for the whole card; the mail link opts back out. */
.person-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.person-card:hover .person-card__name { color: var(--ku-green); }
.person-card__role {
  margin: 0;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ku-muted);
  min-height: 2.5em;
}
/* Research field — one line, the rest lives on the profile page. */
.person-card__tag {
  display: flex;
  justify-content: center;
  margin: .55rem 0 0;
}
.person-card__tag span {
  max-width: 100%;
  padding: .16rem .6rem;
  border-radius: 999px;
  background: rgba(0, 102, 51, .07);
  color: var(--ku-green);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .65rem 1.15rem .8rem;
  border-top: 1px solid var(--ku-line);
}
.person-card__mail {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-size: .76rem;
  color: var(--ku-muted);
  text-decoration: none;
  transition: color .25s ease;
}
.person-card__mail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-card__mail:hover { color: var(--ku-green); }
.person-card__go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 102, 51, .08);
  color: var(--ku-green);
  font-size: .68rem;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.person-card:hover .person-card__go {
  background: var(--ku-green);
  color: #fff;
  transform: translateX(2px);
}

/* Division sub-heading inside a category (หมวดวิชา) */
.team-division {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2.75rem 0 1.4rem;
}
.team-division:first-of-type { margin-top: .5rem; }
.person-grid + .team-division { margin-top: 3.25rem; }
.team-division__title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ku-green);
}
.team-division__title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 1.4em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ku-green), var(--ku-green-soft));
}
.team-division__count {
  flex: 0 0 auto;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(0, 102, 51, .08);
  color: var(--ku-green);
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.team-division__rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--ku-line), rgba(15, 26, 20, 0));
}

@media (max-width: 575.98px) {
  .team-division { flex-wrap: wrap; gap: .5rem; }
  .team-division__title { font-size: 1.02rem; }
  .person-card__body { padding: .8rem .7rem .6rem; }
  .person-card__name { font-size: .9rem; }
  .person-card__role { font-size: .76rem; min-height: 2.4em; }
  .person-card__tag span { font-size: .68rem; }
  .person-card__foot { padding: .55rem .7rem .7rem; }
  /* No room for the address at two cards per row — the icon still mails. */
  .person-card__mail span { display: none; }
  .person-card__mail { font-size: .9rem; }
}

/* Section spacing tweaks */
.page-blog,
.page-team,
.page-services,
.page-about,
.page-contact-us {
  padding: 80px 0;
}

/* ============================================================
   Stats — floating cards lifted into hero overlap
   ============================================================ */
.agronomy-stats {
  position: relative;
  padding: 0 0 80px;
  margin-top: -70px;
  z-index: 5;
}
.agronomy-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: #fff;
  padding: 1.75rem;
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 102, 51, 0.18), 0 8px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 102, 51, 0.06);
}
.agronomy-stats__card {
  position: relative;
  padding: 1.4rem 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f7faf5 0%, #ffffff 100%);
  border: 1px solid rgba(0, 102, 51, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.agronomy-stats__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ku-green), var(--ku-green-soft));
  border-radius: 4px 0 0 4px;
}
.agronomy-stats__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 102, 51, 0.16);
  border-color: rgba(0, 102, 51, 0.2);
}
.agronomy-stats__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ku-green), var(--ku-green-soft));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 14px rgba(0, 102, 51, 0.28);
}
.agronomy-stats__body {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.agronomy-stats__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  letter-spacing: -0.5px;
}
.agronomy-stats__label {
  font-size: .92rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: .35rem;
}

@media (max-width: 991px) {
  .agronomy-stats__grid { grid-template-columns: repeat(2, 1fr); padding: 1.25rem; gap: .85rem; }
  .agronomy-stats__number { font-size: 2rem; }
}
@media (max-width: 480px) {
  .agronomy-stats { margin-top: -40px; padding-bottom: 50px; }
  .agronomy-stats__grid { grid-template-columns: 1fr; }
  .agronomy-stats__card { padding: 1.1rem; }
}

/* Sidebar widget */
.sidebar-widget {
  background: #f7f7f3;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--ku-green);
  color: var(--ku-green);
}
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget ul li {
  padding: .5rem 0;
  border-bottom: 1px dashed #ddd;
}
.sidebar-widget ul li:last-child { border-bottom: 0; }
.sidebar-widget ul li a {
  color: #333;
  text-decoration: none;
  display: block;
  font-size: .95rem;
}
.sidebar-widget ul li a:hover { color: var(--ku-green); }

.sidebar-widget .recent-post {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px dashed #ddd;
}
.sidebar-widget .recent-post:last-child { border-bottom: 0; }
.sidebar-widget .recent-post img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sidebar-widget .recent-post .title {
  font-size: .9rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.sidebar-widget .recent-post .title:hover { color: var(--ku-green); }
.sidebar-widget .recent-post .date {
  font-size: .8rem;
  color: #888;
  margin-top: .25rem;
}

/* Category badge */
.category-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ku-green);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 20px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Article body */
.article-body { line-height: 1.85; font-size: 1.05rem; }
.article-body h2 { margin-top: 2rem; margin-bottom: 1rem; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-body p { margin-bottom: 1.1rem; }

/* Curriculum card */
.curriculum-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.curriculum-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.curriculum-card .image {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ku-green), var(--ku-green-soft));
}
.curriculum-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Each level gets its own gradient so a row of cards reads as a set, not a repeat. */
.curriculum-card .cover--bachelor { background: linear-gradient(140deg, #05723b 0%, #0f9450 55%, #56bb74 100%); }
.curriculum-card .cover--master   { background: linear-gradient(140deg, #076a4a 0%, #0f9a6d 55%, #55c39a 100%); }
.curriculum-card .cover--doctoral,
.curriculum-card .cover--doctorate { background: linear-gradient(140deg, #0a2f2c 0%, #13544f 50%, #1e7d74 100%); }

.cover__art {
  position: absolute;
  inset: 0;
  color: #fff;
}
/* Off-centre highlight keeps the flat fill from reading as a placeholder block. */
.cover__glow {
  position: absolute;
  top: -30%;
  right: -18%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,0) 68%);
}
.cover__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
}
/* A faint dot screen keeps the large flat gradient from banding on wide cards. */
.cover__grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .35;
  mix-blend-mode: soft-light;
}
/* Darkens the foot of the cover so the badge keeps contrast on the lighter gradients. */
.cover__art::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to bottom, rgba(4, 26, 18, 0) 0%, rgba(4, 26, 18, .34) 100%);
}
/* Soft light behind the motif so it reads as the subject of the banner rather
   than a watermark sitting on the gradient. */
.cover__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 232px;
  height: 232px;
  transform: translate(-50%, -58%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 45%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.cover__motif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124px;
  height: 124px;
  transform: translate(-50%, -58%);
  color: #ffffff;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.curriculum-card:hover .cover__motif { transform: translate(-50%, -62%) scale(1.06); }

.curriculum-card .image .level-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(9, 32, 21, .42);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
}
.curriculum-card .image .level-badge i { font-size: .82em; opacity: .95; }

@media (prefers-reduced-motion: reduce) {
  .cover__motif,
  .curriculum-card:hover .cover__motif { transition: none; transform: translate(-50%, -58%); }
}
.curriculum-card .body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.curriculum-card .body h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  color: #222;
}
.curriculum-card .body .degree {
  color: var(--ku-green);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .75rem;
}
.curriculum-card .body p {
  color: #666;
  font-size: .92rem;
  flex: 1;
}
/* .degree is a <p> too, so the rule above let it absorb the card's free space
   and pushed the excerpt down on whichever card had the shortest title. */
.curriculum-card .body .degree { flex: 0 0 auto; }
/* equal-height excerpts keep the three covers and buttons on one line */
.curriculum-card .body p:not(.degree) {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.curriculum-card .body .readmore-btn { margin-top: 1rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

/* (mobile fix moved into stats grid query above) */

/* ============================================================
   Floating header — sticky pill that appears on scroll
   ============================================================ */
header.main-header.agronomy-header,
.agronomy-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
}
.agronomy-header > * { pointer-events: auto; }

.agronomy-header__sticky,
.agronomy-header .agronomy-header__sticky.bg-section {
  background: transparent !important;
  transition: background .35s ease, box-shadow .35s ease, padding .3s ease,
              backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease,
              margin .35s ease, border-radius .35s ease, max-width .35s ease;
  padding: .55rem 0;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
}

/* Default (over dark hero) — transparent, white text */
.agronomy-header .navbar-brand.brand-with-text .brand-text strong { color: #fff; }
.agronomy-header .navbar-brand.brand-with-text .brand-text small { color: rgba(255,255,255,0.75); }
.agronomy-header .nav-link {
  color: #fff !important;
  transition: color .25s ease;
}
.agronomy-header .nav-link:hover { color: #fde68a !important; }

/* Submenu still gets light bg with dark text */
.agronomy-header .navbar-nav ul .nav-link { color: var(--ku-ink) !important; }
.agronomy-header .navbar-nav ul .nav-link:hover { color: var(--ku-green) !important; }

/* Scrolled state — full-width edge-to-edge bar */
.agronomy-header.is-scrolled .agronomy-header__sticky {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin: 0;
  border-radius: 0;
  padding: .45rem 0;
  max-width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.agronomy-header.is-scrolled .navbar-brand.brand-with-text .brand-text strong {
  color: var(--ku-green);
}
.agronomy-header.is-scrolled .navbar-brand.brand-with-text .brand-text small {
  color: var(--ku-muted);
}
.agronomy-header.is-scrolled .nav-link {
  color: var(--ku-ink) !important;
}
.agronomy-header.is-scrolled .nav-link:hover {
  color: var(--ku-green) !important;
}

/* Shrink brand logo a bit when scrolled */
.agronomy-header.is-scrolled .navbar-brand.brand-with-text .brand-logo {
  width: 40px; height: 40px;
  transition: width .3s ease, height .3s ease;
}
.agronomy-header .navbar-brand.brand-with-text .brand-logo {
  transition: width .3s ease, height .3s ease;
}

/* Spacing for body content (push down so hero isn't covered by header) */
body { padding-top: 0; }

/* Pages WITHOUT a dark hero — header needs default light look even before scroll */
body:not(.has-dark-hero) .agronomy-header__sticky {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
body:not(.has-dark-hero) .agronomy-header .navbar-brand.brand-with-text .brand-text strong { color: var(--ku-green); }
body:not(.has-dark-hero) .agronomy-header .navbar-brand.brand-with-text .brand-text small { color: var(--ku-muted); }
body:not(.has-dark-hero) .agronomy-header .nav-link { color: var(--ku-ink) !important; }
body:not(.has-dark-hero) .agronomy-header .nav-link:hover { color: var(--ku-green) !important; }
body:not(.has-dark-hero) { padding-top: 80px; }

/* Mobile: keep simple sticky bar (skip pill morph) */
@media (max-width: 991px) {
  .agronomy-header__sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .agronomy-header .navbar-brand.brand-with-text .brand-text strong { color: var(--ku-green); }
  .agronomy-header .nav-link { color: var(--ku-ink) !important; }
  .agronomy-header.is-scrolled .agronomy-header__sticky {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
  }
}

/* ============================================================
   Language switch — segmented pill (TH | EN)
   Sits on top of the photo hero as well as the white scrolled bar,
   so every colour is defined twice: glass-on-dark, then solid-on-light.
   ============================================================ */
.agronomy-header .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.agronomy-header .lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: .3rem .68rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: .06em;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.agronomy-header .lang-switch__item:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
}
.agronomy-header .lang-switch__item.is-active {
  color: var(--ku-green) !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.agronomy-header .lang-switch__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Light contexts — scrolled bar, pages without a dark hero, and mobile */
.agronomy-header.is-scrolled .lang-switch,
body:not(.has-dark-hero) .agronomy-header .lang-switch {
  background: rgba(15, 26, 20, 0.05);
  border-color: var(--ku-line);
  box-shadow: none;
}
/* Deliberately darker than --ku-muted: at 12.5px that token is 4.33:1 on
   white, just under WCAG AA. This is 5.25:1. */
.agronomy-header.is-scrolled .lang-switch__item,
body:not(.has-dark-hero) .agronomy-header .lang-switch__item {
  color: #5f7067 !important;
}
.agronomy-header.is-scrolled .lang-switch__item:hover,
body:not(.has-dark-hero) .agronomy-header .lang-switch__item:hover {
  color: var(--ku-ink) !important;
  background: rgba(15, 26, 20, 0.07);
}
.agronomy-header.is-scrolled .lang-switch__item.is-active,
body:not(.has-dark-hero) .agronomy-header .lang-switch__item.is-active {
  color: #fff !important;
  background: var(--ku-green);
  box-shadow: 0 1px 4px rgba(0, 102, 51, 0.28);
}
.agronomy-header.is-scrolled .lang-switch__item:focus-visible,
body:not(.has-dark-hero) .agronomy-header .lang-switch__item:focus-visible {
  outline-color: var(--ku-green);
}

/* .header-btn now lives outside .navbar-collapse. Keep it pinned right on
   desktop, where the collapse used to provide the spacing. */
.agronomy-header .navbar > .container {
  flex-wrap: nowrap;
}
.agronomy-header .main-menu {
  flex-grow: 1;
}
.agronomy-header .header-btn {
  flex-shrink: 0;
  margin-left: 1rem;
}

@media (max-width: 991px) {
  /* The collapse is display:none here, so this bar is the only place the
     language switch can live; the sign-in pill moves into the slicknav drawer. */
  .agronomy-header .header-btn {
    margin-left: auto;
    margin-right: .6rem;
    gap: 0 !important;
  }
  .agronomy-header .header-btn__auth {
    display: none !important;
  }
  /* Size only — colours stay with the dark-hero / scrolled / light-page rules
     above, because the mobile header is still transparent over the hero. */
  .agronomy-header .lang-switch__item {
    min-width: 38px;
    padding: .28rem .6rem;
    font-size: .74rem;
  }
  /* Sign-in row inside the mobile drawer */
  .slicknav_nav .nav-item-mobile-auth a {
    font-weight: 700;
  }
}

/* The mobile-only drawer entry must never show in the desktop menu bar */
@media (min-width: 992px) {
  .agronomy-header .main-menu .nav-item-mobile-auth {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agronomy-header .lang-switch,
  .agronomy-header .lang-switch__item {
    transition: none;
  }
}

/* ============================================================
   Brand (header logo + wordmark)
   ============================================================ */
.navbar-brand.brand-with-text {
  display: flex !important;
  align-items: center;
  gap: .7rem;
  padding: 0 !important;
}
.navbar-brand.brand-with-text .brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar-brand.brand-with-text .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.navbar-brand.brand-with-text .brand-text strong {
  font-size: 1.05rem;
  color: var(--ku-green);
  font-weight: 700;
}
.navbar-brand.brand-with-text .brand-text small {
  font-size: .72rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 2px;
}
@media (max-width: 575px) {
  .navbar-brand.brand-with-text .brand-text { display: none; }
}

/* ============================================================
   CTA section — sophisticated card layout
   ============================================================ */
.agronomy-cta {
  padding: 70px 0 90px;
  background:
    radial-gradient(ellipse at top left, rgba(0,102,51,0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(46,125,62,0.05), transparent 50%),
    #f8faf6;
}
.agronomy-cta__box {
  background: linear-gradient(135deg, var(--ku-green) 0%, var(--ku-green-soft) 100%);
  border-radius: 24px;
  padding: 2.5rem 2.5rem;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 102, 51, 0.25);
}
.agronomy-cta__box::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.agronomy-cta__box::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.agronomy-cta__content {
  flex: 1 1 460px;
  position: relative;
  z-index: 1;
}
.agronomy-cta__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: .5px;
}
.agronomy-cta__content h2 {
  color: #fff !important;
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 .85rem !important;
}
.agronomy-cta__content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 540px;
}
.agronomy-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  position: relative;
  z-index: 1;
}
.agronomy-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.75rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.agronomy-cta__btn--solid {
  background: #fff;
  color: var(--ku-green);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.agronomy-cta__btn--solid:hover {
  background: #fff;
  color: var(--ku-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.agronomy-cta__btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.agronomy-cta__btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .agronomy-cta { padding: 50px 0 60px; }
  .agronomy-cta__box { padding: 2rem 1.5rem; border-radius: 18px; }
  .agronomy-cta__content h2 { font-size: 1.65rem !important; }
}

/* ============================================================
   Footer — clean, KU brand
   ============================================================ */
.main-footer { display: none !important; }

.agronomy-footer {
  background: #0c2418;
  color: #d6dcd4;
  position: relative;
}
.agronomy-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(0,102,51,0.25), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(46,125,62,0.18), transparent 55%);
  pointer-events: none;
}
.agronomy-footer__main {
  padding: 4rem 0 3rem;
  position: relative;
}
.agronomy-footer h3 {
  color: #fff !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
  font-weight: 700 !important;
}
.agronomy-footer h4 {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  display: inline-block;
}
.agronomy-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.agronomy-footer ul li {
  margin-bottom: .55rem;
}
.agronomy-footer ul li a {
  color: #cbd2c8 !important;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}
.agronomy-footer ul li a:hover {
  color: #fff !important;
  padding-left: 4px;
}

.agronomy-footer__brand .brand-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.agronomy-footer__brand .brand-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
}
.agronomy-footer__brand .brand-row p {
  color: #a8b1a3;
  font-size: .85rem;
  margin: 0;
}
.agronomy-footer__brand .brand-desc {
  font-size: .92rem;
  line-height: 1.7;
  color: #b9c2b5;
  margin-bottom: 1.25rem;
}

.agronomy-footer__social {
  display: flex;
  gap: .55rem;
}
.agronomy-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .25s ease, transform .25s ease;
  text-decoration: none;
}
.agronomy-footer__social a:hover {
  background: var(--ku-green-soft);
  color: #fff !important;
  transform: translateY(-2px);
}

.agronomy-footer .contact-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .92rem;
  color: #c5cdc1;
  line-height: 1.55;
  margin-bottom: .75rem;
}
.agronomy-footer .contact-list li i {
  color: #6dab87;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}
.agronomy-footer .contact-list li a {
  color: #c5cdc1 !important;
}
.agronomy-footer .contact-list li a:hover { color: #fff !important; }

.agronomy-footer__bottom {
  background: rgba(0,0,0,0.25);
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: .85rem;
  position: relative;
}
.agronomy-footer__bottom p {
  margin: 0;
  color: #98a194;
}
.agronomy-footer__bottom a {
  color: #98a194 !important;
  text-decoration: none;
}
.agronomy-footer__bottom a:hover { color: #fff !important; }

@media (max-width: 767px) {
  .agronomy-footer__main { padding: 3rem 0 2rem; }
  .agronomy-footer__bottom .text-md-end { text-align: left !important; margin-top: .5rem; }
}

/* ============================================================
   ============= PREMIUM MINIMAL — HOME REDESIGN ==============
   ============================================================ */

/* Hide Soilux's preloader on home v2 to avoid double overlays */
.hero-v2 ~ .preloader { display: none; }

/* ===== HERO V2 ===== */
.hero-v2 {
  position: relative;
  min-height: 540px;
  padding: 170px 0 110px;
  overflow: hidden;
  background: var(--ku-ink);
  color: #fff;
}
.hero-v2--compact {
  min-height: 340px;
  padding: 150px 0 90px;
}
.hero-v2--compact .hero-v2__inner--center { min-height: 0; }
.hero-v2--compact .hero-v2__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.hero-v2--compact .hero-v2__desc { margin-bottom: 0; font-size: .95rem; }
.hero-v2__bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-v2__bg-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85);
}
.hero-v2__bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(15,26,20,0.92) 0%, rgba(15,26,20,0.75) 45%, rgba(15,26,20,0.35) 100%),
    radial-gradient(ellipse at top right, rgba(46,125,62,0.25), transparent 60%);
}
.hero-v2__inner { position: relative; z-index: 2; }
.hero-v2__inner--center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.hero-v2__content--center {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-v2__content--center .hero-v2__desc { margin-left: auto; margin-right: auto; }
.hero-v2__content--center .hero-v2__actions { justify-content: center; }
.hero-v2__content--center .hero-v2__trust { justify-content: center; }

.hero-v2__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.25rem;
  letter-spacing: .3px;
}
.hero-v2__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.hero-v2__title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 .85rem;
  color: #fff;
  letter-spacing: -0.3px;
}
.hero-v2__title .accent {
  background: linear-gradient(120deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  position: static;
  text-decoration: none !important;
  border-bottom: none !important;
}
.hero-v2__title .accent::after,
.hero-v2__title .accent::before { display: none !important; }
.hero-v2__title { text-decoration: none !important; }
.hero-v2__title::before,
.hero-v2__title::after { display: none !important; }
.hero-v2__desc {
  font-size: .98rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 1.35rem;
}

.hero-v2__actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-bottom: 1.5rem;
}
.hero-v2__btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.hero-v2__btn--primary {
  background: #fff;
  color: var(--ku-green);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}
.hero-v2__btn--primary:hover {
  background: #fff;
  color: var(--ku-green);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hero-v2__btn--ghost {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
}
.hero-v2__btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-3px);
}

.hero-v2__trust {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.hero-v2__trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
  margin-bottom: .2rem;
}
.hero-v2__trust-item span {
  font-size: .78rem;
  color: rgba(255,255,255,0.75);
}
.hero-v2__trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
}

/* Hero visual (right side, lg+) */
.hero-v2__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.hero-v2__visual-card--main {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-v2__visual-card--main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-v2__visual-chip {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .85rem 1.15rem;
  border-radius: 16px;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  color: var(--ku-ink);
}
.hero-v2__visual-chip i {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ku-green), var(--ku-green-soft));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hero-v2__visual-chip strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--ku-ink);
}
.hero-v2__visual-chip span {
  display: block;
  font-size: .78rem;
  color: var(--ku-muted);
  margin-top: 2px;
}
.hero-v2__visual-chip--top {
  top: 8%; left: -4%;
  animation: float 4.5s ease-in-out infinite;
}
.hero-v2__visual-chip--bottom {
  bottom: 8%; right: -4%;
  animation: float 4.5s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-v2__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 3;
  line-height: 0;
}
.hero-v2__wave svg {
  width: 100%; height: 90px; display: block;
}

@media (max-width: 991px) {
  .hero-v2 { padding: 130px 0 80px; min-height: auto; }
  .hero-v2__title { font-size: clamp(2rem, 7vw, 2.8rem); }
}
@media (max-width: 575px) {
  .hero-v2 { padding: 110px 0 70px; }
  .hero-v2__trust { gap: 1rem; }
  .hero-v2__trust-divider { display: none; }
}

/* ===== SECTION WRAPPER ===== */
.agronomy-section {
  padding: 55px 0;
  position: relative;
}
.agronomy-section--tight { padding: 40px 0; }
.agronomy-section + .agronomy-section { padding-top: 50px; }
.agronomy-section--alt + .agronomy-section,
.agronomy-section + .agronomy-section--alt { padding-top: 55px; }
.agronomy-section--alt {
  background: var(--ku-cream);
  position: relative;
}
.agronomy-section--alt::before,
.agronomy-section--alt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 24px;
  pointer-events: none;
}
.agronomy-section--alt::before {
  top: -1px;
  background: linear-gradient(180deg, #ffffff, var(--ku-cream));
}
.agronomy-section--alt::after {
  bottom: -1px;
  background: linear-gradient(0deg, #ffffff, var(--ku-cream));
}

/* ===== SECTION HEAD ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-head--compact { margin-bottom: 1.5rem; }
.section-head__eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ku-green);
  margin-bottom: .55rem;
  position: relative;
  padding-left: 28px;
}
.section-head__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ku-green);
  transform: translateY(-50%);
}
.section-head--center .section-head__eyebrow { padding-left: 0; }
.section-head--center .section-head__eyebrow::before { display: none; }

.section-head__title {
  font-size: clamp(1.75rem, 2.7vw, 2.2rem);
  font-weight: 800;
  color: var(--ku-ink);
  margin: 0 0 .6rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.section-head__title--small {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
}
.section-head__desc {
  color: var(--ku-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0;
  line-height: 1.7;
}
.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ku-green);
  font-weight: 700;
  text-decoration: none;
  padding: .65rem 1.25rem;
  border: 2px solid var(--ku-line);
  border-radius: 100px;
  transition: all .25s ease;
}
.section-head__link:hover {
  background: var(--ku-green);
  border-color: var(--ku-green);
  color: #fff;
}
.section-head__link:hover i { transform: translateX(3px); }
.section-head__link i { transition: transform .25s ease; }

/* ===== QUICK LINKS (premium card grid) ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}
.quick-links__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.4rem 1.4rem;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 20px;
  text-decoration: none;
  color: var(--ku-ink);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  isolation: isolate;
}
.quick-links__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ku-green) 0%, var(--ku-green-soft) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s ease;
}
.quick-links__item::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,51,0.08) 0%, transparent 70%);
  transition: all .4s ease;
  z-index: -1;
}
.quick-links__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 102, 51, 0.22);
  border-color: transparent;
  color: #fff;
}
.quick-links__item:hover::before { opacity: 1; }
.quick-links__item:hover::after {
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  transform: scale(1.4);
}

.quick-links__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,102,51,0.12), rgba(46,125,62,0.08));
  color: var(--ku-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all .35s ease;
  position: relative;
}
.quick-links__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px dashed rgba(0,102,51,0.25);
  transition: all .35s ease;
}
.quick-links__item:hover .quick-links__icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.quick-links__item:hover .quick-links__icon::after {
  border-color: rgba(255,255,255,0.4);
}

.quick-links__text { flex: 1; min-width: 0; }
.quick-links__text h4 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
  color: var(--ku-ink) !important;
  transition: color .25s ease;
  line-height: 1.35 !important;
}
.quick-links__text p {
  font-size: .82rem;
  color: var(--ku-muted);
  margin: 0;
  line-height: 1.45;
  transition: color .25s ease;
}
.quick-links__item:hover .quick-links__text h4 { color: #fff !important; }
.quick-links__item:hover .quick-links__text p { color: rgba(255,255,255,0.88); }

.quick-links__arrow {
  position: absolute;
  top: 1.5rem; right: 1.4rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ku-cream-deep);
  color: var(--ku-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: all .35s ease;
}
.quick-links__item:hover .quick-links__arrow {
  background: #fff;
  color: var(--ku-green);
  transform: translate(2px, -2px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .quick-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .quick-links__item { padding: 1.15rem; gap: .75rem; }
}
@media (max-width: 480px) {
  .quick-links { grid-template-columns: 1fr; }
}

/* ===== CARD V2 — uniform card for news / curricula / research ===== */
.card-v2 {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ku-ink);
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 102, 51, 0.12);
  border-color: rgba(0, 102, 51, 0.2);
  color: var(--ku-ink);
}
.card-v2__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ku-cream-deep);
}
.card-v2__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card-v2:hover .card-v2__media img { transform: scale(1.06); }
.card-v2__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  color: var(--ku-green);
  background: linear-gradient(135deg, var(--ku-cream-deep), #ffffff);
  opacity: 0.6;
}
.card-v2__chip {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ku-green);
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 100px;
  letter-spacing: .3px;
  z-index: 2;
}
.card-v2__chip--accent {
  background: var(--ku-green);
  color: #fff;
}
.card-v2__pin {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fbbf24;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(251,191,36,0.5);
}
.card-v2__date {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .5rem .75rem;
  border-radius: 12px;
  text-align: center;
  min-width: 56px;
  line-height: 1.1;
  z-index: 2;
}
.card-v2__date strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ku-green);
}
.card-v2__date span {
  font-size: .68rem;
  color: var(--ku-muted);
  margin-top: 2px;
  display: block;
}
.card-v2__body {
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-v2__title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--ku-ink) !important;
  margin: 0 0 .6rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-v2__meta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ku-green);
  margin: 0 0 .75rem;
}
.card-v2__excerpt {
  font-size: .9rem;
  color: var(--ku-muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-v2__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ku-green);
  margin-top: auto;
  transition: gap .25s ease;
}
.card-v2:hover .card-v2__link { gap: .85rem; }
.card-v2__link i { font-size: .8rem; }

/* ===== GHOST BUTTON ===== */
.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.85rem;
  border: 2px solid var(--ku-green);
  color: var(--ku-green);
  border-radius: 100px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  background: transparent;
  transition: all .25s ease;
}
.ghost-btn:hover {
  background: var(--ku-green);
  color: #fff;
}
.ghost-btn:hover i { transform: translateX(3px); }
.ghost-btn i { transition: transform .25s ease; }

/* ===== QUOTE CARD ===== */
.quote-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 2rem;
  background:
    radial-gradient(ellipse at top, rgba(0,102,51,0.06), transparent 60%),
    #fff;
  border-radius: 28px;
  border: 1px solid var(--ku-line);
  position: relative;
  overflow: hidden;
}
.quote-card::before,
.quote-card::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--ku-cream-deep);
  z-index: 0;
}
.quote-card::before { top: -80px; left: -80px; }
.quote-card::after { bottom: -80px; right: -80px; }
.quote-card > * { position: relative; z-index: 1; }
.quote-card__mark {
  font-size: 2.5rem;
  color: var(--ku-green);
  opacity: 0.3;
  margin-bottom: 1rem;
}
.quote-card__text {
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.7 !important;
  color: var(--ku-ink) !important;
  font-weight: 500 !important;
  margin: 0 0 2rem !important;
}
.quote-card__author {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-align: left;
}
.quote-card__author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.quote-card__author strong {
  display: block;
  font-weight: 700;
  color: var(--ku-ink);
  font-size: .95rem;
}
.quote-card__author span {
  font-size: .82rem;
  color: var(--ku-muted);
}

/* ===== PARTNERS ===== */
.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.partners__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1.75rem 1rem;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 16px;
  text-align: center;
  transition: all .3s ease;
  color: var(--ku-muted);
}
.partners__item:hover {
  border-color: var(--ku-green);
  color: var(--ku-green);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 102, 51, 0.1);
}
.partners__item i {
  font-size: 2rem;
  color: var(--ku-green);
  opacity: 0.85;
}
.partners__item span {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
}
.partners--international { grid-template-columns: repeat(3, 1fr); }
.partners__group-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ku-muted);
}
.partners__group-label i { color: var(--ku-green); font-size: .9rem; }
.partners + .partners__group-label { margin-top: 2rem; }
.partners__item--link {
  position: relative;
  text-decoration: none;
  padding-top: 1.5rem;
}
.partners__item--link:hover { text-decoration: none; }
.partners__flag { font-size: 1.65rem; line-height: 1; }
.partners__country {
  font-size: .74rem;
  font-weight: 500;
  color: var(--ku-muted);
}
.partners__item--link:hover .partners__country { color: var(--ku-green); }
.partners__go {
  position: absolute;
  top: .75rem;
  right: .85rem;
  font-size: .72rem !important;
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: all .25s ease;
}
.partners__item--link:hover .partners__go { opacity: .8; transform: none; }

.quote-card__avatar-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ku-green-50, #eef6f1);
  color: var(--ku-green);
  flex: 0 0 48px;
}

@media (max-width: 991px) {
  .partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .partners,
  .partners--international { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Hide old Soilux .hero + .agronomy-stats on home v2 ===== */
.hero-v2 ~ .hero { display: none; }

/* ===== Tweaks for sections with section-head row layout on small screens ===== */
@media (max-width: 767px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
  .agronomy-section { padding: 40px 0; }
  .agronomy-section--tight { padding: 30px 0; }
  .agronomy-section + .agronomy-section { padding-top: 35px; }
}

/* ===== Filter pills (year/category chips on list pages) =====
   Standalone so they don't inherit Soilux .btn-default's right-side arrow
   pseudo-element, which overlaps the label when the button is small. */
.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ku-line);
  background: #fff;
  color: var(--ku-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.filter-pill:hover {
  border-color: var(--ku-green);
  color: var(--ku-green);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 102, 51, 0.08);
}

.filter-pill--active,
.filter-pill.is-active {
  background: var(--ku-green);
  border-color: var(--ku-green);
  color: #fff;
}

.filter-pill--active:hover,
.filter-pill.is-active:hover {
  background: var(--ku-green-soft);
  border-color: var(--ku-green-soft);
  color: #fff;
}

.filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* =========================================
   Public Pagination (pub-pagination)
   Used by resources/views/public/partials/pagination.blade.php
   ========================================= */
.pub-pagination {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.pub-pagination__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e6e6e2;
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 6px 22px rgba(0, 102, 51, 0.07);
}

.pub-pagination__item {
  display: inline-flex;
}

.pub-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c2c2c;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-pagination__link:hover {
  background: rgba(0, 102, 51, 0.08);
  color: var(--ku-green);
  border-color: rgba(0, 102, 51, 0.15);
  transform: translateY(-1px);
}

.pub-pagination__link.is-active {
  background: var(--ku-green);
  color: #fff;
  border-color: var(--ku-green);
  box-shadow: 0 6px 14px rgba(0, 102, 51, 0.25);
  cursor: default;
}

.pub-pagination__link.is-active:hover {
  background: var(--ku-green);
  color: #fff;
  transform: none;
}

.pub-pagination__link--nav {
  font-size: 0.85rem;
}

.pub-pagination__link.is-disabled {
  color: #b8b8b3;
  background: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.pub-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: #999;
  font-weight: 600;
  letter-spacing: 1px;
}

.pub-pagination__summary {
  margin: 0;
  font-size: 0.9rem;
  color: #6b6b65;
}

.pub-pagination__summary strong {
  color: var(--ku-green);
  font-weight: 700;
}

/* Neutralise the legacy .page-pagination wrapper when it holds pub-pagination */
.page-pagination .pub-pagination {
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .pub-pagination__list {
    gap: 0.25rem;
    padding: 0.35rem;
  }
  .pub-pagination__link {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    font-size: 0.9rem;
  }
  .pub-pagination__summary {
    font-size: 0.82rem;
    text-align: center;
  }
}

/* ============================================================
   Contact page — clean two-column layout
   ============================================================ */
.contact-section {
  padding: 90px 0 100px;
  background: #fafaf7;
}
.contact-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 51, 0.08);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 102, 51, 0.06);
}
.contact-info__header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 102, 51, 0.08);
}
.contact-info__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ku-green);
  margin-bottom: 0.6rem;
}
.contact-info__title {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #1a2a20;
  margin: 0 0 0.6rem;
}
.contact-info__lead {
  margin: 0;
  color: #5c6760;
  font-size: 0.95rem;
  line-height: 1.7;
}
.contact-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--ku-green), var(--ku-green-soft));
  box-shadow: 0 6px 14px rgba(0, 102, 51, 0.18);
}
.contact-info__body { min-width: 0; }
.contact-info__label {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2a20;
}
.contact-info__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #5c6760;
}
.contact-info__text a {
  color: var(--ku-green);
  text-decoration: none;
  font-weight: 500;
}
.contact-info__text a:hover { text-decoration: underline; }
.contact-info__muted { color: #8a948e; font-size: 0.88rem; }

.contact-map { display: flex; flex-direction: column; }
.contact-map__header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 102, 51, 0.08);
}
.contact-map__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ku-green);
  margin-bottom: 0.6rem;
}
.contact-map__title {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #1a2a20;
  margin: 0;
}
.contact-map__frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 51, 0.08);
  flex: 1 1 auto;
  min-height: 320px;
}
.contact-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.contact-map__hint {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: rgba(0, 102, 51, 0.05);
  border: 1px solid rgba(0, 102, 51, 0.12);
  border-radius: 12px;
}
.contact-map__hint-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ku-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.contact-map__hint p {
  margin: 0;
  color: #3f4d44;
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .contact-section { padding: 60px 0 70px; }
  .contact-card { padding: 1.75rem; }
}
@media (max-width: 575.98px) {
  .contact-card { padding: 1.4rem; border-radius: 14px; }
  .contact-info__icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .contact-map__frame iframe { min-height: 320px; }
}


/* AJAX-paginated result grids (research, etc.) */
[data-ajax-results] {
  transition: opacity 200ms ease;
}

[data-ajax-results].is-loading {
  opacity: .45;
  pointer-events: none;
}

/* ── Curriculum & course detail (มคอ.2 public pages) ───────────────────── */

.curriculum-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0, 102, 51, .15);
  border-radius: 14px;
  background: rgba(0, 102, 51, .04);
}

.curriculum-facts__item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.curriculum-facts__label {
  font-size: .78rem;
  color: #6b7280;
}

.curriculum-facts__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ku-green);
}

.curriculum-facts__value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
}

.plo-list {
  list-style: none;
  padding-left: 0;
}

.plo-list__item {
  display: flex;
  gap: .85rem;
  padding: .6rem 0;
  border-bottom: 1px solid #eef1f0;
}

.plo-list__item:last-child { border-bottom: 0; }

.plo-list__code {
  flex: 0 0 3.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  color: var(--ku-green);
}

.curriculum-plan-tabs .nav-link {
  color: #4b5563;
  border-radius: 8px 8px 0 0;
}

.curriculum-plan-tabs .nav-link.active {
  color: var(--ku-green);
  font-weight: 600;
  border-color: #dee2e6 #dee2e6 #fff;
}

.curriculum-plan-table__group th {
  background: rgba(0, 102, 51, .07);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ku-green);
}

.curriculum-plan-table__code,
.curriculum-plan-table__credits {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  white-space: nowrap;
}

.course-accordion .accordion-button {
  gap: .85rem;
  font-size: .95rem;
}

.course-accordion .accordion-button:not(.collapsed) {
  background: rgba(0, 102, 51, .06);
  color: var(--ku-green);
  box-shadow: none;
}

.course-accordion__code {
  flex: 0 0 6.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  color: #6b7280;
}

.course-accordion__name { flex: 1 1 auto; }

.course-accordion__credits {
  flex: 0 0 auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .8rem;
  color: #6b7280;
}

.lecturer-list {
  list-style: none;
  padding-left: 0;
}

.lecturer-list li {
  padding: .45rem 0;
  border-bottom: 1px solid #f1f3f2;
}

.lecturer-list li:last-child { border-bottom: 0; }

@media (max-width: 575.98px) {
  .course-accordion__code { flex-basis: 5rem; }
  .course-accordion__credits { display: none; }
}

.curriculum-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  list-style: none;
  padding-left: 0;
  margin: .85rem 0 1rem;
}

.curriculum-card-meta li {
  padding: .2rem .6rem;
  border: 1px solid rgba(0, 102, 51, .2);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--ku-green);
  background: rgba(0, 102, 51, .05);
}

/* ── Programme detail page (/curricula/{slug}) ─────────────────────────────
   The มคอ.2 content arrives as long rich-text blobs; the page turns them into
   discrete carded sections with a sticky jump nav so a prospective student can
   scan a 137-credit programme without reading it top to bottom. */

/* Header height, measured: 125px desktop / 95px below lg. The sticky jump nav
   parks directly under it and every section anchors below both. */
.page-curriculum { --prog-head-h: 126px; --prog-nav-h: 51px; }

/* Hero ------------------------------------------------------------------- */

.hero-v2--programme {
  padding: 150px 0 90px;
  min-height: 0;
}

.hero-v2--programme .hero-v2__inner { display: block; }

.prog-hero__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.4rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .72);
}
.prog-hero__crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.prog-hero__crumbs a:hover { color: #fde68a; }
.prog-hero__crumbs i { font-size: .62em; opacity: .55; }
.prog-hero__crumbs span { color: #fff; font-weight: 600; }

.prog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2.5rem;
  align-items: center;
}

.prog-hero__level {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}
.prog-hero__level i { color: #ffd66b; }

.prog-hero__title {
  margin: 1rem 0 .5rem;
  color: #fff;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.prog-hero__degree {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.02rem;
}

.prog-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.prog-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(8, 30, 20, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .88rem;
  line-height: 1.2;
}
.prog-hero__chips i { color: #8ee0a8; font-size: .9em; }
.prog-hero__chip-label { color: rgba(255, 255, 255, .62); font-size: .8rem; }
.prog-hero__chips strong { font-weight: 700; }
.prog-hero__chips strong.is-mono { font-family: var(--font-mono); font-size: .84rem; letter-spacing: .01em; }

.prog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.prog-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.6rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.prog-btn:hover { transform: translateY(-2px); }
.prog-btn--primary { background: #fff; color: var(--ku-green); }
.prog-btn--primary:hover { background: #ffd66b; color: #14331f; }
.prog-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.prog-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.prog-hero__seal-inner {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 22px 50px rgba(3, 20, 12, .38);
}
.prog-hero__seal-inner.cover--bachelor { background: linear-gradient(140deg, #05723b 0%, #0f9450 55%, #56bb74 100%); }
.prog-hero__seal-inner.cover--master   { background: linear-gradient(140deg, #076a4a 0%, #0f9a6d 55%, #55c39a 100%); }
.prog-hero__seal-inner.cover--doctoral,
.prog-hero__seal-inner.cover--doctorate { background: linear-gradient(140deg, #0a2f2c 0%, #13544f 50%, #1e7d74 100%); }
.prog-hero__seal-inner .cover__motif { width: 92px; height: 92px; transform: translate(-50%, -68%); }
.prog-hero__seal-inner .cover__halo { width: 172px; height: 172px; transform: translate(-50%, -68%); }

.prog-hero__seal-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  text-align: center;
  color: #fff;
  padding: 0 .9rem;
}
.prog-hero__seal-caption small {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.prog-hero__seal-caption strong { font-size: .95rem; font-weight: 700; line-height: 1.35; }

/* The shared hero scrim leaves the right half bright; a programme title is long
   enough to run into it, so this hero gets a deeper one. */
.hero-v2--programme .hero-v2__bg-overlay {
  background:
    linear-gradient(105deg, rgba(8, 20, 14, .94) 0%, rgba(10, 24, 16, .82) 42%, rgba(10, 24, 16, .5) 100%),
    linear-gradient(to bottom, rgba(8, 20, 14, .35) 0%, rgba(8, 20, 14, 0) 30%),
    radial-gradient(ellipse at top right, rgba(46, 125, 62, .28), transparent 62%);
}

@media (max-width: 991.98px) {
  .hero-v2--programme { padding: 128px 0 74px; }
  .prog-hero { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .prog-hero__seal { display: none; }
}

/* Sticky section nav ------------------------------------------------------ */

.prog-nav {
  position: sticky;
  top: var(--prog-head-h);
  z-index: 999;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--ku-line);
  box-shadow: 0 6px 18px rgba(15, 26, 20, .05);
}

.prog-nav__scroll {
  display: flex;
  gap: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: .55rem 0;
}
.prog-nav__scroll::-webkit-scrollbar { display: none; }

.prog-nav__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .87rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.prog-nav__link i { font-size: .85em; opacity: .6; }
.prog-nav__link:hover { background: rgba(0, 102, 51, .07); color: var(--ku-green); }
.prog-nav__link.is-active {
  background: var(--ku-green);
  color: #fff;
  font-weight: 600;
}
.prog-nav__link.is-active i { opacity: 1; color: #ffd66b; }

/* Sections ---------------------------------------------------------------- */

.page-programme { padding-top: 45px; }

.prog-section {
  position: relative;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 18px;
  padding: 1.75rem 1.9rem 1.9rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: calc(var(--prog-head-h) + var(--prog-nav-h) + 20px);
  box-shadow: 0 2px 4px rgba(15, 26, 20, .03);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.prog-section:hover {
  border-color: rgba(0, 102, 51, .18);
  box-shadow: 0 10px 30px rgba(15, 26, 20, .06);
}

.prog-section__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--ku-line);
}

.prog-section__icon {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(0, 102, 51, .12), rgba(46, 125, 62, .06));
  color: var(--ku-green);
  font-size: 1.05rem;
}

.prog-section__eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ku-muted);
  margin-bottom: .15rem;
}

.prog-section__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ku-ink);
  line-height: 1.35;
}

/* Rich text inside a section --------------------------------------------- */

.prog-prose { font-size: 1.02rem; line-height: 1.85; color: #2f3c35; }
.prog-prose > *:last-child { margin-bottom: 0; }

.prog-prose h3,
.prog-prose h4 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 1.9rem 0 .9rem;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ku-green);
}
.prog-prose h3::before,
.prog-prose h4::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ku-green);
  transform: translateY(-2px);
}
.prog-prose > h3:first-child,
.prog-prose > h4:first-child { margin-top: 0; }

.prog-prose ul,
.prog-prose ol { padding-left: 0; margin: 0 0 1.1rem; list-style: none; }
.prog-prose ul > li,
.prog-prose ol > li {
  position: relative;
  padding: .3rem 0 .3rem 1.6rem;
}
.prog-prose ul > li::before {
  content: '';
  position: absolute;
  left: .32rem;
  top: .95em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(0, 102, 51, .34);
  transform: rotate(45deg);
}
.prog-prose ol { counter-reset: prog-ol; }
.prog-prose ol > li { counter-increment: prog-ol; padding-left: 2rem; }
.prog-prose ol > li::before {
  content: counter(prog-ol);
  position: absolute;
  left: 0;
  top: .35em;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 102, 51, .1);
  color: var(--ku-green);
  font-size: .74rem;
  font-weight: 700;
}
/* Nested lists (credit breakdowns) read as a sub-branch, not another bullet run. */
.prog-prose li > ul,
.prog-prose li > ol {
  margin: .45rem 0 .1rem;
  padding-left: .35rem;
  border-left: 2px solid rgba(0, 102, 51, .14);
}
.prog-prose li > ul > li::before { background: rgba(0, 102, 51, .2); }
.prog-prose li > ul > li,
.prog-prose li > ol > li { font-size: .96rem; color: #55635b; }

.prog-prose strong { color: var(--ku-ink); font-weight: 600; }

.prog-prose blockquote {
  position: relative;
  margin: 1.6rem 0 .4rem;
  padding: 1.4rem 1.6rem 1.4rem 3.4rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 51, .07), rgba(0, 102, 51, .02));
  color: var(--ku-ink);
  font-size: 1.05rem;
  line-height: 1.75;
}
.prog-prose blockquote::before {
  content: '\201C';
  position: absolute;
  left: 1.1rem;
  top: .35rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(0, 102, 51, .3);
}
.prog-prose blockquote p:last-child { margin-bottom: 0; }

.prog-prose a { color: var(--ku-green); text-decoration: underline; text-underline-offset: 3px; }

.prog-prose table { width: 100%; margin-bottom: 1.2rem; }
.prog-prose th, .prog-prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--ku-line); }

/* Structured section bodies ---------------------------------------------- */

.prog-numbered,
.prog-bullets { list-style: none; padding: 0; margin: 0; }

.prog-numbered li {
  display: flex;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--ku-line);
  line-height: 1.75;
}
.prog-numbered li:last-child { border-bottom: 0; padding-bottom: 0; }
.prog-numbered__no {
  flex: 0 0 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 102, 51, .1);
  color: var(--ku-green);
  font-size: .78rem;
  font-weight: 700;
  margin-top: .18rem;
}

.prog-bullets li {
  display: flex;
  gap: .75rem;
  padding: .55rem 0;
  line-height: 1.7;
}
.prog-bullets i {
  flex: 0 0 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 102, 51, .1);
  color: var(--ku-green);
  font-size: .62rem;
  margin-top: .25rem;
}

.prog-empty {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed rgba(0, 102, 51, .2);
  background: rgba(0, 102, 51, .03);
  color: var(--ku-muted);
  font-size: .95rem;
}

.prog-subhead {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.9rem 0 .9rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ku-green);
}
.prog-subhead:first-child { margin-top: 0; }
.prog-subhead__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: rgba(0, 102, 51, .1);
  font-size: .75rem;
}

.prog-inline-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ku-green);
  text-decoration: none;
}
.prog-inline-link:hover { gap: .65rem; color: var(--ku-green-soft); }
.prog-inline-link i { font-size: .8em; transition: transform .2s ease; }

/* Credit-structure table -------------------------------------------------- */

.prog-credit-table { margin-bottom: 0; }
.prog-credit-table td { border-bottom: 1px solid var(--ku-line); padding: .7rem .5rem; }
.prog-credit-table tr:last-child td { border-bottom: 0; }
.prog-credit-table__main td { font-weight: 600; color: var(--ku-ink); }
.prog-credit-table__main td:last-child { color: var(--ku-green); font-family: var(--font-mono); }
.prog-credit-table__child td { color: var(--ku-muted); font-size: .93rem; }
.prog-credit-table__child td:first-child { padding-left: 1.75rem; }
.prog-credit-table__child td:last-child { font-family: var(--font-mono); }

/* Lecturers --------------------------------------------------------------- */

.prog-lecturers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.prog-lecturer {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .8rem;
  border: 1px solid var(--ku-line);
  border-radius: 12px;
  background: #fcfdfc;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.prog-lecturer:hover {
  border-color: rgba(0, 102, 51, .22);
  background: #fff;
  transform: translateY(-2px);
}

.prog-lecturer__avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: rgba(0, 102, 51, .1);
}
.prog-lecturer__avatar--blank {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(0, 102, 51, .14), rgba(0, 102, 51, .06));
  color: rgba(0, 102, 51, .45);
  font-size: .95rem;
}

.prog-lecturer__text { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.prog-lecturer__name {
  color: var(--ku-ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
a.prog-lecturer__name:hover { color: var(--ku-green); }
.prog-lecturer__role {
  font-size: .78rem;
  color: var(--ku-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .prog-lecturers { grid-template-columns: minmax(0, 1fr); }
}

/* Study-plan tables ------------------------------------------------------- */

.curriculum-plan-table { margin-bottom: 0; border-collapse: separate; border-spacing: 0; }
.curriculum-plan-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--ku-line); vertical-align: middle; }
.curriculum-plan-table tbody tr:not(.curriculum-plan-table__group):hover td { background: rgba(0, 102, 51, .035); }

.curriculum-plan-table__group th:last-child { white-space: nowrap; }

.curriculum-plan-table__group th {
  background: linear-gradient(90deg, rgba(0, 102, 51, .1), rgba(0, 102, 51, .03));
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(0, 102, 51, .14);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ku-green);
}
.curriculum-plan-table__group:not(:first-child) th { border-top: 10px solid #fff; }
.curriculum-plan-table__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 .55rem;
  border-radius: 50%;
  background: rgba(0, 102, 51, .4);
  vertical-align: middle;
}
.curriculum-plan-table__term { font-weight: 500; }
.curriculum-plan-table__subtotal { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; }

.curriculum-plan-table__code {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ku-muted);
  white-space: nowrap;
  width: 1%;
}
.curriculum-plan-table__title a { color: var(--ku-ink); text-decoration: none; font-weight: 500; }
.curriculum-plan-table__title a:hover { color: var(--ku-green); text-decoration: underline; }
.curriculum-plan-table__flag { width: 1%; white-space: nowrap; }
.curriculum-plan-table__badge {
  display: inline-block;
  padding: .12rem .55rem;
  border-radius: 999px;
  background: #f1f4ec;
  color: var(--ku-muted);
  font-size: .72rem;
}
.curriculum-plan-table__credits {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ku-ink);
  white-space: nowrap;
  width: 1%;
}

.curriculum-plan-tabs {
  gap: .3rem;
  border-bottom: 1px solid var(--ku-line);
}
.curriculum-plan-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .9rem;
  color: #4b5563;
}
.curriculum-plan-tabs .nav-link:hover { background: rgba(0, 102, 51, .07); color: var(--ku-green); }
.curriculum-plan-tabs .nav-link.active {
  background: var(--ku-green);
  color: #fff;
  border: 0;
}

.prog-plan-note {
  margin: 0 0 .9rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--ku-cream);
  color: var(--ku-muted);
  font-size: .92rem;
}

/* Course accordion -------------------------------------------------------- */

.course-accordion .accordion-item {
  border: 1px solid var(--ku-line);
  border-radius: 12px !important;
  margin-bottom: .5rem;
  overflow: hidden;
  background: #fcfdfc;
}
.course-accordion .accordion-header { margin: 0; }
.course-accordion .accordion-button {
  padding: .85rem 1rem;
  background: transparent;
  box-shadow: none;
}
.course-accordion .accordion-button:focus { box-shadow: none; }
.course-accordion .accordion-button::after { margin-left: .5rem; }
.course-accordion .accordion-button:not(.collapsed) {
  background: rgba(0, 102, 51, .06);
  color: var(--ku-green);
}
.course-accordion__name { font-weight: 600; color: var(--ku-ink); }
.course-accordion .accordion-button:not(.collapsed) .course-accordion__name { color: var(--ku-green); }
.course-accordion .accordion-body { padding: .25rem 1rem 1.1rem; font-size: .95rem; line-height: 1.75; }
.course-accordion .accordion-body p { margin-bottom: .6rem; }

/* Sidebar ----------------------------------------------------------------- */

.prog-aside { position: sticky; top: calc(var(--prog-head-h) + var(--prog-nav-h) + 20px); }

.prog-card {
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.25rem;
}

.prog-card__title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ku-line);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ku-ink);
}
.prog-card__title i { color: var(--ku-green); font-size: .95em; }

.prog-facts { margin: 0; }
.prog-facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--ku-line);
}
.prog-facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.prog-facts dt { font-size: .84rem; font-weight: 400; color: var(--ku-muted); }
.prog-facts dd {
  margin: 0;
  text-align: right;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ku-ink);
}
.prog-facts dd.is-mono { font-family: var(--font-mono); font-size: .8rem; }

.prog-others { list-style: none; padding: 0; margin: 0; }
.prog-others li + li { margin-top: .5rem; }
.prog-others a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .75rem;
  border: 1px solid var(--ku-line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.prog-others a:hover {
  border-color: rgba(0, 102, 51, .25);
  background: rgba(0, 102, 51, .03);
  transform: translateX(3px);
}

.prog-others__badge {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
}
.prog-others__badge.cover--bachelor { background: linear-gradient(140deg, #05723b, #0f9450); }
.prog-others__badge.cover--master { background: linear-gradient(140deg, #076a4a, #0f9a6d); }
.prog-others__badge.cover--doctoral,
.prog-others__badge.cover--doctorate { background: linear-gradient(140deg, #0a2f2c, #1e7d74); }

.prog-others__text { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.prog-others__level {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ku-muted);
}
.prog-others__text strong { font-size: .9rem; color: var(--ku-ink); line-height: 1.4; font-weight: 600; }
.prog-others__text small { font-size: .78rem; color: var(--ku-muted); }
.prog-others__go { color: rgba(0, 102, 51, .35); font-size: .8rem; margin-left: auto; }

.prog-cta {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  background: linear-gradient(145deg, #05572f 0%, #0a7a45 60%, #1a9c5c 100%);
  color: #fff;
  text-align: center;
}
.prog-cta__glow {
  position: absolute;
  top: -45%;
  right: -30%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
.prog-cta h3 {
  position: relative;
  margin: 0 0 .55rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.prog-cta p {
  position: relative;
  margin: 0 0 1.15rem;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
}
.prog-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ku-green);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .25s ease;
}
.prog-cta__btn:hover { transform: translateY(-2px); background: #ffd66b; color: #14331f; }
.prog-cta__link {
  position: relative;
  display: block;
  margin-top: .85rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .82);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prog-cta__link:hover { color: #ffd66b; }

@media (max-width: 991.98px) {
  .page-curriculum { --prog-head-h: 96px; }
  .prog-aside { position: static; }
  .prog-section { padding: 1.4rem 1.25rem 1.5rem; border-radius: 14px; }
  .prog-section__title { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .prog-btn, .prog-lecturer, .prog-others a, .prog-cta__btn { transition: none; }
  .prog-btn:hover, .prog-lecturer:hover, .prog-cta__btn:hover { transform: none; }
  .prog-others a:hover { transform: none; }
}

/* A study plan written as prose ("ชั้นปีที่ 1" + a paragraph) is a sequence, so
   the year headings become nodes on a timeline instead of another bullet run. */
.prog-section--plan .prog-prose {
  position: relative;
  padding-left: 1.9rem;
}
.prog-section--plan .prog-prose::before {
  content: '';
  position: absolute;
  left: .45rem;
  top: .7rem;
  bottom: .7rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(0, 102, 51, .3), rgba(0, 102, 51, .07));
}
.prog-section--plan .prog-prose h3,
.prog-section--plan .prog-prose h4 {
  position: relative;
  display: block;
  margin: 1.5rem 0 .4rem;
  font-size: 1rem;
}
.prog-section--plan .prog-prose > h3:first-child,
.prog-section--plan .prog-prose > h4:first-child { margin-top: 0; }
.prog-section--plan .prog-prose h3::before,
.prog-section--plan .prog-prose h4::before {
  position: absolute;
  left: -1.78rem;
  top: .3em;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 3px solid var(--ku-green);
  box-shadow: 0 0 0 4px rgba(0, 102, 51, .08);
  transform: none;
}
.prog-section--plan .prog-prose p { margin-bottom: 1.15rem; color: #55635b; }
.prog-section--plan .prog-prose > *:last-child { margin-bottom: 0; }

/* Illustrated programme cover on the homepage teaser — same artwork as the
   curricula index, which used to fall back to a flat grey icon block here. */
.card-v2__cover {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-v2__cover.cover--bachelor { background: linear-gradient(140deg, #05723b 0%, #0f9450 55%, #56bb74 100%); }
.card-v2__cover.cover--master   { background: linear-gradient(140deg, #076a4a 0%, #0f9a6d 55%, #55c39a 100%); }
.card-v2__cover.cover--doctoral,
.card-v2__cover.cover--doctorate { background: linear-gradient(140deg, #0a2f2c 0%, #13544f 50%, #1e7d74 100%); }
.card-v2__cover .cover__motif { width: 112px; height: 112px; }
.card-v2__cover .cover__halo { width: 210px; height: 210px; }
.card-v2:hover .card-v2__cover .cover__motif { transform: translate(-50%, -62%) scale(1.06); }

/* The banner reacts with the card, not just the motif. */
.curriculum-card .image .cover__art,
.card-v2__cover .cover__art {
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.curriculum-card:hover .image .cover__art,
.card-v2:hover .card-v2__cover .cover__art { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .curriculum-card .image .cover__art,
  .card-v2__cover .cover__art { transition: none; }
  .curriculum-card:hover .image .cover__art,
  .card-v2:hover .card-v2__cover .cover__art { transform: none; }
}

/* ===== CO-CURRICULAR ACTIVITIES (กิจกรรมเสริมหลักสูตร) ===== */
.activity-kinds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.activity-kind {
  position: relative;
  padding: 1.9rem 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 18px;
  transition: all .3s ease;
  overflow: hidden;
}
.activity-kind::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ku-green), #7ab648);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.activity-kind:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 51, .25);
  box-shadow: 0 16px 34px rgba(0, 102, 51, .1);
}
.activity-kind:hover::before { transform: scaleX(1); }
.activity-kind__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(0, 102, 51, .08);
  color: var(--ku-green);
  font-size: 1.3rem;
}
.activity-kind h3 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ku-ink);
}
.activity-kind p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--ku-muted);
}

.activity-courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.activity-course {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--ku-line);
  border-radius: 14px;
  text-decoration: none;
  transition: all .25s ease;
}
.activity-course:hover {
  border-color: var(--ku-green);
  box-shadow: 0 10px 22px rgba(0, 102, 51, .08);
  text-decoration: none;
}
.activity-course__code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ku-green);
  white-space: nowrap;
}
.activity-course__name {
  flex: 1;
  min-width: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ku-ink);
}
.activity-course__credits {
  font-size: .78rem;
  color: var(--ku-muted);
  white-space: nowrap;
}
.activity-course__go {
  font-size: .78rem;
  color: var(--ku-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all .25s ease;
}
.activity-course:hover .activity-course__go { opacity: 1; transform: none; color: var(--ku-green); }

@media (max-width: 991px) {
  .activity-kinds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .activity-kinds,
  .activity-courses { grid-template-columns: 1fr; }
}

/* ===== LECTURER CODE (รหัสอาจารย์) ===== */
.teacher-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin: 0 0 .45rem;
}
.teacher-code__value {
  display: inline-block;
  padding: .3rem .7rem;
  border: 1.5px solid var(--ku-green);
  border-radius: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ku-green);
  background: rgba(0, 102, 51, .05);
}
.teacher-code__sep { color: var(--ku-line); }
.teacher-code__email {
  font-size: .9rem;
  word-break: break-all;
}
.teacher-code__hint {
  margin: 0;
  font-size: .8rem;
  color: var(--ku-muted);
}

/* รหัสอาจารย์บนการ์ดบุคลากร (หน้าแรก + /personnel) — ย่อจากป้ายบนหน้าประวัติ */
.person-card__code {
  display: flex;
  justify-content: center;
  margin: 0 0 .4rem;
}
.person-card__code span {
  padding: .1rem .5rem;
  border: 1px solid rgba(0, 102, 51, .35);
  border-radius: 6px;
  background: rgba(0, 102, 51, .05);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.7;
  color: var(--ku-green);
}

/* ===== PLO variants per study plan (มคอ.2 กำหนด PLO ต่างกันในบางแผน) ===== */
.plo-list__variants {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
  min-width: 0;
}
.plo-variant {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
}
.plo-variant__label {
  flex: 0 0 auto;
  padding: .12rem .55rem;
  border-radius: 999px;
  background: rgba(0, 102, 51, .08);
  color: var(--ku-green);
  font-size: .74rem;
  font-weight: 700;
  white-space: nowrap;
}
.plo-variant > span:last-child { flex: 1; min-width: 12rem; }

/* กลุ่มหัวข้อในตารางหน่วยกิต (เช่น "แผน 1 แบบ ก 2") ให้เด่นกว่าแถวย่อย */
.prog-credit-table__group td {
  padding-top: 1.05rem;
  font-size: 1rem;
  color: var(--ku-green) !important;
  border-bottom-color: rgba(0, 102, 51, .28) !important;
}
.prog-credit-table__group + .prog-credit-table__child td { padding-top: .8rem; }

/* ===== ตำแหน่งบริหาร (แยกจากตำแหน่งสายวิชาการ) ===== */
.hero-v2__desc--lead { font-weight: 600; margin-bottom: .25rem; }
.hero-v2__desc--sub { opacity: .82; font-size: .95rem; }
.person-card__exec {
  margin: .2rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ku-green);
}
