/* Tablet & Desktop Screen Sizes (meets responsive design requirement: Min Width 481px) */
@media screen and (min-width: 481px) {
   .navbar {
      flex-direction: row;
      justify-content: space-between;
   }
}

/* -----------------------------------------------------------------
    Desktop Navigation & Layout Styles (Min-width: 769px)
-----------------------------------------------------------------*/
@media screen and (min-width: 769px) {
   .hamburger,
   .nav-toggle {
      display: none; /* Hide hamburger and checkbox on larger screens */
   }

   /* Reset .nav-links back to a normal horizontal bar for desktop */
   .nav-links {
      display: flex !important; /* Force display flex so it never disappears */
      flex-direction: row;
      position: static;
      width: auto;
      background-color: transparent;
      box-shadow: none;
      padding: 0;
      gap: 1.25rem;
   }

   .nav-links li {
      margin: 0;
   }

   .nav-links li a {
      padding: 0.5rem 0.75rem;
      border-radius: 4px;
      background-color: transparent;
   }

   .nav-links li a:hover {
      background-color: transparent;
      color: #f4e8c1;
   }
}

/* Responsive adjustment for small screens */
@media screen and (max-width: 600px) {
   .event-row {
      flex-direction: column;
   }

   .event-title {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #e0e0e0;
      background-color: #f4e8c1;
      color: #2c3e50;
      padding: 0.75rem;
   }

   .event-description {
      width: 100%;
      padding: 1rem;
   }

   .event-with-moon {
      flex-direction: column;
      align-items: flex-start;
   }
}

/* Responsive collapse for small screens */
@media screen and (max-width: 768px) {
   .bottom-container {
      flex-direction: column;
   }

   .external-links-box {
      width: 100%;
   }

   .main-text-box {
      width: 100%;
   }

   .articles-layout {
      flex-direction: column;
   }

   .articles-sidebar {
      width: 100%;
   }

   .references-layout {
      flex-direction: column;
   }

   .references-sidebar {
      width: 100%;
   }

   .contact-layout {
      flex-direction: column;
   }

   .contact-sidebar {
      width: 100%;
   }

   .submit-btn {
      width: 100%;
   }
}

/* Responsive adjustment for tablets & mobile */
@media screen and (max-width: 850px) {
   .detail-container {
      flex-direction: column;
   }

   .detail-bottom-row {
      flex-direction: column;
   }
}
