/* Page layout */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f3f6fb;
  color: #1d2939;
}

header {
  background: #0f3ba2;
  color: white;
  padding: 2rem 1.25rem;
  text-align: center;
}

header img {
  width: 120px;
  max-width: 100%;
  display: block;
  margin: 0 auto 1rem;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

header p {
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  color: white;
}

.timeline-section {
  padding: 2rem 0.5rem 1.5rem;
}

.timeline-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.timeline-wrapper::-webkit-scrollbar {
  height: 10px;
}

.timeline-wrapper::-webkit-scrollbar-thumb {
  background: #0f3ba2;
  border-radius: 999px;
}

.timeline-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 18px;
  border: 1px solid #dbe5f3;
  box-shadow: 0 14px 24px rgba(15, 59, 162, 0.08);
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(15, 59, 162, 0.18);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f3ba2 0%, #1a4fb8 100%);
  border-radius: 18px;
  
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.timeline-card:hover .card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card-overlay h2 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.1rem;
}

.card-overlay h3 {
  margin:  0 1rem;
  color: #e8f0ff;
  font-size: 1.15rem;
  text-align: left;
}

.card-overlay p {
  
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.timeline-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.timeline-card h2 {
  margin: 1rem 1rem 0.25rem;
  color: #0f3ba2;
  font-size: 1.1rem;
}

.timeline-card h3 {
  margin: 0 1rem 0.75rem;
  font-size: 1.15rem;
}

.timeline-card p {
  margin: 0 1rem 1.25rem;
  color: white;
  font-size: 0.95rem;
  
}

p {
  
  font-size: 0.95rem;
  color: #525f7f;
  margin: 0 1rem 2rem;
  text-align: center;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 1rem 0;
}

.column {
  background: white;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #dbe5f3;
  box-shadow: 0 12px 24px rgba(15, 59, 162, 0.08);
}

.column h2 {
  margin-top: 0;
}

.column p {
  margin: 0.75rem 0 0;
  color: #344054;
  line-height: 1.6;
}

.column a {
  display: inline-block;
  margin-top: 1rem;
  color: #0f3ba2;
  font-weight: 600;
  text-decoration: none;
}

.newsletter {
  background: white;
  max-width: 920px;
  margin: 2rem auto 3rem;
  padding: 2rem 2rem 2.5rem;
  border-radius: 18px;
  border: 1px solid #dbe5f3;
  box-shadow: 0 14px 24px rgba(15, 59, 162, 0.08);
}

.newsletter h2 {
  margin-top: 0;
  text-align: center;
}

.newsletter p {
  max-width: 720px;
  margin: 0.75rem auto 1.75rem;
  text-align: center;
  color: #525f7f;
}

.newsletter form {
  max-width: 700px;
  margin: 0 auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-field.full-width {
  width: 100%;
}

.newsletter label {
  margin-bottom: 0.35rem;
  color: #102a43;
  font-weight: 600;
}

.newsletter input,
.newsletter textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  color: #102a43;
}

.newsletter textarea {
  resize: vertical;
}

.email-row input {
  flex: 1;
}

.email-row button {
  flex: 0 0 auto;
  margin-top: 0;
}

.newsletter button {
  background: #0f3ba2;
  color: white;
  border: none;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

@media (max-width: 640px) {
  .email-row {
    flex-direction: column;
  }

  .email-row button {
    width: 100%;
  }
}

.newsletter button:hover {
  background: #0d3490;
}

@media (max-width: 640px) {
  .timeline-card {
    flex: 0 0 240px;
  }

  header {
    padding: 1.5rem 1rem;
  }

  .columns {
    grid-template-columns: 1fr;
  }
}

