/* Gossypia restoration helpers — keep original theme look, fix static-hosting gaps */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&family=Raleway:wght@400;500;600;700&display=swap');

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  overflow-x: hidden;
  min-height: 100%;
}
img {
  max-width: 100%;
  height: auto;
}

/* Mobile menu toggle: desktop shows nav; JS still handles slide */
#main_navigation .toggle {
  display: none;
}
@media (max-width: 992px) {
  #main_navigation .toggle {
    display: block;
  }
}

/* Banner: prevent tiny/broken article hero images from collapsing layout */
#banner .banner {
  background: linear-gradient(180deg, #0f4f4f 0%, #1a3a3a 100%);
  min-height: 180px;
  overflow: hidden;
}
#banner .banner img,
#banner .homeslider img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Blog list thumbnails stay compact */
.blog-post .post-thumb,
.recent_articles .post-thumb {
  width: 150px;
  max-width: 35%;
  float: left;
  margin: 5px 20px 10px 0;
}
.blog-post .post-thumb img,
.recent_articles .post-thumb img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Single post featured image */
.single .post-thumb {
  width: 220px;
  max-width: 40%;
  float: left;
  margin: 0 24px 16px 0;
}
.single .post-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
  padding: 4px;
  background: #fff;
}

/* Content cards & readability */
.page_content {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 2px;
  margin-top: 0;
  padding: 25px 15px;
}
.entry-content p,
.entry-summary p {
  line-height: 1.65;
  margin-bottom: 1em;
}
.single-title,
.entry-header h3 {
  color: #1a1a1a;
  line-height: 1.25;
}

/* Navigation polish (desktop dark bar) */
@media (min-width: 993px) {
  #main_navigation .nav ul li a {
    color: #f5f5f5 !important;
  }
  #main_navigation .nav ul li a:hover,
  #main_navigation .nav ul li.current-menu-item a,
  #main_navigation .nav ul li.current_page_item a {
    color: #7ec8c8 !important;
    background: transparent;
  }
}
/* Mobile expanded menu sits on white panel */
@media (max-width: 992px) {
  #main_navigation .sitenav {
    background: #fff;
  }
  #main_navigation .nav ul li a {
    color: #222 !important;
  }
  #main_navigation .nav ul li a:hover,
  #main_navigation .nav ul li.current-menu-item a,
  #main_navigation .nav ul li.current_page_item a {
    color: #0f4f4f !important;
  }
}
#main_navigation .nav ul:after {
  content: "";
  display: table;
  clear: both;
}

/* Sidebar widgets */
#sidebar aside.widget {
  background: #fff;
}
#sidebar ul li {
  border-bottom: 1px solid #eee;
  padding: 10px 0 10px 0;
}
#sidebar ul li a {
  padding-left: 0;
}

/* Footer */
.footerinner-bottom .creditcopy,
.footerinner-bottom .creditlink,
.footerinner-bottom a {
  color: #ccc;
}
.footerinner-bottom a:hover {
  color: #fff;
}

/* Search form on dark header */
.header-right-top #searchform input#s {
  background: #fff;
  border: none;
  color: #333;
}
.header-right-top #searchsubmit {
  background: #0f4f4f;
  border-color: #0f4f4f;
}

/* Post navigation spacing */
.navigation.post-navigation {
  margin: 30px 0 10px;
  clear: both;
}

/* Soften aggressive focus styles for normal browsing */
a[href]:focus {
  outline: 2px solid #0f4f4f;
  outline-offset: 2px;
}
.recent_articles a[href]:focus,
#main_navigation .nav ul li a:focus {
  background: transparent;
  color: inherit;
}

@media (max-width: 992px) {
  #banner .banner {
    min-height: 140px;
  }
  .page_content {
    padding: 18px 10px;
  }
  .blog-post .post-thumb,
  .recent_articles .post-thumb {
    width: 110px;
    max-width: 32%;
  }
  .single .post-thumb {
    width: 160px;
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .header_top .logo h1 {
    font-size: 28px;
  }
  .learnmore {
    display: inline-block;
    margin-top: 8px;
  }
  .nav-links .nav-previous,
  .nav-links .nav-next {
    float: none;
    display: block;
    margin: 8px 0;
  }
  .nav-links a {
    display: block;
  }
}
