/*!
 * Clean Blog v2.0.0 — Bootstrap 5 migration
 * Based on Clean Blog v1.0.0 (http://startbootstrap.com)
 * Copyright 2015 Start Bootstrap, Licensed under MIT
 */

/* Base */
body {
  font-family: Lora, 'Times New Roman', serif;
  font-size: 16px;
  color: #404040;
}
p { line-height: 1.7; margin: 20px 0; }
p a { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
}
a { color: #404040; text-decoration: none; }
a:hover, a:focus { color: #306951; text-decoration: none; }
a img:hover, a img:focus { cursor: zoom-in; }
hr { opacity: 1; color: #ddd; }
blockquote { color: gray; font-style: italic; border-left: 4px solid #306951; padding-left: 16px; margin-left: 0; }
pre { padding: 16px; border-radius: 4px; overflow-x: auto; }
.highlighter-rouge pre.highlight { padding: 16px; }
code.highlighter-rouge { padding: 2px 6px; background-color: #f5f5f5; border-radius: 3px; }
hr.small {
  max-width: 100px;
  margin: 15px auto;
  border: none;
  height: 4px;
  background: #fff;
  opacity: 1;
}
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
article img { max-width: 100%; height: auto; }
article table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
article table th, article table td { padding: 8px 12px; border: 1px solid #ddd; }
article table th { background-color: #f5f5f5; font-weight: 600; }
article table tr:hover { background-color: #f9f9f9; }

/* Navbar — transparent over header on desktop, solid on mobile */
.navbar-custom {
  background: transparent;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  border-bottom: 1px solid transparent;
  transition: background-color .3s;
}
.navbar-custom .navbar-brand {
  font-weight: 800;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 20px;
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus { color: rgba(255,255,255,.8); }

/* Toggler — custom white icon for transparent bg */
.navbar-custom .navbar-toggler {
  border-color: rgba(255,255,255,.5);
}
.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav links */
.navbar-custom .nav-link {
  color: #fff;
  padding: 15px 10px;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus { color: rgba(255,255,255,.8); }

/* Scrolled past header: solid bg, dark text */
.navbar-custom.nav-scrolled {
  background: #fff;
  border-bottom: 1px solid #f2f2f2;
}
.navbar-custom.nav-scrolled .navbar-brand { color: #404040; }
.navbar-custom.nav-scrolled .navbar-brand:hover,
.navbar-custom.nav-scrolled .navbar-brand:focus { color: #306951; }
.navbar-custom.nav-scrolled .nav-link { color: #404040; }
.navbar-custom.nav-scrolled .nav-link:hover,
.navbar-custom.nav-scrolled .nav-link:focus { color: #306951; }
.navbar-custom.nav-scrolled .navbar-toggler { border-color: rgba(0,0,0,.1); }
.navbar-custom.nav-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile: solid white bg, dark icons */
@media (max-width: 991.98px) {
  .navbar-custom { background: #fff; }
  .navbar-custom .navbar-brand { color: #404040; }
  .navbar-custom .navbar-brand:hover,
  .navbar-custom .navbar-brand:focus { color: #306951; }
  .navbar-custom .navbar-toggler { border-color: rgba(0,0,0,.1); }
  .navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  .navbar-custom .nav-link { color: #404040; }
  .navbar-custom .navbar-nav {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  .navbar-custom .nav-link:hover,
  .navbar-custom .nav-link:focus { color: #306951; }
}

/* Header */
.intro-header {
  background: no-repeat center center;
  background-color: gray;
  background-size: cover;
  margin-bottom: 50px;
}
.intro-header .site-heading,
.intro-header .post-heading,
.intro-header .page-heading {
  padding: 100px 0 50px;
  color: #fff;
}
@media (min-width: 768px) {
  .intro-header .site-heading,
  .intro-header .post-heading,
  .intro-header .page-heading { padding: 150px 0; }
}
.intro-header .site-heading,
.intro-header .page-heading { text-align: center; }
.intro-header .site-heading h1,
.intro-header .page-heading h1 { margin-top: 0; font-size: 50px; }
.intro-header .site-heading .subheading,
.intro-header .page-heading .subheading {
  font-size: 24px; line-height: 1.1; display: block;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300; margin: 10px 0 0;
}
@media (min-width: 768px) {
  .intro-header .site-heading h1,
  .intro-header .page-heading h1 { font-size: 80px; }
}
.intro-header .post-heading h1 { font-size: 35px; }
.intro-header .post-heading .subheading,
.intro-header .post-heading .meta { line-height: 1.1; display: block; }
.intro-header .post-heading .subheading {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px; margin: 10px 0 30px; font-weight: 600;
}
.intro-header .post-heading .meta {
  font-family: Lora, 'Times New Roman', serif;
  font-style: italic; font-weight: 300; font-size: 20px;
}
.intro-header .post-heading .meta a { color: #fff; }
@media (min-width: 768px) {
  .intro-header .post-heading h1 { font-size: 55px; }
  .intro-header .post-heading .subheading { font-size: 30px; }
}

/* Post previews */
.post-preview > a { color: #404040; }
.post-preview > a:hover,
.post-preview > a:focus { text-decoration: none; color: #306951; }
.post-preview > a > .post-title { font-size: 30px; margin-top: 30px; margin-bottom: 10px; }
.post-preview > a > .post-subtitle { margin: 0 0 10px; font-weight: 300; }
.post-preview > .post-meta { color: gray; font-size: 18px; font-style: italic; margin-top: 0; }
.post-preview > .post-meta > a { text-decoration: none; color: #404040; }
.post-preview > .post-meta > a:hover,
.post-preview > .post-meta > a:focus { color: #306951; text-decoration: underline; }
@media (min-width: 768px) {
  .post-preview > a > .post-title { font-size: 36px; }
}

/* Pager (BS5 removed .pager, so we define it) */
.pager {
  margin: 20px 0 0;
  list-style: none;
  padding-left: 0;
  display: flex;
  justify-content: space-between;
}
.pager li > a, .pager li > span {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase; font-size: 14px; font-weight: 800;
  letter-spacing: 1px; padding: 10px 5px;
  background-color: #fff; border-radius: 0;
  text-decoration: none; color: #404040; border: 1px solid #ddd;
}
@media (min-width: 768px) {
  .pager li > a, .pager li > span { padding: 15px 25px; }
}
.pager li > a:hover, .pager li > a:focus {
  color: #fff; background-color: #306951; border: 1px solid #306951;
}

/* Misc */
.section-heading { font-size: 36px; margin-top: 60px; font-weight: 700; }
.caption {
  text-align: center; font-size: 14px; padding: 10px;
  font-style: italic; margin: 0; display: block;
  border-bottom-right-radius: 5px; border-bottom-left-radius: 5px;
}

/* Footer */
footer { padding: 50px 0 65px; }
footer .list-inline { margin: 0; padding: 0; }
footer .copyright { font-size: 14px; text-align: center; margin-bottom: 0; }

/* Selection */
::selection { color: #fff; text-shadow: none; background: #306951; }

/* Scroll to top */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #306951;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  line-height: 0;
  padding: 0;
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover { opacity: 0.8; }
@media (max-width: 767.98px) {
  #scrollTop { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
