/* Enable native smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Offset fixed navbar height for About Us section */
#about-us {
  padding-top: 100px; /* Adjust based on your navbar height */
  margin-top: -100px; /* Negative margin to offset the padding */
}

/* Restore layout and alignment for content sections */
.content-section {
  display: block !important;
  max-width: 900px;
  margin: 2rem auto 4rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
}

/* Ensure main wrapper is centered and has max width */
.main-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
  box-sizing: border-box;
}

/* Content container styling */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  position: relative;
  z-index: 11;
  text-align: center;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .content-section {
    margin: 1.5rem auto 3rem auto;
    padding: 0 0.5rem;
  }

  .main-wrapper {
    padding: 0 0.5rem 1rem 0.5rem;
  }

  .content {
    padding: 1.5rem 0.5rem;
  }
}

/* Modal styles for brochure image */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* On top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7); /* Black with opacity */
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  background-color: #fff;
  border-radius: 8px;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.modal-close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
  text-decoration: none;
}

/* Styles for generic section modal */
.modal-content-card {
  padding: 1.5rem 2rem;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInScale 0.3s ease forwards;
}

.modal-body {
  color: #0a1a3f;
  font-family: 'Times New Roman', serif;
  text-align: left;
}

/* Fade-in and scale animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 10% auto;
  }

  .modal-content-card {
    padding: 1rem 1.5rem;
  }
}
