/* Updated Styles with New Color Palette */
:root {
  --primary: #AA2B1D;
  --secondary: #383838;
  --accent: #feefde;
  --highlight: #F6F0D7;
  --text-dark: #333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.5;
  margin: 0;
  background: var(--highlight); /* Updated */
  color: var(--secondary); /* Updated */
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

/* Header Section */
.site-header {
  background: var(--primary); /* Updated */
  color: #fff;
  border-bottom: 2px solid var(--secondary);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav a {
  margin-left: 1rem;
  color: #fff; /* White text for better contrast on red */
  text-decoration: none;
  font-weight: 500;
}

.site-header nav a:hover {
  color: var(--highlight); /* Highlight on hover */
}

.site-header .nav-toggle {
  display: inline-block;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  padding: .25rem;
  margin-right: .25rem;
}

.site-header .main-nav {
  display: flex;
  gap: 1rem;
  z-index: 10; /* Ensure nav is above other elements */
}

.site-header .main-nav a {
  padding: .5rem 0;
}

/* Mobile nav */
@media(max-width: 699px) {
  .site-header .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 1rem;
    background: var(--primary);
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    border: 1px solid var(--secondary);
  }
  .site-header.open .main-nav {
    display: flex;
  }
}

.logo {
  margin: 0;
  padding: .5rem 0;
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 2rem 0;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  min-height: 320px;
  background-color: var(--secondary); /* Fallback color */
  background-image: url('../images/page_1.png');
  background-size: cover;
  background-position: center;
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.6));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: transparent;
}

.hero h2 {
  margin: .2rem 0;
  color: #fff;
}

/* Button */
.btn {
  display: inline-block;
  padding: .6rem 1.2rem;
  background: var(--accent); /* Updated */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  transition: transform 0.2s;
  background-color: #FFA240;
}

.btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Quick Links Card Section */
.quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.quick-links article {
  background: #fff; /* Pure white for readability on yellow bg */
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--accent); /* Updated */
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.quick-links article h3 {
  color: var(--secondary);
  margin-top: 0;
}

/* Gallery Section */
.gallery {
  margin: 1.25rem 0;
}

.gallery .thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

/* LMS Login Menu */
.lms-login {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #f4f4f4;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}
.lms-login a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.lms-login a:hover {
  color: #007BFF;
}