/* ===== Airbus & Company Pages ===== */

.airbus-content {
  padding: 20px;
  margin-top: 80px;
  color: #333;
}

/* Company Section */
.company-section {
  text-align: center;
  margin-bottom: 40px;
}

.company-collage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.company-collage img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Family Sections */
.families {
  margin: 40px 0;
}

.family {
  margin: 3rem auto;
  max-width: 900px;
  text-align: center;
}

.family h3 {
  color: #004aad;
  margin-bottom: 15px;
  text-align: left;
  font-size: 1.6rem;
  border-left: 4px solid #004aad;
  padding-left: 10px;
}

/* ===== Horizontal Family Slideshows with Controls ===== */
.family-slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.slide-track {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== Manual Control Buttons ===== */
.family-slideshow .prev,
.family-slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s;
  z-index: 2;
}

.family-slideshow .prev:hover,
.family-slideshow .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.family-slideshow .prev {
  left: 10px;
}

.family-slideshow .next {
  right: 10px;
}

/* ===== Paragraph Styling (Aligned with Slideshow) ===== */
.family p {
  text-align: justify;
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.8; /* better readability */
  font-size: 1rem;
  color: #333;
  padding: 0 10px;
}

/* ===== Summary Table ===== */
.summary {
  background-color: #f4f6f8;
  padding: 40px 20px;
  border-radius: 8px;
  text-align: center;
}

.summary h2 {
  color: #004aad;
  margin-bottom: 20px;
}

.summary table {
  width: 90%;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary th,
.summary td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.summary th {
  background-color: #004aad;
  color: #fff;
}

.summary tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .company-collage img {
    width: 45%;
  }

  .family-slideshow {
    max-width: 100%;
    height: auto;
  }

  .slide img {
    height: auto;
  }

  .summary table {
    width: 100%;
  }
}
