:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --text-color: #333;
  --white: #ffffff;
  --animation-duration: 0.8s;
}

/* Add animation keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes borderGlow {
  0% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3); }
  100% { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container2, .container3, .principal {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  animation: fadeIn var(--animation-duration) ease-out;
}

/* Mission Section */
.section.mission {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: justify;
  padding: 2rem;
  transition: all 0.3s ease;
  animation: fadeIn var(--animation-duration) ease-out;
}

.section.mission:hover {
  transform: translateY(-5px);
  animation: borderGlow 2s infinite;
}

.section-text {
  flex: 1;
  padding: 2rem;
  animation: slideInLeft var(--animation-duration) ease-out;
}

.section.mission img {
  flex: 1;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  transition: all 0.5s ease;
  animation: slideInRight var(--animation-duration) ease-out;
}

.section.mission img:hover {
  transform: scale(1.03);
}

.section-text h2 {
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.section-text h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.5s ease;
}

.section-text:hover h2::after {
  width: 100%;
}

/* Vision Section */
.vision {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: justify;
  padding: 2rem;
  transition: all 0.3s ease;
  animation: fadeIn var(--animation-duration) ease-out;
  animation-delay: 0.2s;
}

.vision:hover {
  transform: translateY(-5px);
  animation: borderGlow 2s infinite;
}

.vision img {
  flex: 1;
  width: 100%;
  max-width: 50%;
  height: 600px;
  /* object-fit: cover; */
  border-radius: 10px;
  transition: all 0.5s ease;
  animation: slideInLeft var(--animation-duration) ease-out;
}

.vision img:hover {
  transform: scale(1.03);
}

.vision .text {
  flex: 1;
  padding: 2rem;
  animation: slideInRight var(--animation-duration) ease-out;
}

.vision .text h2 {
  color: var(--primary-color);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.vision .text h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.5s ease;
}

.vision .text:hover h2::after {
  width: 100%;
}

/* Location Section */
.principal {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 1170px;
  transition: all 0.3s ease;
  animation: scaleUp var(--animation-duration) ease-out;
  animation-delay: 0.4s;
}

.principal:hover {
  transform: translateY(-5px);
  animation: borderGlow 2s infinite;
}

.titu {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.titu::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: width 0.5s ease;
}

.principal:hover .titu::after {
  width: 50%;
}

.map {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  animation: fadeIn calc(var(--animation-duration) * 1.5) ease-out;
}

.map:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 16px rgba(52, 152, 219, 0.2);
}

@media screen and (max-width: 1172px) {
  .principal {
    height: 100%;
    width: 96%;
  }
}

/* Extra Small Devices (Smartphones, < 576px) */
@media screen and (max-width: 575px) {
  :root {
    --animation-duration: 0.6s;
  }

  .container2, .container3, .principal {
    padding: 0.5rem;
    margin: 0.5rem auto;
  }

  .section.mission, .vision {
    flex-direction: column;
    padding: 1rem;
  }

  .section.mission img, 
  .vision img {
    max-width: 100%;
    height: 180px;
    order: -1;
  }

  .section-text, 
  .vision .text {
    padding: 0.5rem;
    width: 100%;
    text-align: center;
  }

  .section-text h2, 
  .vision .text h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .section-text p, 
  .vision .text p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .titu {
    font-size: 1.3rem;
    padding-bottom: 0.3rem;
  }

  .map {
    height: 400px;
    width: 100%;
  }

  .principal {
    height: 100%;
    width: 96%;
  }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .section.mission, .vision {
    flex-direction: column;
    padding: 1.5rem;
  }

  .section.mission img, .vision img {
    max-width: 100%;
    height: auto;
    order: -1;
  }

  .principal {
    height: 100%;
    width: 96%;
  }
}

@media screen and (max-width: 768px) {
  .section-text, .vision .text {
    padding: 1rem;
    text-align: center;
  }

  .titu {
    font-size: 1.5rem;
  }

  .map {
    height: 400px;
  }

  .principal {
    height: 100%;
    width: 96%;
  }
}

@media screen and (max-width: 575px) {
  .container2, .container3, .principal {
    padding: 0.5rem;
    margin: 0.5rem auto;
  }

  .section.mission, .vision {
    padding: 1rem;
  }

  .section.mission img, .vision img {
    height: 180px;
  }

  .section-text h2, .vision .text h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .section-text p, .vision .text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .titu {
    font-size: 1.3rem;
    padding-bottom: 0.3rem;
  }

  .map {
    height: 300px;
  }

  .principal {
    height: 100%;
    width: 96%;
  }
}

/* Add simple animation class that can be applied to any element */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 1s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-out;
}

.animate-scale-up {
  animation: scaleUp 1s ease-out;
}