html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* height of your header */
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #e5dac5;
  color: #333;
}

header {
  background: #004d26;
  color: #e5dac5;
  padding: 1rem;
  text-align: center;
  position: sticky;
  top: 0;
}

.title-main {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 
               'Lucida Sans', Arial, sans-serif;
  font-style: normal;
  color: #e5dac5; 
  font-size: 30px; 
  font-weight: bolder;
}

/* Pronunciation styling */
.pronunciation {
  font-size: 0.9rem;
  font-style: italic;
  color: #d9cbb2;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 
               'Lucida Sans', Arial, sans-serif;
  font-style: normal;
  color: #e5dac5; 
  font-size: 20px; 
  font-weight: bolder;
}

nav a {
  color: #e5dac5;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #f5eede;
  margin-top: 0.3rem;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #e5dac5;
  cursor: pointer;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: url('https://images.unsplash.com/photo-1578531745254-8d5c61a2c95d') 
              center/cover no-repeat;
  color: #004d26;
  text-align: center;
}

.hero-image {
  max-width: 450px;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
  scroll-margin-top: 120px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #FFF9F0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-image {
  width: 100%;       /* fills the card width */
  height: auto;      /* keeps the correct aspect ratio */
  border-radius: 8px;
  margin: 0.5rem 0;  /* spacing between title and text */
  object-fit: cover; /* ensures the image fills nicely */
}

footer {
  background: #004d26;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
}

img.logo {
  max-width: 120px;
  display: block;
  margin: 0 auto 1rem auto;
}



/* ---------------- MOBILE STYLES ---------------- */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1rem;
  }

  .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .title-main {
    font-size: 24px;
    margin-bottom: 0.25rem; /* tighter spacing */
  }

  nav {
    display: none;               /* hidden until toggled */
    flex-direction: column;
    gap: 0.6rem;                  /* reduced spacing */
    margin-top: 0.5rem;
    text-align: center;
  }

  nav.show {
    display: flex;                /* show on toggle */
  }

  nav a {
    font-size: 18px;
    padding: 5px 0;
  }

  .menu-toggle {
    display: block; /* show hamburger only on mobile */
    margin-top: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-image {
    max-width: 90%;
    margin-top: 2rem;
  }

  .section {
    padding: 2rem 1rem;
    scroll-margin-top: 100px;
  }

  section h2 {
    scroll-margin-top: 120px; /* adjust based on your header height */
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}