html {
  overflow-y: scroll;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e6f0f6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main p {
  text-align: justify;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 16px;
  color: #333;
}

.banner {
  background-color: #2c3e50;
  color: white;
  padding: 25px 0;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  border-bottom: 4px solid #1a2733;
}

.banner h1 {
  font-size: 28px;
  margin: 0 0 10px 0;
  color: white;
}

.container {
  display: flex;
  flex-grow: 1;
  padding: 20px;
  gap: 20px;
}

.sidebar {
  width: 280px;
  min-width: 280px;
  background-color: #34495e;
  padding: 20px;
  border: 2px solid #2c3e50;
  border-radius: 8px;
  color: white;
  box-sizing: border-box;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar a,
.submenu-toggle {
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  padding: 10px;
  margin: 0;
  border: none;
  background-color: #3c5a72;
  color: white;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background-color 0.3s ease;
  margin-bottom: 8px;
}

.sidebar a:hover,
.submenu-toggle:hover {
  background-color: #5d87a1;
}

.submenu {
  display: none;
  margin-left: 18px;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid #5d87a1;
}

.submenu li {
  margin-bottom: 6px;
}

.submenu li a {
  background-color: #5a7e99;
  font-size: 14px;
  color: #fff;
  padding: 8px 10px;
  border-radius: 3px;
  display: block;
  transition: background-color 0.2s ease;
}

.submenu li a:hover {
  background-color: #7aa4c0;
}

.content {
  flex-grow: 1;
  padding: 25px;
  background-color: white;
  border: 2px solid #2c3e50;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  border-top: 3px solid #1a2733;
  margin-top: auto;
}

#primary-citation {
  background: #f8f9fa;
  border-left: 4px solid #2c3e50;
  padding: 12px 16px;
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 0.9em;
  border-radius: 0 4px 4px 0;
}

figcaption {
  font-weight: normal;
  color: #0874f0 !important;
  text-align: center;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  height: auto;
}

.arrow {
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

a[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}

figure img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pink-pulse-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #4c98d6;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
  animation: nativePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pink-pulse-link:hover {
  color: #f472b6;
}

@keyframes nativePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Structural Layout Changes for Mobile Screens Only */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 20px;
  }

  .container {
    flex-direction: column;
    padding: 12px;
    gap: 15px;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
  }

  .content {
    padding: 15px;
  }

  img {
    width: 100%;
  }
}