body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  width: 100%;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  box-sizing: border-box;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  padding: 0;
  box-sizing: border-box;
}

.about-container {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  gap: 50px;
  margin: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Ensure all elements respect the container width */
* {
  box-sizing: border-box;
}

/* Header */
.about-header {
  text-align: center;
  margin-bottom: 25px;
  padding: 25px 0;
  background: #0f5132;
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.2);
}

.about-header h1 {
  margin-bottom: 0 !important;
  font-size: 2.5rem;
  font-weight: 700;
  animation: slideInDown 0.6s ease-out;
  color: white;
}

.last-updated {
  font-size: 1rem;
  opacity: 0.9;
  animation: fadeIn 0.8s ease-out;
}

/* Content */
.about-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideInUp 0.6s ease-out;
}

.about-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
}

/* Image Container */
.image-container {
  flex: 0 0 350px; /* Don't allow the image to grow or shrink, keep at 350px */
  height: 350px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Text Wrapper */
.about-text {
  flex: 1;
  padding: 40px;
  background: white;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  color: #2d5a27;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.content-wrapper h1 {
  font-size: 2rem;
  border-bottom: 3px solid #2d5a27;
  padding-bottom: 10px;
}

.content-wrapper h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.content-wrapper h3 {
  font-size: 1.3rem;
}

.content-wrapper h4 {
  font-size: 1.1rem;
}

.content-wrapper p {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  white-space: pre-line; /* Preserve line breaks within paragraphs */
}

.content-wrapper ul,
.content-wrapper ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-wrapper li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.content-wrapper ul li {
  list-style-type: disc;
}

.content-wrapper ol li {
  list-style-type: decimal;
}

.content-wrapper strong {
  color: #2d5a27;
  font-weight: 600;
}

.content-wrapper em {
  color: #666;
  font-style: italic;
}

/* Additional rich text formatting */
.content-wrapper blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid #2d5a27;
  background: #f8f9fa;
  font-style: italic;
  color: #666;
}

.content-wrapper code {
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.content-wrapper pre {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.content-wrapper a {
  color: #2d5a27;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.content-wrapper a:hover {
  color: #1a3315;
  border-bottom-color: #1a3315;
}

.image-container img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.image-container img:hover {
  transform: scale(1.02);
}

.about-actions {
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.about-actions button,
.about-actions a {
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back {
  color: black;
}

.btn-back:hover {
  color: #545b62;
  transform: translateY(-2px);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-image {
    flex-direction: column;
    text-align: center;
  }

  .about-header {
    padding: 10px 0;
  }

  .about-text {
    padding: 20px;
  }

  .about-header h1 {
    font-size: 1.5rem;
  }

  .about-image img {
    height: 250px;
  }
}

.about-box p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  font-size: 1.05rem;
}

.about-box p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  main {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }

  .about-image {
    flex: 1;
    margin-bottom: 0;
  }

  .about-content {
    flex: 2;
  }
}
