/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

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

/* Header styles */
.site-header {
  background-color: #f9f9f9; /* Dark red/maroon color */
  color: white;
  padding: 15px 0;
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.logo img {
  width: 100%;
  height: 100%;
  /*object-fit: contain;  Ensures the image maintains its aspect ratio */
}

.site-title {
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

.site-subtitle {
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0;
}

.accreditations {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.accreditation {
  color: #ffd700; /* Gold color */
  font-size: 14px;
  text-decoration: none;
}

/* Navigation styles */
.main-nav {
  background-color: #d32f2f; /* Bright red color */
  padding: 0;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding-left: 0; /* Remove default padding */
}

.menu-item {
  position: relative;
}

.menu-item a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.menu-item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Style for inactive pages */
.inactive-page {
  color: #aaa !important;
  cursor: default;
  pointer-events: none;
}

/* Dropdown menu styles */
.menu-item .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #d32f2f;
  min-width: 200px;
  z-index: 1000;
  display: none;
  list-style-type: none; /* Remove bullets */
  padding-left: 0; /* Remove default padding */
}

.menu-item:hover > .submenu {
  display: block;
}

.menu-item .submenu .menu-item {
  width: 100%;
}

.menu-item .submenu .menu-item a {
  padding: 8px 15px;
  display: block;
}

.menu-item .submenu .menu-item:hover > a {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Nested submenu (level 2+) */
.menu-item .submenu .menu-item .submenu {
  top: 0;
  left: 100%;
}

/* Banner styles */
.banner {
  background-color: #800000; /* Dark red/maroon color */
  color: white;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Marquee link styles */
.marquee-link {
  color: white;
  text-decoration: underline;
}

.marquee-link:hover {
  color: #ffcc00;
}

/* Main content styles */
.main-content {
  padding: 20px 0;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.content-box {
  background-color: white;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-box p {
  margin-bottom: 15px;
}

/* Back button styles */
.back-button {
  margin-bottom: 15px;
}

.back-button a {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.back-button a i {
  margin-right: 5px;
}

.back-button a:hover {
  background-color: #5a6268;
}

/* Featured image carousel */
.featured-image-container {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  display: none;
  width: 100%;
}

.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.carousel-control.prev {
  left: 0;
}

.carousel-control.next {
  right: 0;
}

/* Welcome section */
.welcome-section {
  text-align: center;
  margin: 30px 0;
}

.welcome-title {
  position: relative;
  display: inline-block;
  font-size: 24px;
  margin-bottom: 20px;
  color: #d32f2f;
}

.welcome-title::before,
.welcome-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100px;
  height: 1px;
  background-color: #ccc;
}

.welcome-title::before {
  right: 100%;
  margin-right: 15px;
}

.welcome-title::after {
  left: 100%;
  margin-left: 15px;
}

/* Two column layout */
.two-column {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.main-column {
  flex: 1;
  min-width: 0;
  padding: 0 15px;
}

.sidebar-section {
  width: 300px;
  padding: 0 15px;
}

/* News and Notices sections */
.news-section,
.notice-section {
  background-color: #fff;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
}

.sidebar-title {
  font-size: 16px;
  margin: 0;
  padding: 8px 15px;
  background-color: #d32f2f;
  color: white;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.sidebar-content {
  padding: 15px;
  height: auto;
  overflow: hidden;
}

.news-list,
.notice-list {
  position: relative;
  height: auto;
  overflow: hidden;
}

.news-items,
.notice-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item,
.notice-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.news-item:last-child,
.notice-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.news-item a,
.notice-item a,
.news-item span,
.notice-item span {
  color: #0078d4;
  text-decoration: none;
  display: block;
  white-space: normal;
  word-wrap: break-word;
  font-size: 14px;
}

.news-item a:hover,
.notice-item a:hover {
  text-decoration: underline;
  color: #005a9e;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.quick-link {
  display: block;
  padding: 15px;
  background-color: #d32f2f;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.quick-link:hover {
  background-color: #b71c1c;
}

/* Important links */
.important-links {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 25px 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #800000;
}

.important-links p {
  margin: 0;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.important-links a {
  display: inline-block;
  margin: 0 8px;
  padding: 5px 10px;
  color: #800000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.important-links a:hover {
  background-color: #800000;
  color: white;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .important-links {
    padding: 12px 15px;
  }

  .important-links p {
    font-size: 14px;
  }

  .important-links a {
    margin: 5px 4px;
    padding: 4px 8px;
  }
}

@media (max-width: 576px) {
  .important-links {
    text-align: center;
    padding: 12px;
  }

  .important-links p {
    margin-bottom: 8px;
    display: block;
  }

  .important-links a {
    display: inline-block;
    margin: 3px 5px;
  }
}

/* Footer styles */
.site-footer {
  background-color: #800000; /* Dark red/maroon color */
  color: white;
  padding: 30px 0 20px;
}

.footer-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #d32f2f;
}

.address-section p {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.address-section p i {
  margin-right: 10px;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #d32f2f;
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  font-size: 13px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-credit {
  display: block;
  margin-top: 5px;
  font-weight: 500;
  color: #ffcc00;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .footer-sections {
    flex-direction: column;
  }

  .footer-section {
    width: 100%;
    padding-right: 0;
  }

  .social-links {
    justify-content: flex-start;
  }

  .copyright {
    text-align: center;
  }
}


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
}

/* Form styles */
.form-container {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group textarea {
  height: 150px;
}

.form-check {
  margin-bottom: 10px;
}

.form-button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.form-button:hover {
  background-color: #b71c1c;
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  text-align: center;
}

/* PDF viewer styles */
.pdf-container {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden; /* Prevent overflow */
}

.pdf-viewer {
  width: 100%;
  /* height: 600px; */
  border: 1px solid #ddd;
  margin-bottom: 10px;
  overflow: hidden; /* Prevent overflow */
}

.pdf-viewer iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
  display: block; /* Remove any inline spacing */
}

.pdf-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.pdf-button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.pdf-button:hover {
  background-color: #b71c1c;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  color: white;
}

/* Responsive styles */
@media (max-width: 992px) {
  .two-column {
    flex-direction: column;
  }

  .sidebar-section {
    width: 100%;
  }

  .quick-link {
    min-width: 120px;
  }

  .pdf-viewer {
    height: 610px; /* Slightly smaller on medium screens */
  }
}

@media (max-width: 768px) {
  .site-title,
  .site-subtitle {
    font-size: 20px;
  }

  .header-content {
    flex-direction: column;
  }

  .logo img {
    width: 100%;
    height: 100%;
  }

  .accreditations {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    display: none;
  }

  .nav-container.active {
    display: block;
  }

  .menu {
    flex-direction: column;
  }

  .menu-item {
    width: 100%;
  }

  .menu-item .submenu {
    position: static;
    display: none;
    width: 100%;
  }

  .menu-item.has-submenu > a {
    display: flex;
    justify-content: space-between;
  }

  .menu-item.has-submenu.active > .submenu {
    display: block;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .pdf-viewer {
    height: 510px; /* Smaller on mobile */
  }
}

@media (max-width: 576px) {
  .site-title,
  .site-subtitle {
    font-size: 16px;
  }

  .logo img {
    width: 100%;
    height: 100%;
  }

  .quick-links {
    flex-direction: column;
  }

  .quick-link {
    max-width: 100%;
  }

  .important-links a {
    display: block;
    margin: 5px 0;
  }

  .pdf-controls {
    flex-wrap: wrap;
  }

  .pdf-viewer {
    height: 410px; /* Even smaller on very small screens */
  }
}
/* Remove the vertical marquee animation */
.marquee-vertical {
  position: static;
  animation: none;
  width: 100%;
}

.marquee-vertical.paused {
  animation-play-state: paused;
}

/* Update the two-column layout to ensure proper spacing */
@media (max-width: 992px) {
  .side-column {
    width: 100%;
  }
}
