:root {
  --blue: #183e6f;
  --light-blue: #eef5fa;
  --gray: #4a4a4a;
  --max-width: 960px;
  --padding: 1.6rem;
  --radius: 8px;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  color: var(--gray);
  line-height: 1.6;
}

#map {
    width: 100%;
    height: 400px;
}

/* NAVIGATION --------------------------------------------------------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
}

.nav-links a:hover {
  color: var(--blue);
}

/* HERO --------------------------------------------------------------- */

.hero {
  background: linear-gradient(to bottom right, #0f2a4a, #1d4e89);
  color: white;
  padding: 4rem 0 6rem;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  font-size: 2.6rem;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hero-details {
  margin-top: 1rem;
  opacity: 0.8;
}

/* --- HERO HEADER --- */

.hero-header {
  position: relative;
  background-image: url("../images/rock_of_gibraltar.jpg"); /* change this */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem 1rem 3rem; /* reduced whitespace */
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* --- NAV --- */

.hero-nav {
  background: rgba(0, 0, 0, 0.55); /* strong contrast over photo */
  backdrop-filter: blur(4px);
  padding: 0.4rem 1rem; /* tighter */
  border-radius: 0.25rem;
  max-width: 1100px;
  margin: 0 auto 1rem;
}

.hero-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* --- TITLE AREA --- */

.hero-title {
  text-align: right;   /* keeps your original right-aligned theme */
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 1rem;
}

.hero-title h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 600;
}

.hero-title h2 {
  margin: 0.2rem 0 1rem;
  font-weight: 400;
  font-size: 1.4rem;
}

.hero-meta {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.hero-meta .credit {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Tweak for smaller devices */
@media (max-width: 700px) {
  .hero-title {
    text-align: center;
    padding-right: 0;
  }

  .hero-title h1 {
    font-size: 2.1rem;
  }

  .hero-nav ul {
    justify-content: center;
  }
}


/* SECTIONS ----------------------------------------------------------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--padding);
}

.section h2 {
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.3rem;
}

.alt {
  background: var(--light-blue);
}

/* SPONSORS ----------------------------------------------------------- */

.sponsor-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 0;
}

.sponsor-strip img {
  height: 60px;
  width: auto;
}

/* MAP --------------------------------------------------------------- */

.map {
  width: 100%;
  height: 300px;
  margin: 2rem 0;
}

/* DATELIST ---------------------------------------------------------- */

.datelist dt {
  font-weight: bold;
  margin-top: 1rem;
}

.datelist dd {
  margin-left: 0;
  margin-bottom: 1rem;
}

/* FOOTER ------------------------------------------------------------ */

.footer {
  text-align: center;
  padding: 2rem 0;
  background: #f5f5f5;
  margin-top: 2rem;
}
