/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; scroll-behavior: smooth; }

/* Hero Image Section */
.hero-image {
  background: url('/images/GERDImage17.webp') no-repeat center center;
  background-size: cover;
  height: 200px;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  color: rgb(242, 243, 246);
}

/*style the motto text*/
#motto { /* semi-transparent background */
  color: #f8fafc;
  padding: 2px 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  font-family: serif, 'Times New Roman', Times;
}


/* Top Navbar */
.topnav {
    position: fixed;
    top: 0px;
    width: 100%;
    background-image: #fef200;
    color: #004080;
    display: flex;
    justify-content: center;
    gap: 20px;

}

.topnav a {
    color: #f4f4f9;
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    padding-top: 30px;
    align-content: center;
}
.topnav a:hover { background-color: #0defff; border-radius: 5px; }

/* Dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropbtn {
  font-size: large;
  font-weight: bold;
  border: none;
  outline: none;
  color: white;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  padding-top: 30px;
  cursor: pointer;
}

.dropbtn:hover { background-color: #0defff; border-radius: 5px; }

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0775b0;
  min-width: 180px;
  z-index: 1;
}

/* Dropdown links */
.dropdown-content a {
  float: none;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size:small;
}

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

/* Hover effects */
.dropdown-content a:hover {
  background-color: #a19f9f;
}


/* Side Navbar */
.sidenav {
    position: fixed;
    top: 0px;
    left: 0;
    width: 150px;
    height: 100%;
    background-color: #0775b0;
    padding-top: 60px; /* Adjusted to avoid overlap with topnav */
    transition: transform 0.3s ease;
}
.sidenav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
}
.sidenav a:hover { background-color: #02f26a; border-radius: 5px; }
.sidenav a.active {  border-radius: 5px; }

/* Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #f1f2f4;
    z-index: 1100;
}

/* Main content */
.main {
    margin-left: 220px;
    padding: 0px 20px 20px 20px;
}

section {
    padding: 20px 0;
    border-bottom: 1px solid #eee9e9;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2, h3 { margin-bottom: 1rem; color: #004080; }

/* Slideshow */
.slideshow-container {
    max-width: 600px;
    position: relative;
    margin: auto;
    height: 300px;
}
.slides {
    display: none;
    width: 100%;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s;
    position: absolute;
    left: 0;
    top: 0;
}
.slides.active { display: block; opacity: 1; }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 12px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}
.next { right: 0; }

/* Dots */
.dots {
    text-align: center;
    padding: 10px 0;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}
.dot.active { background-color: #004080; }


#footer-content {
    text-align: center;
    padding: 10px;
    background-color: #0775b0;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 20px;
}

/* display the footer-contens ul in grid /column horizontally*/
#footer-content ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
    padding: 20px 20px 20px 20px;
}


/* Responsive */
@media screen and (max-width: 768px) {
    .sidenav { transform: translateX(-220px); }
    .sidenav.active { transform: translateX(0); }
    .main { margin-left: 0; padding-top: 100px; }
    .hamburger { display: block; }
}
