/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


/* Spacing Div */
.space1 {
  background-color: rgb(247, 244, 244);
  height: 150px;
}

/* Principle Section */
.principle-section {
  position: relative;
  width: 100%;
  height: 400px;
  margin-top: -30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Adding Dark Overlay to Whole Section */
.principle-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark Transparent Overlay */
  z-index: 1;
}

.principle-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Keyframe Animation for Text */
@keyframes slideUp {
  from {
    transform: translate(-50%, 50px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Centering the Text */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50px); /* Start slightly lower */
  text-align: center;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  width: 90%;
  max-width: 1100px;
  z-index: 2;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease-out, transform 1s ease-out;
}

/* Apply Animation Class */
.text-overlay.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.text-overlay hr {
  width: 50%;
  margin: 1rem auto;
  border: 1px solid #ccc;
}

.text-overlay h2 {
  font-size: 1.8rem;
  margin: 10px 0;
  font-weight: bold;
  color: #f49d1a;
}

.text-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-style: italic;
}

.text-overlay p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .principle-section {
    height: 300px;
  }

  .text-overlay {
    width: 90%;
    padding: 1rem;
  }

  .text-overlay p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .principle-section {
    height: 250px;
  }

  .text-overlay {
    width: 90%;
    padding: 0.8rem;
  }

  .text-overlay h2 {
    font-size: 1rem;
  }

  .text-overlay p {
    font-size: 0.7rem;
  }
}
