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

/* Links */
a {
  color: #0288D1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #4CAF50;
}

/* HEADER */
.site-header {
  position: relative;
  width: 100%;
  height: 160px;
  background: #263238;
  overflow: hidden;
}

/* Inner header area */
.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: #1E2A2E;
  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;
  top: 50%;
  transform: translateY(-50%);
  max-height: 160px;
}

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

/* Navigation buttons */
.site-nav a {
  color: #FAFAFA;
  background: #0288D1;
  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: #4CAF50;
  color: #FAFAFA;
}

/* 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: #1E2A2E;
  border: 1px solid #0288D1;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.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;
}

.content .post-preview img {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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);
}

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: #FFC107;
}

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

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

.btn:hover {
  background: #4CAF50;
  color: #FAFAFA;
}

/* SIDEBAR */
.sidebar {
  background: #1E2A2E;
  padding: 16px;
  border: 1px solid #0288D1;
  border-radius: 6px;
}

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

.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: #263238;
  color: #FFC107;
  text-align: center;
  padding: 16px;
  margin-top: 40px;
  border-top: 1px solid #0288D1;
}

.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: #0288D1;
  color: #FAFAFA;
  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: #4CAF50;
}

/* 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(38, 50, 56, 0.9) 60%,
    rgba(38, 50, 56, 1) 100%
  );
  z-index: -1;
}

/* Metrolagu Network Footer Section (FoodFrontier Theme) */
.metrolagu-network {
  background: none; /* inherit the footer’s slate tone */
  color: #FAFAFA; /* clean white text for readability */
  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: #FFC107; /* warm amber accent for heading */
  font-weight: 600;
  text-align: center;
}

.metrolagu-network p {
  color: #FAFAFA; /* soft light text tone */
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

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

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

.network-links a:hover {
  color: #FFC107; /* warm amber highlight on hover */
  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: #FAFAFA !important; /* warm amber for the Metrolagu.vin link */
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

/* Distinct, pill-styled copyright design (FoodFrontier Theme) */
.site-footer .copyright {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #FAFAFA;                      /* text */
  background: #0288D1;                 /* Ocean teal base */
  padding: 8px 22px;
  border: 1.5px solid rgba(76, 175, 80, 0.55); /* Lively green border */
  border-radius: 999px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.35); /* Citrus gold glow */
  transition: all 0.3s ease;
}

/* Hover tone and glow */
.site-footer .copyright:hover {
  background: #4CAF50;                 /* Forest green hover */
  color: #FAFAFA;                      /* text remains consistent */
  box-shadow: 0 3px 10px rgba(2, 136, 209, 0.6); /* Teal glow */
  transform: translateY(-1px);
}

/* Reduced footer padding for tighter vertical rhythm */
.site-footer {
  padding: 18px 0;
}
