body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  color: #f8f6f1;
  background: #1b1a18;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll entirely */
}

/* Links */
a {
  color: #e4572e;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #c5283d;
}

/* HEADER */
.site-header {
  position: relative;
  width: 100%;
  height: 160px;
  background: #2a201c;
  overflow: hidden;
  border-bottom: 1px solid #e4572e; /* Added to match the footer's beautiful border */
}

/* Inner header area */
.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: #231915;
  border-radius: 0 0 6px 6px;
}

.site-header .header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  border-radius: 0 0 6px 6px;
}

.site-header .logo {
  position: absolute;
  left: 40px; /* adjust this value as needed */
  top: 50%;
  transform: translateY(-50%); /* only vertical centering now */
  max-height: 160px;
}

.site-nav {
  position: absolute;
  top: 20px;
  right: 30px;
}

/* Navigation buttons always visible with warm tone */
.site-nav a {
  color: #fff;
  background: #d99938;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.site-nav a:hover {
  background: #e4572e;
  color: #fff;
}

/* MAIN LAYOUT */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
  }
}

/* CONTENT */
.content .post-preview {
  background: #2a201c;
  border: 1px solid #e4572e;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Global image style for homepage and articles */
.content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto 16px auto;
}

/* Keep old preview rule for homepage cards */
.content .post-preview img {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Fix for main article page image */
article.content > img:first-of-type {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

/* Optional smooth fade-in effect for main article image */
article.content > img:first-of-type {
  opacity: 0;
  transform: scale(1.02);
  animation: fadeInImage 1s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.content .post-preview h2 {
  font-weight: 600;
  margin: 10px 0;
  color: #f3a712;
}

.content .post-preview p {
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: #d99938;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.btn:hover {
  background: #e4572e;
  color: #fff;
}

/* SIDEBAR */
.sidebar {
  background: #2a201c;
  padding: 16px;
  border: 1px solid #e4572e;
  border-radius: 6px;
}

.sidebar h3 {
  margin-top: 0;
  font-weight: 600;
  color: #f3a712;
}

.sidebar-post {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.sidebar-post img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* FOOTER */
.site-footer {
  background: #2a201c;
  color: #d99938;
  text-align: center;
  padding: 16px;
  margin-top: 40px;
  border-top: 1px solid #e4572e;
}

.site-footer p,
.site-footer div {
  margin: 0 auto;
  display: block;
  text-align: center;
}

/* BACK TO TOP BUTTON */
#toTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #d99938;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}
#toTop:hover {
  background: #e4572e;
}

/* PARAGRAPHS */
p {
  text-align: justify;
  text-justify: inter-word;
}

/* ULTRAWIDE CENTERING */
@media (min-width: 1800px) {
  .layout,
  .site-header .header-inner {
    max-width: 1600px;
  }
}

/* SUBTLE BACKGROUND EDGE FRAMING */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 26, 24, 0.9) 60%,
    rgba(27, 26, 24, 1) 100%
  );
  z-index: -1;
}

/* Metrolagu Network Footer Section (StreetEats Theme) */
.metrolagu-network {
  background: none; /* inherits the footer's deep brown background */
  color: #f8f6f1; /* warm ivory for legibility */
  text-align: left;
  padding: 20px 0;
}

.network-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.metrolagu-network h3 {
  font-size: 1.2em;
  margin-bottom: 8px;
  color: #d99938; /* bold burnt sienna accent for heading */
  font-weight: 600;
  text-align: center;
}

.metrolagu-network p {
  color: #f8f6f1; /* ivory tone for readability */
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

.network-links {
  text-align: center;
}

.network-links a {
  color: #f8f6f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.network-links a:hover {
  color: #d99938; /* warm amber hover color */
  text-decoration: none;
}

/* Footer copyright link styling */
.site-footer .copyright a,
.site-footer .copyright a:link,
.site-footer .copyright a:visited,
.site-footer .copyright a:hover,
.site-footer .copyright a:active {
  color: #FFFFFF !important; /* burnt sienna for Metrolagu.vin link */
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

/* Distinct, pill-styled copyright design (StreetEats Theme) */
.site-footer .copyright {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #FAF6F1;                      /* Warm ivory text */
  background: #2A201C;                 /* Smoky espresso base */
  padding: 8px 22px;
  border: 1.5px solid rgba(228, 87, 46, 0.55); /* Vibrant street-orange border */
  border-radius: 999px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(217, 153, 56, 0.35); /* Golden warmth */
  transition: all 0.3s ease;
}

/* Hover tone and glow */
.site-footer .copyright:hover {
  background: #E4572E;                 /* Fiery orange hover */
  color: #FFFFFF;                      /* Clean white text */
  box-shadow: 0 3px 10px rgba(217, 153, 56, 0.6); /* Streetlight glow */
  transform: translateY(-1px);
}

/* Reduced footer padding for compact bottom balance */
.site-footer {
  padding: 18px 0;
}
