/* Set the base font for the entire site */
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: #333; /* Dark text */
  background-color: #fff; /* White background */
}

/* Set the futuristic font for all headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', sans-serif;
  text-align: center;
}

/* Post Navigation at the bottom of posts */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.post-nav .nav-item {
  flex: 1; /* Each of the 3 items will take up space */
}

.post-nav .prev {
  text-align: left;
}

.post-nav .home {
  text-align: center;
}

.post-nav .next {
  text-align: right;
}

.post-nav a {
  text-decoration: none;
  color: #333;
}

.post-nav a:hover {
  text-decoration: underline;
}

.post-nav a span {
  display: block;
  font-size: 0.8em;
  color: #777;
  font-weight: normal; /* Ensure this text is not bold */
}

.post-nav a div {
  font-size: 1em; /* Makes it the same size as normal text */
  font-weight: bold; /* Makes it stand out */
  color: #555;
}

/*
This targets the main H1 on the homepage
*/
h1 {
  line-height: 1.1; /* Adjusts spacing between the two lines */
  text-transform: uppercase; /* Makes all title text uppercase */
}

/* This targets the top line of the title */
.title-top {
  display: block; /* Forces a line break after it */
  font-weight: normal;
  font-size: clamp(1rem, 5vw, 1.5rem); /* Responsive font size */
}

/* This targets the bottom line of the title */
.title-bottom {
  display: block; /* Ensures it's on its own line */
  font-weight: bold;
  font-size: clamp(1.5rem, 8vw, 3rem); /* Responsive font size */
}

/* Hero Section with Background Video */
.hero-section {
  position: relative; /* This is the anchor for our absolute positioning */
  height: 75vh; /* Makes the section 75% of the viewport height */
  display: grid;
  place-items: center;
  overflow: hidden; /* Hides any part of the video that might stick out */
}

/* The video itself */
.hero-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2; /* Puts it at the very back */
}

/* The dark overlay for readability */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
  z-index: -1; /* Sits on top of the video, but behind the text */
}

/* The container for our text */
.hero-content {
  position: relative; /* Keeps it in the normal flow */
  z-index: 1; /* Ensures it's on top of the overlay */
  color: white;
  text-align: center;
}
