/* =========================
   Reset
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* =========================
   Header & Navigation
   ========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #3B66F1;
  padding: 0.6rem 1rem;
  text-align: center;
}


/* Title */
header h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  text-align: center;
}

header h1 a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
}

/* Nav */
nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   Anchor offset fix
   ========================= */

section {
  scroll-margin-top: 7.5rem;
  margin-bottom: 3rem;
}

/* =========================
   Main content
   ========================= */

main {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

/* Headings & text */
h2 {
  color: #003366;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

main {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
  padding-top: 10rem;   /* space for fixed header */
}


/* =========================
   Responsive video
   ========================= */

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Buttons
   ========================= */

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn {
  background: #3B66F1;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.btn:hover {
  background: #2d52c7;
}

/* =========================
   Mobile fixes
   ========================= */

@media (max-width: 600px) {

  header h1 {
    font-size: 1.7rem;   /* ↓ smaller so it fits one line */
    white-space: nowrap;
  }

  nav a {
    font-size: 0.85rem;
  }

  section {
    scroll-margin-top: 8.5rem;
  }
}
/* =========================
   Return to Top Button
   ========================= */

.return-top {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.float-image {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 280px;   /* adjust to taste */
}

.float-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.float-image img:hover {
  transform: scale(1.03);
}

/* Mobile friendly */
@media (max-width: 768px) {
  .float-image {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 90%;
  }
}

.button-group {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.button-group .btn {
  display: inline-block;
  background: #3B66F1;
  color: white !important;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.button-group .btn:hover {
  background: #2d52c7;
}
