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

/* Links */
a {
  color: #1976d2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #0d47a1;
}

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

/* Inner header area */
.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: #141a26;
  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 blue tone */
.site-nav a {
  color: #fff;
  background: #1976d2;
  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: #0d47a1;
  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: #1a2233;
  border: 1px solid #1976d2;
  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: #90caf9;
}

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

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

.btn:hover {
  background: #0d47a1;
  color: #fff;
}

/* SIDEBAR */
.sidebar {
  background: #1a2233;
  padding: 16px;
  border: 1px solid #1976d2;
  border-radius: 6px;
}

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

.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: #1a2233;
  color: #1976d2;
  text-align: center;
  padding: 16px;
  margin-top: 40px;
  border-top: 1px solid #1976d2;
}

.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: #1976d2;
  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: #0d47a1;
}

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

/* Metrolagu Network Footer Section (AdventurePeak Theme – Adjusted Colors) */
.metrolagu-network {
  background: none; /* inherits footer background */
  color: #BBDEFB; /* soft sky-blue 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: #64B5F6; /* light blue accent for header */
  font-weight: 600;
  text-align: center;
}

.metrolagu-network p {
  color: #E3F2FD; /* pale ice-blue paragraph tone */
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

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

.network-links a {
  color: #BBDEFB; /* cool blue link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.network-links a:hover {
  color: #2196F3; /* vivid explorer blue hover */
  text-decoration: none;
}

/* Footer copyright link styling */
.site-footer .copyright a,
.site-footer .copyright a:link,
.site-footer .copyright a:visited {
  color: #F6F3E7 !important; /* same as base copyright text */
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

/* Match link color on hover to the parent hover state */
.site-footer .copyright:hover a,
.site-footer .copyright a:hover,
.site-footer .copyright a:active {
  color: #3B3A2E !important; /* same as text color when hovered */
  text-decoration: none !important;
}

/* Distinct, pill-styled copyright design (AdventurePeak Theme) */
.site-footer .copyright {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #F6F3E7;                      /* Soft ivory-white text */
  background: #3B3A2E;                 /* Rocky dark brown base */
  padding: 8px 22px;
  border: 1.5px solid rgba(191, 158, 73, 0.6); /* Summit gold border */
  border-radius: 999px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-shadow: 0 2px 8px rgba(126, 153, 96, 0.35); /* Alpine green glow */
  transition: all 0.3s ease;
}

/* Hover tone and glow */
.site-footer .copyright:hover {
  background: #7E9960;                 /* Alpine green hover */
  color: #3B3A2E;                      /* Earth-tone contrast */
  box-shadow: 0 3px 12px rgba(191, 158, 73, 0.6); /* Warm summit gold glow */
  transform: translateY(-1px);
}

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

