/* Base styles */
body,
html {
  scroll-behavior: smooth;
  background-color: #0082ad;
  font-family: Tahoma;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #034d66;
}

/* NAV BAR START */
.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* Top-level dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  padding: 0;
  padding-top: 3px;
}

.dropdown-toggle:hover {
  color: #00a0c6;
  text-decoration: none;
  cursor: pointer;
}

.mobile-sub-toggle:hover {
  background-color: #136a87;
  color: #00a0c6;
}

/* Main dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #034d66;
  padding: 10px 0;
  min-width: 260px;
  z-index: 1000;
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-toggle,
.mobile-sub-toggle {
  background: none;
  border: none;
  color: white;
  font: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Links */
.dropdown-menu a {
  display: block;
  white-space: nowrap;
  padding-top: 3px;
  padding-bottom: 3px;
}

.dropdown-menu a:hover {
  background-color: #136a87;
}

/* Sub dropdown */
.dropdown-sub {
  position: relative;
}

.dropdown-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #034d66;
  min-width: 260px;
}

/* Show sub menu */
.dropdown-sub:hover .dropdown-submenu {
  display: block;
}

.nav-content h2 {
  margin-right: 10px;
}
/* NAV BAR END */
.review-link {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.review-link p {
  margin: 0;
  font-size: 14px;
}

.review-button {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 10px;
  background-color: #4285f4; /* Google blue */
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.review-button:hover {
  background-color: #357ae8; /* Darker blue on hover */
}


.logo img {
  width: 150px;
  height: 150px;
}

.footer {
  background-color: #034d66;
  color: white;
  text-align: center;
  margin-top: 15px;
  padding: 25px 0;
  width: 100%;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  color: #00a0c6;
  text-decoration: none;
  cursor: pointer;
}

.nav-content h2 {
  margin-right: 10px;
}


/* Page layout */
.service-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Individual service sections */
.service-section {
  background: #ffffff;
  color: #333;
  padding: 60px 40px;
  margin-bottom: 60px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Main heading */
.service-section h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #0082ad;
}

/* Sub heading (required) */
.service-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 500;
  color: #555;
}

/* Paragraph text */
.service-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* Offset for fixed header (important) */
.service-section {
  scroll-margin-top: 140px;
}

@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
  }

  /* Header & Navigation */
  .header-content {
    flex-direction: column;
    padding: 10px;
  }

 .nav-content {
    width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center; /* Centers the inner div */
  }

  /* Targets the <div style="display: flex"> inside nav-content */
  .nav-content > div {
    flex-direction: column; /* Stacks Title and Menu vertically */
    align-items: center;    /* Centers them horizontally */
    width: 100%;
  }

  .nav-content h2 {
    margin: 10px 0; /* Removes the side margins and adds vertical spacing */
    text-align: center;
    width: 100%;
  }

  .main-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Changed from 'start' to 'center' */
    width: 100%;
  }

  /* --- FIXED CENTERING LOGIC END --- */

  .dropdown-menu,
  .dropdown-submenu {
    position: static;
    width: 100%;
    align-items: center; /* Ensures dropdown items center */
    text-align: center;
  }

  .mobile-toggle,
  .mobile-sub-toggle {
    display: block;
    width: 100%;
    padding-bottom: 3px;
    text-align: center; /* Centers the text "Services", etc. */
  }

  .dropdown-toggle,
  .mobile-sub-toggle {
    background: none;
    border: none;
    color: white;
    font: inherit;
    width: 100%;
    cursor: pointer;
    padding-left: 0;
    text-align: center; /* Ensures text is centered */
  }

  .dropdown-submenu {
    margin-left: 0; /* Remove left margin to keep it centered */
  }

  /* Accordion layout */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.dropdown-sub{
  padding-left: 10px
}

  .service-section {
    padding: 40px 25px;
  }

  .service-section h2 {
    font-size: 1.8rem;
  }

  .service-section h3 {
    font-size: 1.15rem;
  }
}