* {
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

body {
  background-image: linear-gradient(rgba(18, 35, 72, 0.7), rgba(18, 35, 72, 0.9)),
    url('../../res/img/backgrounds/attrition_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#title_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#attrition_title {
  font-size: 30px;
  font-family: 'Bree Serif', serif;
  letter-spacing: 5px;
  line-height: 1;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
  margin-top: 30px;
  animation: fadeIn 1s ease-in-out;
}

#attrition_title h1 {
  margin: 0;
}

#hr_title hr {
  width: 600px;
  height: 4px;
  background-color: #cda757;
  border: none;
  border-radius: 6px;
  margin: 0 auto;
}

#attrition_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;
}

.cadet_button_attrition {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.cadet_btn_attrition {
  border: 3px solid white;
  border-radius: 4px;
  padding: 10px 30px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  position: relative;
  margin-bottom: 50px;
  display: inline-block;
  width: fit-content;
  transition: all 0.3s ease-in-out;
  animation: fadeIn 1s ease-in-out;
}


.cadet_btn_attrition:hover {
  border: 3px solid #cda757;
  color: #cda757;
  cursor: pointer;
  transform: scale(1.05);
}

#attrition1 {
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  scroll-margin-top: 145px;
}

#attrition1 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#attrition1.visible {
  animation: fadeIn 1s ease-out forwards;
}

#attrition2 {
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-direction: row-reverse;
  scroll-margin-top: 145px;
}

#attrition2 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#attrition2.visible {
  animation: fadeIn 1s ease-out forwards;
}


#attrition3 {
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  scroll-margin-top: 145px;
}

#attrition3 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#attrition3.visible {
  animation: fadeIn 1s ease-out forwards;
}

#attrition4 {
  position: relative;
  color: white;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-direction: row-reverse;
  scroll-margin-top: 145px;
}

#attrition4 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

#attrition4.visible {
  animation: fadeIn 1s ease-out forwards;
}

.attrition_t {
  flex: 1;
  text-align: left;
  max-width: 50%;
  text-align: center;
  animation: slideInLeft 1s ease-in-out;
}

.attrition_t h2 {
  font-size: 70px;
  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;
}

.attrition_t hr {
  width: 400px;
  height: 4px;
  background-color: #cda757;
  border: none;
  margin: 0;
  border-radius: 6px;
  margin: 5px auto 0 auto
}

.attrition_p {
  flex: 2;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 5px;
  color: #122348;
  width: 100%;
  animation: slideInRight 1s ease-in-out;
}

.attrition_p p {
  font-size: 25px;
  margin-bottom: 10px;
}

.attrition_p ul {
  padding-left: 20px;
}

.attrition_p ul li {
  font-size: 20px;
  line-height: 1.6;
}

@media screen and (max-width: 1024px) {
  body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  #attrition_title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
  }

  #hr_title hr {
    width: 350px;
  }

  #attrition_paragraph {
    font-size: 0.9rem;
  }

  .cadet_button_attrition {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .cadet_btn_attrition {
    font-size: 16px;
    padding: 8px 20px;
    margin-bottom: 15px;
    width: 90%;
    text-align: center;
  }

  #attrition1,
  #attrition2,
  #attrition3,
  #attrition4 {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 15px;
  }

  .attrition_t,
  .attrition_p {
    animation: fadeIn 1s ease-in-out;
  }

  .attrition_t {
    max-width: 100%;
    text-align: center;
  }

  .attrition_t h2 {
    font-size: 40px;
  }

  .attrition_t hr {
    width: 80%;
  }

  .attrition_p {
    width: 90%;
    padding: 15px;
  }

  .attrition_p p {
    font-size: 18px;
  }

  .attrition_p ul li {
    font-size: 16px;
  }

  #attrition1 .attrition_p ul {
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  #attrition_title {
    font-size: 15px;
  }

  #attrition_paragraph {
    font-size: 13px;
  }

  .attrition_p p {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  #attrition_title {
    font-size: 15px;
  }

  #hr_title hr {
    width: 250px;
  }

  #attrition_paragraph {
    font-size: 13px;
  }
}