/* === GLOBAL RESETS & FONTS === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  background-color: #3a2f2a; /* Dark chocolate brown */
  color: #FEFBF5; /* Warm parchment text */
  line-height: 1.6;
  animation: fadeIn 1.5s ease-in;
  padding: 0 20px;
}

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

/* === HEADER === */
header {
  text-align: center;
  padding: 20px 0 10px;
}

header img {
  max-width: 220px;
  height: auto;
}

/* === NAVIGATION MENU === */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background-color: #2e2520; /* Deep espresso */
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #D1BA5B;
  margin: 0 auto 30px;
  max-width: 1000px;
  position: relative;
  z-index: 10;
}

nav a {
  color: #D1BA5B; /* Primary gold */
  text-decoration: none;
  padding: 6px 12px;
  font-weight: 500;
  position: relative;
  font-size: 14px;
  transition: color 0.3s ease;
}

a {
  color: #D1BA5B;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #F5D995;
}

nav a:hover {
  color: #F5D995; /* Light gold on hover */
  text-decoration: none;
}

/* === DROPDOWN MENU === */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 36px;
  left: 0;
  background-color: #2e2520;
  border: 1px solid #D1BA5B;
  padding: 12px;
  min-width: 250px;
  border-radius: 8px;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.media-subheading {
  font-weight: 600;
  margin-top: 10px;
  color: #F5D995;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-style: italic;
}

.category {
  display: block;
  padding: 4px 0;
  font-size: 14px;
}

/* === MAIN CONTENT === */
.main-content {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 20px;
  background-color: #4b3e36; /* Warm brown panel */
  color: #FEFBF5; /* Body text */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(215, 171, 80, 0.1);
}

.main-content h1 {
  font-size: 24px;
  margin-bottom: 12px;
  text-align: center;
  color: #D1BA5B;
}

.main-content h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
  color: #F5D995;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-style: italic;
}

.main-content p {
  margin-bottom: 18px;
}

ul {
  margin-left: 20px;
  margin-bottom: 18px;
}

li {
  margin-bottom: 10px;
}

/* === FOOTER === */
footer {
  text-align: center;
  font-size: 12px;
  padding: 20px;
  color: #D1BA5B;
  background-color: #2e2520;
  border-radius: 8px;
  border: 1px solid #D1BA5B;
  margin: 40px auto 20px;
  max-width: 1000px;
}

footer a {
  color: #D1BA5B;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #F5D995;
}

.inline-text {
  color: #D1BA5B;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.inline-text:hover {
  color: #D1BA5B;
}

.resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.resource-grid a img {
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.resource-grid a:hover img {
  transform: scale(1.05);

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 12px;
  }

  .dropdown-content {
    position: static;
    border: none;
    background-color: transparent;
    padding: 0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  header img {
    max-width: 180px;
  }