/* Full height for body and html to support hero image */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #111;
  color: #f5f5f5;
  font-size: 16px;
  box-sizing: border-box;
}

/* Hero image with dark overlay */
.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/image/banner.png");
  height: 85vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Centered text over hero image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.fun-fact {
  font-size: 1rem;
}

/* Main content container */
.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 2rem;
  background-color: #222;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
  text-align: center;
  color: #f5f5f5;
}

/* Navigation bar styles */
.navbar {
  display: flex;
  justify-content: center;
  background-color: #333;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar a, .subnavbtn {
  color: white;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s ease;
}

.navbar a:hover, .subnav:hover .subnavbtn,
.navbar a:focus, .subnavbtn:focus {
  background-color: #646464;
  outline: none;
}

/* Subnav container */
.subnav {
  position: relative;
}

/* Dropdown content */
.subnav-content {
    display: none;
    position: absolute;
    background-color: #222;
    min-width: 160px;
    z-index: 1;
    padding: 0.5rem 0;
    border-radius: 4px;
}

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

/* Subnav links */
.subnav-content a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.subnav-content a:hover,
.subnav-content a:focus {
  background-color: #eee;
  color: black;
  outline: none;
}

/* Footer styles */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  font-size: 0.9rem;
  z-index: 100;
}

/* Contact list styles */
.contact ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.contact li {
  margin-bottom: 10px;
  color: #ccc;
}

.contact li::before {
  content: "•";
  color: #4fc3f7;
  margin-right: 10px;
}

.contact a {
  color: #4fc3f7;
  text-decoration: none;
}

.contact a:hover,
.contact a:focus {
  text-decoration: underline;
  outline: none;
}

/* Blockquote styling */
blockquote {
  font-style: italic;
  color: #bbb;
  border-left: 4px solid #4fc3f7;
  padding-left: 1em;
  margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    .subtitle, .fun-fact {
        font-size: 1rem;
    }
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .navbar a, .subnavbtn {
        padding: 12px 10px;
        font-size: 1.1rem;
        border-bottom: 1px solid #444;
    }
    .subnav-content a {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }
    .subtitle, .fun-fact {
        font-size: 0.9rem;
    }
    .navbar a, .subnavbtn {
        font-size: 1rem;
        padding: 10px 8px;
    }
}
