/* Reset some browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

h2 {
  font-weight: 600;
  color: #204051;
}

/* Logo Styling */
.logo {
  float: left;
  margin-left: 30px;
}

.logo img {
  height: 50px; /* Adjust based on your logo size */
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1); /* Slight hover effect for logo */
}

/* Navbar Styling */
header {
  background-color: #204051;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  flex-grow: 1;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  z-index: 10; /* Ensure nav stays on top */
  margin-right: 30px; /* Add space to the right */
}

nav ul li {
  margin: 0 20px;
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
}

nav ul li a:hover {
  background-color: #85c1e9;
  color: #fff;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1f1e1edd;
  border-radius: 5px;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  padding: 10px;
  display: block;
  white-space: nowrap;
}

nav ul li ul li a:hover {
  background-color: #85c1e9;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
  }

  .logo {
    margin-left: 0;
    margin-bottom: 10px;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* Header Section with Parallax Effect */
.foundation-header {
  background-image: url("images/foundation-header.png");
  height: 80vh;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.foundation-header .overlay {
  background: rgba(0, 0, 0, 0.155);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.foundation-header .header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.foundation-header h1 {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Content Section */
main {
  padding: 2rem;
  background-color: #f4f4f4;
}

.text-block {
  margin-bottom: 0px;
  margin: 50px;
}

.text-block p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 20px 0;
}

.text-block img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.img-left {
  float: left;
  margin-right: 20px;
}

.img-right {
  float: right;
  margin-left: 20px;
}

/* Clear Floats */
.text-block::after {
  content: "";
  display: table;
  clear: both;
}

/* Back to Top Button */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #204051;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

#backToTopBtn:hover {
  background-color: #85c1e9;
}

/* CTA Section */
.cta-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #3b6978;
  color: #fff;
}

.cta-section .cta-button {
  background-color: #204051;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-section .cta-button:hover {
  background-color: #85c1e9;
}

/* Footer */
footer {
  background-color: #204051;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  height: 60px;
}
