hr {
  border: none;
  border-top: 2px solid #888;
  margin: 0;
  width: 100%;
}

ul {
  font-family: 'Arimo', sans-serif;
  font-size: 20px;
}

/* About Section */
.about-hero {
  padding: 40px 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50,0 61,35 98,35 68,57 79,91 50,70 21,91 32,57 2,35 39,35" fill="none" stroke="#b5651d" stroke-width="2"/></svg>') repeat;
  background-color: #eceada;
  border: 3px solid #b5651d;
  border-radius: 15px;
  max-width: 1400px;
  box-sizing: border-box;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  transition: box-shadow 0.3s ease;
}

.about-hero:hover {
  box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
}

.about-hero h1 {
  font-size: 54px;
  font-family: 'TT Background', serif;
  color: #3a2f2d;
  border-bottom: 2px solid #b5651d;
  display: inline-block;
  margin: 0 auto 20px;
  text-align: center;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.5s forwards;
  transition: color 0.3s ease;
}

.about-hero h1:hover {
  color: #b5651d;
}

.about-hero p {
  font-size: 20px;
  color: #4a3c31;
  margin: 0 auto 30px;
  max-width: 800px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.7s forwards;
  transition: color 0.3s ease;
}

.about-hero p:hover {
  color: #b5651d;
}

/* History Section */
.history-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.9s forwards;
}

.history-text {
  flex: 1;
  min-width: 300px;
}

.history-text h2 {
  font-size: 36px;
  font-family: 'TT Commons Pro', sans-serif;
  color: #3a2f2d;
  margin: 0 0 20px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.history-text h2:hover {
  color: #b5651d;
}

.history-text p {
  font-size: 18px;
  color: #3a2f2d;
  line-height: 1.5;
  text-align: justify;
  margin: 0;
  transition: color 0.3s ease;
}

.history-text p:hover {
  color: #b5651d;
}

.history-image {
  flex: 0 0 350px;
  max-width: 100%;
}

.history-image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 1s ease-out 1.1s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
}

/* Team Section */
.team-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.team-section h2 {
  font-size: 36px;
  font-family: 'TT Background', serif;
  color: #3a2f2d;
  /* border-bottom: 2px solid #b5651d; */
  border-style: ridge;
  text-align: center;
  display: inline-block;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.3s forwards;
  transition: color 0.3s ease;
}

.team-section h2:hover {
  color: #b5651d;
}

.team-section p {
  font-size: 18px;
  color: #3a2f2d;
  margin-bottom: 20px;
}

.team-grid {
  display: flex;
  justify-content: center;
  /* gap: 30px;  */
  flex-wrap: wrap;
}

.team-member {
  width: 300px;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 1s ease-out forwards;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:nth-child(1) { animation-delay: 1.5s; }
.team-member:nth-child(2) { animation-delay: 1.7s; }
.team-member:nth-child(3) { animation-delay: 1.9s; }
.team-member:nth-child(4) { animation-delay: 2.1s; }

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
}

.team-member img {
  width: 150px;
  height: 150px;
  /* border-radius: 50%; */
  margin-bottom: 15px;
  border: 3px solid #b5651d;
  /* transition: transform 0.5s ease, box-shadow 0.3s ease; */
}

.team-member:hover img {
  transform: rotate(360deg);
  box-shadow: 0 0 10px rgba(181, 101, 29, 0.5);
}

.team-member h3 {
  font-size: 24px;
  font-family: 'TT Commons Pro', sans-serif;
  color: #735e59;
  margin: 0 0 10px;
  transition: color 0.3s ease;
}

.team-member h3:hover {
  color: #b5651d;
}

.team-member p {
  font-size: 16px;
  color: #3a2f2d;
  margin: 0 0 5px;
  transition: color 0.3s ease;
}

.team-member p:hover {
  color: #b5651d;
}

/* View More Button */
.view-more-btn {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #b5651d;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'TT Commons Pro', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more-btn:hover {
  background-color: #3a2f2d;
  transform: translateY(-2px);
}

/* Dialog Box */
.dialog-box {
  border-radius: 10px;
  border: 2px solid #b5651d;
  background-color: #eceada;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
}

.dialog-content {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: start;
}

.dialog-img {
  width: 150px;
  height: 150px;
  /* border-radius: 50%; */
  border: 3px solid #b5651d;
}

.dialog-text {
  text-align: left;
}

.dialog-text h4 {
  font-size: 20px;
  font-family: 'TT Commons Pro', sans-serif;
  color: #735e59;
  margin-bottom: 10px;
  border-bottom: 2px solid #b5651d;
  display: inline-block;
}

.dialog-text p {
  font-size: 16px;
  color: #3a2f2d;
  margin-bottom: 10px;
}

.dialog-text ul {
  font-size: 16px;
  color: #3a2f2d;
  line-height: 1.5;
  margin-bottom: 15px;
  padding-left: 20px;
}

.dialog-text li {
  margin-bottom: 8px;
}

.close-btn {
  padding: 10px 20px;
  background-color: #3a2f2d;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'TT Commons Pro', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  grid-column: 1 / -1;
}

.close-btn:hover {
  background-color: #b5651d;
}

/* Animation for Dialog */
dialog[open] {
  animation: fadeInUp 0.5s ease-out;
}

/* Mission Section */
.mission-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: #eceada;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.9s forwards;
  transition: box-shadow 0.3s ease;
}

.mission-section:hover {
  box-shadow: 0 0 15px rgba(181, 101, 29, 0.5);
}

.mission-section h2 {
  font-size: 36px;
  font-family: 'TT Background', serif;
  color: #3a2f2d;
  border-bottom: 2px solid #b5651d;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.mission-section h2:hover {
  color: #b5651d;
}

.mission-section p {
  font-size: 18px;
  color: #3a2f2d;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.mission-section p:hover {
  color: #b5651d;
}

/* Contact CTA Section */
.contact-cta-section {
  background-color: #f7f3e7;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 40px auto;
  border-top: 2px solid #888;
  animation: fadeInUp 1s ease-out 2.1s forwards;
  opacity: 0;
}

.contact-cta-section h2 {
  font-size: 36px;
  font-family: 'TT Background', serif;
  color: #3a2f2d;
  margin-bottom: 30px;
  text-align: center;
}

.contact-cta-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.cta-image {
  flex: 0 0 400px;
  max-width: 100%;
}

.cta-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.cta-info {
  flex: 1;
  min-width: 300px;
}

.cta-info h3 {
  font-size: 24px;
  color: #3a2f2d;
  margin-bottom: 20px;
  font-family: 'TT Commons Pro', sans-serif;
}

.cta-info p {
  font-size: 18px;
  color: #3a2f2d;
  line-height: 1.6;
  margin-bottom: 15px;
}

.cta-info p strong {
  color: #b5651d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 36px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .history-section {
    flex-direction: column;
    text-align: center;
  }

  .history-image {
    flex: 0 0 250px;
  }

  .history-text h2,
  .team-section h2,
  .mission-section h2,
  .contact-cta-section h2 {
    font-size: 28px;
  }

  .history-text p,
  .mission-section p,
  .contact-cta-section p {
    font-size: 16px;    
  }

  .team-member {
    width: 100%;
    max-width: 300px;
  }

  .dialog-box {
    width: 95%;
    padding: 15px;
  }

  .dialog-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .dialog-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
  }

  .dialog-text {
    text-align: center;
  }

  .dialog-text h4 {
    font-size: 18px;
  }

  .dialog-text p {
    font-size: 14px;
  }

  .dialog-text ul {
    font-size: 14px;
    padding-left: 0;
    list-style-position: inside;
  }

  .view-more-btn,
  .close-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .contact-cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-image {
    flex: 1 1 100%;
  }

  .cta-info {
    padding: 20px 0;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}