html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}

/* Base body styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Header / navigation bar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #ffff7c !important;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap; 
}

/* Logo image in header */
header img {
  height: 80px;
  max-width: 100%;
}

/* Navigation container */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffdd00;
}

/* Hero section with full screen height */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Slideshow container */
.slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Individual slideshow slide */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out; 
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay content on hero */
.overlay {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.overlay h1 {
  font-size: 3em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.overlay p {
  font-size: 1.2em;
  max-width: 700px;
  margin: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* General section layout */
.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

/* Section headings */
.section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #222;
}

.section p {
  text-align: center;
  max-width: 900px;
  margin: 10px auto;
  line-height: 1.6;
}

/* Contact section layout */
.contact-section {
  text-align: center;
}

/* Intro text for contact section */
.contact-intro {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #555;
}

/* Contact information box */
.contact-box {
  background: #dedede;
  border-radius: 10px;
  padding: 25px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 600px;
}

.contact-box p {
  margin: 12px 0;
  font-size: 1.1em;
  color: #333;
}

.contact-box b {
  color: #000000;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}

/* Dropdown menu container */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown:hover .dropdown-content a:nth-child(1) { 
  transition-delay: 0.1s; 
  opacity: 1; 
  transform: translateY(0); 
}

.dropdown:hover .dropdown-content a:nth-child(2) { 
  transition-delay: 0.2s; 
  opacity: 1; 
  transform: translateY(0); 
}

.dropdown:hover .dropdown-content a:nth-child(3) { 
  transition-delay: 0.3s; 
  opacity: 1; 
  transform: translateY(0); 
}

/* Search form in header */
.search-form {
  display: flex;
  align-items: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.search-form input {
  width: 0;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 20px;
  transition: width 0.4s ease;
  opacity: 0;
}

.search-form input:focus {
  width: 150px;
  opacity: 1;
  margin-left: 10px;
}

.search-form button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-form button img {
  width: 18px;
  height: 18px;
}

/* Page title section */
.page-title {
  background-color: #fffada;
  padding: 12px 40px; 
  border-bottom: 1px solid #ddd;
  flex: none;
  display: flex;             
  justify-content: space-between;
  align-items: center;
}

.page-title h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  color: black;
}

.page-title .sub-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s;
}

.page-title .sub-nav a:hover {
  color: #f5b400; 
}

/* Footer layout */
footer {
  background: #f1f1f1;
  padding: 10px 8%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: black;
}

.footer-bottom a {
  color: black;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
  }

  .search-form {
    margin: 10px 0 0 0;
  }

  .overlay h1 {
    font-size: 2.2em;
  }

  .overlay p {
    font-size: 1em;
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  nav a {
    display: block;
    margin: 8px 0;
  }

  nav {
    flex-direction: column;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 100%;
    max-width: 350px;
  }

  .overlay h1 {
    font-size: 1.8em;
  }

  .overlay p {
    font-size: 0.95em;
  }
}