/* Hero section styling */
.hero4 {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  background-size: 200% 200%;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
  animation: gradientBackground 15s ease infinite;
}

/* Option 1: Remove the before element completely by deleting the hero4::before block */

/* Option 2: Modify it to be more subtle and full-width */
.hero4::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 8s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Welcome section styling */
.welcome2 h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff, #a8e6cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.welcome2::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    45deg,
    rgba(76, 175, 80, 0.3),
    rgba(0, 51, 102, 0.3),
    rgba(76, 175, 80, 0.3)
  );
  filter: blur(15px);
  border-radius: 20px;
  z-index: 1;
  animation: gradientMove 8s ease-in-out infinite;
}

/* Container styling */
.containera {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
  background: white;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.containera:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 40px rgba(0, 51, 102, 0.15);
}

/* Text styling */
.text-justify {
  text-align: justify;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

/* All animations */
@keyframes gradientBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientShift {
  0% {
    transform: translateX(-50%);
    opacity: 0.5;
  }

  50% {
    transform: translateX(0);
    opacity: 0.8;
  }

  100% {
    transform: translateX(50%);
    opacity: 0.5;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
    opacity: 0.6;
  }

  50% {
    background-position: 100% 50%;
    opacity: 0.9;
  }

  100% {
    background-position: 0% 50%;
    opacity: 0.6;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .containera {
    padding: 20px;
    margin: 20px;
  }

  .text-justify.fs-3 {
    font-size: 1.2rem !important;
  }

  ul-a li-a {
    padding-left: 1.5rem;
  }

  .welcome2 h1 {
    font-size: 2.5rem;
  }
}

/* ===========================
   Code of Honor Section
=========================== */
section.code-of-honor {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 153, 0.05),
    rgba(0, 153, 102, 0.08)
  );
  padding: 60px 20px;
  border-radius: 16px;
  max-width: 900px;
  margin: 50px auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Section Heading */
section.code-of-honor h1 {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* List Container */
.honor-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Honor Item */
.honor-item {
  background: #ffffff;
  padding: 20px 25px;
  border-left: 5px solid var(--primary-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.honor-item:hover {
  border-left-color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Heading inside item */
.honor-item h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Paragraph inside item */
.honor-item p {
  font-size: 1.125rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section.code-of-honor h1 {
    font-size: 2rem;
  }
  .honor-item h2 {
    font-size: 1.3rem;
  }
  .honor-item p {
    font-size: 1rem;
  }
}
