:root {
  /* Earthy but awake */
  --ink: #1f2937; /* charcoal */
  --muted: #6b7280; /* slate */
  --bg: #f5f1e8; /* warm cream */
  --panel: #ffffff; /* card */
  --border: #e5e7eb; /* light */
  --terra: #c97b63; /* terracotta */
  --sage: #6b8f71; /* sage green */
  --ochre: #d9a441; /* ochre accent */
  --link: #496a81; /* slate-blue */
  --shadow: 0 8px 24px rgba(0, 0, 0, .08);

  /* New colors */
  --footer-bg: #6a3b2f;  /* Darker orange for footer */
  --background-color: #f4e1d2;  /* Soft off-white for background */
  --primary-btn-bg: linear-gradient(180deg, var(--terra), #bb6a50);
  --hover-link: #3498db; /* Active state for links */
  --success-bg: #2ecc71; /* Success background for success messages */
  --error-bg: #e74c3c; /* Error background for error messages */
}

/* Global body background color */
/* Global Styles */
body {
  background-color: var(--background-color);  /* Soft off-white background */
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center-align body content */
  justify-content: flex-start;
}

.container {
  width: 80%;
  max-width: 1200px; /* Max width for large screens */
  margin: 0 auto; /* Center-align the container */
  padding: 20px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #d9a441;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6); /* Semi-transparent white background */
  border-bottom: 2px solid var(--border);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  width: 100%;
}

.site-header .brand-mark {
  width: 80px;  /* Adjust the width as needed */
  height: 80px; /* Ensure proportional height */
  object-fit: cover; /* Maintain aspect ratio */
}

.site-header .header-inner {
  display: flex;
  justify-content: flex-start; /* Align everything to the left */
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 20px; /* Increase margin on right side */
}

.nav .nav-link {
  padding: 6px 16px;  /* Added horizontal padding to create space around the text */
  text-decoration: none;
  font-weight: bold;
  color: var(--ink);
}

.nav .nav-link:hover,
.nav .nav-link.is-active {
  background-color: var(--terra);
  border-radius: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 450px;
  background: var(--hero) center/cover no-repeat;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px; /* Moves text higher up */
  width: 100%; /* Ensure the image spans the full width */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 4.5rem;
  font-weight: bold;
  color: var(--ink);
  line-height: 1.1;
}

.hero p {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: #4941d9;
}

/* Admin Dashboard Page */
.admin-content {
  background-color: var(--panel);
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow); /* Add shadow for better separation */
  width: 100%;
  max-width: 800px; /* Center the content with max width */
  margin: 20px auto; /* Center the content horizontally */
}

form {
  background-color: var(--panel);
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

form input[type="submit"] {
  background-color: var(--primary-btn-bg);
  color: white;
  border: none;
  cursor: pointer;
}

form input[type="submit"]:hover {
  background-color: #2980b9;
}

/* Card layout adjustments */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 100%;
  margin: 20px auto;
  padding: 0 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px;
}

.card-media img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body {
  padding: 14px 14px 18px;
}

.card-title {
  margin: 0 0 2px;
  font-size: 1.25rem;
}

.card-meta {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.card-summary {
  margin: 0 0 12px;
  color: #374151;
}

/* Button styling */
.button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary-btn-bg);
  color: white;
  box-shadow: var(--shadow);
}

.button:hover {
  filter: brightness(1.05);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
  padding: 20px;
  width: 100%; /* Ensure the footer spans the entire width */
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: #e7e7e0;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .admin-content {
    padding: 15px;
  }

  .admin-content ul li {
    padding: 10px;
  }

  .site-header .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .nav {
    gap: 8px;
  }

  .site-header .brand-mark {
    width: 60px;
    height: 60px;
    object-fit: cover;
  }

  .site-header .brand-text {
    font-size: 1.2rem;
  }

  .site-header .brand-title {
    font-size: 2rem;
  }

  .site-header .brand-sub {
    font-size: 1.2rem;
  }
}
