/* Default */
:root {
  /* Primary */
  --md-primary-fg-color: #003c6c; /* UCSC Blue */
  --md-primary-fg-color--light: #005b9f; /* Slightly lighter blue */
  --md-primary-fg-color--dark: #00223d; /* Slightly darker blue */

  /* Accent */
  --md-accent-fg-color: #fdc700; /* UCSC Yellow */
  --md-accent-fg-color--light: #ffe34d;
  --md-accent-fg-color--dark: #c79a00;

  /* Links */
  --md-typeset-a-color: var(--md-accent-fg-color);

  /* Make headers bold */
  .md-typeset h1,
  .md-typeset h2,
  .md-typeset h3,
  .md-typeset h4,
  .md-typeset h5,
  .md-typeset h6 {
    font-weight: 700 !important;
  }
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  /* Header */
  --md-primary-fg-color: #003c6c;
  --md-primary-fg-color--light: #005b9f;
  --md-primary-fg-color--dark: #00223d;

  /* Accent */
  --md-accent-fg-color: #fdc700;
  --md-accent-fg-color--light: #ffe34d;
  --md-accent-fg-color--dark: #c79a00;

  /* Links */
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* Make active nav tab yellow */
.md-tabs__link--active,
.md-tabs__item--active > .md-tabs__link {
  color: var(--md-accent-fg-color) !important;
}

/* Make buttons match accent color */
.md-button {
  background-color: var(--md-accent-fg-color);
  color: #000;
}
.md-button:hover {
  background-color: var(--md-accent-fg-color--light);
}
/* --- Hero Page Layout --- */

/* Normal content should start after hero */
.md-main__inner {
  padding-top: 0;
}

/* Hide TOC and primary nav on wide screens (optional) */
@media screen and (min-width: 60em) {
  .md-sidebar--secondary {
    display: none;
  }
}

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }
}

/* --- Hero Container --- */
.hero-container {
  position: relative;
  height: calc(100vh - var(--md-header-height, 4rem));
  width: 100%;
  overflow: hidden;
}

/* Background hero image with dark overlay for text contrast */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url("../assets/images/rov.webp");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
}

/* Hero text content */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--md-header-height, 16rem));
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-content .md-button {
  margin: 0 0.5rem;
}

/* --- Scroll Down Arrow --- */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
}

.scroll-down span {
  display: block;
  width: 24px;
  height: 24px;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(5px);
  }
  60% {
    transform: rotate(45deg) translateY(3px);
  }
}
.md-grid__item .md-card {
  border: none;
  box-shadow: none; /* Optionally remove box shadow as well */
}

/* Responsive logo grid — drop in more <a class="sponsor">…</a> and it Just Works */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
}

/* Keep logos crisp, same visual height, never stretched */
.sponsors-grid img {
  max-height: 90px; /* <- tweak this to taste */
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Optional: give each logo some breathing room for click targets */
.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

/* Optional tiers (use .sponsor--lg / --sm on the <a> if needed) */
.sponsor--lg img {
  max-height: 120px;
}
.sponsor--sm img {
  max-height: 70px;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}
