:root {
  --rrcc-red: #84130e;
  --bg-color: #ffffff;
  --text-color: #111111;
  --heading-color: var(--rrcc-red); /* NEW line */
  --card-bg: #ffffff;
  --link-bg: var(--rrcc-red);
  --link-bg-hover: #999;
  --footer-text: #555;
  --toggle-bg: #eeeeee;
  --toggle-icon: var(--rrcc-red);
}

body.dark {
  --bg-color: #121212;
  --text-color: #ffffff;
  --heading-color: #ffffff;
  --card-bg: #1e1e1e;
  --footer-text: #ffffff;
  --toggle-bg: #333333;
  --toggle-icon: #ffffff;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--rrcc-red);
  color: white;
  padding: 0.75rem 1rem;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Accessible Toggle Button */
#theme-toggle {
  background: var(--toggle-bg);
  color: var(--toggle-icon);
  border: 2px solid var(--toggle-icon);
  border-radius: 50%;
  font-size: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#theme-toggle:hover,
#theme-toggle:focus {
  background: var(--link-bg-hover);
  color: white;
  border-color: white;
  transform: scale(1.05);
}

#theme-toggle:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.page-intro {
  text-align: center;
  padding: 1rem;
  font-size: 1.1rem;
}

/* Hub Cards */
.hub-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
}

.hub-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.hub-card:hover,
.hub-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.hub-card h2 {
  margin-top: 0;
  color: var(--heading-color);
}


.hub-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hub-card a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--link-bg);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.2s ease-in-out;
}

.hub-card a:hover,
.hub-card a:focus {
  background: var(--link-bg-hover);
  outline: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--footer-text);
}

footer a {
  color: var(--link-bg);
  text-decoration: underline;
}

footer a:hover,
footer a:focus {
  color: var(--link-bg-hover);
}

/* Responsiveness */
@media (max-width: 600px) {
  .hub-card {
    width: 90%;
  }
}
