/* Reset and base */
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  margin: 0; padding: 0;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}
h1 {
  color: #ffcc00;
}

h2, h3 {
  color: #2c3e50;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 1000;
  background: #1a237e; /* your header bg */
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
header h1 {
  margin: 0;
  font-size: 2rem;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
nav ul li {
  display: inline;
}
nav ul li a {
  color: #bbdefb;
  text-decoration: none;
  font-weight: bold;
}
nav ul li a:hover,
nav ul li a:focus {
  text-decoration: underline;
  color: #e3f2fd;
}

/* Main content */
main {
  max-width: 960px;
  margin: 1rem auto;
  padding: 0 1rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding-top: 200px; /* or the exact height of your header */
}

.content-section {
  position: relative;
  z-index: 1;
}

/* .content-section::before { */
  /* content: ""; */
  /* display: block; */
  /* height: 120px; /* same height as your header */ */
  /* margin-top: -120px; */
  /* visibility: hidden; */
  /* pointer-events: none; */
/* } */

.content-section h2 {
  border-bottom: 2px solid #1a237e;
  padding-bottom: 0.25rem;
}

/* Videos */
.video-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.video-container iframe {
  flex: 1 1 300px;
  height: 180px;
  border: none;
  border-radius: 5px;
}

/* Photo gallery */
.photo-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.photo-gallery img {
  max-width: 30%;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Blog */
.blog-post {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}
.show-comments-btn {
  background: #1a237e;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 0.5rem;
}
.show-comments-btn:hover {
  background: #283593;
}
.comments {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid #1a237e;
}
.hidden {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #1a237e;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.btn:hover,
.btn:focus {
  background: #283593;
  text-decoration: none;
}

/* Tract viewer */
.tract-viewer {
  width: 100%;
  height: 400px;
  margin-top: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Footer */
footer {
  background: #1a237e;
  color: #eee;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.85rem; /* smaller font size */
}

footer a {
  color: #ffcc00; /* yellow links */
  text-decoration: underline; /* optional for better visibility */
}

footer a:hover,
footer a:focus {
  color: #ffd633; /* lighter yellow on hover */
  text-decoration: none;
}

/* Responsive */
/* Hamburger button */
#menu-toggle {
  display: none; /* hidden on desktop */
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

/* Show hamburger button on mobile */
@media (max-width: 600px) {
  #menu-toggle {
    display: block;
  }

  /* Hide nav menu by default on mobile */
  nav {
    display: none;
    background: #1a237e;
    position: fixed;
    top: 120px; /* header height */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1099;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  nav ul li {
    display: block;
    text-align: center;
  }

  nav ul li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

	.video-container {
	  display: flex;
	  gap: 1rem;
	  flex-wrap: wrap;
	  margin-top: 1rem;
	}

	.video-wrapper {
	  position: relative;
	  padding-bottom: 56.25%; /* 16:9 ratio */
	  height: 0;
	  flex: 1 1 300px;
	  max-width: 600px; /* optional max width */
	}

	.video-wrapper iframe {
	  position: absolute;
	  top: 0; left: 0;
	  width: 100%;
	  height: 100%;
	  border: none;
	  border-radius: 5px;
	}
}

.image-stack img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin-bottom: 1rem;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* remove gaps between images */
  margin: 0; /* remove outer margins if any */
  padding: 0;
}

.photo-gallery a,
.photo-gallery img {
  margin: 0;
  padding: 0;
  border: none;
  display: block;
  width: 300px; /* make sure images fill their container */
  height: auto;
  max-width: none; /* override any max-width */
}
}