@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Hind+Siliguri:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #020205;
  --bg-soft: #0a0a14;
  --card: rgba(13, 13, 25, 0.5);
  --line: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #94a3b8;
  --gold: #7000ff;
  --green: #00f0ff;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18.5px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.site-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('images/night-sky-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0.28;
  filter: contrast(1.1) brightness(0.85);
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10) 0%, transparent 70%);
  top: -15%; left: -10%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

body::after {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.14) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

body > * { position: relative; z-index: 1; }
#page-content { position: relative; z-index: 1; }

::selection { background: var(--gold); color: #ffffff; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,2,5,0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1300px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,240,255,0.2);
}
.logo .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  -webkit-text-fill-color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(0,240,255,0.1) 0%, rgba(112,0,255,0.05) 100%);
  box-shadow: 0 0 20px rgba(0,240,255,0.2), inset 0 0 10px rgba(0,240,255,0.1);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: block; }
}

/* PAGE HEADER (sub-pages) */
.page-header {
  position: relative;
  z-index: 1;
  padding: 90px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
  padding: 8px 22px;
  border-radius: 100px;
  border: 1px solid rgba(0,240,255,0.15);
  background: rgba(255,255,255,0.02);
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ffffff 0%, var(--green) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

/* HERO (home only) */
.hero {
  position: relative;
  z-index: 1;
  padding: 60px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero .container { position: relative; z-index: 1; }
.hero .ornament {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 26px;
  padding: 8px 22px;
  border-radius: 100px;
  border: 1px solid rgba(0,240,255,0.15);
  background: rgba(255,255,255,0.02);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 4.6vw, 3.4rem);
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  white-space: nowrap;
  background: linear-gradient(90deg, #ffffff 0%, var(--green) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(1.1rem, 6vw, 1.8rem); white-space: normal; }
}
.hero h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 3.5vw, 1.7rem);
  background: linear-gradient(90deg, var(--green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary,
.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.03);
}
.btn-primary:hover,
.btn-secondary:hover {
  color: var(--bg);
  background: var(--green);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  border-color: transparent;
  transform: none;
}

/* SECTIONS */
section { position: relative; z-index: 1; padding: 80px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
section.no-border { border-bottom: none; }

section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
  z-index: -1;
}
.glow-left::before {
  background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 70%);
  top: -180px;
  left: -150px;
}
.glow-right::before {
  background: radial-gradient(circle, rgba(112,0,255,0.10) 0%, transparent 70%);
  top: 10%;
  right: -200px;
}
.glow-center::before {
  background: radial-gradient(circle, rgba(0,240,255,0.10) 0%, transparent 70%);
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head .tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, var(--green) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 14px rgba(0,240,255,0.25);
  flex-shrink: 0;
}

/* ADMIN THEME: purple accent instead of cyan */
.admin-theme .login-box h1,
.admin-theme .admin-form h2 {
  background: linear-gradient(90deg, #ffffff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-theme .tag { color: var(--gold); }
.admin-theme .section-head h2 {
  background: linear-gradient(90deg, #ffffff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-theme .login-box,
.admin-theme .admin-form {
  border-color: rgba(112, 0, 255, 0.2);
}
.admin-theme .login-box:hover,
.admin-theme .admin-form:hover {
  border-color: rgba(112, 0, 255, 0.5);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.admin-theme .login-box input:focus,
.admin-theme .admin-form input:focus,
.admin-theme .admin-form textarea:focus,
.admin-theme .admin-form select:focus {
  border-color: var(--gold);
}
.admin-theme .btn-primary,
.admin-theme .btn-secondary {
  border-color: rgba(112, 0, 255, 0.55);
  background: rgba(112, 0, 255, 0.05);
}
.admin-theme .btn-primary:hover,
.admin-theme .btn-secondary:hover {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(112, 0, 255, 0.4);
}
.admin-theme .nav-links a:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(112,0,255,0.15) 0%, rgba(0,240,255,0.05) 100%);
  box-shadow: 0 0 20px rgba(112,0,255,0.25), inset 0 0 10px rgba(112,0,255,0.1);
}

/* GENERIC PROSE (about/vision text) */
.glass-box {
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(112, 0, 255, 0.3);
  border-radius: 32px;
  padding: 50px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(112, 0, 255, 0.12), 0 0 40px rgba(112, 0, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.glass-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04) 0%, rgba(112, 0, 255, 0.10) 100%);
  pointer-events: none;
}
.glass-box:hover {
  border-color: rgba(112, 0, 255, 0.7);
  box-shadow: 0 0 70px rgba(112, 0, 255, 0.4), inset 0 0 50px rgba(112, 0, 255, 0.18), 0 30px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 760px) { .glass-box { padding: 30px; } }

.prose p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.9;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; font-weight: 600; }

.estd {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* CARD GRID (projects/vision pillars) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.info-card {
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 32px;
  padding: 32px 28px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.info-card:hover {
  border-color: rgba(112, 0, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(112, 0, 255, 0.28), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.info-card .icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}
.info-card p { color: var(--muted); font-size: 0.92rem; font-weight: 300; }
.info-card .status {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--green);
}

/* HOMEPAGE CAROUSEL */
.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 10px;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 560px;
}
.carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(440px, 80vw);
  min-height: 460px;
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
}
.carousel-card.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  filter: blur(0);
  z-index: 5;
  border-color: rgba(112, 0, 255, 0.5);
  box-shadow: 0 0 60px rgba(112, 0, 255, 0.25), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.carousel-card.is-prev {
  transform: translate(calc(-50% - 280px), -50%) scale(0.78);
  opacity: 0.45;
  filter: blur(3px);
  z-index: 2;
}
.carousel-card.is-next {
  transform: translate(calc(-50% + 280px), -50%) scale(0.78);
  opacity: 0.45;
  filter: blur(3px);
  z-index: 2;
}
.carousel-card.is-far {
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  filter: blur(6px);
  z-index: 1;
  pointer-events: none;
}
.carousel-arrow {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 10;
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--green);
  box-shadow: 0 0 10px rgba(0,240,255,0.5);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .carousel-track { height: 480px; }
  .carousel-card { min-height: 440px; }
  .carousel-card.is-prev { transform: translate(calc(-50% - 150px), -50%) scale(0.7); }
  .carousel-card.is-next { transform: translate(calc(-50% + 150px), -50%) scale(0.7); }
  .carousel-arrow { width: 38px; height: 38px; font-size: 0.85rem; }
}

/* ARTICLES */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card {
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}
.article-card:hover {
  border-color: rgba(112, 0, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(112, 0, 255, 0.28), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.carousel-card .article-cover-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.carousel-card .article-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.6) saturate(1.4);
  transform: scale(1.1);
  z-index: 0;
}
.carousel-card .article-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: unset;
  display: block;
}
.article-summary {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.carousel-card .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card .article-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.carousel-card .read-more { margin-top: auto; }

/* MODAL */
body.modal-open #page-content {
  filter: blur(8px);
  transition: filter 0.3s ease;
  pointer-events: none;
  user-select: none;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,2,5,0.75);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 999;
  padding: 60px 16px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: rgba(13,13,25,0.85);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(0,240,255,0.1);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { color: var(--green); }
.modal-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 24px 24px 0 0;
}
.modal-inner { padding: 22px 28px 32px; }
.article-meta {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.article-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #ffffff 0%, var(--green) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.article-excerpt { color: var(--muted); font-size: 0.92rem; font-weight: 300; }
.read-more {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 6px;
}
.read-more::before { content: '▸ '; }

.article-body { padding: 0 28px 32px; }
.article-body p {
  color: var(--muted);
  margin: 18px 0;
  font-size: 0.98rem;
  font-weight: 300;
  text-align: justify;
}
.article-body .signature { color: var(--muted); font-style: italic; font-size: 0.9rem; }

/* FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-pill:hover {
  color: #fff;
  border-color: var(--green);
}
.filter-pill.active {
  color: #fff;
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(0,240,255,0.14) 0%, rgba(112,0,255,0.08) 100%);
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
}

/* IMAGE ZOOM */
.article-cover[data-zoomable] { cursor: zoom-in; }

/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,2,5,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 40px 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,240,255,0.15);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { border-color: var(--green); color: var(--green); }

/* VIDEO EMBED */
.video-embed-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-embed-frame iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

/* SHARE ROW */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.share-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.share-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.share-btn:hover {
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0,240,255,0.18);
}

/* CONTACT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.social-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* FOOTER */
footer {
  position: relative;
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--muted);
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.4;
}
footer .gold { color: var(--gold); }
footer .foot-links { margin-top: 10px; display: flex; gap: 16px; justify-content: center; }
footer .foot-links a { color: var(--muted); }
footer .foot-links a:hover { color: var(--gold); }

/* ADMIN LOGIN */
.login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}
.login-box {
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 32px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  padding: 40px 36px;
  max-width: 380px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-box:hover {
  border-color: rgba(112, 0, 255, 0.55);
  box-shadow: 0 0 50px rgba(112, 0, 255, 0.28), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.login-box h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 6px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 50%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-box .sub-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.login-box label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.login-box input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.login-box input:focus { outline: none; border-color: var(--gold); }
.login-box .btn { width: 100%; justify-content: center; }
.login-error {
  color: #e07a7a;
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
  display: none;
}

/* ADMIN DASHBOARD */
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 14px;
}
.admin-bar .who { color: var(--muted); font-size: 0.85rem; }
.admin-bar .who strong { color: var(--gold); }

.admin-form {
  background: rgba(13, 13, 25, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 32px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.05);
  padding: 30px;
  margin-bottom: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-form:hover {
  border-color: rgba(112, 0, 255, 0.55);
  box-shadow: 0 0 50px rgba(112, 0, 255, 0.28), 0 30px 60px rgba(0, 0, 0, 0.5);
}
.admin-form h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.admin-form label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
}
.admin-form label:first-of-type { margin-top: 0; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.admin-form textarea { resize: vertical; min-height: 160px; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none; border-color: var(--gold);
}
.admin-form .actions { margin-top: 24px; display: flex; gap: 12px; }
.form-msg { margin-top: 14px; font-size: 0.85rem; display: none; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: #e07a7a; }

.category-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 16px !important;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  cursor: pointer;
  margin-top: 0 !important;
  transition: all 0.25s ease;
}
.cat-check:has(input:checked) {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(0,240,255,0.12) 0%, rgba(112,0,255,0.08) 100%);
  box-shadow: 0 0 16px rgba(0,240,255,0.15);
  color: #fff !important;
}
.cat-check input[type=checkbox] {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.admin-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-table td.title-cell { color: var(--gold); font-family: var(--font-display); font-weight: 600; }
.admin-table .row-actions { display: flex; gap: 10px; }
.admin-table .row-actions button {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: var(--font-mono);
}
.admin-table .row-actions button.edit:hover { border-color: var(--green); color: var(--green); }
.admin-table .row-actions button.delete:hover { border-color: #e07a7a; color: #e07a7a; }
.table-wrap { overflow-x: auto; }
.empty-state { color: var(--muted); text-align: center; padding: 40px 0; font-size: 0.9rem; }
.loading-state { color: var(--muted); text-align: center; padding: 40px 0; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===================== STEP 3 ADDITIONS ===================== */

/* SEARCH (Navbar) */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 6px;
}
.search-toggle-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 100px;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.search-toggle-btn:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 14px rgba(0,240,255,0.25);
}
.admin-theme .search-toggle-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(112,0,255,0.25); }

.nav-search-box {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
  margin-left: 0;
}
.nav-search.open .nav-search-box {
  width: 230px;
  opacity: 1;
  margin-left: 10px;
}
.nav-search-box input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,240,255,0.25);
  color: var(--text);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  outline: none;
}
.admin-theme .nav-search-box input { border-color: rgba(112,0,255,0.3); }
.nav-search-box input::placeholder { color: var(--muted); }

.search-results-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,240,255,0.25);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: none;
  z-index: 200;
  padding: 8px;
}
.search-results-dropdown.open { display: block; }
.search-result-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-result-item:hover { background: rgba(0,240,255,0.08); }
.search-result-item img {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.search-result-item .sr-text { overflow: hidden; }
.search-result-item .sr-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-item .sr-excerpt {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-empty, .search-loading {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 18px 8px;
}

@media (max-width: 760px) {
  .nav-search.open .nav-search-box { width: 150px; }
  .search-results-dropdown { width: 260px; right: -40px; }
}

/* EVENT CARDS */
.event-card {
  background: rgba(13, 13, 25, 0.55);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.event-card:hover {
  border-color: rgba(112, 0, 255, 0.45);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.event-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.event-body { padding: 26px 28px 30px; }
.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,240,255,0.07);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 14px;
}
.event-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}
.event-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-desc {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card { cursor: pointer; }
.event-read-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  display: inline-block;
}
.admin-theme .event-read-more { color: var(--gold); }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.admin-tab-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 100px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.admin-tab-btn:hover { color: #fff; border-color: rgba(112,0,255,0.4); }
.admin-tab-btn.active {
  color: #fff;
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(112,0,255,0.15) 0%, rgba(0,240,255,0.05) 100%);
  box-shadow: 0 0 20px rgba(112,0,255,0.25);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* ===================== STEP 4: EBOOKS ===================== */
.ebook-group-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.ebook-card {
  background: rgba(13, 13, 25, 0.55);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.ebook-card:hover {
  border-color: rgba(112, 0, 255, 0.45);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.ebook-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.ebook-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.ebook-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #fff;
  line-height: 1.4;
}
.ebook-author {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 10px;
}
.admin-theme .ebook-author { color: var(--gold); }
.ebook-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  flex: 1;
}
.ebook-card .btn { width: 100%; justify-content: center; padding: 11px 16px; font-size: 0.7rem; }

.ebook-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  width: fit-content;
}
.ebook-group-badge.ours {
  color: var(--green);
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.25);
}
.ebook-group-badge.others {
  color: var(--gold);
  background: rgba(112,0,255,0.08);
  border: 1px solid rgba(112,0,255,0.3);
}

@media (max-width: 600px) {
  .ebook-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
}

/* ===================== STEP 4: EBOOKS ===================== */
.ebook-group-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.ebook-card {
  background: rgba(13, 13, 25, 0.55);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.ebook-card:hover {
  border-color: rgba(112, 0, 255, 0.45);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.ebook-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.ebook-body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.ebook-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebook-author {
  font-size: 0.78rem;
  color: var(--green);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.ebook-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ebook-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* Reuse filter-pill style for group tabs (already styled), modal reused for ebook details */

/* ===================== STEP 5: MEDIA ===================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.media-card {
  background: rgba(13, 13, 25, 0.55);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.media-card:hover {
  border-color: rgba(112, 0, 255, 0.45);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0,0,0,0.5);
}
.media-card .video-embed-frame { border-radius: 0; margin-bottom: 0; }
.media-body { padding: 22px 26px 28px; }
.media-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(112,0,255,0.08);
  border: 1px solid rgba(112,0,255,0.25);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 12px;
}
.media-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.media-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* ===================== STEP 5: MEDIA ===================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.media-card {
  background: rgba(13, 13, 25, 0.55);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.media-card:hover {
  border-color: rgba(112, 0, 255, 0.45);
  box-shadow: 0 0 40px rgba(112, 0, 255, 0.2), 0 30px 60px rgba(0,0,0,0.5);
}
.media-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.media-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.media-body { padding: 22px 24px 26px; }
.media-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(0,240,255,0.07);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 12px;
}
.media-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}
.media-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

/* Media card thumbnail + play button (click opens modal) */
.media-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #0a0a14;
  cursor: pointer;
}
.media-thumb-fallback {
  background: linear-gradient(135deg, rgba(0,240,255,0.08), rgba(112,0,255,0.08));
}
.media-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,240,255,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.media-card:hover .media-play-btn {
  background: var(--green);
  color: #020205;
  box-shadow: 0 0 30px rgba(0,240,255,0.5);
}

/* Media modal: bigger embed inside modal-box */
#media-modal .modal-box { max-width: 760px; }
#media-modal .media-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
#media-modal .media-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Extra gradient border ring for emphasized glass-box sections (About) */
.glass-box.gradient-border {
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(13,13,25,0.85), rgba(13,13,25,0.85)),
    linear-gradient(135deg, var(--green), var(--gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
  text-decoration: none;
  transition: all 0.3s ease;
}
.read-more-link:hover {
  color: var(--gold);
  gap: 12px;
}

/* Filter bar Show More toggle */
.filter-extra-group {
  display: none;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-extra-group.open {
  display: inline-flex;
}
.filter-show-more {
  border-style: dashed !important;
  opacity: 0.85;
}

/* Related Articles (inside article modal) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.related-card {
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.related-card:hover {
  border-color: rgba(0,240,255,0.35);
  transform: translateY(-3px);
}
.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.related-title {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Auto-detected links inside post/description content */
#modal-body a,
.event-modal-body a,
.ebook-modal-body a,
.media-modal-body a,
.linkified a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(0,240,255,0.4);
  word-break: break-word;
}
#modal-body a:hover,
.event-modal-body a:hover,
.ebook-modal-body a:hover,
.media-modal-body a:hover,
.linkified a:hover {
  color: #fff;
}

/* ===================== EVENTS UPGRADE: status badges + recap ===================== */
.event-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: 10px;
}
.live-badge {
  color: #ff5c5c;
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.35);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,60,60,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255,60,60,0.08); }
}
.past-badge {
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.event-card-past {
  opacity: 0.6;
  filter: grayscale(0.3);
}
.event-card-past:hover {
  opacity: 0.85;
  border-color: rgba(255, 80, 80, 0.3) !important;
}

.recap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.recap-gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.recap-gallery img:hover { transform: scale(1.04); }

/* Mobile-only "Explore More" shortcut box (between carousel and About section) */
.mobile-explore-wrap {
  display: none;
  padding: 0 20px;
  margin: 10px 0 0;
}
.mobile-explore-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(0,240,255,0.3);
  background: linear-gradient(135deg, rgba(0,240,255,0.12) 0%, rgba(112,0,255,0.12) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.mobile-explore-box:active { transform: scale(0.98); }
.mobile-explore-arrow { font-size: 1.1rem; }

@media (max-width: 760px) {
  .mobile-explore-wrap { display: block; }
}

/* ========== PROJECT CARDS ========== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.project-card {
  background: rgba(13,13,25,0.6);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: block;
  text-decoration: none;
}
.project-card:hover {
  border-color: rgba(112,0,255,0.5);
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(112,0,255,0.22);
}
.project-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.project-card-img .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.55) saturate(1.3);
  transform: scale(1.1);
}
.project-card-img .fg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-card-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,240,255,0.07), rgba(112,0,255,0.1));
  font-size: 2.8rem;
}
.project-card-info {
  padding: 12px 14px 14px;
}
.project-card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.project-card-tagline {
  font-size: 0.76rem;
  color: var(--green);
  line-height: 1.4;
  margin-bottom: 6px;
}
.project-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.project-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
}
.badge-live {
  color: #00f0a0;
  background: rgba(0,240,160,0.1);
  border: 1px solid rgba(0,240,160,0.35);
}
.badge-beta {
  color: #00c8ff;
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.35);
}
.badge-coming {
  color: var(--gold);
  background: rgba(255,200,0,0.08);
  border: 1px solid rgba(255,200,0,0.3);
}
.badge-platform {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.project-tag {
  font-size: 0.7rem;
  color: rgba(0,240,255,0.7);
  background: rgba(0,240,255,0.07);
  border: 1px solid rgba(0,240,255,0.18);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-mono);
}
.projects-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 0.95rem;
  grid-column: 1/-1;
}

/* ========== CONTENT TAG BADGES ========== */
.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}
.content-tag {
  font-size: 0.7rem;
  color: rgba(0, 240, 255, 0.75);
  background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

/* ========== HOMEPAGE PROJECT CAROUSEL ========== */
.home-project-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.home-project-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,240,255,0.3) transparent;
}
.home-project-carousel::-webkit-scrollbar {
  height: 4px;
}
.home-project-carousel::-webkit-scrollbar-track {
  background: transparent;
}
.home-project-carousel::-webkit-scrollbar-thumb {
  background: rgba(0,240,255,0.3);
  border-radius: 100px;
}
.home-project-carousel .project-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
@media (max-width: 760px) {
  .home-project-carousel .project-card {
    flex: 0 0 160px;
  }
}

/* ========== PROJECT CAROUSEL ARROWS & DOTS ========== */
.home-project-carousel-wrap {
  position: relative;
}
.proj-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,240,255,0.12);
  border: 1px solid rgba(0,240,255,0.35);
  color: rgba(0,240,255,0.9);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}
.proj-carousel-btn:hover {
  background: rgba(0,240,255,0.25);
  border-color: rgba(0,240,255,0.7);
}
.proj-carousel-btn:disabled {
  opacity: 0.2;
  cursor: default;
}
.proj-carousel-prev { left: -18px; }
.proj-carousel-next { right: -18px; }
@media (max-width: 760px) {
  .proj-carousel-prev { left: -10px; }
  .proj-carousel-next { right: -10px; }
}
.proj-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.proj-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,240,255,0.25);
  border: 1px solid rgba(0,240,255,0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}
.proj-carousel-dot.active {
  background: rgba(0,240,255,0.85);
  transform: scale(1.25);
}
