/* 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;
}

/* ===== Team card — show full photo, no crop, no overlay over face ===== */
.team-item {
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
  transition: transform .35s ease, box-shadow .35s ease !important;
  height: calc(100% - 30px) !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 1.5rem !important;
}
.team-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.team-item-image {
  position: relative;
  background: linear-gradient(160deg, #f3f7f1 0%, #e8f0e4 100%);
  /* 3:4 sits close to the 2:3 studio portraits, so they render large with
     only a sliver of letterboxing instead of being scaled down. */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The photo's ancestors need a definite height, otherwise the img's
   max-height:100% has no percentage base to resolve against and the portrait
   overflows the top of the card (where overflow:hidden then beheads it). */
.team-item-image > a,
.team-item-image > figure {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}
.team-item-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 102, 51, 0.08), transparent 60%),
    radial-gradient(circle at bottom left, rgba(46, 125, 62, 0.05), transparent 50%);
  pointer-events: none;
  /* Above the now-stacked photo layer, so the vignette reads as before. */
  z-index: 2;
}
.team-item-image figure,
.team-item-image figure.image-anime {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
  clip-path: none;
}
.team-item-image figure::before,
.team-item-image figure::after {
  display: none !important;
}
/* Fill the frame and let object-fit letterbox the bitmap — a portrait of any
   ratio then fits whole, rather than being sized by width alone. */
.team-item-image figure img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transition: transform .5s ease !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}
.team-item:hover .team-item-image figure img {
  transform: scale(1.04);
}

/* Body sits BELOW the photo, NOT absolutely positioned over it */
.team-item-body {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 1.1rem 1.25rem 1.25rem !important;
  text-align: center !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 3px solid var(--ku-green) !important;
  border-radius: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: visible !important;
}
.team-item-content { text-align: center; }
.team-item-content h2,
.team-item-content h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 .35rem !important;
  color: #1f2937 !important;
}
.team-item-content h2 a,
.team-item-content h3 a {
  color: inherit !important;
  text-decoration: none !important;
  background: none !important;
}
.team-item-content h2 a:hover,
.team-item-content h3 a:hover { color: var(--ku-green) !important; }
.team-item-content p,
.team-item-content p.position {
  font-size: .88rem !important;
  color: var(--ku-green) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

/* Hide Soilux's diagonal swipe overlay on team-item-image to keep face clean */
.team-item-image .team-item-content,
.team-item-image::after {
  display: none !important;
}

/* 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;
}

/* Personnel card */
.team-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: .25rem;
}
.team-item-content p.position {
  color: var(--ku-green);
  font-weight: 600;
  font-size: .9rem;
}

/* 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__rows {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  color: #fff;
  opacity: .55;
}
/* 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%);
}
.cover__motif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -58%);
  color: rgba(255,255,255,.95);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.22));
  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;
}
.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;
}
@media (max-width: 991px) {
  .partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .partners { 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);
}
