:root {
  --green: #006b4f;
  --green-dark: #004936;
  --gold: #d4a928;
  --ink: #17231f;
  --muted: #63746d;
  --line: #dfe7e2;
  --soft: #f5f8f4;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 73, 54, .12);
  --shadow-hover: 0 24px 54px rgba(0, 73, 54, .18);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

.page-transition {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(212, 169, 40, .96) 0 18%, transparent 18% 100%),
    linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: .7rem;
  inset: 0;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  transform: translateX(0);
  z-index: 9999;
}

.page-transition::before {
  align-items: center;
  background:
    rgba(255, 255, 255, .96)
    url("../img/logo-sci-pnru.png") center / contain no-repeat;
  border-radius: 8px;
  content: "";
  display: inline-flex;
  height: 82px;
  justify-content: center;
  padding: .65rem;
  width: 82px;
}

.page-transition::after {
  content: "SCI PNRU";
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-ready .page-transition {
  animation: pageCurtainOut 1.45s var(--ease-out) .25s both;
}

body.page-leaving .page-transition {
  animation: pageCurtainIn .7s ease both;
}

body.page-ready.page-loading .page-transition {
  animation: pageCurtainOut 1.45s var(--ease-out) .25s both;
}

.page-transition.is-hidden {
  opacity: 0;
  transform: translateX(-100%);
  visibility: hidden;
}

@keyframes pageCurtainOut {
  0% {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  45% {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

  100% {
    opacity: 0;
    transform: translateX(-100%);
    visibility: hidden;
  }
}

@keyframes pageCurtainIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
    visibility: visible;
  }

  100% {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
}

body.page-loading .site-navbar,
body.page-loading main,
body.page-loading .site-footer,
body.page-loading .admin-shell {
  filter: blur(6px);
  opacity: 0;
  transform: translateY(38px) scale(.98);
}

body.page-ready .site-navbar,
body.page-ready main,
body.page-ready .site-footer,
body.page-ready .admin-shell {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
  transition: filter .75s var(--ease-out) .35s, opacity .75s var(--ease-out) .35s, transform .75s var(--ease-out) .35s;
}

body.page-leaving .site-navbar,
body.page-leaving main,
body.page-leaving .site-footer,
body.page-leaving .admin-shell {
  filter: blur(5px);
  opacity: 0;
  transform: translateY(-18px) scale(.99);
  transition: filter .55s ease, opacity .55s ease, transform .55s ease;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color .2s ease;
  overflow-wrap: anywhere;
}

img,
iframe,
video {
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
td,
th,
li,
span,
strong,
small {
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--green-dark);
}

.site-navbar {
  background: var(--green-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: box-shadow .2s ease, padding .25s var(--ease-out);
}

.site-navbar.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 73, 54, .16);
}

.navbar-brand {
  color: var(--white);
  max-width: 72%;
}

.navbar-brand:hover {
  color: var(--white);
}

.navbar-brand strong,
.navbar-brand small {
  display: block;
  line-height: 1.2;
}

.navbar-brand strong {
  font-size: 1rem;
}

.navbar-brand small {
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
}

.brand-mark {
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  padding: 5px 8px;
  transition: transform .25s var(--ease-out);
  width: 78px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.navbar-brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.nav-link {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  position: relative;
  transition: color .2s ease, transform .2s ease;
}

.nav-link::after {
  background: var(--gold);
  border-radius: 999px;
  bottom: .25rem;
  content: "";
  height: 2px;
  left: .5rem;
  position: absolute;
  right: .5rem;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}

.nav-link.active,
.nav-link:hover {
  color: var(--gold);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.site-navbar .dropdown-menu {
  border: 0;
  border-radius: 8px;
  animation: fadeRise .22s var(--ease-out) both;
  box-shadow: var(--shadow);
}

.dropdown-item {
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-out);
}

.dropdown-item:hover {
  transform: translateX(3px);
}

.navbar-toggler {
  transition: box-shadow .2s ease, transform .2s var(--ease-out);
}

.navbar-toggler:hover {
  transform: translateY(-1px);
}

.navbar-toggler[aria-expanded="true"] {
  box-shadow: 0 0 0 4px rgba(212, 169, 40, .18);
  transform: rotate(90deg);
}

.btn-apply {
  align-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  color: #2f2608;
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  padding: .65rem 1rem;
  transition: background .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}

.btn-apply:hover {
  background: #e1bb45;
  color: #2f2608;
  box-shadow: 0 12px 24px rgba(212, 169, 40, .22);
  transform: translateY(-2px);
}

.btn-gold:hover,
.btn-outline-green:hover,
.btn-apply:hover {
  animation: buttonGlow 1.35s ease-in-out infinite alternate;
}

.hero-section,
.carousel,
.carousel-inner,
.carousel-item {
  min-height: min(760px, calc(100vh - 72px));
}

.hero-carousel {
  --bs-carousel-transition-duration: 2.8s;
  --bs-carousel-transition: opacity 2.8s ease-in-out;
  background: var(--green-dark);
}

.hero-carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 2.8s ease-in-out !important;
}

.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.hero-carousel.carousel-fade .active.carousel-item-start,
.hero-carousel.carousel-fade .active.carousel-item-end {
  opacity: 0;
}

.carousel-item {
  position: relative;
}

.hero-carousel .carousel-item {
  transform: scale(1.02);
  transition: opacity 2.8s ease-in-out, transform 2.8s var(--ease-out) !important;
}

.hero-carousel .carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-carousel .carousel-item-next.carousel-item-start,
.hero-carousel .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel .carousel-item-start.active,
.hero-carousel .carousel-item-end.active {
  opacity: 0;
  transform: scale(.995);
}

.carousel-item.active .hero-image {
  animation: heroImageDrift 12s linear both;
}

.hero-image {
  height: min(760px, calc(100vh - 72px));
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 47, 35, .86), rgba(0, 74, 54, .5), rgba(0, 0, 0, .08)),
    radial-gradient(circle at 18% 30%, rgba(212, 169, 40, .18), transparent 22rem);
  inset: 0;
  position: absolute;
  transition: opacity 1.2s ease;
}

.hero-content {
  align-items: center;
  display: flex;
  inset: 0;
  position: absolute;
}

.hero-copy {
  color: var(--white);
  max-width: 760px;
  padding-bottom: 4rem;
  width: min(100%, 760px);
}

.hero-copy,
.page-hero .container,
.section-heading {
  animation: fadeRise .75s var(--ease-out) .65s both;
}

.carousel-item.active .hero-copy .eyebrow {
  animation: fadeRise .9s var(--ease-out) both .35s;
}

.carousel-item.active .hero-copy h1 {
  animation: heroTextIn 1.05s var(--ease-out) both .55s;
}

.carousel-item.active .hero-copy p {
  animation: fadeRise 1s var(--ease-out) both .8s;
}

.carousel-item.active .hero-copy .btn {
  animation: fadeRise 1s var(--ease-out) both 1s;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: .72;
  transition: transform .25s var(--ease-out), opacity .25s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: scale(1.08);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 73, 54, .55);
  background-size: 58%;
  border-radius: 999px;
  height: 3rem;
  transition: background-color .2s ease, box-shadow .2s ease;
  width: 3rem;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(212, 169, 40, .92);
  box-shadow: 0 14px 34px rgba(0, 73, 54, .2);
}

.hero-indicators {
  bottom: 1.5rem;
  gap: .45rem;
  margin-bottom: 0;
  z-index: 4;
}

.hero-indicators [data-bs-target] {
  background: rgba(255, 255, 255, .72);
  border: 0;
  border-radius: 999px;
  height: .55rem;
  opacity: 1;
  transition: background .25s ease, transform .25s var(--ease-out), width .25s var(--ease-out);
  width: .55rem;
}

.hero-indicators .active {
  background: var(--gold);
  transform: scale(1.05);
  width: 2rem;
}

.eyebrow {
  color: var(--gold);
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 1.03;
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 760px;
}

.btn-gold {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: #241d06;
  font-weight: 800;
  padding: .8rem 1.2rem;
  transition: background .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}

.btn-gold:hover {
  box-shadow: 0 14px 28px rgba(212, 169, 40, .24);
  transform: translateY(-2px);
}

.btn-outline-green {
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-out);
}

.btn-outline-green:hover {
  transform: translateY(-2px);
}

.page-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .96) 0 44%, rgba(245, 248, 244, .88) 44% 100%),
    linear-gradient(135deg, rgba(0, 107, 79, .14) 0 25%, transparent 25% 100%),
    repeating-linear-gradient(135deg, rgba(0, 107, 79, .055) 0 1px, transparent 1px 18px),
    linear-gradient(100deg, #f8fbf7 0%, #eef7f2 58%, #fff7df 100%);
  color: var(--ink);
  overflow: hidden;
  padding: 2.7rem 0 2.4rem;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(212, 169, 40, .24) 48% 52%, transparent 52% 100%),
    linear-gradient(45deg, rgba(0, 107, 79, .08) 0 25%, transparent 25% 100%);
  content: "";
  inset: 0;
  opacity: .9;
  pointer-events: none;
  position: absolute;
}

.page-hero::after {
  background:
    linear-gradient(135deg, rgba(0, 73, 54, .12), rgba(0, 107, 79, .03)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 1px, transparent 1px 18px);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
  height: 100%;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: min(42rem, 48vw);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .55rem;
}

.page-hero p {
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 0;
  max-width: 760px;
}

.hero-programs {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .97) 0 45%, rgba(239, 248, 244, .92) 45% 100%),
    linear-gradient(90deg, rgba(0, 107, 79, .09) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(0, 107, 79, .07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(100deg, #f9fcf9, #eef8f2);
}

.hero-programs::after {
  background:
    linear-gradient(135deg, rgba(0, 107, 79, .16), transparent 52%),
    conic-gradient(from 45deg, rgba(212, 169, 40, .28), transparent 25%, rgba(0, 107, 79, .12) 50%, transparent 75%);
  clip-path: polygon(24% 0, 100% 0, 86% 100%, 0 100%);
}

.hero-lecturers {
  background:
    radial-gradient(circle at 78% 40%, rgba(0, 107, 79, .12) 0 4rem, transparent 4.1rem),
    radial-gradient(circle at 88% 50%, transparent 0 6.2rem, rgba(212, 169, 40, .18) 6.3rem 6.55rem, transparent 6.7rem),
    radial-gradient(circle at 72% 64%, transparent 0 8rem, rgba(0, 107, 79, .1) 8.1rem 8.35rem, transparent 8.5rem),
    linear-gradient(100deg, #fbfdf9 0%, #eff8f3 62%, #fff8e8 100%);
}

.hero-lecturers::after {
  background:
    repeating-radial-gradient(circle at 62% 50%, rgba(0, 107, 79, .16) 0 2px, transparent 2px 18px);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 20% 100%);
}

.hero-scilife {
  background:
    linear-gradient(135deg, rgba(212, 169, 40, .18) 0 12%, transparent 12% 100%) 0 0 / 76px 76px,
    linear-gradient(45deg, rgba(0, 107, 79, .1) 0 14%, transparent 14% 100%) 24px 16px / 92px 92px,
    linear-gradient(105deg, #fbfcf8 0%, #f1f8f3 58%, #fff3ee 100%);
}

.hero-scilife::after {
  background:
    linear-gradient(135deg, rgba(212, 169, 40, .22) 0 20%, transparent 20% 40%, rgba(0, 107, 79, .14) 40% 60%, transparent 60% 100%);
  clip-path: polygon(46% 0, 100% 0, 92% 100%, 10% 100%);
}

.hero-service {
  background:
    repeating-linear-gradient(165deg, rgba(0, 107, 79, .07) 0 2px, transparent 2px 28px),
    linear-gradient(110deg, #fbfdf9 0%, #eef8f3 48%, #fff9e9 100%);
}

.hero-service::before {
  background:
    linear-gradient(150deg, transparent 0 35%, rgba(212, 169, 40, .2) 35% 39%, transparent 39% 100%),
    linear-gradient(20deg, transparent 0 55%, rgba(0, 107, 79, .14) 55% 59%, transparent 59% 100%);
}

.hero-service::after {
  background:
    repeating-linear-gradient(180deg, rgba(0, 107, 79, .13) 0 3px, transparent 3px 18px);
  clip-path: ellipse(48% 72% at 82% 50%);
}

.hero-communication {
  background:
    linear-gradient(90deg, rgba(0, 107, 79, .08) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(0deg, rgba(212, 169, 40, .08) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(105deg, #fbfdfb 0%, #f2f9f5 52%, #fff5f9 100%);
}

.hero-communication::after {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(0, 107, 79, .18) 12% 14%, transparent 14% 28%, rgba(212, 169, 40, .22) 28% 30%, transparent 30% 100%);
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 4% 100%);
}

.hero-contact {
  background:
    linear-gradient(135deg, rgba(0, 107, 79, .08) 25%, transparent 25%) 0 0 / 42px 42px,
    linear-gradient(225deg, rgba(212, 169, 40, .12) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(105deg, #fbfdf9 0%, #eef8f3 58%, #fff9eb 100%);
}

.hero-contact::after {
  background:
    radial-gradient(circle at 70% 35%, rgba(0, 107, 79, .16) 0 .55rem, transparent .6rem),
    radial-gradient(circle at 82% 58%, rgba(212, 169, 40, .28) 0 .5rem, transparent .55rem),
    linear-gradient(135deg, transparent 0 44%, rgba(0, 107, 79, .16) 44% 47%, transparent 47% 100%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 8% 100%);
}

.detail-hero {
  padding: 1.35rem 0 1.55rem;
}

.detail-hero h1 {
  font-size: clamp(1.35rem, 2.15vw, 2.15rem);
  line-height: 1.24;
  max-width: 820px;
}

.detail-hero p {
  font-size: .9rem;
  margin-bottom: 0;
}

.detail-body-section {
  padding-top: 2.6rem;
}

.section-pad {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--soft);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-heading span {
  color: var(--gold);
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0;
}

.section-muted > .container > .section-heading {
  align-items: center;
  border-bottom: 1px solid rgba(0, 107, 79, .12);
  margin-bottom: 1.35rem;
  padding-bottom: .9rem;
}

.section-muted > .container > .section-heading h2 {
  color: var(--green-dark);
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  line-height: 1.2;
}

.section-muted > .container > .section-heading span {
  font-size: .78rem;
}

.section-heading a {
  font-weight: 800;
  white-space: nowrap;
}

.subsection-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
}

.subsection-heading h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.subsection-heading a {
  font-weight: 800;
  white-space: nowrap;
}

.feature-card,
.news-card,
.video-card,
.lecturer-card,
.work-card,
.info-panel,
.profile-panel,
.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .45s ease, box-shadow .65s ease, transform .65s var(--ease-out);
  will-change: transform;
}

.feature-card,
.news-card,
.video-card,
.lecturer-card,
.work-card {
  cursor: pointer;
}

.card-primary-link,
.feature-card > a:last-child,
.news-card .card-meta a,
.lecturer-card > a:last-child,
.work-card > a:last-child,
.video-card .card-body > a:last-child {
  position: relative;
  z-index: 6;
}

.reveal-on-scroll {
  filter: blur(8px);
  opacity: 0;
  transform: translateY(54px) scale(.985);
  transition:
    filter 1.35s var(--ease-out) var(--reveal-delay, 0ms),
    opacity 1.35s ease var(--reveal-delay, 0ms),
    transform 1.35s var(--ease-out) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.row > [class*="col-"] {
  animation: fadeRise 1.1s var(--ease-out) .75s both;
}

.row > [class*="col-"]:nth-child(2) {
  animation-delay: .04s;
}

.row > [class*="col-"]:nth-child(3) {
  animation-delay: .08s;
}

.row > [class*="col-"]:nth-child(4) {
  animation-delay: .12s;
}

.row > [class*="col-"]:nth-child(5) {
  animation-delay: .16s;
}

.row > [class*="col-"]:nth-child(6) {
  animation-delay: .2s;
}

.feature-card:hover,
.news-card:hover,
.video-card:hover,
.lecturer-card:hover,
.work-card:hover {
  border-color: rgba(0, 107, 79, .22);
  box-shadow: var(--shadow-hover);
  transform: translateY(-8px);
}

.feature-card:focus-visible,
.news-card:focus-visible,
.video-card:focus-visible,
.lecturer-card:focus-visible,
.work-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 169, 40, .22), var(--shadow-hover);
  outline: 0;
}

.feature-card img,
.news-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 1.2s ease;
  width: 100%;
}

.feature-card:hover img,
.news-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.06);
}

.programs-section .program-carousel {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.programs-section .program-scroll-btn {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: background .2s ease, transform .2s var(--ease-out);
  width: 34px;
}

.programs-section .program-scroll-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.programs-section .program-scroll-btn:hover i {
  animation: nudgeArrow .65s ease-in-out infinite alternate;
}

.programs-section .program-slider {
  cursor: grab;
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: .15rem .05rem;
  scroll-padding-inline: .1rem;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.programs-section .program-slider::-webkit-scrollbar {
  display: none;
}

.programs-section .program-slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.programs-section .program-slider.is-dragging a {
  pointer-events: none;
}

.programs-section .program-card {
  flex: 0 0 170px;
  position: relative;
  scroll-snap-align: start;
}

.programs-section .program-card img {
  aspect-ratio: 16 / 9;
}

.programs-section .program-card .card-body {
  padding: .55rem;
}

.programs-section .feature-card.program-card i {
  font-size: .95rem;
}

.programs-section .feature-card.program-card h3 {
  font-size: .78rem;
  line-height: 1.25;
  margin: .3rem 0;
  min-height: 2.5em;
}

.programs-section .program-card a {
  font-size: .7rem;
  font-weight: 800;
}

.card-body {
  padding: 1.35rem;
}

.feature-card i {
  color: var(--gold);
  font-size: 1.75rem;
}

.feature-card h2,
.feature-card h3,
.news-card h2,
.news-card h3,
.video-card h2,
.video-card h3,
.lecturer-card h2,
.lecturer-card h3,
.work-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  margin: .65rem 0;
}

.feature-card p,
.news-card p,
.video-card p,
.work-card p {
  color: var(--muted);
}

.badge-soft {
  background: rgba(0, 107, 79, .1);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  padding: .28rem .65rem;
}

.card-meta {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}

.card-meta a {
  transition: color .2s ease, transform .2s var(--ease-out);
}

.card-meta a:hover {
  transform: translateX(3px);
}

.card-meta span {
  color: var(--muted);
  font-size: .92rem;
}

.mini-list,
.info-list,
.contact-list,
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li,
.footer-list li,
.contact-list li {
  align-items: flex-start;
  display: flex;
  gap: .6rem;
  margin-top: .55rem;
}

.mini-list i,
.footer-list i,
.contact-list i {
  color: var(--gold);
}

.lecturer-card {
  padding: 1.25rem;
  position: relative;
}

.lecturer-card img,
.profile-panel img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.lecturer-card p,
.lecturer-card small {
  color: var(--muted);
  display: block;
  margin-bottom: .25rem;
}

.position-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .6rem 0;
}

.position-badges span {
  background: rgba(212, 169, 40, .16);
  border: 1px solid rgba(212, 169, 40, .38);
  border-radius: 999px;
  color: #5c4810;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  padding: .28rem .55rem;
}

.management-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
}

.management-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.management-section .subsection-heading h2 {
  font-size: 1.45rem;
}

.management-section .subsection-heading span {
  color: var(--muted);
  display: block;
  margin-top: .2rem;
}

.management-position-list {
  display: grid;
  gap: .8rem;
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
}

.management-position-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .9rem;
}

.management-position-list strong,
.management-position-list span,
.management-position-list small {
  display: block;
}

.management-position-list span,
.management-position-list small,
.management-position-list p {
  color: var(--muted);
}

.management-position-list p {
  margin: .45rem 0 0;
}

.lecturer-card > a {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin-top: 1rem;
  transition: background .2s ease, transform .2s var(--ease-out);
  width: 38px;
}

.lecturer-card > a:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.lecturer-filter {
  align-items: end;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem;
}

.lecturer-filter > div {
  flex: 1 1 24rem;
  max-width: 34rem;
}

.lecturer-filter p {
  color: var(--green-dark);
  font-weight: 800;
  margin: 0 0 .45rem;
}

.site-pagination {
  align-items: center;
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
}

.site-pagination a,
.site-pagination span {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0 .75rem;
  text-decoration: none;
}

.site-pagination a:hover,
.site-pagination a.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.site-pagination a.is-disabled {
  opacity: .35;
  pointer-events: none;
}

.lecturer-program-card {
  height: 100%;
}

.lecturer-expertise,
.lecturer-email {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: .9rem;
  gap: .45rem;
  margin-top: .65rem;
}

.lecturer-expertise i,
.lecturer-email i {
  color: var(--gold);
  flex: 0 0 auto;
  margin-top: .1rem;
}

.lecturer-card .lecturer-email {
  background: transparent;
  border-radius: 0;
  color: var(--green);
  height: auto;
  justify-content: flex-start;
  margin-top: .65rem;
  width: auto;
}

.connect-band {
  background: var(--green-dark);
}

.sciconnect-hero {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .96) 0 48%, rgba(255, 246, 229, .9) 48% 100%),
    repeating-linear-gradient(45deg, rgba(0, 107, 79, .055) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(135deg, rgba(212, 169, 40, .08) 0 1px, transparent 1px 22px),
    linear-gradient(100deg, #f2fbf7 0%, #fffdf8 58%, #fff4f8 100%);
  color: var(--ink);
  overflow: hidden;
  padding: 2.7rem 0 2.4rem;
  position: relative;
}

.sciconnect-hero::before {
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(0, 107, 79, .1) 42% 47%, transparent 47% 100%),
    linear-gradient(45deg, transparent 0 62%, rgba(212, 169, 40, .2) 62% 66%, transparent 66% 100%);
  content: "";
  inset: 0;
  opacity: .95;
  pointer-events: none;
  position: absolute;
}

.sciconnect-hero .container {
  position: relative;
}

.sciconnect-hero h1 {
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  margin-bottom: .55rem;
}

.sciconnect-hero p {
  color: var(--ink);
  font-size: 1.05rem;
}

.sciconnect-video-section {
  background:
    repeating-linear-gradient(135deg, rgba(0, 107, 79, .045) 0 1px, transparent 1px 18px),
    linear-gradient(100deg, #f3fbf8 0%, #fffdf8 58%, #fff4fb 100%);
  padding-top: 3rem;
}

.sciconnect-video-section .section-heading {
  margin-bottom: 1.5rem;
}

.sciconnect-video-section .section-heading h2 {
  color: var(--green-dark);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.home-connect-section {
  background:
    repeating-linear-gradient(135deg, rgba(0, 107, 79, .045) 0 1px, transparent 1px 18px),
    linear-gradient(100deg, #f3fbf8 0%, #fffdf8 58%, #fff4fb 100%);
  border: 1px solid rgba(0, 107, 79, .08);
  border-radius: 8px;
  margin-top: 3rem;
  padding: 1.5rem;
}

.home-connect-section .subsection-heading {
  border-color: rgba(0, 107, 79, .12);
}

.home-connect-section .subsection-heading h3 {
  color: var(--green-dark);
}

.service-highlight-section {
  background: var(--green-dark);
  border-radius: 8px;
  margin-top: 3rem;
  padding: 1.5rem;
}

.service-highlight-section .subsection-heading {
  border-color: rgba(255, 255, 255, .18);
}

.service-highlight-section .subsection-heading h3,
.service-highlight-section .subsection-heading a {
  color: var(--white);
}

.video-card {
  background: rgba(255, 255, 255, .96);
}

.video-card .ratio {
  background: #0d1815;
  overflow: hidden;
}

.video-thumb {
  color: var(--white);
  display: block;
  height: 100%;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.video-card .ratio > .video-thumb {
  inset: 0;
  position: absolute;
}

.video-thumb::after {
  background: linear-gradient(180deg, rgba(13, 24, 21, 0) 35%, rgba(13, 24, 21, .55));
  content: "";
  inset: 0;
  position: absolute;
}

.video-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 1.1s ease, transform 1.1s var(--ease-out);
  width: 100%;
}

.video-thumb:hover img {
  filter: saturate(1.08);
  transform: scale(1.065);
}

.video-play {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 1.35rem;
  height: 3.25rem;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background .2s ease, color .2s ease, transform .25s var(--ease-out);
  width: 3.25rem;
  z-index: 2;
}

.video-play::after {
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: inherit;
  content: "";
  inset: -.35rem;
  position: absolute;
  animation: playPulse 1.6s ease-out infinite;
}

.video-thumb:hover .video-play {
  background: var(--gold);
  color: #241d06;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play i {
  margin-left: .15rem;
}

.video-card span {
  color: var(--gold);
  font-weight: 800;
}

.video-card.light {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.video-modal {
  align-items: center;
  background: rgba(0, 0, 0, .76);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 1090;
}

.video-modal.is-open {
  animation: fadeIn .18s ease both;
  display: flex;
}

.video-modal-content {
  background: #071713;
  border-radius: 8px;
  max-width: 920px;
  overflow: hidden;
  position: relative;
  width: min(100%, 920px);
}

.video-modal.is-open .video-modal-content {
  animation: scaleIn .75s var(--ease-out) both;
}

.video-modal-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-modal-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.video-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.5rem;
  z-index: 2;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heroImageDrift {
  0% {
    filter: saturate(1);
    transform: scale(1.04) translateX(-1.5%) translateY(0);
  }

  55% {
    filter: saturate(1.08);
    transform: scale(1.1) translateX(.8%) translateY(-.8%);
  }

  100% {
    filter: saturate(1.03);
    transform: scale(1.13) translateX(1.8%) translateY(-1.2%);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonGlow {
  from {
    box-shadow: 0 10px 22px rgba(212, 169, 40, .18);
  }

  to {
    box-shadow: 0 14px 32px rgba(212, 169, 40, .34);
  }
}

@keyframes nudgeArrow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(2px);
  }
}

@keyframes mobileMenuDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileMenuItemIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playPulse {
  from {
    opacity: .72;
    transform: scale(.88);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.detail-cover {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 1.35rem;
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

.content-block {
  padding: 1.6rem;
}

.source-action {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.source-action .btn {
  align-items: center;
  display: inline-flex;
  gap: .45rem;
}

.source-link {
  color: var(--muted);
  font-size: .9rem;
}

.content-block h2,
.info-panel h2,
.profile-panel h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.content-block h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 1.4rem;
}

.info-panel,
.profile-panel,
.work-card {
  padding: 1.4rem;
}

.profile-panel {
  text-align: center;
}

.info-list li {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .9rem 0;
}

.info-list span {
  color: var(--muted);
}

.info-list .multiline-value {
  text-align: right;
  white-space: normal;
}

.gallery-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.5rem;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-link {
  cursor: zoom-in;
  display: block;
  overflow: hidden;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  transition: filter 1.1s ease, transform 1.1s var(--ease-out);
  width: 100%;
}

.gallery-link:hover img {
  filter: saturate(1.08);
  transform: scale(1.04);
}

.gallery-grid figcaption {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .35rem;
}

.narrow {
  max-width: 820px;
}

.lightbox-modal {
  align-items: center;
  background: rgba(0, 31, 23, .86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  z-index: 1080;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-content {
  animation: scaleIn .75s var(--ease-out) both;
  max-width: min(1080px, 100%);
  width: 100%;
}

.lightbox-close {
  align-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: #2f2608;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  margin-bottom: .75rem;
  transition: background .2s ease, transform .2s var(--ease-out);
  width: 40px;
}

.lightbox-close:hover {
  background: #e1bb45;
  transform: translateY(-2px);
}

.lightbox-image {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  display: block;
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.lightbox-caption {
  color: var(--white);
  margin: .75rem 0 0;
}

.map-frame,
.map-frame iframe,
.map-placeholder {
  border: 0;
  border-radius: 8px;
  min-height: 420px;
  overflow: hidden;
  width: 100%;
}

.map-placeholder {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.map-placeholder i {
  color: var(--green);
  font-size: 3rem;
}

.contact-list li {
  border-bottom: 1px solid var(--line);
  padding: .85rem 0;
  transition: transform .2s var(--ease-out);
}

.contact-list li:hover {
  transform: translateX(3px);
}

.contact-social {
  margin-top: 1.5rem;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, .82);
  padding: 3.5rem 0 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-weight: 800;
}

.site-footer h2 {
  font-size: 1.5rem;
}

.site-footer h3 {
  font-size: 1rem;
}

.site-footer .footer-faculty-name {
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-out);
  width: 42px;
}

.social-links a:hover {
  background: var(--gold);
  color: #2f2608;
  transform: translateY(-3px);
}

.contact-social a {
  background: var(--green);
}

.footer-map {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  height: 168px;
  overflow: hidden;
  position: relative;
}

.footer-map iframe {
  border: 0;
  display: block;
  height: 100% !important;
  width: 100% !important;
}

.footer-map-placeholder {
  align-items: center;
  color: rgba(255, 255, 255, .88);
  display: flex;
  gap: .75rem;
  padding: 1rem;
}

.footer-map-placeholder i {
  align-items: center;
  background: var(--gold);
  border-radius: 999px;
  color: #2f2608;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.footer-bottom {
  background: var(--gold);
  color: #2f2608;
  margin-top: 2rem;
}

.footer-bottom .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding-bottom: .85rem;
  padding-top: .85rem;
}

.footer-bottom a {
  color: #2f2608;
  font-weight: 800;
}

.admin-content {
  animation: fadeRise .5s var(--ease-out) both;
  overflow-x: hidden;
}

.dashboard-stat-card {
  --stat-bg: #ecfdf5;
  --stat-border: rgba(0, 107, 79, .18);
  --stat-color: var(--green-dark);
  --stat-icon-bg: rgba(0, 107, 79, .12);
  --stat-icon-color: var(--green);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
    var(--stat-bg);
  border: 1px solid var(--stat-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 73, 54, .06);
  color: var(--stat-color);
  display: flex;
  gap: .95rem;
  min-height: 104px;
  overflow: hidden;
  padding: 1rem;
  position: relative;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s var(--ease-out);
}

.dashboard-stat-card::after {
  background: radial-gradient(circle, var(--stat-icon-bg), transparent 68%);
  content: "";
  height: 8rem;
  opacity: .72;
  position: absolute;
  right: -3.2rem;
  top: -3.5rem;
  width: 8rem;
}

.dashboard-stat-card:hover {
  border-color: var(--stat-color);
  box-shadow: 0 18px 34px rgba(0, 73, 54, .11);
  color: var(--stat-color);
  transform: translateY(-3px);
}

.dashboard-stat-icon {
  align-items: center;
  background: var(--stat-icon-bg);
  border-radius: 8px;
  color: var(--stat-icon-color);
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 1.35rem;
  height: 48px;
  justify-content: center;
  position: relative;
  width: 48px;
  z-index: 1;
}

.dashboard-stat-content {
  display: grid;
  gap: .12rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.dashboard-stat-label {
  color: #41544d;
  font-size: .88rem;
  font-weight: 600;
}

.dashboard-stat-card strong {
  color: var(--stat-color);
  font-size: 1.95rem;
  line-height: 1.05;
}

.dashboard-stat-link {
  align-items: center;
  color: var(--stat-color);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: .15rem;
  opacity: .72;
}

.dashboard-stat-card-teal {
  --stat-bg: #e8fbf6;
  --stat-border: rgba(13, 148, 136, .24);
  --stat-color: #0f766e;
  --stat-icon-bg: rgba(13, 148, 136, .14);
  --stat-icon-color: #0f766e;
}

.dashboard-stat-card-blue {
  --stat-bg: #eef6ff;
  --stat-border: rgba(37, 99, 235, .24);
  --stat-color: #1d4ed8;
  --stat-icon-bg: rgba(37, 99, 235, .13);
  --stat-icon-color: #2563eb;
}

.dashboard-stat-card-gold {
  --stat-bg: #fff8db;
  --stat-border: rgba(212, 169, 40, .34);
  --stat-color: #936f06;
  --stat-icon-bg: rgba(212, 169, 40, .2);
  --stat-icon-color: #a97800;
}

.dashboard-stat-card-rose {
  --stat-bg: #fff1f2;
  --stat-border: rgba(225, 29, 72, .22);
  --stat-color: #be123c;
  --stat-icon-bg: rgba(225, 29, 72, .12);
  --stat-icon-color: #e11d48;
}

.dashboard-stat-card-purple {
  --stat-bg: #f7f1ff;
  --stat-border: rgba(124, 58, 237, .22);
  --stat-color: #6d28d9;
  --stat-icon-bg: rgba(124, 58, 237, .12);
  --stat-icon-color: #7c3aed;
}

.dashboard-stat-card-cyan {
  --stat-bg: #ecfeff;
  --stat-border: rgba(8, 145, 178, .24);
  --stat-color: #0e7490;
  --stat-icon-bg: rgba(8, 145, 178, .13);
  --stat-icon-color: #0891b2;
}

.dashboard-stat-card-green {
  --stat-bg: #effaf1;
  --stat-border: rgba(22, 163, 74, .24);
  --stat-color: #15803d;
  --stat-icon-bg: rgba(22, 163, 74, .13);
  --stat-icon-color: #16a34a;
}

.dashboard-stat-card-indigo {
  --stat-bg: #eef2ff;
  --stat-border: rgba(79, 70, 229, .24);
  --stat-color: #4338ca;
  --stat-icon-bg: rgba(79, 70, 229, .13);
  --stat-icon-color: #4f46e5;
}

.dashboard-stat-card-orange {
  --stat-bg: #fff7ed;
  --stat-border: rgba(234, 88, 12, .24);
  --stat-color: #c2410c;
  --stat-icon-bg: rgba(234, 88, 12, .14);
  --stat-icon-color: #ea580c;
}

.dashboard-stat-card-slate {
  --stat-bg: #f8fafc;
  --stat-border: rgba(71, 85, 105, .24);
  --stat-color: #334155;
  --stat-icon-bg: rgba(71, 85, 105, .12);
  --stat-icon-color: #475569;
}

.table-responsive {
  animation: fadeRise .5s var(--ease-out) both;
  border-radius: 8px;
}

.table {
  vertical-align: middle;
}

.table tbody tr {
  transition: background .2s ease;
}

.table tbody tr:hover {
  background: rgba(0, 107, 79, .04);
}

.form-control,
.form-select {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}

.form-control:focus,
.form-select:focus {
  transform: translateY(-1px);
}

.alert {
  animation: fadeRise .35s var(--ease-out) both;
}

.btn-group {
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background:
      linear-gradient(180deg, rgba(0, 73, 54, .98), rgba(0, 107, 79, .96)),
      repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 22px 42px rgba(0, 73, 54, .2);
    margin: .75rem -0.75rem 0;
    overflow: hidden;
    padding: 0 .75rem;
  }

  .site-navbar .navbar-collapse.collapsing {
    opacity: 0;
    transform: translateY(-18px);
    transition: height .55s var(--ease-out), opacity .45s ease, transform .55s var(--ease-out);
  }

  .site-navbar .navbar-collapse.show {
    animation: mobileMenuDrop .62s var(--ease-out) both;
  }

  .site-navbar .navbar-collapse.show .nav-item {
    animation: mobileMenuItemIn .58s var(--ease-out) both;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(1) {
    animation-delay: .06s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(2) {
    animation-delay: .12s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(3) {
    animation-delay: .18s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(4) {
    animation-delay: .24s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(5) {
    animation-delay: .3s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(6) {
    animation-delay: .36s;
  }

  .site-navbar .navbar-collapse.show .nav-item:nth-child(7) {
    animation-delay: .42s;
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .btn-apply {
    justify-content: center;
    margin-top: .5rem;
    width: 100%;
  }

  .hero-section,
  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 600px;
  }

  .hero-image {
    height: 600px;
    min-height: 600px;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-copy {
    padding-bottom: 5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 47, 35, .36) 0%, rgba(0, 47, 35, .72) 55%, rgba(0, 47, 35, .92) 100%),
      linear-gradient(90deg, rgba(0, 47, 35, .72), rgba(0, 74, 54, .22));
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .programs-section .program-card {
    flex-basis: 150px;
  }

  .subsection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .carousel-item.active .hero-image,
  .btn-gold:hover,
  .btn-outline-green:hover,
  .btn-apply:hover,
  .programs-section .program-scroll-btn:hover i,
  .video-play::after {
    animation: none !important;
  }

  .reveal-on-scroll {
    transition-duration: .65s !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    max-width: 82%;
  }

  .navbar-brand strong {
    font-size: .86rem;
  }

  .brand-mark {
    height: 44px;
    padding: 4px 7px;
    width: 66px;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 10vw, 2.45rem);
  }

  .hero-section,
  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: min(680px, 78svh);
  }

  .hero-image {
    height: min(680px, 78svh);
    min-height: min(680px, 78svh);
    object-position: 62% center;
  }

  @supports not (height: 1svh) {
    .hero-section,
    .carousel,
    .carousel-inner,
    .carousel-item {
      min-height: min(680px, 78vh);
    }

    .hero-image {
      height: min(680px, 78vh);
      min-height: min(680px, 78vh);
    }
  }

  .hero-copy {
    max-width: min(100%, 360px);
    padding-bottom: 5.25rem;
    padding-top: 3.25rem;
  }

  .hero-copy .eyebrow {
    font-size: .72rem;
    margin-bottom: .5rem;
  }

  .hero-copy p {
    font-size: .98rem;
    line-height: 1.55;
    max-width: 34ch;
  }

  .hero-copy .btn {
    padding: .68rem 1.05rem;
  }

  .hero-content {
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 47, 35, .48) 0%, rgba(0, 47, 35, .72) 42%, rgba(0, 47, 35, .9) 100%),
      linear-gradient(90deg, rgba(0, 47, 35, .78), rgba(0, 74, 54, .3));
  }

  .hero-indicators {
    bottom: 1rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .programs-section .program-card {
    flex-basis: 46vw;
  }

  .card-body,
  .content-block,
  .info-panel,
  .profile-panel,
  .work-card,
  .lecturer-card {
    padding: 1rem;
  }

  .lecturer-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .lecturer-filter > div {
    max-width: none;
  }

  .card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 2.25rem 0;
  }

  .page-hero::after {
    clip-path: polygon(54% 0, 100% 0, 100% 100%, 18% 100%);
    opacity: .55;
    width: 68vw;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .sciconnect-hero {
    padding: 2.25rem 0;
  }

  .sciconnect-hero h1 {
    font-size: 2rem;
  }

  .detail-hero {
    padding: 1.35rem 0;
  }

  .detail-hero h1 {
    font-size: 1.35rem;
  }

  .section-pad {
    padding: 3rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom .container {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }
}

/* Modern visual polish */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 42%, #f6faf8 100%);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.scroll-progress {
  height: 3px;
  inset: 0 0 auto;
  pointer-events: none;
  position: fixed;
  z-index: 10000;
}

.scroll-progress span {
  background: linear-gradient(90deg, var(--gold), #f1d66c, var(--green));
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .12s linear;
  width: 100%;
}

.site-navbar {
  backdrop-filter: blur(16px);
  background: rgba(0, 73, 54, .94);
}

.site-navbar.is-scrolled {
  background: rgba(0, 73, 54, .9);
  box-shadow: 0 14px 34px rgba(0, 45, 34, .18);
}

.nav-link {
  border-radius: 8px;
  padding-left: .72rem !important;
  padding-right: .72rem !important;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, .08);
}

.hero-copy {
  text-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.hero-copy h1 {
  letter-spacing: 0;
  max-width: 12ch;
}

.hero-copy p {
  color: rgba(255, 255, 255, .92);
  max-width: 58ch;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 31, 23, .92), rgba(0, 74, 54, .54) 52%, rgba(0, 0, 0, .1)),
    linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 31, 23, .34));
}

.hero-carousel {
  overflow: hidden;
  position: relative;
}

.hero-overlay {
  z-index: 1;
}

.hero-carousel .carousel-inner {
  position: relative;
  z-index: 1;
}

.hero-3d-orbit {
  aspect-ratio: 1;
  animation: orbitFloat 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 16px rgba(246, 221, 122, .34));
  opacity: .78;
  pointer-events: none;
  position: absolute;
  right: clamp(1.4rem, 12vw, 11rem);
  top: clamp(7rem, 24vh, 12rem);
  transform: rotateX(58deg) rotateZ(-12deg);
  transform-style: preserve-3d;
  width: clamp(135px, 18vw, 230px);
  z-index: 4;
}

.hero-3d-orbit,
.hero-3d-orbit span {
  transform-style: preserve-3d;
}

.hero-3d-orbit span {
  border: 1.5px solid rgba(246, 221, 122, .84);
  border-radius: 999px;
  box-shadow:
    0 0 24px rgba(246, 221, 122, .3),
    inset 0 0 22px rgba(255, 255, 255, .1);
  inset: 18%;
  position: absolute;
}

.hero-3d-orbit span::before {
  background: var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(246, 221, 122, .7);
  content: "";
  height: 7px;
  left: 50%;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  width: 9px;
}

.hero-3d-orbit span:nth-child(1) {
  animation: orbitTiltOne 7.5s linear infinite;
  transform: rotateX(68deg) rotateZ(22deg);
}

.hero-3d-orbit span:nth-child(2) {
  animation: orbitTiltTwo 9s linear infinite reverse;
  border-color: rgba(255, 255, 255, .66);
  inset: 10%;
  transform: rotateY(70deg) rotateZ(-18deg);
}

.hero-3d-orbit span:nth-child(2)::before {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 12px rgba(255, 255, 255, .55);
  height: 7px;
  width: 7px;
}

.hero-3d-orbit span:nth-child(3) {
  animation: orbitTiltThree 11s linear infinite;
  border-color: rgba(101, 221, 190, .58);
  inset: 28%;
  transform: rotateX(54deg) rotateY(42deg);
}

.hero-3d-orbit span:nth-child(3)::before {
  background: rgba(101, 221, 190, .88);
  box-shadow: 0 0 12px rgba(101, 221, 190, .55);
  height: 7px;
  width: 7px;
}

.hero-3d-orbit::before,
.hero-3d-orbit::after {
  background: linear-gradient(90deg, transparent, rgba(246, 221, 122, .68), transparent);
  content: "";
  height: 2px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: rotateZ(-18deg) translateZ(42px);
}

.hero-3d-orbit::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .48), transparent);
  transform: rotateZ(38deg) translateZ(-36px);
}

.hero-content {
  z-index: 5;
}

.hero-indicators,
.carousel-control-prev,
.carousel-control-next {
  z-index: 6;
}

@keyframes orbitTiltOne {
  to {
    transform: rotateX(68deg) rotateZ(382deg);
  }
}

@keyframes orbitTiltTwo {
  to {
    transform: rotateY(70deg) rotateZ(342deg);
  }
}

@keyframes orbitTiltThree {
  to {
    transform: rotateX(54deg) rotateY(42deg) rotateZ(360deg);
  }
}

@keyframes orbitFloat {
  from {
    transform: rotateX(58deg) rotateZ(-12deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotateX(62deg) rotateZ(-5deg) translate3d(0, -8px, 0);
  }
}

.section-pad {
  position: relative;
}

.section-heading {
  gap: 1.25rem;
}

.section-heading span,
.subsection-heading a,
.card-meta a {
  letter-spacing: 0;
}

.section-heading span {
  align-items: center;
  display: inline-flex;
  gap: .5rem;
}

.section-heading span::before {
  background: var(--gold);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: .55rem;
  width: .55rem;
}

.feature-card,
.news-card,
.video-card,
.lecturer-card,
.work-card,
.info-panel,
.profile-panel,
.content-block {
  box-shadow: 0 12px 34px rgba(0, 73, 54, .08);
}

.feature-card,
.news-card,
.video-card,
.lecturer-card,
.work-card {
  isolation: isolate;
  position: relative;
}

.feature-card::after,
.news-card::after,
.video-card::after,
.lecturer-card::after,
.work-card::after {
  background: linear-gradient(135deg, rgba(212, 169, 40, .12), rgba(0, 107, 79, .08));
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .35s ease;
  z-index: 1;
}

.feature-card:hover::after,
.news-card:hover::after,
.video-card:hover::after,
.lecturer-card:hover::after,
.work-card:hover::after {
  opacity: 1;
}

.card-body,
.lecturer-card,
.work-card,
.content-block,
.info-panel,
.profile-panel {
  position: relative;
  z-index: 2;
}

.programs-section .program-carousel {
  gap: .95rem;
}

.programs-section .program-slider {
  gap: .9rem;
  mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  padding: .35rem .1rem .55rem;
}

.programs-section .program-card {
  flex-basis: 190px;
}

.programs-section .program-card .card-body {
  padding: .75rem;
}

.programs-section .feature-card.program-card h3 {
  font-size: .86rem;
}

.programs-section .program-scroll-btn,
.back-to-top {
  box-shadow: 0 10px 22px rgba(0, 73, 54, .16);
}

.badge-soft {
  border: 1px solid rgba(0, 107, 79, .16);
}

.card-meta {
  border-color: rgba(0, 107, 79, .12);
}

.site-footer {
  background:
    linear-gradient(180deg, #003f2f, var(--green-dark)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px);
}

.back-to-top {
  align-items: center;
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  bottom: 1.25rem;
  color: #241d06;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  transform: translateY(12px) scale(.92);
  transition: opacity .22s ease, transform .22s var(--ease-out), background .2s ease;
  width: 46px;
  z-index: 1030;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: #e1bb45;
  transform: translateY(-3px) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-progress span,
  .back-to-top {
    transition: none;
  }

  .hero-3d-orbit,
  .hero-3d-orbit span {
    animation-duration: 18s;
  }
}

@media (max-width: 991.98px) {
  .hero-3d-orbit {
    opacity: .55;
    right: 1.25rem;
    top: 7.4rem;
    width: clamp(104px, 24vw, 156px);
  }
}

@media (max-width: 575.98px) {
  .programs-section .program-slider {
    mask-image: none;
  }

  .programs-section .program-card {
    flex-basis: 52vw;
  }

  .back-to-top {
    bottom: .9rem;
    height: 42px;
    right: .9rem;
    width: 42px;
  }

  .hero-3d-orbit {
    opacity: .48;
    right: .55rem;
    top: 7.1rem;
    width: clamp(88px, 31vw, 118px);
  }
}
