/* Base styles */
:root {
  --primary-color: #3a6ea5;
  --secondary-color: #6c757d;
  --accent-color: #f8b400;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --font-family: 'Open Sans', sans-serif;
  /* Removed nav-bg-color, nav-text-color, etc. as they were not extensively used and can be simplified */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: #f5f5f5;
  /* Added to help with smooth scrolling for anchor links if any */
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* Header styles */
header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem 0; /* Adjusted padding */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex; /* Changed to flexbox for better alignment */
  align-items: center;
  justify-content: space-between; /* Distributes space between logo and nav */
  padding-left: 2rem; /* Added padding for container content */
  padding-right: 2rem; /* Added padding for container content */
}

.logo-container {
  /* Removed absolute positioning, flexbox in header will handle it */
  display: flex; /* Ensures logo image is aligned if there's text next to it */
  align-items: center;
}

.logo {
  max-height: 60px; /* Adjusted max-height for a more balanced header */
  transition: max-height 0.3s ease;
  width: auto; /* Ensure aspect ratio is maintained */
}

/* Navigation styles */
.main-nav {
  display: flex;
  align-items: center;
  /* margin: 0 auto; Removed as justify-content: space-between on header handles positioning */
}

.menu-toggle {
  display: none; /* Hidden by default, shown in media query */
  font-size: 1.8rem; /* Slightly larger for easier tapping */
  cursor: pointer;
  color: var(--primary-color);
  background: none; /* Ensure no default button styling interferes */
  border: none; /* Ensure no default button styling interferes */
  padding: 0.5rem; /* Add some padding for easier tap target */
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem; /* Adjusted gap */
  align-items: center; /* Vertically align items if they have different heights */
}

.nav-menu li {
  position: relative;
  margin: 0; /* Redundant due to gap, but good to keep for clarity */
}

.nav-menu li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, background-color 0.3s ease; /* Simplified transition */
  padding: 0.75rem 1.25rem; /* Adjusted padding */
  text-transform: uppercase;
  font-size: 1rem; /* Slightly adjusted font size */
  letter-spacing: 0.5px;
  position: relative;
  display: block; /* Ensures padding is applied correctly and hit area is full */
  border-radius: 4px; /* Optional: slightly rounded corners for links */
}

.nav-menu li a:hover,
.nav-menu li a:focus { /* Added focus state for accessibility */
  color: var(--accent-color);
  background-color: rgba(58, 110, 165, 0.05);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px; /* Adjusted position of underline */
  left: 50%;
  transform: translateX(-50%); /* Center the underline */
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after { /* Added focus state for accessibility */
  width: calc(100% - 2.5rem); /* Underline matches text width considering padding */
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  /* justify-content: space-between; Not needed here if icon is part of the link */
}

.dropdown-toggle i {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease; /* Add transition for icon rotation */
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg); /* Rotate arrow on hover */
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); /* Increased gap slightly */
  left: 0;
  background-color: white;
  min-width: 250px; /* Slightly wider */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Softer shadow */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px); /* Slightly increased translate for effect */
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1001; /* Ensure dropdown is above other header elements */
  list-style: none;
  padding: 0.75rem 0; /* Adjusted padding */
  border-radius: 5px; /* Rounded corners for dropdown */
  border-top: 3px solid var(--accent-color);
  font-size: 0.95rem; /* Adjusted font size */
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { /* Added focus-within for keyboard navigation */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
  width: 100%;
}

.dropdown-menu li a {
  padding: 0.75rem 1.5rem !important; /* Consistent padding */
  display: block; /* Ensure full width clickable area */
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-weight: normal; /* Normal weight for dropdown items */
  border-radius: 0; /* Override potential parent border-radius if needed */
  text-transform: none; /* Usually dropdowns don't need uppercase */
  letter-spacing: normal; /* Reset letter spacing */
  font-size: 0.95rem; /* Consistent font size */
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus { /* Added focus state */
  background-color: #f0f5fa; /* Lighter hover background */
  color: var(--primary-color);
  transform: translateX(3px); /* Subtle movement */
}

.dropdown-menu li a::after { /* Remove main nav underline from dropdown items */
    display: none;
}

/* Main content styles */
main {
  padding: 2rem 0;
  margin-top: 70px; /* Adjusted based on new header height (50px logo + 1rem*2 padding) */
  /* For the content visibility issue: ensure content is visible by default */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out; /* Smooth transition if you add JS later */
}

/* Solution for content appearing on scroll:
   If you are using JavaScript to add a class like 'visible' or 'active'
   when an element scrolls into view, ensure the initial state in CSS
   allows the element to be part of the layout.
   Avoid 'display: none;' for elements that should animate in.
   Use opacity and transform for reveal animations.
*/
.animated-section { /* Example class for elements you animate on scroll */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible { /* Add this class with JS when in viewport */
  opacity: 1;
  transform: translateY(0);
}


.page-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content {
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Announcement styles */
.announcements {
  margin-bottom: 2rem;
}

.announcement {
  background-color: white;
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.announcement-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.announcement-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer styles */
footer {
  background-color: #f9f9f9;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); Removed, often not needed for footer */
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.footer-section {
  flex: 1 1 250px; /* Allow shrinking and set a base width */
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.footer-section h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-section p {
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  color: var(--dark-color);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease; /* Added transform transition */
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.07); /* Slightly adjusted for better visibility */
}

.social-icons a:hover,
.social-icons a:focus { /* Added focus */
  color: var(--accent-color);
  transform: translateY(-3px); /* Enhanced hover effect */
}

.footer-links {
  margin-bottom: 1rem;
  padding-left: 0; /* Ensure no default padding if it's a ul/ol */
  list-style: none; /* If it's a list */
}

.footer-links li {
    margin-bottom: 0.5rem; /* Space out links */
}

.footer-links a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none; /* Remove underline by default */
}

.footer-links a:hover,
.footer-links a:focus { /* Added focus */
  color: var(--accent-color);
  text-decoration: underline; /* Add underline on hover/focus */
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  /* padding-bottom: 1rem; Combined with padding below */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 15px 1rem; /* Adjusted padding */
}

/* Markdown Articles - Assuming these styles are largely okay, minor tweaks for consistency */
.markdown-article {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.markdown-article:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: var(--primary-color);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.content h1 { font-size: 2.2em; }
.content h2 { font-size: 1.8em; }
.content h3 { font-size: 1.5em; }

.content p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.content ul,
.content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em; /* Standard indent */
}

.content li {
  margin-bottom: 0.5em;
}

.content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--accent-color);
  background-color: #f7f7f7; /* Slightly lighter */
  color: #555; /* Darker text for readability */
  font-style: italic;
}

.content code {
  background-color: #f8f8f8; /* Light grey for opening hours */
  padding: 0.2em 0.5em; /* More padding */
  border-radius: 4px; /* Consistent border-radius */
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* Better font stack */
  font-size: 0.9em;
}

.content pre {
  background-color: #f8f8f8; /* Light grey for opening hours */
  color: var(--dark-color); /* Adjust text color for light background */
  padding: 1.2em; /* More padding */
  border-radius: 5px; /* Consistent border-radius */
  overflow-x: auto;
  margin-bottom: 1.5em; /* More margin */
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; /* Better font stack */
  font-size: 0.9em;
}

.content pre code {
  background-color: transparent;
  padding: 0;
  font-size: inherit; /* Inherit font size from pre */
  color: inherit; /* Inherit color from pre */
}

.content a {
 color: var(--primary-color);
 text-decoration: underline;
 font-weight: 600; /* Make links stand out a bit more */
}

.content a:hover,
.content a:focus {
 color: var(--accent-color);
 text-decoration: none;
}

.content hr {
  border: none;
  border-top: 1px solid #ddd; /* Slightly darker hr */
  margin: 2.5em 0; /* More space */
}

.content img {
 max-width: 100%;
 height: auto;
 margin: 1.5em 0; /* More margin */
 display: block;
 border-radius: 5px; /* Consistent border-radius */
 box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Optional: subtle shadow for images */
}

/* Responsive styles */
@media (max-width: 992px) {
  header {
    padding: 0.75rem 1rem; /* Adjust header padding for mobile */
  }

  .logo {
    max-height: 40px; /* Smaller logo on mobile */
  }

  .menu-toggle {
    display: block; /* Show hamburger menu */
    z-index: 1002; /* Ensure toggle is above other elements if nav is open */
  }
  
  .nav-menu {
    position: absolute;
    top: 0; /* Align with top of header */
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: stretch; /* Stretch items to full width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow-y: auto; /* Allow scrolling if menu is long */
    visibility: hidden; /* Use visibility for transition */
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000; /* Below toggle but above content */
    padding-top: 60px; /* Space for header/toggle button to avoid overlap. Adjust as per your header height */
  }
  
  .nav-menu.active {
    max-height: 100vh; /* Or a specific max like 500px, 100vh for full screen potential */
    visibility: visible;
    opacity: 1;
  }

  .nav-menu li {
    width: 100%; /* Full width list items */
  }

  .nav-menu li a {
    padding: 1rem 1.5rem; /* Larger tap targets */
    border-bottom: 1px solid #eee; /* Separator for items */
    font-size: 1.1rem; /* Slightly larger font for mobile menu */
  }
  .nav-menu li:last-child a {
    border-bottom: none;
  }

  .nav-menu li a::after { /* Disable underline hover effect in mobile menu */
      display: none;
  }

  main {
    margin-top: calc(40px + 0.75rem * 2); /* Adjust main margin top based on new mobile header height */
  }
 
  .dropdown-menu {
    position: static; /* Static positioning within the mobile nav flow */
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%; /* Full width */
    border-top: none; /* Remove top border */
    border-radius: 0;
    padding: 0;
    background-color: #f9f9f9; /* Slightly different background for visual hierarchy */
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .dropdown.active .dropdown-menu { /* Assumes JS adds 'active' to .dropdown on toggle */
    max-height: 500px; /* Or enough to show items */
    padding: 0.5rem 0;
  }

  .dropdown-menu li a {
      padding: 0.75rem 2rem !important; /* Indent submenu items */
      font-size: 1rem;
  }
  
  .dropdown-toggle i {
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle i {
    transform: rotate(180deg); /* Rotate arrow when dropdown is active */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-section {
    min-width: 100%;
    margin-bottom: 2rem;
  }
  .footer-section h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) { /* Further adjustments for smaller screens if needed */
     main {
        padding: 1.5rem 0;
     }
    .content {
        padding: 1.5rem;
    }
}

/* Slideshow styles */
.slideshow-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  aspect-ratio: 16/9;
}

.slide {
  display: none;
  animation: fade 1.5s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  background: rgba(0,0,0,0.3);
  border-radius: 0 3px 3px 0;
  user-select: none;
  transition: 0.3s;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}

.dots-container {
  margin-top: 1rem;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #ddd;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}

.active-dot, .dot:hover {
  background-color: var(--primary-color);
}

@keyframes fade {
  from {opacity: .6} 
  to {opacity: 1}
}
/* Additional styles for content pages - Assuming these are largely okay */
.category-section {
  margin-bottom: 3rem;
}

.category-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem; /* Slightly more padding */
  background-color: var(--primary-color);
  color: white !important; /* Ensure text color is white */
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* Pushes button to the bottom of the card-content */
  align-self: flex-start; /* Align button to the start if card content is flex */
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  background-color: #2c5282; /* Darker shade for hover/focus */
  transform: translateY(-2px); /* Slight lift effect */
  color: white !important;
}

/* For a HOVER effect */
.expandable-trigger {
  position: relative;
  display: inline-block; /* Or block, depending on your layout needs */
  cursor: pointer;
  border-bottom: 1px dotted #007bff; /* Optional: indicates interactivity */
}

.expandable-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 10px;
  z-index: 100; /* Ensure it appears above other content */
  min-width: 250px; /* Adjust as needed */
  left: 0; /* Align with the trigger */
  top: 100%; /* Position below the trigger */
  margin-top: 5px; /* Small gap */
  white-space: normal; /* Allow text to wrap */
}

.expandable-trigger:hover .expandable-content {
  display: block; /* Show on hover */
}

/* If you want a CLICK effect with JS, you'd toggle a class like this: */
/* .expandable-trigger.active .expandable-content {
  display: block;
} */

/* Styling for the container */
.hover-image-container {
  position: relative; /* Essential for positioning the image relative to this container */
  display: inline-block; /* Allows text to flow naturally while providing a block context for positioning */
  cursor: pointer; /* Indicates interactivity */
  border-bottom: 1px dotted #007bff; /* Optional: adds a subtle underline to indicate hoverability */
}

/* Styling for the hidden image container */
.hover-image {
  display: none; /* Hidden by default */
  position: absolute; /* Positions the image relative to the .hover-image-container */
  background-color: #fff; /* Background for the popup */
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 5px;
  z-index: 100; /* Ensures the image appears above other content */

  /* --- KEY CHANGES FOR CENTERING WITH TEXT --- */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Adjust for mobile: */
  @media (max-width: 768px) {
    left: 50%;
    transform: translateX(-50%);
  } /* Shift it back by half its own width and half its own height */
                                   /* This truly centers the image's middle point on the 50%/50% mark */

  white-space: nowrap; /* Prevents internal content from wrapping if it's text */
  /* Remove margin-top as it's not needed with transform */
}
/* Styling for the image itself */
.hover-image img {
  max-width: 500px; /* Adjust image size as needed */
  height: auto;
  display: block; /* Removes extra space below the image */
}

/* Show the image on hover */
.hover-image-container:hover .hover-image {
  display: block; /* Makes the image visible when the container is hovered */
}
