/* General Styles */
* {
  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;
  }
}

/* Basic styling for the container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header styling */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #204051;
}

/* Section styling for each stage */
.stage {
  display: flex;
  align-items: stretch; /* Ensures both image and content have the same height */
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.stage:hover {
  transform: translateY(-5px);
}

/* Image styling */
.stage img {
  width: 40%;
  height: 100%; /* Ensures the image fills the height of the container */
  object-fit: cover; /* Makes sure the image is scaled correctly without distortion */
}

/* Content styling */
.content {
  padding: 20px;
  background-color: #f4f4f4;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers the text vertically */
}

.content h2 {
  font-size: 1.9rem;
  color: #2d6187;
  margin-bottom: 10px;
  margin-left: 20px;
}

.content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin: 30px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .stage {
    flex-direction: column;
  }

  .stage img,
  .content {
    width: 100%;
    height: auto; /* Auto height for stacked layout on smaller screens */
  }
}

/* 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;
}
