/* Our History Section */
.history-section {
  background-color: rgba(0, 43, 91, 0.4);
  padding: 80px 20px;
  border-radius: 16px;
  margin-bottom: 40px;

  /* start hidden for scroll-in */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

.history-section h2 {
  font-size: 2.4rem;
  text-align: center;
  color: #00d4ff;
  margin-bottom: 1.5rem;
}

/* Image styling for History & Mission – full width within container with glowing effect */
.history-section .history-image,
.mission-section .mission-image {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  margin-bottom: 20px;

  /* Glowing shadow effect (softened) */
  box-shadow: 
    0 0 25px 10px rgba(0, 217, 255, 0.3),
    0 0 50px 20px rgba(0, 217, 255, 0.2),
    0 0 75px 30px rgba(0, 217, 255, 0.1);
}

/* Text block below History & Mission images */
.history-text,
.mission-text {
  background-color: rgba(0, 64, 128, 0.3);
  padding: 20px 25px;
  border-radius: 12px;
  color: #dff6ff;
  line-height: 1.7;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.08);
  backdrop-filter: blur(4px);
  margin-top: 10px;
  width: 100%;
  max-width: 800px;
  text-align: left;
  transition: all 0.3s ease;
}

/* Optional hover effect */
.history-text:hover,
.mission-text:hover {
  background-color: rgba(0, 64, 128, 0.4);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.12);
}

/* Optional slight gutter so text isn’t flush to edges */
.history-section .container,
.mission-section .container {
  padding: 0 10px;
}

/* Timeline content */
.history-section .timeline {
  max-width: 800px;
  margin: 0 auto;
}

.history-section .timeline p {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid #00d4ff;
  color: #dff6ff;
  line-height: 1.7;
}

/* Fade-in keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SIDE-BY-SIDE WRAPPER FOR HISTORY + MISSION ─── */
.mission-history-wrapper {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.history-section,
.mission-section {
  flex: 1;
  min-width: 280px;
}

.history-section .container,
.mission-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .history-section {
    padding: 50px 15px;
    margin-bottom: 30px;
  }

  .history-section h2 {
    font-size: 2rem;
  }

  .history-section .timeline p {
    font-size: 1rem;
  }

  .mission-history-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .history-text,
  .mission-text {
    font-size: 1rem;
    padding: 16px 18px;
  }
}
