/* === LIGHTHOUSE THEME OVERRIDE === */

/* Dark background behind the boxed site */
body {
  background-color: #424242 !important;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  margin: 0;
}

/* White boxed container */
#main-wrapper {
  background-color: #fff !important;
  max-width: 1170px !important;
  margin: 0 auto !important;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Reset Chirpy's default sidebar position */
#sidebar {
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-right: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Our custom sidebar */
#secondary.sidebar {
  width: 25%;
  padding: 30px 20px;
  border-left: 1px solid #eee;
  order: 2; /* right side on desktop */
  box-sizing: border-box;
}

/* Main content area */
#main {
  width: 75%;
  padding: 30px;
  order: 1;
  box-sizing: border-box;
}

/* Sidebar widgets */
.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 18px;
  font-weight: bold;
  color: #0a0a0a !important;
  border-left: 3px solid #29a518; /* green accent */
  padding-left: 10px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: none !important;
}

.widget a {
  color: #29a518;
  text-decoration: none;
}
.widget a:hover {
  text-decoration: underline;
}

/* Search field */
.search-field {
  width: 100% !important;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Archive dropdown */
.archives-dropdown select {
  width: 100% !important;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Entry title */
.entry-title {
  font-size: 28px;
  color: #0a0a0a;
  margin-bottom: 20px;
}

/* Entry content */
.entry-content {
  line-height: 1.8;
  font-size: 16px;
}

/* Offset body for fixed navbar */
body {
  padding-top: 56px; /* height of navbar */
}

/* Navbar styling to match Lighthouse (dark with green accent) */
.navbar-dark.bg-dark {
  background-color: #222 !important;
}
.navbar-dark .navbar-nav .nav-link {
  color: #ccc;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .active > .nav-link {
  color: #29a518 !important; /* green accent */
}
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff !important;
}

/* Screen-reader-text utility (hide labels) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Responsive: stack sidebar on small screens */
@media (max-width: 991px) {
  #main-wrapper {
    flex-direction: column;
  }
  #secondary.sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
    order: 2;
  }
  #main {
    width: 100%;
    order: 1;
  }
}