/* GWP Muzaffarpur - site styles. Themes are driven by CSS variables (see data-theme / data-mode on <html>). */
:root {
  --p: #9b1c31;
  --p2: #6d1223;
  --pl: #fbeaee;
  --acc: #f0b429;
  --bg: #f6f4f2;
  --card: #fff;
  --tx: #241f20;
  --mut: #6b6466;
  --bd: #e7e1e2;
  --sh: 0 10px 30px rgba(36, 31, 32, 0.08);
  --r: 14px;
  --hd: "Playfair Display", Georgia, serif;
  --bd-font: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
}
[data-theme="purple"] {
  --p: #6e1a98;
  --p2: #4b1068;
  --pl: #f1e6f7;
  --acc: #f0b429;
}
[data-theme="green"] {
  --p: #5f8a12;
  --p2: #3e5c0a;
  --pl: #eef5dc;
  --acc: #e07a1f;
}
[data-theme="navy"] {
  --p: #14407a;
  --p2: #0b2a52;
  --pl: #e4edf8;
  --acc: #f0b429;
}
[data-mode="dark"] {
  --bg: #141214;
  --card: #1e1b1d;
  --tx: #efeaeb;
  --mut: #a59da0;
  --bd: #332f31;
  --pl: #2a2326;
  --sh: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-mode="dark"][data-theme="purple"] {
  --pl: #271d30;
}
[data-mode="dark"][data-theme="green"] {
  --pl: #212a14;
}
[data-mode="dark"][data-theme="navy"] {
  --pl: #18222f;
}
[data-mode="dark"] img {
  filter: brightness(0.92);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 100%;
}
body {
  margin: 0;
  font-family: var(--bd-font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.65;
  font-size: 1rem;
  transition:
    background 0.3s,
    color 0.3s;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--p);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-family: var(--hd);
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--tx);
}
.wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}
.muted {
  color: var(--mut);
}
.hp {
  position: absolute;
  left: -9999px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip:focus {
  left: 8px;
  top: 8px;
}
:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

/* Top bar + toolbar */
.topbar {
  background: var(--p2);
  color: #fff;
  font-size: 0.8rem;
}
.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0;
}
.top-contact {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.top-contact a {
  color: #fff;
  opacity: 0.9;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.tb-label {
  opacity: 0.8;
  margin: 0 0.15rem;
}
.tb-sep {
  width: 1px;
  height: 18px;
  background: #fff4;
  margin: 0 0.4rem;
}
.tb-btn {
  background: #ffffff1f;
  border: 1px solid #ffffff40;
  color: #fff;
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: 0.2s;
}
.tb-btn:hover {
  background: #fff;
  color: var(--p2);
}
.tb-inq {
  background: var(--acc);
  color: #241f20;
  border-color: var(--acc);
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--c);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.swatch:hover,
.swatch.on {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--acc);
}

/* Brand bar */
.brandbar {
  background: var(--card);
  border-bottom: 1px solid var(--bd);
}
.brand-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--tx);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  width: 84px;
  height: 84px;
  object-fit: cover;
}
.brand strong {
  display: block;
  font-family: var(--hd);
  font-size: 1.55rem;
  color: var(--p);
  line-height: 1.2;
}
.brand small {
  display: block;
  color: var(--mut);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.search {
  display: flex;
  border: 1px solid var(--bd);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
}
.search input {
  border: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  font: inherit;
  color: var(--tx);
  width: 200px;
  outline: 0;
}
.search button {
  border: 0;
  background: var(--p);
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
}

/* Main nav */
.mainnav {
  background: var(--p);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.menu > li {
  position: relative;
}
.menu > li > a {
  display: block;
  color: #fff;
  padding: 0.9rem 0.62rem;
  font-weight: 500;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: 0.2s;
}
.menu > li > a:hover,
.menu > li.active > a,
.menu > li.open > a {
  background: var(--p2);
  text-decoration: none;
}
.menu > li.active > a {
  box-shadow: inset 0 -3px 0 var(--acc);
}
.menu i {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  transition: transform 0.2s;
}
.sub {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 250px;
  background: var(--card);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--sh);
  border-top: 3px solid var(--acc);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
  z-index: 60;
}
.menu > li:last-child .sub,
.menu > li:nth-last-child(2) .sub,
.menu > li:nth-last-child(3) .sub {
  left: auto;
  right: 0;
}
.sub a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--tx);
  border-radius: 8px;
  font-size: 0.9rem;
}
.sub a:hover {
  background: var(--pl);
  color: var(--p);
  text-decoration: none;
  padding-left: 1.1rem;
}
.sub a {
  transition: 0.15s;
}
@media (hover: hover) {
  .menu > li.has-sub:hover > .sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu > li.has-sub:hover > a i {
    transform: rotate(180deg);
  }
}
.menu > li.open > .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu > li.open > a i {
  transform: rotate(180deg);
}
.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 0;
  cursor: pointer;
}

/* Ticker */
.ticker {
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  font-size: 0.88rem;
}
.ticker-in {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.35rem 0;
}
.ticker-tag {
  background: var(--acc);
  color: #241f20;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ticker-view {
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 3%,
    #000 97%,
    transparent
  );
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: tick 60s linear infinite;
  padding-left: 100%;
}
.ticker-view:hover .ticker-track,
.ticker.paused .ticker-track {
  animation-play-state: paused;
}
.ticker-track a {
  color: var(--tx);
}
.ticker-track i {
  color: var(--p);
  font-size: 0.55rem;
  margin-right: 0.4rem;
}
@keyframes tick {
  to {
    transform: translateX(-100%);
  }
}
.ticker-pause {
  background: none;
  border: 0;
  color: var(--mut);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--p);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.btn:hover {
  background: var(--p2);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.btn.alt {
  background: transparent;
  color: var(--p);
  box-shadow: inset 0 0 0 2px var(--p);
}
.btn.alt:hover {
  background: var(--p);
  color: #fff;
}
.btn.sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}
.btn.danger {
  background: #c0392b;
}
.btn.light {
  background: #fff;
  color: var(--p);
}

/* Hero slider */
.hero {
  position: relative;
  height: clamp(300px, 52vw, 560px);
  overflow: hidden;
  background: #000;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.slide.on {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 7s;
}
.slide.on img {
  transform: scale(1);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
}
.hero-cap {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 12%;
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}
.hero-cap h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.4rem;
}
.hero-cap p {
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  margin: 0 0 1.2rem;
  opacity: 0.95;
}
.hero-cap .btn + .btn {
  margin-left: 0.6rem;
}
.hero-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ffffff33;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hero-nav:hover {
  background: var(--p);
}
.hp-prev {
  left: 14px;
}
.hp-next {
  right: 14px;
}
.dots {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #fff7;
  cursor: pointer;
  padding: 0;
}
.dots button.on {
  background: var(--acc);
  width: 28px;
  border-radius: 6px;
}

/* Stats */
.stats {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: var(--card);
  border-radius: var(--r);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--sh);
  border-bottom: 4px solid var(--p);
}
.stat b {
  display: block;
  font-family: var(--hd);
  font-size: 2.2rem;
  color: var(--p);
}
.stat span {
  color: var(--mut);
  font-size: 0.88rem;
}

/* Sections */
.sec {
  padding: 3.5rem 0;
}
.sec.alt {
  background: var(--card);
}
.sec-head {
  text-align: center;
  margin-bottom: 2rem;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.sec-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--p), var(--acc));
}
.sec-head p {
  color: var(--mut);
  margin: 0.4rem 0 0;
}
.grid {
  display: grid;
  gap: 1.4rem;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.6rem;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
}
.card-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  background: var(--p);
  color: #fff;
  font-weight: 600;
}
.card-h a {
  color: #fff;
  font-size: 0.85rem;
}
.card-b {
  padding: 1.2rem;
}
.hover-up {
  transition: 0.25s;
}
.hover-up:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* Notice board */
.nb {
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.nb-track {
  animation: nbscroll 40s linear infinite;
}
.nb:hover .nb-track {
  animation-play-state: paused;
}
@keyframes nbscroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.nb.static {
  overflow: auto;
}
.nb.static .nb-track {
  animation: none;
}
.nitem {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px dashed var(--bd);
  align-items: flex-start;
}
.nitem:hover {
  background: var(--pl);
}
.ndate {
  flex: 0 0 58px;
  text-align: center;
  background: var(--pl);
  color: var(--p);
  border-radius: 10px;
  padding: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}
.ndate i {
  display: block;
  font-size: 1.1rem;
}
.nitem a {
  color: var(--tx);
  font-weight: 500;
}
.nitem small {
  display: block;
  color: var(--mut);
}
.tag {
  display: inline-block;
  background: var(--acc);
  color: #241f20;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* Quick tiles */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1.4rem 1rem;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  color: var(--tx);
  transition: 0.25s;
}
.tile i {
  font-size: 1.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--p), var(--p2));
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  transition: 0.3s;
}
.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh);
  text-decoration: none;
  border-color: var(--p);
}
.tile:hover i {
  transform: rotate(-8deg) scale(1.08);
}
.tile b {
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--bd);
  margin-bottom: 1.2rem;
}
.tab {
  background: none;
  border: 0;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: 0.2s;
}
.tab:hover {
  color: var(--p);
}
.tab.on {
  color: var(--p);
  border-color: var(--p);
}
.pane {
  display: none;
  animation: fade 0.4s;
}
.pane.on {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* People / placement cards */
.person {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
}
.person img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pl);
}
.person h4 {
  margin: 0;
  font-size: 1.05rem;
}
.person p {
  margin: 0.1rem 0;
  color: var(--mut);
  font-size: 0.9rem;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  text-align: center;
  transition: 0.25s;
}
.pcard:hover {
  transform: translateY(-6px);
}
.pcard img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.pcard div {
  padding: 0.9rem;
}
.pcard h4 {
  font-family: var(--bd-font);
  font-size: 1rem;
  margin: 0;
}
.pcard small {
  color: var(--mut);
}
.pcard .co {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--pl);
  color: var(--p);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
}

/* Gallery */
.gal {
  columns: 4 220px;
  column-gap: 1rem;
}
.gal figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--sh);
}
.gal img {
  width: 100%;
  display: block;
  transition: transform 0.5s;
}
.gal figure:hover img {
  transform: scale(1.07);
}
.gal figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 0.8rem 0.6rem;
  color: #fff;
  font-size: 0.82rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: 0.3s;
}
.gal figure:hover figcaption {
  opacity: 1;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox[hidden],
.modal[hidden] {
  display: none;
}
.lightbox img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 8px;
  filter: none !important;
}
.lb-cap {
  color: #fff;
  margin: 0.8rem 0 0;
  text-align: center;
  padding: 0 1rem;
}
.lb-x {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  background: #ffffff26;
  border: 0;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}

/* Page hero + content */
.page-hero {
  background: linear-gradient(135deg, var(--p2), var(--p));
  color: #fff;
  padding: 2.6rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #ffffff14;
}
.page-hero h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.crumbs {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.4rem;
}
.crumbs a {
  color: #fff;
  text-decoration: underline;
}
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.6rem;
  padding: 2.2rem 0 3.5rem;
  align-items: start;
}
.layout.full {
  grid-template-columns: 1fr;
}
.side {
  position: sticky;
  top: 70px;
}
.side ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
}
.side li a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  color: var(--tx);
  font-size: 0.92rem;
}
.side li a:hover {
  background: var(--pl);
  text-decoration: none;
}
.side li a.on {
  background: var(--p);
  color: #fff;
}
.content {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 1.8rem;
  box-shadow: var(--sh);
  overflow-wrap: anywhere;
}
.content h2,
.content h3 {
  color: var(--p);
}
.content img {
  border-radius: 12px;
}
.content p {
  text-align: justify;
}
.content ul {
  padding-left: 1.2rem;
}
.content table,
.tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.content th,
.content td,
.tbl th,
.tbl td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--bd);
  text-align: left;
}
.content th,
.tbl th {
  background: var(--pl);
  color: var(--p);
}
.tbl-wrap {
  overflow-x: auto;
}
.content tr:hover td {
  background: var(--pl);
}
.doc-list {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.doc {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--bg);
  color: var(--tx) !important;
  transition: 0.2s;
}
.doc:hover {
  border-color: var(--p);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--sh);
}
.doc i {
  font-size: 1.5rem;
  color: var(--p);
}
.doc span {
  font-weight: 500;
}
.dept-card {
  padding: 1.6rem;
  text-align: center;
  color: var(--tx);
}
.dept-card i {
  font-size: 2rem;
  color: var(--p);
  margin-bottom: 0.6rem;
}
.dept-card:hover {
  text-decoration: none;
}
.dept-card h3 {
  font-size: 1.05rem;
  margin: 0;
}
.hl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}
.vid {
  width: 100%;
  border-radius: 12px;
  background: #000;
}
.links li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--bd);
}
.links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.links a {
  color: var(--tx);
}
.links a:hover {
  color: var(--p);
}
.links i {
  color: var(--p);
  margin-right: 0.5rem;
}
.empty {
  text-align: center;
  color: var(--mut);
  padding: 2rem;
}

/* Forms / modal */
.form {
  display: grid;
  gap: 0.9rem;
}
.form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
input,
select,
textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: var(--bg);
  color: var(--tx);
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--p);
  border-color: transparent;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 1rem;
}
.modal-box {
  background: var(--card);
  border-radius: 18px;
  padding: 1.8rem;
  width: min(520px, 100%);
  position: relative;
  max-height: 92vh;
  overflow: auto;
  animation: fade 0.3s;
}
.modal-x {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--mut);
}
.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #e6f6e9;
  color: #1c6b32;
  border: 1px solid #b9e3c3;
}
.alert.err {
  background: #fdeaea;
  color: #a12626;
  border-color: #f3bcbc;
}

/* Footer */
.footer {
  background: #1b1416;
  color: #d7cfd1;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer h4 {
  color: #fff;
  font-family: var(--bd-font);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer a {
  color: #d7cfd1;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin: 0.35rem 0;
}
.foot-logo {
  border-radius: 50%;
  margin-bottom: 0.6rem;
}
.social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff1a;
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.social a:hover {
  background: var(--p);
  transform: translateY(-4px);
  text-decoration: none;
}
.foot-bottom {
  border-top: 1px solid #ffffff1f;
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--p);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sh);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
}
.edit-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  background: var(--acc);
  color: #241f20;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--sh);
  z-index: 90;
}
.edit-fab:hover {
  text-decoration: none;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1000px) {
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols,
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .burger {
    display: block;
  }
  .menu {
    display: none;
    flex-direction: column;
  }
  .menu.show {
    display: flex;
    padding-bottom: 0.6rem;
  }
  .menu > li > a {
    padding: 0.75rem 0.4rem;
    border-top: 1px solid #ffffff1f;
  }
  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 8px;
    margin: 0 0 0.4rem;
    min-width: 0;
  }
  .menu > li.open > .sub {
    display: block;
  }
  .menu > li:last-child .sub {
    right: auto;
  }
  .brand strong {
    font-size: 1.15rem;
  }
  .brand img {
    width: 60px;
    height: 60px;
  }
  .search {
    display: none;
  }
  .top-contact {
    display: none;
  }
  .toolbar {
    width: 100%;
    justify-content: center;
  }
  .hl,
  .two {
    grid-template-columns: 1fr;
  }
  .hero-cap .btn + .btn {
    margin: 0.5rem 0 0;
  }
}
@media (max-width: 560px) {
  .g2,
  .g3,
  .g4,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .tb-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .topbar,
  .mainnav,
  .ticker,
  .footer,
  .to-top,
  .toolbar,
  .edit-fab,
  .side {
    display: none !important;
  }
  .layout {
    grid-template-columns: 1fr;
  }
}

/* Hero + Latest Updates side panel */
.hero-row {
  padding: 1.2rem 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.hero-grid .hero {
  height: clamp(320px, 38vw, 480px);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.stats {
  margin-top: 1.4rem;
}
.upd {
  display: flex;
  flex-direction: column;
  height: clamp(320px, 38vw, 480px);
}
.upd-pause {
  background: #ffffff26;
  border: 0;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}
.upd-pause:hover {
  background: #fff;
  color: var(--p);
}
.upd-view {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(transparent, #000 6%, #000 94%, transparent);
}
.upd-track {
  animation: updscroll 45s linear infinite;
}
.upd-view:hover .upd-track,
.upd.paused .upd-track {
  animation-play-state: paused;
}
.upd-view.static {
  overflow: auto;
  mask-image: none;
}
.upd-view.static .upd-track {
  animation: none;
}
@keyframes updscroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.upd-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px dashed var(--bd);
  font-size: 0.92rem;
  line-height: 1.5;
}
.upd-item:hover {
  background: var(--pl);
}
.upd-item i {
  color: var(--p);
  font-size: 0.55rem;
  margin-top: 0.55rem;
  flex: none;
}
.upd-item a,
.upd-item span {
  color: var(--tx);
  font-weight: 500;
}
.upd-item a:hover {
  color: var(--p);
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .hero {
    height: clamp(260px, 56vw, 420px);
  }
  .upd {
    height: 320px;
  }
}
/* ===== FIX: wider layout, stable navbar, bigger hero, updates panel ===== */
.wrap {
  width: min(1400px, 96%);
}
.menu {
  flex-wrap: wrap;
  justify-content: center;
}
.menu > li {
  flex: 1 1 auto;
  text-align: center;
}
.menu > li > a {
  padding: 0.85rem 0.5rem;
  font-size: clamp(12px, 0.95vw, 14px);
}
.menu i {
  margin-left: 0.15rem;
  font-size: 0.55rem;
}
.hero-grid {
  grid-template-columns: minmax(0, 2.6fr) minmax(300px, 1fr);
}
.hero-grid .hero,
.upd {
  height: clamp(440px, 46vw, 700px);
}
.hero-cap {
  bottom: 7%;
}
.hero-cap h1 {
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
}
.hero-cap p {
  display: none;
}
.upd-item small {
  display: block;
  color: var(--mut);
  font-size: 0.75rem;
}
@media (max-width: 1180px) {
  .burger {
    display: block;
  }
  .menu {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .menu.show {
    display: flex;
    padding-bottom: 0.6rem;
  }
  .menu > li {
    text-align: left;
  }
  .menu > li > a {
    padding: 0.75rem 0.4rem;
    border-top: 1px solid #ffffff1f;
    font-size: 0.95rem;
  }
  .sub {
    position: static;
    display: none;
    box-shadow: none;
    margin: 0 0 0.4rem;
    min-width: 0;
  }
  .menu > li.open > .sub {
    display: block;
  }
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid .hero {
    height: clamp(300px, 60vw, 460px);
  }
  .upd {
    height: 340px;
  }
}
