/* =========================
   1. IMPORTS
========================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&display=swap');


/* =========================
   2. THEME SYSTEM
========================= */

:root {
  /* Core theme gradients */
  
/* =========================
   SCIENTIA
   (space → quantum → energy flow)
========================= */

--scientia: linear-gradient(
  120deg,
  #0b6bff,   /* deep space */
  #2f8cff,   /* softened blue */
  #5aa6ff,   /* light transition blue */
  #7a90ff,   /* blue-violet bridge */
  #8a7dff,   /* quantum violet */
  #6c9dff    /* return-blue glow (prevents cyan jump) */
);


/* =========================
   VITALIS
   (organic growth → bio energy → fluid systems)
========================= */

--vitalis: linear-gradient(
  120deg,
  #b9ff3a,   /* soft lime growth */
  #8cf65a,   /* green transition */
  #4fffa3,   /* balanced vitality */
  #2de6b8,   /* aqua-green bridge */
  #2fdcc7,   /* aquatic flow */
  #3acfff    /* soft cyan (no harsh jump) */
);


/* =========================
   LOGOS
   (clarity → reasoning → structured light)
========================= */

--logos: linear-gradient(
  120deg,
  #ffffff,   /* clarity base */
  #fff5e6,   /* soft diffusion */
  #ffe3b8,   /* gentle gold */
  #ffd39a,   /* warm logic */
  #ffc085,   /* structured reasoning */
  #ffe6c4,   /* reflection bridge */
  #ffffff    /* return to clarity */
);


/* =========================
   SENSUS
   (mind → emotion → perception → awareness)
========================= */

--sensus: linear-gradient(
  120deg,
  #b18cff,   /* thought field */
  #c38bff,   /* cognition core */
  #d77cff,   /* softened purple-pink */
  #ff86d6,   /* emotional perception */
  #ffaadf,   /* awareness bloom */
  #caa6ff    /* memory return bridge */
);

  /* Glow variants */
  --glow-scientia: rgba(122,162,255,0.25);
  --glow-vitalis: rgba(93,255,177,0.22);
  --glow-logos: rgba(255,184,107,0.22);
  --glow-sensus: rgba(195,139,255,0.22);

  /* Default fallback */
  --theme: var(--scientia);
  --glow: var(--glow-scientia);

  /* UNIVERSAL MASTER TITLE GRADIENT */
  --universe-gradient: linear-gradient(
    90deg,
    #ff4fd8,
    #9b7dff,
    #4fa3ff,
    #ff4fd8
  );

  /* =========================
   LIGHT MODE THEMES (DARKER GRADIENTS)
========================= */

body.light-mode {
  --scientia: linear-gradient(
    120deg,
    #2a4d7a,
    #3b6fb8,
    #4f86d6,
    #3a5fa8,
    #2f4f7f
  );

  --vitalis: linear-gradient(
    120deg,
    #3a7a4f,
    #2f9b6a,
    #4fcf8a,
    #3aa87a,
    #2f6f5a
  );

  --logos: linear-gradient(
    120deg,
    #7a4a4a,  /* warm muted red */
    #a85a42,  /* richer oxidised red */
    #d1763f,  /* strong burnt orange */
    #f0a35e,  /* soft golden orange */
    #c98b5a,  /* warm sand / balance point */
    #8a6a55   /* warm neutral return */
  );

  --sensus: linear-gradient(
    120deg,
    #5a3b7a,
    #7a4fb8,
    #9b6ad6,
    #6f3aa8,
    #4f2f7f
  );

}

--card-overlay: rgba(10, 10, 16, 0.72);

}

:root {
--scientia-title: linear-gradient(
  90deg,
  #ffffff,
  #eaf4ff,
  #7fb8ff,
  #4f9fff,
  #bcdcff,
  #ffffff
);

--vitalis-title: linear-gradient(
  90deg,
  #f6fff3,
  #bfffe3,
  #3fffb0,
  #2ad8c0,
  #d6fff0,
  #ffffff
);

--logos-title: linear-gradient(
  90deg,
  #ffffff,
  #ffeacc,
  #ffcd8a,
  #ffb86b,
  #ffe3b8,
  #ffffff
);

--sensus-title: linear-gradient(
  90deg,
  #f5ebf8,
  #d9b9f1,
  #fd7fff,
  #f78bc1,
  #e9cfdb
);
}

body.scientia {
  --topic-accent: rgba(90, 140, 255, 0.14);
}

body.vitalis {
  --topic-accent: rgba(90, 255, 170, 0.12);
}

body.logos {
  --topic-accent: rgba(255, 190, 120, 0.12);
}

body.sensus {
  --topic-accent: rgba(210, 120, 255, 0.13);
}

/* AUTO PAGE THEMES */
body.scientia {
  --theme: var(--scientia);
  --glow: var(--glow-scientia);
}

body.vitalis {
  --theme: var(--vitalis);
  --glow: var(--glow-vitalis);
}

body.logos {
  --theme: var(--logos);
  --glow: var(--glow-logos);
}

body.sensus {
  --theme: var(--sensus);
  --glow: var(--glow-sensus);
}

.theme-line {
  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;
}


body.light-mode {
  --scientia: var(--scientia-light);
  --vitalis: var(--vitalis-light);
  --logos: var(--logos-light);
  --sensus: var(--sensus-light);
  --card-overlay: rgba(93, 92, 92, 0.55);
}
/* =========================
   3. GLOBAL STYLES
========================= */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Space Grotesk', sans-serif;
  color: #e6e6e6;
}

html {
  background: #0b0d13;
}

html.light-mode {
  background: #e8edf6;
}

html {
  color-scheme: dark;
}

html.light-mode {
  color-scheme: light;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(120,120,255,0.08), transparent 40%),
    radial-gradient(circle at bottom, rgba(155,125,255,0.08), transparent 40%),
    linear-gradient(to bottom, #0b0b0f, #11131a);
}


/* =========================
   4. PAGE WRAPPER
========================= */

main {
  max-width: 1450px;
  margin: auto;
  padding: 0 24px;
  line-height: 1.8;
}


/* =========================
   5. HEADER
========================= */

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(14px);
  background: rgba(10, 12, 18, 0.8);

  padding: 1.2rem 1rem;
  text-align: center;

  box-shadow: 0 0 25px rgba(80,100,255,0.08);
}

body {
  padding-top: 160px; /* adjust to header height */
}

body.home {
  padding-top: 220px; /* adjust to header height */
}

body.about {
  padding-top: 160px; /* adjust to header height */
}


/* =========================
   UNIVERSAL TITLE (FIXED + RESTORED)
========================= */

/* =========================
   UNIVERSAL TITLE (HOME ONLY)
========================= */

.universe-title {
  margin: 0;
  font-size: 2.7rem;
  font-weight: 700;

  background: var(--universe-gradient);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================
   PAGE TITLES (THEMED SECTIONS)
========================= */

.page-title {
  margin: 0;
  font-size: 2.7rem;
  font-weight: 700;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =========================
   BRAND SYSTEM
========================= */

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* LOGO */
.site-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;

  filter:
    drop-shadow(0 0 10px rgba(155,125,255,0.35));

  transition: transform 0.35s ease;
}

.site-logo:hover {
  transform: scale(1.06);
}

.theme-line {
  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;
}

/* =========================
   NAVIGATION
========================= */

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: #d0d7ff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 6px 10px;
  transition: 0.3s ease;
}

nav a:hover {
  color: transparent;
  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 12px var(--glow);
}

/* BASE LINE (ALL PAGES) */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* INDEX PAGE (UNIVERSE GRADIENT OVERRIDE) */
body.home {
  --theme: var(--universe-gradient);
}

body.about {
  --theme: var(--universe-gradient);
}

/* HEADER LINE */
header::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  margin-top: 12px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  opacity: 0.8;
}

/* =========================
   6. HERO
========================= */

/* =========================
   HERO (MINIMAL / GLASS EDGE ONLY)
========================= */

/* =========================
   HERO CONTAINER
========================= */

.hero {
  margin-top: 24px;
  padding: 20px 22px;

  border-radius: 18px;

  background: transparent;

  border: 1px solid rgba(120, 130, 255, 0.12);

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);

  position: relative;
  overflow: hidden;
}

/* =========================
   HERO AMBIENT GLOW LAYER
========================= */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    var(--glow),
    transparent 40%
  );

  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}


.hero {
  isolation: isolate;
}

/* TITLE */
.hero h2 {
  margin: 0 0 10px 0;

  font-size: 1.35rem;
  font-weight: 600;

  color: rgba(230, 235, 255, 0.92);
}

/* =========================
   HERO PARAGRAPH (THEME GLASS)
========================= */

.hero p {
  margin: 10px 0;
  padding: 10px 14px 10px 16px;

  font-size: 0.98rem;
  line-height: 1.65;

  color: rgba(210, 220, 245, 0.78);

  border-left: 2px solid rgba(120, 140, 255, 0.18);

  border-radius: 12px;

  position: relative;
  overflow: hidden;

  /* base glass */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.015)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* subtle theme gradient layer */
/* subtle theme gradient layer (enhanced glass version) */

/* ensure text stays above gradient */
.hero p > * {
  position: relative;
  z-index: 1;
}

/* LABEL (Articles / Concepts / Explore) */
.hero p strong {
  display: inline-block;

  font-weight: 700;

  background: var(--theme);
  background-size: 300% 300%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main {
  margin-top: 30px;
  padding: 48px;
  border-radius: 34px;

  background: rgba(20, 24, 36, 0.92);
  border: 1px solid rgba(120,130,255,0.12);

  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(80,100,255,0.08);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    var(--glow),
    transparent 40%
  );

  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;

  text-align: left;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =========================
   HERO TAG + LOGO
========================= */


.hero-tag {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 14px;

  margin-bottom: 18px;

  text-align: left;
}

.hero-tag span {
  display: block;

  color: #97a4cf;

  letter-spacing: 2px;
  font-size: 1.2rem;
  text-transform: uppercase;

  line-height: 1.5;
}


/* HERO LOGO */

.hero-logo {
  width: 60px;
  height: 60px;

  object-fit: contain;
  flex-shrink: 0;

  opacity: 0.95;

  filter:
    drop-shadow(0 0 10px rgba(155,125,255,0.35));

  transition: transform 0.35s ease;
}

.hero-logo:hover {
  transform: scale(1.08);
}


/* MOBILE */

@media (max-width: 768px) {

  .hero-tag {
    gap: 10px;
    align-items: flex-start;
  }

  .hero-logo {
    width: 34px;
    height: 34px;
  }

}

.hero-logo:hover {
  transform: scale(1.08);
}

.hero h2 {
  background: var(--theme);
  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  /* IMPORTANT: remove animation */
  animation: none;
  background-size: 100%;
}

.hero-main h2 {
  background: var(--theme);
  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  /* IMPORTANT: remove animation */
  animation: none;
  background-size: 100%;
}


.hero-description {
  font-size: 0.9rem;
  color: rgba(184, 191, 214, 0.7);
}


/* =========================
   7. CARDS
========================= */

.card-container {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 22px;

  margin-top: 40px;
}

.card {
  width: 100%;

  min-height: 210px;
  padding: 22px;

  border-radius: 26px;

  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(120,130,255,0.15);

  text-decoration: none;
  color: #e6e6e6;

  position: relative;
  overflow: hidden;

  transition: all 0.35s ease;

  box-shadow: 0 0 18px rgba(80, 120, 255, 0.10);
}

.card h3 {
  position: relative;
  z-index: 5;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    var(--glow),
    transparent 60%
  );

  background-size: 300% 300%;
  animation: gradientShift 10s ease infinite;

  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(90, 140, 255, 0.45);

  box-shadow:
    0 0 25px var(--glow),
    0 0 55px rgba(70, 120, 255, 0.12);
}

/* =========================
   CARD TITLE GRADIENT FIX (WORKING)
========================= */

.card h3 {
    display: inline-block;

    background-image: var(--theme);
    background-size: 300% 300%;
    animation: gradientShift 7s ease infinite;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;
}

 body.home .card h3 {
  position: relative;
  display: inline-block;
  z-index: 2;

  padding: 6px 10px;
  border-radius: 10px;

  font-weight: 700;
  letter-spacing: 0.2px;

  /* darker support layer = better contrast */
  background: rgba(8, 10, 16, 0.78);

  border: 1px solid rgba(160, 180, 255, 0.12);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow:
    0 8px 18px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}


body.home .card h3 {
  color: transparent;

  background: linear-gradient(
    90deg,
    #eaf4ff,
    #cfe6ff,
    #8fbfff,
    #b9dcff,
    #eaf4ff
  );

  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;

  -webkit-background-clip: text;
  background-clip: text;
}


body.about .card h3 {
  position: relative;
  display: inline-block;
  z-index: 2;

  padding: 6px 10px;
  border-radius: 10px;

  font-weight: 700;
  letter-spacing: 0.2px;

  /* darker support layer = better contrast */
  background: rgba(8, 10, 16, 0.78);

  border: 1px solid rgba(160, 180, 255, 0.12);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow:
    0 8px 18px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}


body.about .card h3 {
  color: transparent;

  background: linear-gradient(
    90deg,
    #eaf4ff,
    #cfe6ff,
    #8fbfff,
    #b9dcff,
    #eaf4ff
  );

  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;

  -webkit-background-clip: text;
  background-clip: text;
}



.card p {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 350;

  color: rgba(245, 248, 255, 0.96);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.65),
    0 0 18px rgba(0,0,0,0.18);

  padding: 10px 14px;
  border-radius: 14px;


  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.18);

  margin-top: 12px;
}

/* =========================
   CARD GIF BACKGROUNDS
========================= */

.scientia-card,
.vitalis-card,
.logos-card,
.sensus-card {
  position: relative;
  overflow: hidden;

  background-size: cover;
  background-position: center;

  /* shared overlay system */
  background-image: linear-gradient(var(--card-overlay)), var(--card-image);
}

/* =========================
   CARD IMAGES (unchanged)
========================= */

.scientia-card {
  --card-image: url("images/scientia.GIF");
}

.vitalis-card {
  --card-image: url("images/vitalis.GIF");
}

.logos-card {
  --card-image: url("images/logos.GIF");
}

.sensus-card {
  --card-image: url("images/sensus.GIF");
}

/* =========================
   TOPIC GRID (NEW SYSTEM)
========================= */

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;

  margin-top: 40px;
}

/* CARD STYLE */
.topic-card {
  display: block;
  padding: 22px;

  border-radius: 26px;

  background:
  linear-gradient(
    145deg,
    rgba(255,255,255,0.015),
    rgba(255,255,255,0.01)
  ),
  radial-gradient(
    circle at top left,
    var(--topic-accent),
    transparent 65%
  ),
  rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(120,130,255,0.15);

  text-decoration: none;
  color: #e6e6e6;

  position: relative;
  overflow: hidden;

  transition: all 0.35s ease;

  box-shadow: 0 0 18px rgba(80, 120, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


/* THEME GLOW */
.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    var(--glow),
    transparent 60%
  );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.topic-card:hover::before {
  opacity: 1;
}

/* HOVER EFFECT */
.topic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(90, 140, 255, 0.45);

  box-shadow:
    0 0 25px var(--glow),
    0 0 55px rgba(70, 120, 255, 0.12);
}

/* TITLE INSIDE CARD */
.topic-card h3 {
  margin-top: 0;

  background: var(--theme);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TEXT INSIDE CARD */
.topic-card p {
  color: rgba(220, 225, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}



/* =========================
   8. FEATURE BOXES
========================= */

.feature-section {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.feature-box {
  flex: 1 1 320px;
  padding: 32px;

  border-radius: 28px;
  background: rgba(12, 14, 20, 0.92);

  border: 1px solid rgba(120,130,255,0.12);
}

.feature-box a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-top: 12px;

  color: rgba(160, 180, 255, 0.92);

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.feature-box a {
  padding: 6px 10px;

  border-radius: 10px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(160,180,255,0.16);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.18);
}

.feature-box a:hover {
  transform: translateX(4px);

  color: rgba(220, 230, 255, 1);

  text-shadow:
    0 0 12px rgba(120,140,255,0.25);
}


/* =========================
   9. QUOTE
========================= */

.quote-section {
  margin-top: 120px;
  margin-bottom: 80px;
  text-align: center;
}

.quote-section p {
  font-size: 1.9rem;
  color: #e7eaff;
  max-width: 900px;
  margin: auto;
}

.quote-section span {
  display: block;
  margin-top: 18px;
  color: #9aa3c2;
}






/* ensures last section always breathes */
main > section:last-child {
  margin-bottom: 60px;
}

/* =========================
   10. FOOTER (THEMED FIX)
========================= */

footer {
  padding: 40px 20px;

  /* instead of fixed black */
  background: rgba(12, 14, 20, 0.85);

  border-top: 1px solid rgba(120,130,255,0.15);

  text-align: center;
  color: rgba(220, 225, 255, 0.7);

  font-size: 0.9rem;

  position: relative;
  overflow: hidden;
}

/* subtle themed glow like your cards */
footer::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top,
    var(--glow),
    transparent 60%
  );

  opacity: 0.25;
  pointer-events: none;
}

/* optional: animated top line */
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;
  opacity: 0.8;
}




/* =========================
   MOBILE CARD FIX
========================= */

@media (max-width: 768px) {

  .card-container {
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    max-width: 100%;
    width: 100%;

    min-height: auto;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    width: 100%;
  }
}

/* =========================
   MOBILE HEADER FIX
========================= */

@media (max-width: 768px) {

  .brand {
    flex-direction: column;
    gap: 10px;
  }

  .site-logo {
    width: 52px;
    height: 52px;
  }

  header h1,
  .page-title,
  .universe-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  nav {
    gap: 8px;
  }

  nav a {
    font-size: 0.95rem;
    padding: 4px 6px;
  }
}

@media (max-width: 768px) {

  .hero-tag {
    flex-direction: column;
    gap: 10px;
  }

  .hero-logo {
    width: 24px;
    height: 24px;
  }
}

/* =========================
   MOBILE PERFORMANCE MODE
========================= */
@media (max-width: 900px) {

  /* reduce expensive blur effects */
  .article-body,
  .article-hero,
  .article-figures,
  .bibliography,
  .article-body section {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* flatten shadows (VERY important for smooth scroll) */
  .article-body,
  .article-hero,
  .article-figures,
  .bibliography,
  .article-body section {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12) !important;
  }

  /* stop animated gradients on mobile */
  * {
    animation: none !important;
  }

  /* reduce heavy text rendering effects */
  .page-title,
  nav a:hover {
    text-shadow: none !important;
  }
}

html {
  scroll-behavior: auto; /* prevents extra smoothing lag on mobile */
}

body {
  -webkit-overflow-scrolling: touch;
}






/* =========================
   PREMIUM ABOUT CARDS
========================= */

.about-grid {
  align-items: stretch;
  gap: 22px;
}

.info-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  height: 100%;

  padding: 30px 28px;
  border-radius: 30px;

  /* PREMIUM GLASS */
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.11),
      rgba(255,255,255,0.035)
    );

  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);

  border:
    1px solid rgba(255,255,255,0.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(255,255,255,0.03),
    0 18px 50px rgba(0,0,0,0.22);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}


/* soft ambient colour wash */
.info-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      var(--glow),
      transparent 58%
    );

  opacity: 0.14;
  pointer-events: none;
}


/* luxury light streak */
.info-card::after {
  content: "";
  position: absolute;

  top: -35%;
  left: -30%;

  width: 180%;
  height: 180%;

  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(255,255,255,0.08) 45%,
      transparent 70%
    );

  transform: rotate(-8deg);
  pointer-events: none;

  opacity: 0.55;
}


/* =========================
   TITLE
========================= */

.info-card h3 {
  margin: 0 0 8px 0;

  position: relative;
  z-index: 2;

  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;

  /* static gradient text */
  background: var(--theme);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow:
    0 0 22px rgba(255,255,255,0.06);
}


/* =========================
   BODY TEXT
========================= */

.info-card p {
  position: relative;
  z-index: 2;

  flex: 1;

  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 350;

  color: rgba(236,240,255,0.88);

  text-shadow:
    0 2px 12px rgba(0,0,0,0.38);
}

/* =========================
   PREMIUM LIGHT GLASS MODE
========================= */

body.light-mode .info-card {
  position: relative;
  overflow: hidden;

  /* MUCH GLASSIER */
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.52),
      rgba(255,255,255,0.22)
    );

  backdrop-filter: blur(34px) saturate(220%);
  -webkit-backdrop-filter: blur(34px) saturate(220%);

  border:
    1px solid rgba(255,255,255,0.55);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.18),
    0 18px 40px rgba(50,70,120,0.10),
    0 6px 18px rgba(0,0,0,0.05);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}


/* stronger theme glow */
body.light-mode .info-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      var(--glow),
      transparent 58%
    );

  opacity: 0.16;
  pointer-events: none;
}


/* luxury glass reflection */
body.light-mode .info-card::after {
  content: "";
  position: absolute;

  top: -40%;
  left: -35%;

  width: 180%;
  height: 180%;

  background:
    linear-gradient(
      115deg,
      transparent 22%,
      rgba(255,255,255,0.75) 42%,
      rgba(255,255,255,0.18) 52%,
      transparent 70%
    );

  transform: rotate(-8deg);

  opacity: 0.9;
  pointer-events: none;
}


/* title */
body.light-mode .info-card h3 {
  background: var(--theme);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  text-shadow: none;
}


/* body text */
body.light-mode .info-card p {
  color: rgba(25,32,52,0.88);

  text-shadow:
    0 1px 0 rgba(255,255,255,0.35);
}


/* =========================
   ETYMOLOGY (BASE - DARK MODE DEFAULT)
========================= */

/* =========================
   ETYMOLOGY (DARK MODE DEFAULT)
========================= */

/* =========================
   BASE ETYMOLOGY BLOCK
========================= */

.etymology {
  display: block;

  font-family: "Inter", system-ui, sans-serif;

  font-size: 0.82rem;
  line-height: 1.6;

  letter-spacing: 0.2px;

  margin-top: 8px;

  color: rgba(210, 220, 255, 0.65);

  font-weight: 400;

  position: relative;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* key term highlight */
.etymology em {
  font-style: normal;
  font-weight: 400;

  color: rgba(245, 248, 255, 0.92);
}

/* =========================
   HEADER ROW (LABEL + BUTTON)
========================= */

.etymology-header {
  display: flex;
  align-items: center;

  justify-content: flex-start;
  gap: 10px;

  margin-bottom: 8px;

}

/* =========================
   ETYMOLOGY LABEL
========================= */

.etymology-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  font-size: 0.62rem;
  font-weight: 600;

  padding: 4px 10px;

  border-radius: 999px;

  background: var(--theme);
  opacity: 0.9;

  border: 1px solid rgba(255, 255, 255, 0.18);

  color: rgba(10, 10, 10, 0.85);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);

  white-space: nowrap;
}

/* =========================
   PRONUNCIATION BUTTON
========================= */

.etymology-pronounce {
  display: flex;
  align-items: center;
}

.etymology-pronounce button {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;

  font-size: 0.7rem;
  letter-spacing: 0.08em;

  border-radius: 999px;

  background: rgba(15, 18, 30, 0.35);

  border: 1px solid rgba(160, 180, 255, 0.22);

  color: rgba(210, 220, 255, 0.88);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(120, 140, 255, 0.10);

  cursor: pointer;

  transition: all 0.25s ease;
}

.etymology-pronounce button:hover {
  transform: translateY(-1px);

  background: rgba(120, 140, 255, 0.12);

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(120, 140, 255, 0.18);
}

/* =========================
   LIGHT MODE OVERRIDES
========================= */

body.light-mode .etymology {
  color: rgba(25, 35, 55, 0.72);
}

body.light-mode .etymology em {
  color: rgba(10, 15, 25, 0.88);
}

/* label stays theme-driven but softer in light mode */
body.light-mode .etymology-label {
  color: rgba(255, 255, 255, 0.687);
  filter: brightness(1.15) saturate(0.9);
  border: 1px solid rgba(60, 80, 140, 0.22);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* =========================
   LIGHT MODE BUTTON
========================= */

body.light-mode .etymology-pronounce button {
  color: rgba(25, 30, 50, 0.85);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75),
    rgba(240, 245, 255, 0.55)
  );

  border: 1px solid rgba(120, 140, 255, 0.25);

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 0 14px rgba(120, 140, 255, 0.10);
}

body.light-mode .etymology-pronounce button:hover {
  transform: translateY(-1px);

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(235, 240, 255, 0.65)
  );

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.12),
    0 0 18px rgba(120, 140, 255, 0.18);
}

/* =========================
   ARTICLE LIST SYSTEM
========================= */

.article-scroll {
  margin-top: 30px;
  margin-bottom: 34px; /* 🔥 adds breathing room below */

  padding: 0px 22px 28px 22px; /* top | right | bottom | left */

  border-radius: 16px;

  background: var(--card);

  border: 1px solid rgba(120, 130, 255, 0.22);

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.18);

  max-height: 420px;
  overflow-y: auto;

  scroll-behavior: smooth;
}

/* scrollbar styling (same idea as bibliography) */
.article-scroll::-webkit-scrollbar {
  width: 8px;
}

.article-scroll::-webkit-scrollbar-thumb {
  background: rgba(120, 140, 255, 0.25);
  border-radius: 999px;
}

.article-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 140, 255, 0.4);
}
.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}


/* =========================
   ARTICLE ROW
========================= */


.article-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 220px;
  gap: 20px;

  padding: 20px 22px;
  border-radius: 18px;

  border: 1px solid rgba(120,130,255,0.12);

  background:
    linear-gradient(rgba(10, 12, 18, 0.78), rgba(10, 12, 18, 0.78)),
    var(--article-image, url("images/article-cards.jpg"));
  background-clip: padding-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-decoration: none;
  color: #e6e6e6;

  transition: all 0.35s ease;

  position: relative;

  overflow: hidden;
  isolation: isolate;
}


.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* =========================
   GLOW LAYER
========================= */

.article-item::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at left,
    var(--glow),
    transparent 65%
  );

  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;

  z-index: 1;
}

.article-item:hover::before {
  opacity: 1;
}

/* =========================
   HOVER EFFECT
========================= */

.article-item:hover {
  transform: translateX(8px);

  border-color: rgba(140,160,255,0.45);

  box-shadow:
    0 0 18px var(--glow),
    0 0 40px rgba(120,140,255,0.12);
}

/* =========================
   TEXT BLOCK (LEFT SIDE)
========================= */

.article-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;

  position: relative;
  z-index: 2;
}

/* title */
.article-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;

  position: relative;
  z-index: 2;

  align-self: stretch;
  width: 100%;
  box-sizing: border-box;

  padding: 8px 12px;
  border-radius: 12px;

  /* GLASS EFFECT (key change) */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 180, 255, 0.25);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(120, 140, 255, 0.18);

  letter-spacing: 0.3px;

  /* keeps text readable but not heavy */
  color: rgba(235, 240, 255, 0.95);
}

.article-item h3::after {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 12px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  opacity: 0.12;

  z-index: -1;
}

/* description */
.article-item p:not(.article-date) {
  
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 350;

  color: rgba(245, 248, 255, 0.96);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.65),
    0 0 18px rgba(0,0,0,0.18);

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(181, 182, 185, 0.103);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.18);

  margin: 0px 0 0px 0;
}



/* =========================
   ARTICLE DATE
========================= */

.article-item .article-date {
  margin: 1px 0 6px 0 !important;

  font-size: 0.68rem !important;
  letter-spacing: 1px;

  color: rgba(170, 185, 255, 0.5);

  text-transform: uppercase;

  line-height: 1.2;
}

/* =========================
   ARTICLE CODE (FIXED)
========================= */


.article-code {
  margin: 0;
  align-self: flex-end;

  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  border: 1px solid rgba(255,255,255,0.25);

  color: #070707;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;

  box-shadow:
    0 10px 22px rgba(0,0,0,0.45),
    0 0 18px rgba(120,140,255,0.35);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  pointer-events: none;

  overflow: hidden;
  transform: translateZ(0);

  z-index: 2;
}

.article-code::after {
  content: "";
  position: absolute;
  inset: -60%;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;

  opacity: 0.22;
  filter: blur(16px);

  border-radius: inherit;
  z-index: -1;
}

.article-item span {
  margin: 0;
  align-self: flex-start;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  color: rgba(160, 180, 255, 0.9);

  padding: 8px 12px;
  border-radius: 10px;

  background: rgba(119, 116, 116, 0.826);
  border: 1px solid rgba(160, 180, 255, 0.25);

  box-shadow: 0 6px 18px rgba(0,0,0,0.25);

  white-space: nowrap;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;

  z-index: 2;
}

.article-item:hover span {
  transform: translateX(4px);
  box-shadow: 0 0 14px rgba(120,140,255,0.18);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  margin-top: auto;

  z-index: 2;
}
/* =========================
   CONCEPT SYSTEM (CLEAN FINAL VERSION)
========================= */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 35px;
}

/* =========================
   CONCEPT CARD
========================= */

.concept-card {
  display: flex;
  flex-direction: column;

  padding: 20px 26px;

  border-radius: 28px;
  border: 1px solid rgba(120,130,255,0.12);

  position: relative;
  overflow: hidden;

  text-decoration: none;
  color: #e6e6e6;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;

  background-image: var(--concept-image, url("images/concept-cards.jpg"));
  background-clip: padding-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* glow layer */
.concept-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    var(--glow),
    transparent 60%
  );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.concept-card:hover::before {
  opacity: 1;
}

.concept-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px var(--glow);
  border-color: rgba(140, 160, 255, 0.35);
}

/* =========================
   CARD TITLE
========================= */



.concept-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;

  position: relative;
  display: inline-block;

  padding: 2px 12px;
  border-radius: 10px;

  background: rgba(90, 89, 89, 0.295);
  border: 1px solid rgba(140, 160, 255, 0.18);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.concept-title {
  background-image: var(--title-theme);
  background-size: 300% 300%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.scientia { --title-theme: var(--scientia-title); }
body.vitalis { --title-theme: var(--vitalis-title); }
body.logos { --title-theme: var(--logos-title); }
body.sensus { --title-theme: var(--sensus-title); }


.concept-code {
  /* place below Discover button */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: flex-end;

  margin-top: 8px; /* controls gap below Discover */
  margin-left: auto;

  padding: 5px 10px;
  border-radius: 999px;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  border: 1px solid rgba(255,255,255,0.25);

  color: #070707;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;

  box-shadow:
    0 8px 18px rgba(0,0,0,0.28),
    0 0 12px rgba(120,140,255,0.22);

  pointer-events: none;
  overflow: hidden;

  position: relative;
  z-index: 2;
}

/* glow layer */
.concept-code::after {
  content: "";
  position: absolute;
  inset: -60%;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;

  opacity: 0.16;
  filter: blur(14px);

  border-radius: inherit;
  z-index: -1;
}

/* =========================
   CARD TEXT
========================= */

.concept-card p {
  
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 350;

  color: rgba(245, 248, 255, 0.96);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.65),
    0 0 18px rgba(0,0,0,0.18);

  padding: 10px 14px;
  border-radius: 14px;

  background: rgba(181, 182, 185, 0.103);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.18);

  margin: 8px 0 18px 0;
}

/* =========================
   CTA LABEL
========================= */

.concept-card .read {
  display: inline-block;

  margin-top: auto; /* pushes to bottom */
  align-self: flex-start;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  color: rgba(160, 180, 255, 0.9);

  padding: 8px 12px;

  border-radius: 10px;

  background: rgba(119, 116, 116, 0.826);
  border: 1px solid rgba(160, 180, 255, 0.25);

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  white-space: nowrap;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;

  z-index: 2;
}

.concept-card:hover .read {
  transform: translateX(4px);
  box-shadow: 0 0 14px rgba(120,140,255,0.18);
}

.concept-card {
  display: flex;
  flex-direction: column;
}

.concept-card .read {
  order: 2;
  margin-top: auto;
  align-self: flex-start;
}

.concept-code {
  order: 3;
  align-self: flex-end;

  margin-top: 8px;

  position: relative;
  z-index: 2;
}
/* =========================
   CONCEPT HEADER
========================= */

.concept-header {
  max-width: 900px;
  margin: 55px auto 20px auto;
  padding: 0 24px;

  text-align: center;
}

.concept-header h3 {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;

  color: rgba(200, 210, 255, 0.65);

  margin: 0;
}

/* subtle divider under header */
.concept-header::after {
  content: "";
  display: block;

  width: 60px;
  height: 2px;

  margin: 12px auto 0 auto;

  background: var(--theme);
  background-size: 300% 300%;
  animation: gradientShift 7s ease infinite;

  opacity: 0.7;
}

/* =========================
   CONCEPT CARD BACKGROUND IMAGE
========================= */


/* DARK OVERLAY (so text stays readable) */
.concept-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(10, 12, 18, 0.55); /* was 0.72 — too strong */

  z-index: 1;
}
/* ensure content stays above overlay */
.concept-card > *:not(.concept-code) {
  position: relative;
  z-index: 2;
}

/* =========================
   THEME TOGGLE BUTTON
========================= */

.theme-toggle {
  margin-top: 16px;

  padding: 10px 18px;

  border-radius: 999px;

  border: 1px solid rgba(140,160,255,0.2);

  background: rgba(255,255,255,0.06);

  color: #dfe7ff;

  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;

  cursor: pointer;

  transition: all 0.35s ease;
}
/* LIGHT MODE BUTTON */
body.light-mode .theme-toggle {
  background: rgba(20, 30, 50, 0.06);

  color: #1c2433;

  border: 1px solid rgba(60,80,120,0.14);
}

body.light-mode .theme-toggle:hover {
  background: rgba(20,30,50,0.1);

  box-shadow: 0 0 18px rgba(120,140,255,0.12);
}

.theme-toggle:hover {
  transform: translateY(-2px);

  background: rgba(255,255,255,0.1);

  box-shadow: 0 0 18px rgba(140,160,255,0.18);
}


/* =========================
   SMOOTH TRANSITIONS
========================= */

.preload * {
  transition: none !important;
}


/* =========================
   LIGHT MODE
========================= */



body.light-mode {
  background:
    radial-gradient(circle at top, rgba(140,160,255,0.08), transparent 45%),
    radial-gradient(circle at bottom, rgba(180,190,255,0.06), transparent 45%),
    linear-gradient(to bottom, #dfe5ee, #cfd7e3);

  color: #1c2433;
}



body,
header,
footer,
.card,
.topic-card,
.concept-card,
.feature-box,
.hero-main,
.article-item {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}


/* HEADER */
body.light-mode header {
  background: rgba(235, 240, 248, 0.78);

  box-shadow: 0 0 20px rgba(120,140,255,0.06);
}


/* HERO */
body.light-mode .hero-main {
  background: rgba(240, 244, 250, 0.72);

  border: 1px solid rgba(120,140,255,0.10);
}


/* CARDS */
body.light-mode .topic-card,
body.light-mode .feature-box,
body.light-mode .article-item {
  background-color: rgba(242, 246, 252, 0.78);

  border: 1px solid rgba(120,140,255,0.10);

  color: #243047;

  box-shadow: 0 0 20px rgba(120,140,255,0.05);
}




/* TEXT */
body.light-mode p,
body.light-mode .hero-description {
  color: rgba(30,40,60,0.72);
}


/* NAV */
body.light-mode nav a {
  color: #304060;
}


/* FOOTER */
body.light-mode footer {
  background: rgba(230, 236, 245, 0.75);

  color: rgba(20,30,50,0.7);
}

/* =========================
   LIGHT MODE CARD TEXT FIX
========================= */

body.light-mode .topic-card,
body.light-mode .concept-card,
body.light-mode .feature-box,
body.light-mode .article-item {
  color: #1f2a3a;
}

body.light-mode .card {
  color: #f9f9f9;
}

body.light-mode .topic-card p,
body.light-mode .feature-box p {
  color: rgba(31, 42, 58, 0.82);
}

body.light-mode .card p,
body.light-mode .concept-card p,
body.light-mode .article-item p {
  color: #ffffff;
}

body.light-mode .concept-header h3,
body.light-mode .feature-box h3,
body.light-mode .quote-section h3,
body.light-mode .article-section h3 {
  color: #1f2a3a;
}

/* =========================
   LIGHT MODE IMAGE OVERLAYS
========================= */

body.light-mode .article-item {
  background-image:
    linear-gradient(
      rgba(174, 180, 188, 0.904),
      rgba(115, 118, 121, 0.52)
    ),
    var(--article-image, url("images/article-cards.jpg"));
}

/* LIGHT MODE OVERRIDE */
body.light-mode .article-code {
  color: #fff; /* white text in light mode */
}

/* =========================
   ARTICLE DATE LIGHT MODE
========================= */

body.light-mode .article-item .article-date {
  color: rgba(255, 255, 255, 0.852);
}


body.light-mode .concept-code {
  color: #fff; /* keeps contrast on lighter backgrounds */
}

body.light-mode .concept-card::after {
  background: rgba(65, 64, 64, 0.489);
}

/* =========================
   ANIMATION
========================= */

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   DISABLE ALL ANIMATIONS
========================= */

/*, *::before, *::after {
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;

  transition: none !important;
  transition-duration: 0s !important;
}