body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  background: #0A1A3C; /* Imperial Deep Blue */
  color: #F7F4E9; /* Ivory Silk */
  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(201,162,39,0.4); /* Royal Gold glow */
}

.site-header {
  position: relative;
  text-align: center;
  background: #1B1B1B; /* Charcoal Black */
  height: 200px;
  border-bottom: 3px solid #C9A227; /* Royal Gold */
  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: #F7F4E9; /* Ivory Silk */
  background: #1B1B1B; /* Charcoal Black */
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav a:hover {
  background: #7A1E1E; /* Majestic Crimson */
  color: #F7F4E9; /* Ivory Silk */
  box-shadow: 0 0 10px #C9A227; /* Royal Gold */
}

.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: #1B1B1B; /* Charcoal Black */
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(201,162,39,0.15); /* Royal Gold softness */
  transition: transform 0.3s ease;
}

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

.sidebar {
  flex: 1;
  padding: 20px;
  background: linear-gradient(160deg, #1B1B1B, #0A1A3C); /* Charcoal → Deep Blue */
  border-radius: 15px;
  border: 3px solid transparent;
  border-image: linear-gradient(to right, #C9A227, #7C6C48) 1; /* Gold to Bronze */
  box-shadow: 0 0 20px rgba(201,162,39,0.2);
  color: #F7F4E9; /* Ivory Silk */
  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(201,162,39,0.4);
}

.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(201,162,39,0.3);
  transition: transform 0.3s ease;
}

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

.site-footer {
  background: #0A1A3C; /* Imperial Deep Blue */
  color: #C9A227; /* Royal Gold */
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
  border-top: 3px solid #C9A227;
  animation: fadeIn 2s ease;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1B1B1B; /* Charcoal Black */
  color: #F7F4E9; /* Ivory Silk */
  border: 2px solid #C9A227;
  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: #7A1E1E; /* Majestic Crimson */
  color: #F7F4E9; /* Ivory Silk */
  box-shadow: 0 0 15px #C9A227;
}

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

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

.sidebar a:hover {
  color: #C9A227; /* Royal Gold */
}

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

/* Metrolagu Network Footer Section (RoyalLegends Theme) */
.metrolagu-network {
  background: none; /* maintain the imperial footer background */
  color: #F7F4E9; /* ivory silk for pure 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: #C9A227; /* royal gold for the section header */
  font-weight: 600;
  text-align: center;
}

.metrolagu-network p {
  color: #F7F4E9; /* ivory silk tone to match theme */
  margin-bottom: 10px;
  line-height: 1.7;
  text-align: center;
}

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

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

.network-links a:hover {
  color: #7A1E1E; /* majestic crimson hover for warmth */
  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: #F7F4E9 !important; /* royal gold highlight for Metrolagu.vin link */
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

/* Distinct, pill-styled copyright design (RoyalLegends Theme) */
.site-footer .copyright {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: #F7F4E9;                      /* Ivory silk text */
  background: #0A1A3C;                 /* Imperial deep blue base */
  padding: 8px 22px;
  border: 1.5px solid rgba(201, 162, 39, 0.55); /* Royal gold border */
  border-radius: 999px;
  margin-top: 12px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.35); /* Gold aura glow */
  transition: all 0.3s ease;
}

/* Hover tone and glow */
.site-footer .copyright:hover {
  background: #7A1E1E;                 /* Majestic crimson hover */
  color: #F7F4E9;                      /* Ivory silk text */
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.6); /* Enhanced royal radiance */
  transform: translateY(-1px);
}

/* Reduced footer padding for elegant proximity */
.site-footer {
  padding: 18px 0;
}
