/* Custom primary color — FluDa deep navy */
:root {
  --md-primary-fg-color: #202794;
  --md-primary-fg-color--light: #3f47b8;
  --md-primary-fg-color--dark: #0a1258;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #f0b92d;
  --md-accent-fg-color--transparent: rgba(240, 185, 45, 0.1);
  --md-accent-bg-color: #ffffff;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.hero .md-button {
  margin: 0.25rem;
}

/* Tagline */
.tagline {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  color: var(--md-default-fg-color);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--md-accent-fg-color);
}

/* Grid cards */
.grid.cards {
  margin-top: 1.5rem;
}

.grid.cards > ul > li {
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.grid.cards > ul > li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card footer links */
.card-github {
  float: right;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.card-github:hover {
  opacity: 1;
}

/* Card layout: header / body / footer.
   A card that has a footer becomes a flex column. The li is a grid item, so
   it stretches to the tallest card in the row by default (align-self:stretch
   only applies while height stays auto — an explicit height:100% would
   collapse it back to content height and break the alignment). The body grows
   to absorb the free space, so every footer rests on the same bottom line
   across the row regardless of how long the description is. Scoped with
   :has(.card-footer) and the .md-typeset prefix so it overrides Material's
   display:block on the li, while the footerless "Why FluDa?" cards keep their
   natural layout. */
.md-typeset .grid.cards > ul > li:has(.card-footer) {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.md-typeset .card-header {
  flex: 0 0 auto;
}

.md-typeset .card-body {
  flex: 1 1 auto;
}

.md-typeset .card-footer {
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.6rem;
  border-top: 0.05rem solid var(--md-default-fg-color--lightest);
}

/* Brand accent for primary buttons */
.md-button--primary {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  border-color: var(--md-primary-fg-color);
}

.md-button--primary:hover {
  background-color: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
  border-color: var(--md-accent-fg-color);
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Code block styling */
.md-typeset pre > code {
  border-radius: 8px;
}

/* Responsive hero image */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero img {
    max-width: 90%;
  }
}
