.history-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.history-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
}

.history-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.history-text {
  flex: 1;
}

.history-text h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #000;
}

.history-text .highlight {
  color: #f47421;
  font-weight: bold;
}

.history-text p {
  font-size: 1rem;
  text-align: justify;
  word-wrap: break-word;     /* Breaks long words if needed */
  overflow-wrap: break-word; /* Modern version of word-wrap */
  hyphens: auto;             /* Optional: adds hyphens for better breaks */
  margin-bottom: 16px;
}

/* === History Section Layout === */
.history-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 2rem 1rem;
  background-color: #fdfdfd;
  max-width: 1200px;
  margin: auto;
}

/* Image Styling */
.history-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Text Styling */
.history-text {
  max-width: 700px;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  padding: 0 1rem;
}

/* Responsive: Side by Side on Larger Screens */
@media (min-width: 768px) {
  .history-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .history-image,
  .history-text {
    flex: 1;
  }

  .history-text {
    padding-left: 2rem;
  }
}


/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section Styling */
.about_section {
  padding: 20px 0;
}

.detail-box {
  display: flex;
  flex-direction: column; /* Stack elements vertically by default */
  gap: 20px; /* Space between elements */
}

.history-container {
  display: flex;
  flex-direction: column; /* Stack elements vertically by default */
}

.history-image img {
  width: 100%; /* Ensure the image scales with its container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px;
}

.history-text p {
  text-align: justify;
  margin-bottom: 15px;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .history-container {
    flex-direction: row; /* Place image and text side by side on larger screens */
  }

  .history-image,
  .history-text {
    flex: 1; /* Allow equal space for image and text */
  }
}

@media (max-width: 768px) {
  .history-container {
    flex-direction: column; /* Stack elements vertically on smaller screens */
  }

  .history-image img {
    max-width: 100%; /* Ensure the image doesn't overflow */
  }

  .history-text p {
    font-size: 1rem; /* Reduce font size for better readability on smaller screens */
  }
}

@media (max-width: 576px) {
  .container {
    padding: 10px; /* Reduce padding on very small screens */
  }

  .history-text p {
    line-height: 1.5; /* Tighter line height for smaller screens */
    font-size: 0.9rem; /* Further reduce font size for very small screens */
  }

  .history-image img {
    width: 100%; /* Ensure the image scales properly */
    height: auto;
  }
}
