:root {
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Aleo", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f0f0f0;
  margin: 0;
  padding: 30px 0;
  font-family: var(--font-body);
  background-image: url(assets/home-image.png);
  background-repeat: repeat;
  background-size: contain;
}

/* Layout Containers */
.main-page-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 1600px;
  margin: auto;
  padding: 0 20px;
}

.page-container {
  background-color: #fff;
  flex: 1;
  max-width: 100%;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: normal;
  color: black;
}

h1 {
  font-size: 2.8rem;
  text-align: center;
  margin: 10px 0;
}

h2 {
  font-size: 2.2rem;
  margin: 30px 0 10px;
}

h3 {
  font-size: 1.8rem;
  margin: 20px 0 10px;
}

h4 {
  font-size: 1.4rem;
  margin-top: 25px;
}

p, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}

ul {
  padding-left: 20px;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 5px;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: gray;
}
.ehmeals-img-container{
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 20px;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}
img:hover {
  transform: scale(1.02);
}

/* --- TOC Sidebar --- */
.nav-sidebar {
  position: sticky;
  top: 30px;
  width: 300px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  font-family: var(--font-body);
  z-index: 1000;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.nav-sidebar h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #000;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.nav-list {
  list-style: none;
}
.nav-sidebar ul {
  margin-bottom: 0px;
  padding-left: 0px;
}
.nav-list li {
  margin-bottom: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 18px;
  display: block;
  padding: 2px 8px;
  border-radius: 5px;
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #A4D4A1;
  color: #000000;
  font-weight: normal;
}

.nav-link.active {
  background-color: #A4D4A1;
  color: #000000;
  font-weight: normal;
  /* border-left: 4px solid #0056b3; */
}

.submenu {
  list-style: none;
  padding-left: 15px;
  display: none;
}

.submenu .nav-link {
  margin: 5px 0;
  font-size: 15px !important;
}

.submenu.show {
  display: block;
}
.toggle-submenu.active {
  background-color: #80cfe5;
  font-weight: normal;
}

/* Arrow icon */
.arrow {
  float: right;
  transition: all 0.3s ease;
}

/* Rotate down when submenu is open */
.toggle-submenu.open .arrow {
  transform: rotate(90deg);
}
/* --- Back to Top Button --- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 40px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 25px;
  cursor: pointer;
  display: none;
  z-index: 1001;
  font-family: var(--font-heading);
  transition: all 0.3s;
}

#backToTop:hover {
  background-color: #a4d4a1;
  color: #000000;
}

/* --- Responsive Design --- */
@media (max-width: 1400px) {
  .main-page-container {
    flex-direction: row;
    gap: 15px;
    padding: 0 15px;
  }

  .nav-sidebar {
    width: 300px;
    padding: 15px;
  }

  .page-container {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .main-page-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .nav-sidebar {
    display: none;
  }

  .page-container {
    padding: 20px;
  }

  #backToTop {
    right: 20px;
    bottom: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  p,
  li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  p,
  li {
    font-size: 0.9rem;
  }
}
