:root {
  --global-background: #08141e;
  --title-text: #f6d6bd;
  --global-text: #f6d6bd;
  --global-link: #f6d6bd;
  --global-link-hovered: #ffffbd;
  --card-bg: #0f2a3f;
  --card-radius: 12px;
  --card-spacing: 20px;
}

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto/Roboto-Regular.ttf");
}

body {
  font-family: "Roboto", system-ui, Arial, -apple-system, "Segoe UI", Roboto;
  background: var(--global-background);
  color: var(--global-text);
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: var(--global-link);
  text-underline-offset: 3px;
  text-decoration: underline;
}

a:hover {
  color: var(--global-link-hovered);
}

.logo {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

titleBody h1,
titleBody h2,
titleBody h3 {
  color: var(--title-text);
  margin: 3px;
  text-align: center;
}

titleBody div {
  color: var(--global-text);
  margin: 3px;
  text-align: center;
}

titleBody p {
  color: var(--global-text);
  margin: 3px;
  line-height: 1.5;
  padding-top: 10px;
  text-align: center;
}

sectionBody {
  line-height: 1.5;
  padding: 20px 0px;
  flex-direction: column;
  align-items: center;
}

section {
  width: 100%;
  max-width: 900px;
  margin-bottom: 60px;
}

section h2 {
  font-size: 1.6rem;
  color: var(--global-text);
  border-bottom: 2px solid var(--global-text);
  padding-bottom: 1px;
  margin-bottom: 16px;
}

.block {
  position: relative; /* anchor for absolute link */
  display: flex;
  align-items: flex-start; /* align text to top */
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: var(--card-spacing);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.block img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.block video {
  width: 200px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.block .text h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.block .text {
  padding: 20px 30px; /* reserve space only for text area, not full block */
  flex: 1;
}

.block .text p {
  margin: 0;
}

.block a.more-link {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 0.9rem;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
  .block {
    flex-direction: column;
    text-align: center;
  }
  .block img {
    width: 100%;
    height: auto;
  }
  .block video {
    width: 100%;
    height: auto;
  }
  .block .text {
    padding: 20px 20px 60px;
    font-size: 1rem;
  }
  .block a.more-link {
    position: absolute;
    font-size: 1rem;
    bottom: 16px;
    right: 20px;
  }
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.image-card {
  position: relative;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.image-card .label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 15px;
  backdrop-filter: blur(4px);
  text-transform: lowercase;
  white-space: nowrap;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* stack vertically on mobile */
@media (max-width: 600px) {
  .image-card {
    width: 100%;
  }
}

footer {
  font-size: 12px;
}
