/*! Place your custom styles here */

/* Dark Theme Overrides */
body {
  background-color: #1a1a1a;
  color: #e5e5e5;
}

.bar {
  background-color: #242424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar a {
  color: #ffffff;
  font-weight: 500;
}

.bar a:hover {
  color: #ffffff;
  opacity: 0.8;
}

/* Improve menu link contrast */
.menu-horizontal a {
  color: #ffffff !important;
  font-weight: 600;
}

.menu-horizontal a:hover {
  color: #f5f5f5 !important;
}

/* Section separation */
section {
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

section:last-of-type {
  border-bottom: none;
}

.bg--primary {
  background-color: #2a2a2a !important;
}

.bg--secondary {
  background-color: #1f1f1f !important;
}

.bg--dark {
  background-color: #141414 !important;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.boxed--border {
  border-color: rgba(255, 255, 255, 0.15);
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* Blog post content spacing */
.boxed p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.boxed ul {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  margin-left: 1.5rem;
  list-style-type: disc;
}

.boxed ol {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  margin-left: 1.5rem;
  list-style-type: decimal;
}

.boxed li {
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
}

.boxed img {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Cropped boxed image (homepage) */
.boxed .boxed-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

/* Light overlay for boxed image */
.boxed-with-overlay {
  position: relative;
}

.boxed-with-overlay .boxed-img {
  position: relative;
}

.boxed-with-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 260px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.boxed-with-overlay h5,
.boxed-with-overlay p {
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .boxed .boxed-img {
    height: 220px;
  }
  
  .boxed-with-overlay::before {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .boxed .boxed-img {
    height: 180px;
  }
  
  .boxed-with-overlay::before {
    height: 180px;
  }
}

/* Blog post meta (date and category) */
.meta {
  font-size: 0.875rem;
  color: #999999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lead, p {
  color: #b3b3b3;
}

.btn--primary {
  background: linear-gradient(135deg, #f5f5f5, #d4d4d4);
  color: #000000;
  border: 1px solid transparent;
}

/* Hero image crop and responsiveness */
.hero-img {
  width: 100%;
  max-width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .hero-img {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-img {
    height: 220px;
  }
}

/* Hero section readability improvements */
.hero-bg h1 {
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
}

.hero-bg .lead {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.hero-bg {
  position: relative;
  border-bottom: none; /* ensure overlay covers to the very bottom without a visible line */
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70));
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-bg .mt--2 {
  background-color: rgba(0, 0, 0, 0.25);
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: 10px;
}

.hero-bg .btn--primary {
  background: #ffffff !important;
  color: #111111 !important;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
}

.hero-bg .btn--primary .btn__text {
  color: #111111 !important;
  font-weight: 600;
}

.hero-bg .btn--primary:hover {
  background: #f5f5f5 !important;
  color: #000000 !important;
  border-color: #ffffff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ffffff, #e5e5e5);
  color: #000000;
}

.feature {
  color: #e5e5e5;
}

/* Mobile nav: ensure hamburger icon is visible */
.hamburger-toggle i {
  color: #ffffff !important;
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.type--fine-print {
  color: #d4d4d4 !important;
}

.type--fine-print a {
  color: #ffffff !important;
  font-weight: 500;
}

.type--fine-print a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

footer a {
  color: #ffffff !important;
  font-weight: 500;
}

footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

footer .list-inline-item a {
  color: #ffffff !important;
  font-weight: 500;
}

footer {
  background-color: #0f0f0f !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure images maintain visibility */
img {
  opacity: 0.95;
}

.border--round {
  border: 1px solid rgba(255, 255, 255, 0.1);
}