* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 0rem; /* Make sure this padding matches your header's height */
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header {
  background: #1673d1;
  color: #ffffff;
  padding: 1rem 0; /* Adjusted padding for better vertical centering */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header1 {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens if needed */
  align-items: center; /* Vertically centers items in the header */
  justify-content: space-between; /* ITO ANG NAGTU-TULAK SA MGA ITEMS SA MAGKABILANG GILID */
  max-width: 1200px;
  margin: auto; /* Centers the header content */
  padding: 0 20px;
  /* font-family: 'Glacial indiffirence'; */
}

.navbar-brand {
  display: flex;
  align-items: center; /* Vertically centers logo and text group */
  text-decoration: none;
  flex-direction: row;
}

.brand-text-group {
  display: flex;
  flex-direction: column; /* Stacks brand name and service description */
  justify-content: center;
  line-height: 1.1; /* Adjust spacing between lines */
}

.main-logo {
  height: 3.1rem;
  width: 3.1rem;
  border-radius: 9999px;
  margin-right: 1rem;
  object-fit: cover;
}

.brand-name {
  color: inherit;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  white-space: nowrap;
  font-family: 'Roboto Slab';
}

.service-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8em;
  white-space: nowrap;
  margin-top: 0;
  padding-top: 2px;
  font-family: 'Arial';
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 1px;
  user-select: none;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

.main {
  /* Ito ay para sa desktop navigation. Dapat mag-hide sa mobile. */
  display: flex; /* Default for desktop */
  align-items: center;
  width: auto;
  flex-grow: 1; /* Allows it to take available space */
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  max-height: none;
  opacity: 1;
  position: static;
  padding: 0;
  box-shadow: none;
}

.main.js-menu-open {
  display: flex;
  flex-direction: column; /* Keep this as it stacks the links vertically */
  max-height: 400px;
  opacity: 1;
  background-color: #1673d1; /* This is the white background */
  position: absolute;
  top: 100%;
  right: 0; /* Keep only right: 0; to anchor it to the right */
  width: auto; /* Allow content to dictate width */
  min-width: 150px; /* Optional: Set a minimum width for the menu */
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 999;
  /* Add padding-right to the menu itself for overall right spacing */
  padding-right: 1.5rem; /* Adjust as needed for spacing from the right edge */
  padding-left: 1rem; /* Add some padding on the left side too */
}

/* Update the .main-links block inside the media query for mobile */
@media (max-width: 768px) {
  .main-links {
    width: 100%;
  }

  .nav-link {
    width: 100%; /* Ensure links take full width of their container */
    padding: 0.75rem 0; /* Adjust padding as needed, remove horizontal padding */
    text-align: right; /* Align text within each link to the right */
  }
}

.main-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row; /* For desktop links */
  flex-grow: 1;
  justify-content: right; /* Aligns links to the right */
  gap: 35px;
  width: auto;
  font-family: 'Lora';
}

.nav-link {
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  display: block;
  text-decoration: none;
}

.nav-link:hover {
  color: #b6d4f6;
  background-color: rgba(255, 255, 255, 0.1);
}

/* 🧠 Responsive Layout */
@media screen and (max-width: 768px) {
  .header1 {
    flex-direction: row;
  }

  .hamburger-menu {
    display: block;
    margin-left: auto;
  }

  .main {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1673d1;
    z-index: 999;
    padding: 1rem;
  }

  .main.js-menu-open {
    display: flex;
  }

  .main-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-link {
    text-align: center;
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding-top: 4rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .main-logo {
    width: 2.2rem;
    height: 2.2rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .hamburger-menu {
    font-size: 1.8rem;
  }
}



