/* ======================================================= */
/* GLOBAL STYLES (Readability and Base Layout)             */
/* ======================================================= */

body {
  /* FIX: Increased font size for better accessibility/readability */
  font-size: 18px; 
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  transition: top 0.25s ease;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 8px; /* space between logo and text */
}

.site-logo {
  width: 52px;
  height: 62px;
  object-fit: contain; /* keeps full logo visible */
}

.site-title {
  font-size: 22px;
  font-weight: bold;
  color: #800000;
}

.site-title .of-word {
  font-size: 0.8em;
  font-style: italic;
  color: #555555;
  margin: 0 2px;
}

.site-subtitle {
  font-size: 12px;
  color: #555;
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 20px;
}

.nav a {
  text-decoration: none;
  color: #0044cc;
}

.nav a:hover {
  text-decoration: underline;
}

/* Active link */
.nav a.active {
  font-weight: bold;
  color: #000000;
  text-decoration: underline;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown > button {
  background: none;
  border: none;
  color: #0044cc;
  font: inherit;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 4px 0;
  min-width: 140px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dropdown-menu a {
  display: block;
  padding: 6px 12px;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Main layout */
main {
  padding: 80px 16px 32px;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

/* Hero (optional, if used inside pages) */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #003399;
  font-weight: bold;
}

/* ======================================================= */
/* IMAGE & VIDEO HELPERS                                   */
/* ======================================================= */

/* Centered figure with caption */
.img-center {
  text-align: center;
  margin: 16px auto;
}
.img-center img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
.img-center figcaption {
  font-size: 14px;
  font-style: italic;
  color: #000;
  margin-top: 4px;
}

/* Float left, text wraps on right */
.img-left {
  float: left;
  margin: 0 16px 8px 0;
}
.img-left img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Float right, text wraps on left */
.img-right {
  float: right;
  margin: 0 0 8px 16px;
}
.img-right img {
  max-width: 220px;
  height: auto;
  display: block;
}

/* Clear floats when needed */
.clearfix {
  clear: both;
  height: 0;
  visibility: hidden;
}

/* --- RESPONSIVE VIDEO FIX --- */

/* Container for responsive embedding (Sets the 16:9 aspect ratio) */
.video-responsive-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
  height: 0;
  overflow: hidden;
  margin: 30px auto 5px auto; 
  max-width: 638px; 
}

/* iframe MUST be absolutely positioned inside the container to fill it */
.video-responsive-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Styling for the caption placed outside the video container */
.video-caption { 
  display: block;
  max-width: 638px; 
  margin: 5px auto 30px auto; 
  text-align: center;
  font-style: italic; 
  font-size: 0.9em; 
  padding: 0 10px; 
}

/* ======================================================= */
/* MOBILE / MEDIA QUERIES                                  */
/* ======================================================= */

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 20px;
  padding: 2px 8px;
  cursor: pointer;
}

/* Small screens: hamburger + vertical menu */
@media (max-width: 800px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 16px;
    border-bottom: 1px solid #ddd;
    display: none;
  }

  .nav a {
    padding: 6px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.nav-open {
    display: flex;
  }

  /* Make floated images full-width on mobile */
  .img-left,
  .img-right {
    float: none;
    margin: 16px auto;
    text-align: center;
  }

  .img-left img,
  .img-right img {
    max-width: 100%;
  }
  .nav {
  font-size: 1.5em;
}
 
  body {
  font-size: 1.3em; 
  }
  body h1{
  font-size: 1.1em; 
  }
  body h2{
  font-size: 1.05em; 
  }
  body h3{
  font-size: 1em; 
  }
}