:root>* {
  --md-primary-fg-color: #ffffff;
  --md-accent-fg-color: #00b19e;
  --md-typeset-a-color: rgb(51, 51, 51);
  --md-default-fg-color--light: rgb(51, 51, 51);
  --md-footer-bg-color--dark: #eeeeee;
  --md-footer-fg-color--light: rgb(51, 51, 51);
  --md-footer-fg-color--lighter: rgb(51, 51, 51);
  --md-footer-fg-color: #00b19e;
}

.md-header {
  box-shadow: none;
}

.md-header__title {
  font-size: 40px;
}

.md-header__topic:first-child {
  font-weight: 500;
}

.md-typeset {
  font-weight: 300;
}

.md-typeset p a {
  text-decoration: underline;
}

.md-typeset a:hover,
.footer-links a:hover {
  color: #00b19e;
}

.md-header__button.md-logo img {
  height: 48px;
  width: 50px;
  aspect-ratio: 277 / 263;
}

.md-footer-copyright {
  width: 100%;
}

.md-footer-copyright__highlight {
  display: flex !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.footer-left {
  display: contents;
}

.footer-links {
  order: 1;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 3;
}

.footer-text {
  order: 2;
  line-height: 1.5;
  text-align: center;
}

.footer-logo {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain;
}

.footer-logo-eu {
  height: 29px !important;
  max-height: 29px !important;
  width: auto !important;
  object-fit: contain;
}

@media screen and (min-width: 900px) {
  .footer-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-left {
    display: block;
    line-height: 1.5;
  }

  .footer-links,
  .footer-logos,
  .footer-text {
    order: unset;
  }

  .footer-text {
    text-align: left;
  }

  .footer-logo {
    height: 90px !important;
    max-height: 90px !important;
  }

  .footer-logo-eu {
    height: 60px !important;
    max-height: 60px !important;
  }
}

/* Gallery Layout */
.md-post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Card Styling */
.md-post--card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.md-post--card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.md-post__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.md-post__link:hover {
  color: inherit;
}

.md-post__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.md-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-post--card {
  display: flex;
  flex-direction: column;
}

.md-post--card .md-post__link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.md-post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

/* Remove post link in the body because it breaks display */
.md-post__body>.md-post__link {
  display: none;
}

.md-post--card .md-post__excerpt h2 {
  margin: 0 0 0.4rem 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.4;
}

.md-post--card .md-post__excerpt h2 a {
  color: rgb(51, 51, 51);
  text-decoration: none;
}

.md-post--card .md-post__meta {
  font-size: 0.75rem;
  color: rgb(102, 102, 102);
  margin-top: auto;
  padding: 0.4rem 0 0 0;
}

.md-post__author {
  opacity: 0.8;
}

.md-post__author::after {
  content: " · ";
}

.md-post__excerpt {
  font-size: 0.80rem;
  line-height: 1.4;
  color: rgb(68, 68, 68);
  margin-bottom: 0;
}

.md-post__excerpt p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.md-post--card .md-post__action {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0;
  color: #00b19e;
  font-size: 0.7rem;
  font-weight: 500;
}

.md-post--card .md-post__action:hover {
  text-decoration: underline;
}

/* Privacy opt-out checkbox styling */
.privacy-opt-out {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.privacy-checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--md-accent-fg-color);
}