/* === Existing styles (logo, layout, etc.) preserved === */

/* Limit logo image height and align with menu */
.navbar-brand img {
    height: 40px;
    max-height: 40px;
    width: auto;
    vertical-align: middle;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
  }
  
  /* Light blue header and footer */
  header, .navbar, #footer {
    background-color: #c1dcf3;
    color: #000;
  }
  
  /* Ensure footer text is always readable */
  #footer, #footer p, #footer a, #footer span,
  #footer li, #footer strong, #footer h1, #footer h2,
  #footer h3, #footer h4, #footer h5, #footer h6 {
    color: #000 !important;
  }
  
  #footer a:hover {
    text-decoration: none;
  }
  
  /* All top-level nav links */
  .navbar-nav li a {
    background-color: #002b55 !important; /* DARK BLUE */
    color: #ffffff !important;
    font-weight: 600;
  }
  
  /* Hover/focus state for menu items */
  .navbar-nav li a:hover,
  .navbar-nav li a:focus {
    background-color: #004080 !important; /* Brighter blue */
    color: #ffffff !important;
  }
  
  /* Dropdown menu styling */
  .navbar-nav li .dropdown-menu a {
    background-color: #002b55 !important;
    color: #ffffff !important;
    padding-left: 30px; /* Indent for submenu items */
  }
  
  .navbar-nav li .dropdown-menu a:hover {
    background-color: #004080 !important;
    color: #ffffff !important;
  }
  
  .dropdown-menu {
    background-color: #002f4f;
    border: none;
  }
  
  /* Fix active and hover link text color contrast */
  .navbar-nav > li.active > a,
  .navbar-nav > li > a:hover {
    color: #005b9f !important;
    text-decoration: none;
  }
  
  /* Fix alignment of top menu items */
  .navbar-nav > li {
    float: none;
    display: inline-block;
    position: relative;
  }
  
  /* Breadcrumb background */
  #heading-breadcrumbs {
    background: #f0f0f0 !important;
  }
  
  /* Blog image handling and centering */
  #blog-homepage .post img,
  #blog-listing-medium .post img,
  #blog-listing-big .post img,
  .post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
  #blog-homepage .post .image,
  #blog-listing-medium .post .image,
  #blog-listing-big .post .image {
    float: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  .post-content img,
  .article-content img,
  #post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Prevent layout overflow */
  .container, .container-fluid, .row {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  body, html {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto !important;
  }
  
  /* NAVBAR: allow dropdowns to overflow */
  .navbar, .navbar-collapse, .container {
    overflow: visible !important;
  }
  .navbar, .navbar-collapse, .navbar-header {
    position: relative;
    z-index: 1050;
  }
  .dropdown-menu {
    z-index: 2000 !important;
    position: absolute !important;
    display: none;
  }
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
  
  /* LOGO BAR */
  .logo-bar {
    background-color: #c1dcf3;
    padding: 10px 0;
    text-align: center;
  }
  .logo-bar .container {
    max-width: 1140px;
    margin: 0 auto;
  }
  .logo-bar img {
    height: auto;
    max-width: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
  }
  
  /* Transparent mobile submenu fix */
  .navbar .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

/* Ensure dropdown menu links are visible */
.navbar .dropdown-menu > li > a {
    color: #ffffff !important;
    background-color: transparent;
  }
  
  /* Highlight on hover */
  .navbar .dropdown-menu > li > a:hover {
    background-color: #004080; /* Darker blue */
    color: #ffffff !important;
  }
  
  /* Dropdowns full-width and visible on mobile */
  @media (max-width: 767px) {
    .navbar .dropdown-menu {
      left: 0 !important;
      right: auto !important;
      min-width: 100% !important;
      position: absolute !important;
    }
  
    .navbar-nav > li {
      position: static;
    }
  }
  
  /* === Typography Improvements === */
  h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  h1 {
    font-size: 1.8em;
  }
  h2 {
    font-size: 1.5em;
  }
  p {
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  /* Typography adjustments for mobile */
  @media screen and (max-width: 768px) {
    .navbar-nav > li > a {
      font-size: 0.95em;
    }
  
    h1 {
      font-size: 1.4em;
    }
  
    h2 {
      font-size: 1.2em;
    }
  }
  
  /* Spacing around forms and blocks */
  form, .content, .list-group {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Optional: form element styling */
  input, textarea {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
  }
  button, input[type="submit"] {
    background-color: #002b55;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
  }
  button:hover, input[type="submit"]:hover {
    background-color: #004080;
  }

/* Make hamburger button more visible */
.navbar-toggle.btn-template-main {
    background-color: #002b55 !important;
    border: 2px solid #fff;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
  }
  
  .navbar-toggle .fas {
    font-size: 24px;
    color: #ffffff !important;
  }

