/* Donation Section Styles (synced with Angular src/styles.css) */
.donation-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.donation-text {
  font-size: 1.15em;
  line-height: 1.8em;
  color: #555;
  margin-bottom: 2em;
}

.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.btn-donation {
  background-color: #2D6A94;
  color: #fff;
  padding: 0.8em 2.2em;
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.2s;
  min-width: 100px;
  text-align: center;
}

.btn-donation:hover,
.btn-donation:active {
  background-color: #1e4f70;
  color: #fff;
  transform: translateY(-2px);
}

.btn-donation-any {
  background-color: #fff;
  color: #2D6A94;
  border: 2px solid #2D6A94;
}

.btn-donation-any:hover,
.btn-donation-any:active {
  background-color: #2D6A94;
  color: #fff;
}
/* Floating buttons */
.gototopSecond {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  padding: 16px;
  color: #fff;
  z-index: 1200;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
  outline: none;
}
.gototopSecond:hover,
.gototopSecond:focus {
  background: #0070ba;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}
.gototopSecond i {
  line-height: 0.8em;
  pointer-events: none;
}
/* Knowledge Hub — mirrors main Lazy Eye Games site styles */
body {
  color: #333;
  font: 300 15px/1.7 Roboto, Arial, Helvetica, sans-serif;
  background: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a {
  color: #00a9c6;
  text-decoration: none;
}

a:hover {
  color: #666;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2em;
}

h1 {
  font: 700 2.4em Roboto, Arial, Helvetica;
  margin-bottom: .6em;
}

h2 {
  font: 300 2em Josefin Sans, Arial, Helvetica;
  margin: 1.6em 0 .8em;
}

h3 {
  font: 300 1.6em Roboto, Arial, Helvetica;
  margin: 1.4em 0 .6em;
}

h4 {
  font: 300 1.3em Roboto, Arial, Helvetica;
  margin-bottom: .8em;
}

h4 i {
  margin-right: .5em;
}

p {
  font-size: 1em;
  line-height: 1.7em;
  margin-bottom: 1.4em;
}

ul,
ol {
  margin-bottom: 1.4em;
}

li {
  margin-bottom: .6em;
  line-height: 1.6em;
}

.spacer {
  padding: 2em 0;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Back FAB button — fixed, below nav bar, left side */
.back-fab {
  display: none;
  position: absolute;
  top: 380px;
  /* banner(263) + nav(~57) + 60px gap */
  left: 32px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(52, 58, 64, 0.85);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  font-size: 1.3em;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

@media screen and (max-width:1355px) {
  .back-fab {
    top: 210px;
  }

  /* small banner(90) + nav(~57) + 63px gap */
}

.back-fab:hover,
.back-fab:focus {
  background: #2D6A94;
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 106, 148, 0.28);
}

.back-fab i {
  margin: 0;
}

/* Banner */
.masthead {
  background-image: url(/images/banner.png);
  height: 263px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (max-width:1355px) {
  .masthead {
    background-image: url(/images/banner_m.png);
    height: 90px;
  }
}

/* Navbar — same selectors as main page to beat Bootstrap specificity */
#top-nav {
  background-color: #343a40;
}

.navbar-nav {
  font-size: 1.3em;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  float: none;
  width: auto;
  padding-left: 2em;
  margin-bottom: -0.6em;
}

/* Match Bootstrap's own selector specificity (0-3-0) so fonts/colors apply */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-nav>li>a {
  font-size: 1em;
  line-height: 1.5em !important;
  font-family: Josefin Sans, Arial, Helvetica;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.8em 1.4em !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:active {
  color: #fff !important;
  background-color: #2D6A94 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler {
  border: none;
  background: none;
  color: #fff;
  font-size: 1.6em;
  padding: .6em;
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  vertical-align: middle;
}

/* Dropdown */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  position: absolute;
  top: 100%;
  margin-top: 0;
  background-color: #222;
  border: none;
  border-radius: 0;
  width: max-content;
  min-width: 100%;
  padding: .5em 0;
  list-style: none;
  z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu .dropdown-item {
  display: block;
  color: #ccc;
  font-size: 1.1em;
  padding: .75em 1.8em;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #2D6A94;
  color: #fff;
}

/* Navbar collapse */
@media (min-width:768px) {
  .collapse.navbar-collapse {
    display: flex !important;
  }
}

@media (max-width:767px) {
  .collapse.navbar-collapse {
    display: none;
  }

  .collapse.navbar-collapse.show {
    display: flex;
    flex-direction: column;
  }

  .navbar-nav {
    flex-direction: column;
    padding-left: 0;
  }

  .navbar-nav>li {
    text-align: left;
  }

  .nav-item.dropdown .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    left: auto;
    background-color: #1a1a1a;
    width: 100%;
    padding-left: 1em;
  }
}

/* Article content */
.article-content {
  background: #fff;
  padding: 3em 4em;
  max-width: 960px;
  margin: 2em auto;
  border-radius: 4px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

.article-content blockquote {
  border-left: 4px solid #2D6A94;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: #f8f9fa;
  font-style: italic;
}

.article-content .exercise-section {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid #eee;
}

.article-content .exercise-section:last-child {
  border-bottom: none;
}

.article-content .img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 1em 0;
}

.article-content .img-row img {
  flex: 1 1 200px;
  max-width: 280px;
}

@media (max-width:767px) {
  .article-content {
    padding: 2em 1.5em;
    margin: 1em;
  }

  .article-content .img-row img {
    max-width: 100%;
  }
}

/* Hub cards */
.hub-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.hub-card {
  background: #fff;
  border-radius: 6px;
  padding: 2em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: #333;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  color: #333;
}

.hub-card h3 {
  font: 700 1.2em Josefin Sans, Arial, Helvetica;
  color: #2D6A94;
  margin-bottom: .6em;
}

.hub-card p {
  font-size: .95em;
  color: #666;
  margin: 0;
}

/* Highlight / Platforms */
.highlight-info {
  background: url(/images/lab.jpg) center fixed;
  background-size: cover;
  color: #fff;
}

.highlight-info .overlay {
  background: rgba(59, 51, 48, .7);
}

.highlight-info h4 {
  color: #fff;
  margin: .5em 0 0;
}

/* Contact */
.contactform h5 a {
  color: #00a9c6;
}

/* Footer */
.footer {
  background-color: #111;
  color: #aaa;
  font-size: 1em;
}

.footer a {
  color: #aaa;
  margin: 0 1em;
}