/* Light Theme CSS */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #005cbf;
}
h4 {
  margin: 0;
  color: #005cbf;
}
nav {
  margin-top: 0.5rem;
}

.main-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.main-menu > li {
  position: relative;
}

.main-menu > li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #005cbf; /* same as text color */
  font-weight: normal;
}

.main-menu a {
  text-decoration: none;
  color: #005cbf;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  position: relative;
}

/* Hover underline effect */
.main-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: currentColor; /* matches the text color */
  transition: width 0.3s ease;
}

.main-menu a:hover::after {
  width: 100%;
}

/* About submenu horizontal 7-column grid */
.about-submenu-horizontal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.about-submenu-horizontal button,
.dropdown-group > .has-dropdown {
  background-color: #e8f0fe;
  color: #005cbf;
  border: 1px solid #ccddee;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  height: 3rem;
  line-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-submenu-horizontal button:hover,
.dropdown-group > .has-dropdown:hover {
  background-color: #d0e2ff;
}

.dropdown-group {
  position: relative;
}

/* Updated dropdown-content for better wrapping */
.dropdown-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border: 1px solid #ccddee;
  z-index: 1000;
  flex-direction: column;
  padding: 0.5rem 1rem;        /* More horizontal padding */
  min-width: 220px;           /* wider min width */
  max-width: 320px;           /* max width */
  word-wrap: break-word;      /* wrap long words */
  white-space: normal;        /* allow wrapping */
  box-sizing: border-box;
}

.dropdown-content button {
  width: 100%;
  margin: 0.2rem 0;
  text-align: left;
  height: auto;               /* auto height for multiline */
  padding: 0.4rem 0.6rem;     /* padding inside buttons */
  white-space: normal;        /* allow multiline */
  line-height: 1.3;           /* better line spacing */
  word-break: break-word;     /* break long words if needed */
}

.dropdown-group.active .dropdown-content {
  display: flex;
}

main {
  padding: 2rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #f0f0f0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-submenu-horizontal {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .about-submenu-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}
#scrollToTopBtn {
  position: fixed;
  bottom: 70px;          /* Adjust so it’s above the footer */
  right: 20px;
  z-index: 1000;
  background-color: #005cbf;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  display: none;          /* Hidden by default */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #003f8a;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-submenu-horizontal button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #e8f0fe;
  color: #005cbf;
  border: 1px solid #ccddee;
  border-radius: 5px;
  padding: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  height: 3.5rem;
  line-height: 1.2;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal; /* allow multi-line text */
  font-size: 0.85rem;  /* reduce font slightly if needed */
}
.logo {
  display: block;
  margin: 0 auto;
  max-width: 1000px; /* ✅ Keep this for desktop */
  height: auto;
}

/* ✅ Smaller screens: override max-width */
@media (max-width: 1024px) {
  .logo {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .logo {
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 250px;
  }
}


.blue-line {
  height: 4px;
  background-color: #005cbf;;
  width: 100%;
  margin-bottom: 10px;
}



