html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  position: relative;
  width: 100%;
  min-height: 65vh;
  padding-bottom: 50px;
  flex: 1;
}

.background-container {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.background-container .overlay-text {
  position: relative;
  z-index: 2;
  font-size: 3em;
  padding: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.history-section {
  width: 100%;
  margin: 0 auto;
}

.history-timeline {
  width: 100%;
  margin: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
  overflow: hidden;
}

.history-block {
  display: flex;
  width: 80%;
  padding: 30px;
  border-radius: 18px;
  align-items: center;
  gap: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.history-block.left {
  margin-right: auto;
  background-color: #ECEDEF;
  transform: translateX(-10%);
}

.history-block.left img { 
  order: 1; 
  margin-left: 250px;
}

.history-block.left .history-content { 
  order: 2; 
}

.history-block.right {
  margin-left: auto;
  background-color: #FAEAC6;
  transform: translateX(10%);
}

.history-block.right img { 
  order: 2; 
  margin-right: 250px;
}

.history-block.right .history-content { 
  order: 1; 
}

.history-block img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.history-content h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
}

.history-content p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
}

.history-final-paragraphs {
  width: 1500px;
  max-width: 100%;           
  margin: 40px auto 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;     
  margin-bottom: 3rem;
}

.history-text {
  font-size: 1.1rem;
  line-height: 1.65;
  text-align: justify;
}

@media (max-width: 768px) {

  .background-container {
    height: 60vh;
  }

  .background-container .overlay-text {
    font-size: 1.8em;
    padding: 10px;
  }

  .history-timeline {
    margin: 40px 0;
    gap: 30px;
  }

  .history-block {
    width: 95%;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: none !important;
    margin: 0 auto;
  }
  
  .history-block.left,
  .history-block.right {
    margin: 0 auto;
  }
  
  .history-block img {
    width: 70%;
    height: 70%;
    max-height: 280px;
    margin: 0 !important;
    order: 1 !important;
  }
  
  .history-content {
    order: 2 !important;
    text-align: center;
  }
  
  .history-content h3 {
    font-size: 1.25rem;
  }
  
  .history-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .history-final-paragraphs {
    width: 100%;
    margin: 20px auto;
    padding: 0 1rem;
  }
  
  .history-text {
    font-size: 1rem;
    text-align: justify;
  }
}
     