:root {
  --header-bg: #f0f4fa;
  --header-color: #001e54;
  --header-underline: #001e54;
  --main-bg: #f9f9f9;
  --main-color: #001e54;
  --card-bg: #d0e0f0;
  --card-radius: 16px;
  --accent: #0d91dd;
  --sidebar-bg: #f0f4fa;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Palatino Linotype', Arial, sans-serif;
  background: var(--main-bg);
  color: var(--main-color);
  min-height: 100vh;
}

.main-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Add max-width and auto margin for center alignment */
  max-width: 1200px;
  margin: 0 auto;
  /* Add space for ads on left and right */
  box-sizing: border-box;
  padding-left: 100px;
  padding-right: 100px;
}

.site-header {
  background: var(--header-bg);
  color: var(--header-color);
  padding: 16px 0 0 0;
  text-align: center;
  border-radius: 0 0 18px 18px; /* Rounded corners for header */
}

.site-title {
  margin: 0;
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 1px;
}

.site-branding {
  margin: 0;
  font-size: 1.1em;
  color: var(--header-color);
  font-weight: normal;
}

.site-description {
  margin: 0 0 0 20px;
  font-size: 0.85em;
  color: var(--header-color);
  font-weight: normal;
}

.main-navigation {
  display: flex;
  align-items: center;
  background: var(--main-color);
  padding: 15px 0;
  border-radius: 0px 0px 18px 18px;
  margin-top: 10px;
  position: relative;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-menu li {
  position: relative; /* Needed for dropdown positioning */
  display: inline-block;
}

.nav-menu a {
  color: #fff; /* White text for contrast on accent background */
  font-weight: bold;
  font-size: 1.08em;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a.active,
.nav-menu a:hover {
  background: #fff;
  color: var(--accent);
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: var(--card-bg);
  box-shadow: 0 4px 16px rgba(0,30,84,0.07);
  border-radius: 0 0 8px 8px;
  z-index: 10;
  padding: 0;
  margin-top: 15px;
}

.dropdown-content li {
  display: block;
  width: 100%;
}

.dropdown-content li a {
  color: var(--header-color);
  padding: 12px 20px;
  display: block;
  text-align: left;
  border-radius: 0;
  background: none;
  font-size: 1em;
  font-weight: normal;
}

.dropdown-content li a:hover {
  background: var(--accent);
  color: #fff;
}

.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropbtn::after {
  content: " ▼";
  font-size: 0.8em;
}

.site-content {
  display: flex;
  flex-direction: row;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 24px;
  flex: 1;
  gap: 32px;
  border-top: none;
}

.featured-post {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 24px rgba(0,30,84,0.07);
  padding: 32px 32px 32px 32px;
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-content {
  width: 100%;
  text-align: center;
}

.entry-title {
  font-size: 1.7em;
  color: var(--header-color);
  margin: 0 0 10px 0;
  text-decoration: underline;
}

.entry-meta {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 18px;
}

.entry-body {
  font-size: 1.1em;
  margin-bottom: 24px;
}

.sidebar {
  flex: 1;
  background: var(--sidebar-bg);
  border-radius: var(--card-radius);
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(0,30,84,0.05);
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: fit-content;
}

.widget-title {
  font-size: 1.1em;
  color: var(--header-color);
  margin-bottom: 10px;
  font-weight
  text-decoration: underline;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 8px;
}

.widget ul li a {
  color: var(--header-color);
  text-decoration: none;
  transition: color 0.2s;
}

.widget ul li a:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--header-bg);  /* Match footer color to header */
  color: var(--header-color);
  border-top: 6px solid var(--header-underline);
  text-align: center;
  font-size: 1em;
  border-radius: 18px 18px 0 0;
  padding: 18px 0;
  margin-top: 48px;
  box-shadow: 0 -2px 12px rgba(0,30,84,0.04);
}

/* Hamburger inside nav, left of Home */
.main-navigation {
  display: flex;
  align-items: center;
  background: var(--main-color);
  padding: 15px 0;
  border-radius: 0px 0px 18px 18px;
  margin-top: 10px;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: #fff; /* Always white */
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 18px;
  margin-left: 8px;
  transition: background 0.2s;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 15px;
  height: 3px;
  margin: 4px 0;
  background: var(--main-color); /* Always dark blue */
  border-radius: 2px;
  transition: 0.1s;
}

/* Hamburger hover and open: keep background white */
.hamburger:hover,
.hamburger.open {
  background: #fff;
}

/* Mobile nav: slide below main navigation */
.mobile-nav {
  display: block;
  position: fixed;
  top: 70px; /* Adjust this value to match the height of your header + nav */
  left: 0;
  width: 30vw;           /* Make the slider a bit narrower */
  max-width: 240px;
  height: calc(100vh - 70px); /* Adjust height to not overlap header/nav */
  background: var(--card-bg);
  box-shadow: 2px 0 16px rgba(0,30,84,0.12);
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: 2000;
  padding: 32px 18px 18px 18px;
  border-radius: 0 12px 12px 0;
}
.mobile-nav.open {
  transform: translateX(0);
}

/* Remove bullet points and spacing for slider options */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
}
.mobile-nav ul li {
  margin-bottom: 18px;
  list-style: none;
  padding-left: 0;
}
.mobile-nav ul li a {
  color: var(--header-color);
  font-size: 1.1em;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 8px 0;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav ul li a:hover {
  background: var(--accent);
  color: #fff;
}

/* Adjust close button for new slider position */
.close-mobile-nav {
  position: absolute;
  top: 12px;
  left: 18px;
  right: auto;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--header-color);
  cursor: pointer;
}

/* Optional: Add hover effect for hamburger */
.hamburger:hover {
  background: var(--accent);
}
.hamburger.open {
  background: var(--accent);
}

@media (max-width: 1400px) {
  .main-wrapper {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 900px) {
  .main-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
  .site-content {
    flex-direction: column;
    gap: 18px;
    padding: 0;
    max-width: 100vw;
  }
  .featured-post {
    padding: 18px 6px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .sidebar {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 18px 6px;
    box-sizing: border-box;
  }
}

@media (max-width: 750px) {

    .main-navigation {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 0;
    border-radius: 0px;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    display: flex;
    gap: 8px;
    align-items: left;
    margin: 0;
    padding: 0;
  }
  .nav-menu li:not(:first-child) {
    display: none; /* Only show Home */
  }
  .nav-menu li:first-child {
    margin-left: 0;
  }
  .main-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .site-header,
  .site-footer {
    padding-left: 4px;
    padding-right: 4px;
  }
  .featured-post,
  .sidebar {
    border-radius: 0;
    box-shadow: none;
  }
  .site-title {
    font-size: 1.3em;
  }
  .entry-title {
    font-size: 1.1em;
  }
  .nav-menu {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-menu li {
    margin: 0;
  }
  .nav-menu a,
  .dropbtn {
    font-size: 0.95em;
    padding: 4px 8px;
    border-radius: 4px;
  }
  .dropdown-content {
    min-width: 120px;
  }
  .dropdown-content li a {
    padding: 8px 12px;
    font-size: 0.95em;
  }
  .site-header {
    padding: 10px 0 0 0;
  }
  .site-title {
    font-size: 1.1em;
  }
  .site-description {
    font-size: 0.8em;
    margin-left: 0;
  }
}
