/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #eef4fa;
  color: #333;
  line-height: 1.6;
}

/* HEADER (TOP SIDE) */
header.top-side {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #001f3f;
  color: white;
  display: flex;
  justify-content: center; /* Desktop: centered */
  align-items: center;
  gap: 100px; /* Desktop: gap */
  padding: 5px 15px; /* Desktop padding - adjusted to match mobile for consistency */
  z-index: 1000;
  transition: top 0.4s ease-in-out;
  will-change: top;
}

header.top-side .logo {
  display: flex;
  align-items: center;
  font-size: 1.8em; /* These font styles on .logo are if it contained text */
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 60px; /* Desktop margin for the logo block */
}

header.top-side .logo img {
  height: 100px;     /* DESKTOP & MOBILE: Logo image height */
  width: 100px;      /* DESKTOP & MOBILE: Logo image width */
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px; /* DESKTOP & MOBILE: Space from image (if .logo had text next to img) */
  margin-top: 12.5px; /* DESKTOP & MOBILE: This makes it overflow the 80px header */
}

header.top-side nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  margin-right: 15px; /* Desktop: space for the nav block */
}

header.top-side nav li {
  margin-left: 20px;
}

header.top-side nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
}

header.top-side nav a:hover {
  text-decoration: underline;
}

/* Menu Toggle Styles - GLOBAL for icon switching */
.menu-toggle {
  display: none; /* Hidden on desktop by default */
  font-size: 1.5em; /* Base size for the icon container, adjust as needed for tap area */
  width: 2em; /* Clickable area */
  height: 2em; /* Clickable area */
  line-height: 1;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  position: relative; /* For positioning the pseudo-element icon */
  z-index: 1101; /* Above nav panel and overlay */
  /* Hide text if any was accidentally put in HTML (should be empty div) */
  text-indent: -9999px;
  overflow: hidden;
}

.menu-toggle::after {
  content: "☰"; /* Hamburger icon */
  font-size: 1.333em; /* Makes actual icon size relative to parent .menu-toggle (e.g., 1.5em * 1.333 = ~2em) */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-indent: 0; /* Show pseudo-element content */
  display: block;
}

.menu-toggle.active::after {
  content: "✕"; /* Cross icon */
  font-size: 1.333em; /* Ensure consistent size */
  /* Position is inherited */
}


/* Styles for the menu overlay */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999; /* Below nav panel and menu toggle */
  display: none;
  cursor: pointer;
}

#menu-overlay.active {
  display: block !important; /* Ensure it shows */
}
/* END Styles for the menu overlay */


/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  max-width: none; /* From one of your "other page" CSS versions */
  max-height: none;/* From one of your "other page" CSS versions */
}

.hero.scroll-fade.show .hero-bg {
  opacity: 1;
  transform: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  padding: 200px 20px; /* Determines hero height for desktop & mobile */
}

.hero-content h1 { /* More specific than .hero h1 */
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; /* Using rem for hero h1 */
  font-weight: 500;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px; /* Added from .hero h1 */
}
.hero-content p { /* More specific than .hero p */
  font-size: 1.5em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  color: white;
}


/* BLOG POSTS, FILTERS, ETC. (Styles from your "other pages" CSS) */
.blog-posts {max-width: 900px; margin: 80px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 60px;}
.post {border-top: 1px solid #ccc; padding-top: 40px;}
.post-meta {text-transform: uppercase; font-size: 0.75em; letter-spacing: 1px; color: #666; margin-bottom: 10px;}
.post h2 {color: #001f3f; font-size: 1.6em; font-family: Georgia, serif; margin-bottom: 5px;}
.post p {font-size: 1.1em; line-height: 1.8; color: #555; max-width: 95%; margin-bottom: 20px;} /* Was 1em / 1.7 / mb 10px in another version, using this more detailed one */
.post a {display: inline-block; font-size: 1em; font-weight: 500; color: #001f3f; text-decoration: none;}
.post a:hover {text-decoration: underline;}
.filter-bar {max-width: 1000px; margin: 40px auto; padding: 0 20px;}
.filter-form {display: flex; flex-direction: column; gap: 20px;}
.search-bar {display: flex; justify-content: space-between; align-items: center; border: 1px solid #aaa; padding: 10px 15px; font-size: 1.4em; font-family: Georgia, serif;}
.search-bar input {border: none; width: 100%; font-size: 1em; outline: none; background: transparent;}
.search-bar button {background: none; border: none; font-size: 1.2em; cursor: pointer;}
.filters {display: flex; flex-wrap: wrap; gap: 15px;}
.filters select, .filters input[type="date"] {padding: 10px 15px; border: 1px solid #aaa; font-size: 1em; width: 180px; font-family: inherit; background: white; color: #333;}

/* SCROLL ANIMATION */
.scroll-fade {opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out;}
.scroll-fade.show {opacity: 1; transform: none;}

/* FOOTER */
footer {background: #001f3f; color: white; text-align: center; padding: 20px 10px; font-size: 0.9em;}
footer a {color: #bbbbbb; text-decoration: none; margin: 0 5px;}
footer a:hover {color: white; text-decoration: underline;}

/* Close toggle global style - Not strictly needed if main .menu-toggle handles the 'X' */
/* .close-toggle {background: none; border: none; color: white; font-size: 2em; position: absolute; top: 20px; right: 20px; cursor: pointer; z-index: 1101; display: none;} */


@media screen and (max-width: 768px) {
  /* === MOBILE HEADER STYLES === */
  header.top-side {
    /* Inherits display:flex, align-items:center, justify-content:center from desktop */
    padding: 5px 15px; /* Mobile specific padding */
    gap: 10px; /* Reduced gap for mobile */
    z-index: 1002; /* Ensure header is above overlay */
  }

  header.top-side .logo {
    margin-left: 0;
    margin-right: auto !important; /* Pushes logo to the left, other items right */
    /* Reset inherited desktop text styles if they were meant for text in .logo div */
    font-size: initial;
    font-weight: normal;
    letter-spacing: normal;
  }

  /* NO mobile-specific styles FOR 'header.top-side .logo img'
     This allows it to INHERIT desktop styles (height: 100px, margin-top: 12.5px, etc.)
     for the large, overflowing logo look. */

  .menu-toggle {
    display: block; /* Make it visible on mobile */
    position: absolute !important; /* Position relative to header.top-side */
    top: 50%;
    transform: translateY(-50%); /* Vertically center the toggle container */
    right: 15px; /* Position from right, matching header padding */
    /* Width, height, z-index, etc., inherited from global .menu-toggle rule */
  }
  /* The ::after content for icon change is handled by global .menu-toggle rules */


  /* .nav-wrapper might not need specific styles if toggle is absolute */
  .nav-wrapper {
     /* display: flex; align-items: center; (Can be kept or removed) */
     /* It will be pushed right by logo's auto margin if header is not space-between */
  }

  header.top-side nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%; /* From your last "good" CSS */
    height: 100%;
    background-color: #001f3f;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 'start' in your "good" CSS */
    padding: 60px 20px; /* From your "good" CSS */
    transition: right 0.3s ease;
    z-index: 1000; /* Below menu-toggle */
  }

  header.top-side nav.active {
    right: 0;
  }

  header.top-side nav ul {
    flex-direction: column;
    width: 100%;
  }

  header.top-side nav li {
    margin: 15px 0;
    text-align: left;
    width: 100%;
  }

  header.top-side nav a {
    font-size: 1.2em;
    width: 100%;
    display: block;
    padding: 8px 0; /* Slightly adjusted from 10px for balance */
  }
  /* === END OF MOBILE HEADER STYLES === */


  /* === MOBILE HERO SECTION === */
  .hero {
    /* If using CSS background for hero, add mobile image and position here: */
    /* background-image: url('../images/mobile_your_hero_image.png'); */
    /* background-position: center center; */

    /* If using <img class="hero-bg">, this rule controls its positioning: */
    /* padding: 100px 20px; /* Example from "other pages" to make hero taller.
                              Current setup inherits desktop padding (200px 20px) for .hero-content */
  }

  .hero-bg { /* Only if you want to change object-position for mobile */
      /* object-position: left center !important; */ /* Example if needed for a specific image */
  }

  .hero-content h1 { /* More specific than .hero h1 from another file */
    font-size: 2.5rem; /* From your "other pages" CSS example for mobile */
  }
   .hero-content p {
     font-size: 1.2em;
   }
  /* === END OF MOBILE HERO SECTION === */


  /* Mobile styles for filters */
  .filters {
    flex-direction: column;
    width: 100%;
  }

  .filters select,
  .filters input[type="date"] {
    width: 100%;
  }

  /* Close toggle for mobile nav (if used and it's a separate element) */
  /* .close-toggle {
    display: block !important;
  } */

} /* End of @media screen and (max-width: 768px) block */