.md-header {
  background-color: #4272f5 !important;
}

.md-header__title,
.md-header__button {
  color: #ffffff !important;
}

/* Hero section styling */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.0));
  border-radius: 12px;
  margin-bottom: 1.75rem;
}

.hero-content {
  width: 100%; 
  max-width: 100%; 
  box-sizing: border-box;
}

.hero-title {
  font-size: 3rem;
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.hero-sub {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: rgba(4, 16, 20, 0.75);
}

.hero-icon {
  display: inline-block;
  font-size: 270px;
  line-height: 1;
  color: var(--accent);
  filter: drop-shadow(0 12px 30px rgba(66, 114, 245, 0.28));

}

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

.hero-cta {
  font-size: 1.05rem;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
}



/* Make blue highlights more apparent in cards and links */
.grid.cards li {
  border: 1px solid rgba(66,114,245,0.06);
}

.grid.cards li a.stretched-link {
  color: var(--accent);
}

h1,
h2,
h3 {
  color: var(--page-text);
}

.md-nav__link--active,
.md-nav__link--active:hover {
  background-color: var(--accent) !important;
  color: var(--accent-foreground-light) !important;
}


/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  .hero-container {
    /* Changed to column-reverse to pull the graphic/icon to the top */
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-content {
    padding-left: 0.8rem !important;
    max-width: 100%;
  }

  .hero-graphic {
    display: flex;
    width: 100%;
    justify-content: center; 
    margin-bottom: 0.5rem;   
  }

  .hero-icon {
    font-size: 140px; 
  }

  .hero-title {
    font-size: 2rem;
  }
}


/* Lightning/logo shine effect similar to frcdesign.org book sparkle */
.logo {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.logo svg {
  display: block;
  transition: filter 220ms ease, transform 220ms ease;
}

.logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  mix-blend-mode: screen;
  filter: blur(8px);
  pointer-events: none;
  animation: logo-shine 2.8s linear infinite;
}

.logo:hover svg {
  filter: drop-shadow(0 10px 30px rgba(66,114,245,0.28)) brightness(1.12);
  transform: translateY(-2px);
}

@keyframes logo-shine {
  0% { left: -120%; opacity: 0; }
  10% { opacity: 1; }
  60% { left: 120%; opacity: 1; }
  100% { left: 120%; opacity: 0; }
}



/* Accent badge utility */
.accent-bg {
  background-color: var(--accent);
  color: var(--accent-foreground-light);
  padding: 0.25em 0.5em;
  border-radius: 6px;
}

abbr[title] {
  text-decoration: underline dotted #007acc;
  cursor: help;
  position: relative;
}

@media (min-width: 769px) {
  abbr[title]:hover::after {
    content: attr(title) !important;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Allow wrapping on desktop if text is long, up to 250px */
    white-space: normal !important;
    width: max-content;
    max-width: 250px;
  }

  abbr[title]:hover::before {
    content: "";
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    z-index: 999;
  }
}

@media (max-width: 768px) {
  abbr[title]:active::after,
  abbr[title]:hover::after {
    content: attr(title) !important;
    position: fixed;
    bottom: 20px; /* Floats just above the bottom edge of the phone */
    left: 5%;
    right: 5%;
    width: 90%;
    
    /* Styling */
    background-color: #222;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    
    /* Text wrapping mechanics */
    white-space: normal !important;
    word-wrap: break-word;
    text-align: center;
  }

  abbr[title]:hover::before,
  abbr[title]:active::before {
    display: none !important;
  }
}




