/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }

/*--------begin header-------*/
header {
    width: 100%;
}

.header-container {
    background-color: #333;
    color: white;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 150px !important;
    max-height: 66px !important; /* Added to enforce height limit */
    height: 66px !important;
    width: auto !important; /* Ensure width adjusts */
}

/* contains a <ul> with seven navigation links */
.nav-links {
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin-left: 1rem;
    padding-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #42af7d;
}

/* contains three <div class="line"> elements, representing the hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* Ensure admin pages (using admin-menu.php) don’t show hamburger */
body.admin nav .hamburger {
  display: none !important;
}

/* Ensure nav-menu stays visible on admin pages */
body.admin nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
}

/* Style the body */
body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    background-color: #fff;
}

  @media (max-width: 768px) {
    body {
      padding: 15px;
    }
  }
  
  main {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    margin-bottom: 15px; 
  }

  .breadcrumbs, .shieldgraphics, .photo-credits {
    width: 100%;
  }

h1 { 
  text-align: center; 
  line-height: 1.4; 
  margin-top: 15px; 
  margin-bottom: 15px; 
}
h2 { text-align: left; line-height: 1.5; margin-bottom: 15px; }
p { margin-bottom: 15px; }
a { text-decoration: none; color: darkgreen; }

.breadcrumbs {
  text-align: center;
  margin-bottom: 15px;
}

.adsense-slot {
  clear: both; /* Clear any floats if necessary */
  margin-top: 20px;
}

.guide-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.guide-home > div {
  border: 1px solid rgba(49,163,84, 0.8);
  padding: 10px;
  margin: 5px;
  text-align: center;
  font-size: 16px;
}

.guide-home img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.state {
  font-weight: bold;
  line-height: 2;
  letter-spacing: 1px;
}

  /* creates a grid with an auto-fitting number of columns, where each column has a min width of 200px and can grow to fill available space */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 17px;
}

.gallery-item {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

.shieldgraphics {
    display: flex; /* enables flexbox for the container */
    justify-content: center; /* centers image horizontally within container */
    align-items: flex-end; /* aligns the image vertically to the bottom of the container */
    padding-bottom: 25px;
}

.pagination a { 
  color:rgb(47, 134, 94); 
  text-decoration: none; 
  padding: 5px 10px; 
  border: 1px solid #ddd; 
  border-radius: 3px; 
}
.pagination .current { 
  background-color:rgb(47, 134, 94);
  color: #fff; 
}

.overview-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden; /* Important for containing the float */
}

.wrapped-image {
  max-width: 480px;
  height: auto;
  float: left;  /* Key: Float the image to the left */
  margin-right: 10px; /* Space to the right of the image */
  margin-bottom: 10px; /* Space below the image */
}
 
  
/*--------begin footer-------*/
footer {
    background-color: #333;
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    color: #999;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
}

.footer-links div {
    margin-bottom: 20px;
    margin-right: 40px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    padding: 15px 100px 10px 0;
    border-bottom: 1px solid #666;
}

.footer-links a:hover {
    color: #42af7d;
}

.footer-social img {
    height: 30px;
    padding-left: 10px;
}

.footer-social span {
    margin-right: 10px;
}

.footer-copyright {
    background-color: #222;
    border-top: 1px solid #666;
    height: 40px;
    padding-top: 20px;
}

.footer-copyright span {
    color: #999;
    font-size: 75%;
    padding-left: 60px;
}

.footer-copyright a {
    color: #ccc;
    text-decoration: none;
}

  /* Responsive layout - reduce width of thumbnails to 180px */
  @media (max-width: 835px) {
  .guide-home > div {
    border: 1px solid rgba(49,163,84, 0.8);
    width: 180px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    font-size: 14px;
  }
  .state {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 1px;
  }
  }

/* Hamburger menu on mobile (front-end only) */
@media (max-width: 768px) {

    main {
      width: 95%;
      margin: 1rem auto;
    }

    .header-container {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .logo img {
        max-width: 120px !important;
        max-height: 53px !important; /* Proportional height for mobile */
        height: 53px !important;
        width: auto !important;
    }

    .nav-links {
        display: none;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-links ul li {
        margin: 10px 0;
        padding-left: 0;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .wrapped-image {
      max-width: 100%;
      float: none; /* Remove the float on mobile */
      margin: 0 auto 10px; /* Center and add bottom margin */
      display: block;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links div {
        margin: 10px 0;
        margin-right: 0;
    }

    .footer-links a {
        padding: 10px 0;
        border-bottom: none;
    }

    .footer-social {
        margin-top: 20px;
        text-align: center;
    }

    .footer-copyright span {
        padding-left: 20px;
        font-size: 70%;
    }
}

/* Responsive layout - reduce width of thumbnails to 120px */
@media (max-width: 600px) {
.guide-home > div {
  border: 1px solid rgba(49,163,84, 0.8);
  width: 120px;
  padding: 10px;
  margin: 5px;
  text-align: center;
  font-size: 12px;
}

.state {
  font-size : 12px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: 0px;
}
}

/* Header/Footer for Phone screens */

@media (max-width: 480px) {

    main {
        width: 98%;
        margin: 0.5rem auto;
    }
      
    .header-container {
        padding: 8px 15px;
    }

    .logo img {
        max-width: 100px !important;
        max-height: 44px !important; /* Proportional height for phone */
        height: 44px !important;
        width: auto !important;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hamburger .line {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .footer-social img {
        height: 25px;
    }

    .footer-copyright span {
        font-size: 65%;
    }
}