* {
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(rgba(18, 35, 72, 0.7), rgba(18, 35, 72, 0.9)),
    url('../../res/img/backgrounds/tradbg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-top: -25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}


#trad_title {
  font-family: 'Bree Serif', serif;
  letter-spacing: 5px;
  line-height: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

#trad_title,
#trad_paragraph {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards 0.5s;
}

.head h1 {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 5px;
  font-size: 4.5rem;
}

.head {
  display: block;
}

.head img {
  width: 80%;
  object-fit: contain;
  margin-top: 20px;
}

hr {
  background-color: #cda757;
  opacity: 100%;
  border: none;
  height: 4px;
  width: 100%;
  border-radius: 6px;
}

#trad_paragraph {
  font-size: 25px;
  font-family: 'Titillium Web', sans-serif;
  letter-spacing: 1px;
  line-height: 1.3;
  padding: 10px;
  width: 80%;
  max-width: 1400px;
  text-align: justify;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.smaller-p {
  font-size: 15px;
}

.cadet_button_trad {
  display: flex;
  justify-content: center;
  padding: 50px;
  gap: 20px;
  margin-bottom: 30px;
  text-align: center;
  align-items: center;
}

.cadet_btn_trad {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  padding: 10px 10px;
  text-decoration: none;
  color: #122348;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  height: 100px;
  width: 200px;
}

.cadet_btn_trad img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.3;
  z-index: 0;
}

.cadet_btn_trad:hover {
  color: #cda757 !important;
  cursor: pointer !important;
  transform: scale(1.05) !important;
}

#trad1,
#trad3,
#trad5,
#trad7 {
  margin: 0 auto;
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  scroll-margin-top: 145px;
  align-items: center;
  justify-content: center;
}

#trad2,
#trad4,
#trad6,
#trad8 {
  margin: 0 auto;
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-direction: row-reverse;
  scroll-margin-top: 145px;
  align-items: center;
  justify-content: center;
}

#trad1,
#trad2,
#trad3,
#trad4,
#trad5,
#trad6,
#trad7,
#trad8 {
  opacity: 0;
  transform: translateY(50px);
  animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trad_t {
  flex: 1;
  text-align: left;
  max-width: 50%;
  text-align: center;
  align-items: center;
}

.trad_t h2 {
  font-size: 80px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1;
  text-align: center;
}

.trad_t hr {
  width: 400px;
  height: 4px;
  background-color: #cda757;
  border: none;
  margin: 0;
  border-radius: 6px;
  margin: 5px auto 0 auto
}

.trad_p {
  flex: 2;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 3px;
  color: #122348;
  width: 100%;
  border-bottom: 5px solid #cda757;
}

.trad_p:hover {
  transform: translateY(-7px);
  box-shadow: 0px 10px 20px rgba(205, 168, 87, 0.8);
}

.trad_p p {
  font-size: 20px;
}

/* Staggered Animation Delays */
#trad1 {
  animation-delay: 0.3s;
}

#trad2 {
  animation-delay: 0.6s;
}

#trad3 {
  animation-delay: 0.9s;
}

#trad4 {
  animation-delay: 1.2s;
}

#trad5 {
  animation-delay: 1.5s;
}

#trad6 {
  animation-delay: 1.8s;
}

#trad7 {
  animation-delay: 2.1s;
}

#trad8 {
  animation-delay: 2.4s;
}


/* Buttons Fade-In and Scale Effect */
.cadet_btn_trad {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeScale 0.8s ease-out forwards 1s;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 1200px) {
  .trad_t h2 {
    font-size: 3.3rem;
  }
}

@media screen and (max-width: 1024px),
(max-width: 768px),
(max-width: 480px) {
  .head h1 {
    padding-top: 20px;
    padding-bottom: 5px;
    font-size: 2.5rem;
  }

  .head {
    display: block;
  }

  hr {
    width: 80%;
    margin: 0 auto;
  }

  #trad_paragraph {
    font-size: 1rem;
  }

  .cadet_button_trad {
    flex-direction: column;
    padding: 20px;
  }

  #trad1,
  #trad3,
  #trad5,
  #trad7 {
    padding: 20px;
    display: block;
  }

  #trad2,
  #trad4,
  #trad6,
  #trad8 {
    padding: 20px;
    display: block;
  }

  .trad_t {
    max-width: 100%;
  }

  .trad_t h2 {
    font-size: 2.2rem;
  }

  .trad_t hr {
    width: 80%;
    margin: 0 auto;
  }

  .trad_p p {
    text-align: justify;
    font-size: 1rem;
  }
}