/* style/news-company-milestones.css */
.page-news-company-milestones__hero {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-news-company-milestones__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-news-company-milestones__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* High contrast */
}

.page-news-company-milestones__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  color: #e0efff; /* Lighter shade for contrast on dark blue */
}

.page-news-company-milestones__hero-cta {
  display: inline-block;
  background-color: #ffc107; /* Auxiliary color */
  color: #003f8e; /* Dark blue for high contrast on yellow */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news-company-milestones__hero-cta:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-news-company-milestones__intro-section {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.page-news-company-milestones__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333; /* Dark text on light background */
}

.page-news-company-milestones__section-title {
  font-size: 2.8em;
  color: #007bff;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-news-company-milestones__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ffc107;
  border-radius: 2px;
}

.page-news-company-milestones__timeline-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-news-company-milestones__timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-news-company-milestones__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #e9ecef;
  transform: translateX(-50%);
}

.page-news-company-milestones__milestone {
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
  position: relative;
}

.page-news-company-milestones__milestone:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-news-company-milestones__milestone:nth-child(even) .page-news-company-milestones__milestone-content {
  text-align: right;
}

.page-news-company-milestones__milestone-year {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100px;
  line-height: 100px;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 50%;
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px #ffffff;
  border: 4px solid #ffc107;
}

.page-news-company-milestones__milestone-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-news-company-milestones__milestone-content {
  width: 45%;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news-company-milestones__milestone-content p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-news-company-milestones__milestone-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-news-company-milestones__milestone:nth-child(odd) .page-news-company-milestones__milestone-content {
  margin-right: 55%;
}

.page-news-company-milestones__milestone:nth-child(even) .page-news-company-milestones__milestone-content {
  margin-left: 55%;
}

/* Adjust year position for visual balance */
.page-news-company-milestones__milestone:nth-child(odd) .page-news-company-milestones__milestone-year {
  left: calc(50% - 50px);
}

.page-news-company-milestones__milestone:nth-child(even) .page-news-company-milestones__milestone-year {
  left: calc(50% - 50px);
}

.page-news-company-milestones__cta-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-news-company-milestones__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news-company-milestones__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0efff;
}

.page-news-company-milestones__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news-company-milestones__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.page-news-company-milestones__button--primary {
  background-color: #ffc107;
  color: #003f8e; /* Dark blue for contrast */
  border-color: #ffc107;
}

.page-news-company-milestones__button--primary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

.page-news-company-milestones__button--secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-news-company-milestones__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: #ffc107;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news-company-milestones__hero-title {
    font-size: 2.8em;
  }
  .page-news-company-milestones__hero-subtitle {
    font-size: 1.3em;
  }
  .page-news-company-milestones__section-title {
    font-size: 2.2em;
  }
  .page-news-company-milestones__timeline::before {
    left: 20px;
    transform: translateX(0);
  }
  .page-news-company-milestones__milestone {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 60px;
  }
  .page-news-company-milestones__milestone-year {
    position: static;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 1.5em;
    margin-bottom: 20px;
    left: auto;
    transform: none;
    box-shadow: none;
    border: 4px solid #ffc107;
  }
  .page-news-company-milestones__milestone-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 100px; /* Space for the year */
    text-align: left !important;
  }
  .page-news-company-milestones__milestone:nth-child(odd) .page-news-company-milestones__milestone-year,
  .page-news-company-milestones__milestone:nth-child(even) .page-news-company-milestones__milestone-year {
    position: absolute;
    left: 0;
    top: 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .page-news-company-milestones__hero {
    padding: 80px 15px;
  }
  .page-news-company-milestones__hero-title {
    font-size: 2.2em;
  }
  .page-news-company-milestones__hero-subtitle {
    font-size: 1.1em;
  }
  .page-news-company-milestones__cta-title {
    font-size: 2em;
  }
  .page-news-company-milestones__cta-description {
    font-size: 1em;
  }
  .page-news-company-milestones__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-news-company-milestones__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .page-news-company-milestones__milestone-content {
    padding-left: 20px;
  }
  .page-news-company-milestones__milestone-year {
    left: 0;
    top: 0;
    margin-left: 20px;
  }
  .page-news-company-milestones__timeline::before {
    left: 50%; /* Center line for very small screens */
  }
  .page-news-company-milestones__milestone-year {
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    position: relative;
  }
  .page-news-company-milestones__milestone-content {
    padding: 20px;
    text-align: center !important;
    margin-top: 20px;
  }
  .page-news-company-milestones__milestone:nth-child(odd) .page-news-company-milestones__milestone-year,
  .page-news-company-milestones__milestone:nth-child(even) .page-news-company-milestones__milestone-year {
    left: 50%;
    transform: translateX(-50%);
  }
}