/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  box-sizing: border-box;
}

h1,
h2,
h3 {
  margin: 0;
  padding: 0;
}

h2 {
  font-weight: 600;
  color: #204051;
}

/* box */
.box {
  background-color: #204051;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

/* 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 */
.foundress-header {
  background: url("images/foundress-bg.png") no-repeat center center/cover;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  transition: transform 0.5s;
}

.foundress-header:hover {
  transform: scale(1.05);
}

.foundress-header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.foundress-header .header-content {
  position: relative;
  z-index: 2;
}

.foundress-header h1 {
  font-size: 4em;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease-in;
}

.foundress-header p {
  font-size: 1.5em;
  margin-top: 10px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease-in 0.5s;
}

/* Quote section */
.foundress-quote {
  background-color: #f9f9f9;
  padding: 50px 0;
  text-align: center;
  font-style: italic;
  transition: background-color 0.3s;
}

.foundress-quote:hover {
  background-color: #e9e9e9;
}

.foundress-quote blockquote {
  font-size: 1.5em;
  color: #666;
  margin: 0 auto;
  max-width: 800px;
  line-height: 1.8;
}

.foundress-quote footer {
  margin-top: 20px;
  font-size: 1em;
  color: #fff; /* Adjusted color for better contrast */
  font-style: normal; /* Normal style to differentiate it from the quote */
}

/* Biography section */
.foundress-biography {
  padding: 50px 0;
  background-color: #fff;
  text-align: center;
}

.foundress-biography h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.bio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.bio-image {
  flex: 1;
  padding: 20px;
  transition: transform 0.3s;
}

.bio-image:hover {
  transform: scale(1.05);
}

.bio-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bio-text {
  flex: 2;
  padding: 20px;
}

.bio-text p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  margin-right: 50px;
}

/*************************************************************/
/* General Timeline Styles */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Styling each timeline container */
.timeline .container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  transition: transform 0.3s, background-color 0.3s;
}

.timeline .container:hover {
  transform: translateY(-10px);
  background-color: rgba(236, 204, 66, 0.1);
}

/* Positioning left and right containers */
.timeline .container.left {
  left: 0;
}

.timeline .container.right {
  left: 50%;
}

/* Style for each timeline content box */
.timeline .time-content {
  padding: 20px;
  background-color: #f4f9f9;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: "Open Sans", sans-serif;
}

/* Style for the timeline central line */
.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background: rgb(236, 204, 66); /* Cleaner, solid dark color */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px; /* To keep the line centered */
}

/* Adding a round circle for each event */
.timeline .container::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: -5px;
  left: 50%;
  background-color: midnightblue; /* Dark color for contrast */
  border: 4px solid rgb(236, 204, 66); /* White border for a clean look */
  border-radius: 80%;
  z-index: 1;
  transform: translateX(-50%);
}

/* Styling text alignment based on side */
.timeline .container.left .time-content {
  text-align: right;
}

.timeline .container.right .time-content {
  text-align: left;
}

/* Connecting the containers with the central line */
.timeline .container.left::after {
  left: 100%;
  transform: none;
}

.timeline .container.right::after {
  left: 0;
  transform: none;
}

/* Responsive timeline styling for smaller screens */
@media screen and (max-width: 768px) {
  .timeline .container {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  .timeline .container.left,
  .timeline .container.right {
    left: 0;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline .container::before {
    left: 50%;
  }

  .timeline .container.left .time-content,
  .timeline .container.right .time-content {
    text-align: left;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation for timeline items */
@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.timeline .time-content {
  opacity: 0; /* Start hidden */
  animation: slideIn 0.5s forwards; /* Animate in */
  animation-delay: 0.2s; /* Delay for staggered effect */
}

/* Set a class for visible items */
.timeline .visible .time-content {
  opacity: 1; /* Show item when visible */
}

/* 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;
}
