body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  background: #3B3A36; /* Charcoal Gray */
  color: #F5F0E6; /* Cream White */
  line-height: 1.7;
  text-align: justify;
  animation: fadeInBody 1s ease-in;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(155,174,141,0.3); /* Sage Green glow */
}

.site-header {
  position: relative;
  text-align: center;
  background: #C26A4A; /* Terracotta */
  height: 200px;
  border-bottom: 3px solid #9BAE8D; /* Sage Green */
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

.logo-container {
  position: relative;
  z-index: 2;
  padding-top: 30px;
  padding-left: 30px;
  animation: fadeIn 2s ease;
}

.logo {
  height: 150px;
}

.nav {
  position: absolute;
  top: 15px;
  right: 25px;
  z-index: 3;
}

.nav a {
  color: #F5F0E6; /* Cream White */
  background: #C26A4A; /* Terracotta */
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: #9BAE8D; /* Sage Green */
  color: #3B3A36; /* Charcoal Gray text on hover */
  box-shadow: 0 0 10px #D7C7AD; /* Muted Sand glow */
}

.container {
  display: flex;
  max-width: 1200px;
  margin: auto;
  padding: 30px 20px;
  gap: 20px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.content {
  flex: 3;
  padding: 20px;
  text-align: justify;
  background: #D7C7AD; /* Muted Sand */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(155,174,141,0.15); /* Sage Green tone */
  transition: transform 0.3s ease;
  color: #3B3A36; /* Charcoal Gray text */
}

.content:hover {
  transform: translateY(-5px);
}

.sidebar {
  flex: 1;
  padding: 20px;
  background: linear-gradient(160deg, #9BAE8D, #C26A4A); /* Sage to Terracotta */
  border-radius: 15px;
  border: 3px solid transparent;
  border-image: linear-gradient(to right, #C26A4A, #9BAE8D) 1;
  box-shadow: 0 0 20px rgba(155,174,141,0.2);
  color: #F5F0E6; /* Cream White */
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInRight 1.2s ease;
}

@keyframes fadeInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.sidebar:hover {
  transform: scale(1.003);
  box-shadow: 0 0 25px rgba(194,106,74,0.4); /* Terracotta highlight */
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  animation: fadeIn 1.5s ease;
}

.sidebar img {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(155,174,141,0.3);
  transition: transform 0.3s ease;
}

.sidebar img:hover {
  transform: rotate(5deg) scale(1.1);
}

.site-footer {
  background: #3B3A36; /* Charcoal Gray */
  color: #C26A4A; /* Terracotta text */
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 3px solid #9BAE8D; /* Sage border */
  animation: fadeIn 2s ease;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #C26A4A; /* Terracotta */
  color: #F5F0E6; /* Cream White */
  border: 2px solid #9BAE8D;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 26px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #9BAE8D; /* Sage hover */
  color: #3B3A36;
  box-shadow: 0 0 15px #D7C7AD; /* Muted Sand glow */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sidebar links */
.sidebar a {
  color: #F5F0E6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #D7C7AD; /* Muted Sand hover */
}

hr {
  border: none;
  border-top: 1px solid #F5F0E6;
  opacity: 0.2;
  margin: 40px 0;
}

/* Metrolagu Network Footer Section (HomeCraft Theme) */
.metrolagu-network {
  background: none; /* inherit footer’s main background */
  color: #F5F0E6; /* matches cream white site text */
  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: #C26A4A; /* Terracotta for warmth and brand consistency */
  font-weight: 600;
  text-align: center;
}

.metrolagu-network p {
  color: #F5F0E6; /* Cream White to align with footer text */
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

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

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

.network-links a:hover {
  color: #9BAE8D; /* Sage Green hover accent for natural touch */
  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: #FAF7F0 !important; /* Terracotta for Metrolagu.vin link */
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

/* Distinct, pill-styled copyright design (HomeCraft Theme) */
.site-footer .copyright {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #FAF7F0;                      /* Ivory Dust text */
  background: #7B5E3B;                 /* Aged Bronze background */
  padding: 8px 22px;
  border: 1.5px solid rgba(212, 166, 90, 0.45); /* Desert Gold border */
  border-radius: 999px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(182, 106, 80, 0.35); /* Terracotta glow */
  transition: all 0.3s ease;
}

/* Hover tone and glow */
.site-footer .copyright:hover {
  background: #B66A50;                 /* Terracotta Clay hover */
  color: #FAF7F0;                      /* Vanilla text */
  box-shadow: 0 3px 10px rgba(212, 166, 90, 0.55); /* Desert Gold highlight */
  transform: translateY(-1px);
}

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