.container {
  max-width: 80vw; /* or whatever fits your design */
  margin: 0 auto;    /* centers the container */
  padding: 0 20px;   /* prevents content from touching the edges on small screens */
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    max-width: 95vw; /* more flexible on small screens */
    padding: 0 10px;   /* less padding on mobile */
  }
}

h1 {
  margin-bottom: 30px; /* space between heading and grid */
  margin-top: 30px;
  text-align: center;   /* optional: center heading */
  font-size: 2.7rem;
}

h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left; /* optional */
  font-size: 2.2rem;
}

.experiences-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  text-align: center;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
  padding-bottom: 30px;
}

/* Jump navigation */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0 50px;
  font-size: 0.95rem;
}

.jump-nav span {
  font-weight: 600;
}

.jump-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #f2f2f2;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.jump-nav a:hover {
  background-color: #222;
  color: #fff;
}


.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}


/* Image card */
.image-card {
  position: relative;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
transition: transform 0.5s ease, filter 0.5s ease;
}

/* Overlay */
.card-overlay {
  position: absolute;
  display: flex;
  align-items: flex-end; /* vertical alignment at bottom */
  justify-content: flex-start; /* horizontal alignment to left */
  padding: 10px;
  transition: background-color 0.4s ease;
}

.card-overlay h3 {
  color: white;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Hover effect */
.image-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.35); /* darkens on hover */
}

.image-card:hover img {
  transform: scale(1.05); /* zoom image */
}

/* Overlay text stays visible */
.card-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  transition: color 0.4s ease;
}


@media (max-width: 992px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/* Aviation Lists */
.aviation-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 60px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.aviation-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

/* Multi-column option */
.aviation-list.columns {
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 768px) {
  .aviation-list.columns {
    columns: 1;
  }
}

.map-container {
  width: 100%;
  height: 800px;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 20px;
}

.map-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}  

.map-container iframe {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 20px;
}

