/* 1. Global Variables */
:root {
  --hamann-purple: #3D2C8D;
  --msu-green: #18453B;
}

/* 2. FORCE DARK MODE (The Moon) */
/* We target the ID #masthead and the class .masthead simultaneously */
html[data-theme="dark"] body #masthead,
html[data-theme="dark"] body .masthead,
html[data-theme="dark"] body .masthead__inner-wrap {
  background-color: #000000 !important;
  background: #000000 !important;
  background-image: none !important;
  border-bottom: 3px solid #18453B !important;
  box-shadow: none !important;
}
/* Force Nav Text to White */
html[data-theme="dark"] .masthead__menu-item a,
html[data-theme="dark"] .site-title,
html[data-theme="dark"] .site-title a {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* 3. FORCE LIGHT MODE (The Sun) */
html[data-theme="light"] body #masthead,
html[data-theme="light"] body .masthead {
  background-color: #ffffff !important;
  border-bottom: 3px solid #18453B !important;
}

/* 4. Link Visibility Fix */
html[data-theme="dark"] a { color: #A394F0 !important; }
html[data-theme="light"] a { color: #3D2C8D !important; }

/* 5. Sidebar Fix for Dark Mode */
html[data-theme="dark"] .sidebar .author__urls-wrapper a,
html[data-theme="dark"] .sidebar .author__urls-wrapper i {
  color: #ffffff !important;
}
/* ============================================================
   Research Page: Research Thrust Cards
   ============================================================ */

.research-card {
  margin: 2rem 0;
  padding: 1.7rem 1.9rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(24, 69, 59, 0.12);
}

.research-card h2 {
  color: white;
  font-size: 1.85rem;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: none;
}

.research-card-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
}

.research-card-text p {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.research-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-card-image img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
}

/* Eurefstics: purple */
.thrust-eurefstics {
  background: linear-gradient(
    90deg,
    rgba(61, 44, 141, 1.0) 0%,
    rgba(61, 44, 141, 0.86) 45%,
    rgba(61, 44, 141, 0.32) 100%
  );
}

/* Electrocatalysis / Catalysis: green */
.thrust-ammonia {
  background: linear-gradient(
    90deg,
    rgba(24, 69, 59, 1.0) 0%,
    rgba(24, 69, 59, 0.86) 45%,
    rgba(24, 69, 59, 0.32) 100%
  );
}

/* Solar energy: orange / gold */
.thrust-solar {
  background: linear-gradient(
    90deg,
    rgba(168, 92, 24, 1.0) 0%,
    rgba(191, 124, 34, 0.84) 45%,
    rgba(238, 184, 76, 0.34) 100%
  );
}

/* Mobile layout */
@media screen and (max-width: 850px) {
  .research-card {
    padding: 1.4rem;
  }

  .research-card-body {
    grid-template-columns: 1fr;
  }

  .research-card h2 {
    font-size: 1.45rem;
  }

  .research-card-text p {
    font-size: 0.96rem;
  }

  .research-card-image img {
    max-height: 230px;
  }
}
/* ============================================================
   Homepage: Research Area Cards
   ============================================================ */

.home-research-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2.2rem 0 2.5rem 0;
}

.home-research-card {
  display: block;
  text-decoration: none !important;
  border-radius: 16px;
  padding: 1.45rem 1.6rem;
  color: white !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none !important;
}

.home-research-card h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.home-research-card p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  line-height: 1.45;
}

.home-card-eurefstics {
  background: linear-gradient(
    135deg,
    rgba(61, 44, 141, 1.0) 0%,
    rgba(104, 88, 170, 0.86) 100%
  );
}

.home-card-ammonia {
  background: linear-gradient(
    135deg,
    rgba(24, 69, 59, 1.0) 0%,
    rgba(74, 124, 110, 0.86) 100%
  );
}

.home-card-solar {
  background: linear-gradient(
    135deg,
    rgba(168, 92, 24, 1.0) 0%,
    rgba(238, 184, 76, 0.86) 100%
  );
}

@media screen and (min-width: 900px) {
  .home-research-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
