body {
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0;
}

.main-container {
  display: flex;
  width: 70%;
  margin: auto;
  justify-content: space-between;
}

.blog-heading {
  padding-top: 30px;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2C3E50;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.1);
  border-bottom: 3px solid #f5a335;
  padding-bottom: 10px;
  transition: all 0.3s ease;
  width: 70%;
  margin: auto;
}

/* Hover effect */
.blog-heading:hover {
  color: #f5a335; /* Matching with your timeline color */
  border-bottom: 3px solid #2C3E50; /* Dark Blue Color */
}

@media (max-width: 768px) {
  .blog-heading {
    font-size: 2rem;
  }
}

.container {
  max-width: 960px;
  margin: auto;
}

.timeline {
  flex: 1.2; 
  position: relative;
}

.jotform-container {
  flex: 1;
  position: sticky;
  top: 24%;
  display: flex;
  height: fit-content;
  align-items: flex-start;
  justify-content: center;
}

.jotform-inner {
  width: 100%;
}

/* Specify iFrame dimensions */
iframe#become-hero-form {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 10px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  width: 3px;
  height: 100%;
  background: #f5a335;
  margin-left: -1.5px;
}

.timeline {
  flex: 1.4;
}

.timeline-item {
  width: 60%;
  margin: 40px 0;
  position: relative;
}

.timeline-img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #f5a335;
  border-radius: 50%;
  margin-left: -6px;
  margin-top: -6px;
}

.timeline-content {
  padding: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-content .date {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 14px;
  color: #fff;
  background: #f5a335;
  padding: 4px 8px;
  border-radius: 3px;
}

.timeline-content img {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Professional Text Styles */
.timeline-content h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  margin: 20px;
}

.timeline-content p.tagline {
  font-size: 18px;
  font-weight: 400;
  color: #555;
  margin: 10px 20px;
  font-style: italic;
}

.timeline-content .excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 10px 20px;
}

.timeline-content p {
  margin: 0;
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #333;
}

.timeline-content .excerpt a {
  text-decoration: none;
  color: #007bff;
}

/* Responsiveness */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }

  .timeline {
    flex: 1;
    width: 100%;
  }

  .jotform-container {
    width: 100%;
    height: auto;
    position: relative;
    top: auto;
  }

  .jotform-inner {
    width: 100%;
    margin-right: 0;
  }

  .timeline-item {
    width: 100%;
    margin: 40px auto;
  }

  .timeline:before {
    left: 50%;
  }

  .timeline-content img {
    max-height: 200px;
  }
  
}

