/* History Main Intro Section */
.history-intro {
  margin-top: 3rem;
  padding: 80px 0;
  background-color: #2a323a;
  text-align: center;
}

.history-intro .japan-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 500px;
  height: 600px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.history-intro .brazil-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 500px;
  height: 600px;
  object-fit: cover;
  object-position: 65%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.history-intro .container {
  flex-direction: column;
  align-items: center;

  }

.history-intro h2 {
  font-size: 2.5rem;
  color: #f8f9fa;
  margin-bottom: 30px;
  font-weight: bold;
}

.history-intro .intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f8f9fa;
  margin-bottom: 25px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.history-intro .intro-text strong {
  color: #f8f9fa;
  font-weight: 700;
}

/* History Container - shared styles for all sections */
.history-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.history-container .content-image {
  flex: 1;
  text-align: center;
}

.history-container .content-image img {
  width: 100%;
  max-width: 1000px;
  min-height: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.history-container .content-text {
  flex: 1;
}

.history-container h2 {
  font-size: 2.2rem;
  color: #f8f9fa;
  margin-bottom: 25px;
  font-weight: bold;
}

.history-container p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f8f9fa;
  margin-bottom: 20px;
}

.history-container p strong {
  color: #f8f9fa;
  font-weight: 700;
}

/* History Origins Section */
.history-origins {
  padding: 100px 0;
  background-color: #343a40;
}

/* History Brazil Section */
.history-brazil {
  padding: 100px 0;
  background-color: #2a323a;
}

.history-brazil .history-container {
  flex-direction: row;
}

/* History Evolution Section */
.history-evolution {
  padding: 100px 0;
  background-color: #343a40;
}

/* History Modern Section */
.history-modern {
  padding: 100px 0;
  background-color: #2a323a;
}

.history-modern .history-container {
  flex-direction: row;
}

/* CTA Section */
.cta-section {
  margin: 30px 0;
}

.cta-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #c0392b;
}

/* Responsive Design for History Page */
@media (max-width: 768px) {
  .history-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .history-brazil .history-container,
  .history-modern .history-container {
    flex-direction: column;
  }
  
  .history-intro h2 {
    font-size: 2rem;
  }
  
  .history-container h2 {
    font-size: 1.8rem;
  }
  
  .history-intro .intro-text,
  .history-container p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .history-intro h2 {
    font-size: 1.7rem;
  }
  
  .history-container h2 {
    font-size: 1.5rem;
  }
  .history-intro,
  .history-origins,
  .history-brazil,
  .history-evolution,
  .history-modern {
    padding: 60px 0;
  }
  
  .history-container {
    padding: 0 15px;
  }
}