/* === General Reset & Typography === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* === Layout Container === */
main {
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 1rem;
  padding-top: 80px; /* Adjust this to match your header height */
}

/* === Sticky Header === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to right, #78aee5, #0e1a2b);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Navbar Structure === */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1200px;
}

.nav-logo-wrapper {
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  display: block;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* === Nav Links === */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin: 0 1rem;
}

.nav-links li a {
  color: #f4f4f4;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  display: inline-block;
  border-radius: 4px;
}

.nav-links li a:hover {
  background-color: #e3edf7;
  color: #0e1a2b;
}

/* === Dropdowns === */
.nav-links li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #e3edf7;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #0e1a2b;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #c8ddec;
  color: #000;
}

/* === Responsive Hamburger Menu === */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background-color: #0e1a2b;
    display: none;
    padding: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    margin: 0.75rem 0;
  }

  .nav-links li a {
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .nav-links .dropdown-menu {
    position: relative;
    background-color: #1f2f47;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }

  .nav-links .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 0.4rem 0;
    color: #fff;
  }

  /* ✅ NEW: Show mobile dropdown when 'open' class is toggled */
  .nav-links li.dropdown.open .dropdown-menu {
    display: block;
  }
}

/* === Headings === */
h1 {
  color: #0e1a2b;
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* === Hero Section === */
.hero-section {
  background: url('../assets/images/hero-noses.jpg') no-repeat center center;
  background-size: cover;
  padding: 6rem 1rem;
  text-align: center;
  color: #0e1a2b;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.75);
  padding: 1rem;
  border-radius: 8px;
}

/* === Book Intro Section === */
.home-intro {
  margin-top: 4rem;
  background-color: #fff9e5;
  padding: 3rem 2rem;
  border-radius: 8px;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.book-image {
  flex: 0 0 240px;
  text-align: center;
}

.book-image img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.intro-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #222;
}

.intro-text h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #0e1a2b;
}

/* === Purchase Button === */
.purchase-button {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: #f3e58d;
  color: #0e1a2b;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.purchase-button:hover {
  background-color: #e0d376;
  text-decoration: none;
}

/* === Quote Section === */
.quote-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-left: 6px solid #c75b12;
  font-style: italic;
  color: #333;
}

.quote-section blockquote p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.quote-section blockquote footer {
  font-size: 0.95rem;
  color: #555;
}

/* === About Columns === */
.about-main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.about-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-images {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}

.about-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h1,
.about-text h2 {
  color: #0e1a2b;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f7f7f7;
  font-size: 0.9rem;
  color: #666;
  margin-top: 4rem;
  border-top: 1px solid #e0e0e0;
}

footer a {
  color: #c75b12;
  font-weight: 500;
}

/* === Images and Figures === */
.figure-caption {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.zoom-on-hover {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.zoom-on-hover:hover {
  transform: scale(1.75);
  z-index: 2;
}

.small-img + p em {
  display: block;
  text-align: center;
  margin-top: 0.25rem;
  font-style: italic;
  font-size: 0.95em;
}
<style>
  .academic-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #555;
    margin-top: -10px;
    margin-bottom: 0.5rem;
  }

  .educational-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
    margin-bottom: 1.5rem;
  }

  .small-img {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 1rem auto;
  }
</style>