@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

/* nav */
.upesLogo {
  margin: 0.7rem 0rem 0.7rem 16rem;
  display: flex;
}

/* Hero */

.heroMain {
  background-image: url("../images/backgroundImg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  display: flex;
  gap: 6rem;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

/* HeroLeft */
.heroLeft {
  color: #fff;
}

.heroLeftHeading > h2 {
  font-size: 34px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.heroLeftBatch {
  border: 2px solid white;
  border-radius: 5px;
  line-height: 30px;
  padding: 10px;
  margin-bottom: 10px;
  font-weight: 100;
  max-width: 37.2rem; /*temp*/
}

.heroLeftBatch > h3 > strong {
  font-size: 17px;
  line-height: 30px;
  font-weight: 600;
}

.heroLeftMedia {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.heroLeftMedia > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.heroLeftMedia > div > img {
  width: 80px;
}

.heroLeftMedia > div > p > strong {
  font-size: 16px;
  font-weight: 500;
}

.heroLeftMedia > div > p {
  font-size: 12px;
  text-transform: uppercase;
  display: inline-flex;
  flex-direction: column;
}

/* heroRight */

.heroRight {
  display: flex;
}

.heroRight > iframe {
  border-radius: 5px;
}

/* heroBottom */

.heroBottom {
  padding: 30px 0;
  text-align: center;
  background: #202d66;
}

.heroBottom > h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 400;
}

.heroBottom > p {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.4px;
}

/* Placements */
.placements {
  margin-bottom: 2rem;
}

/* PlacementsTop */
.placementsTop {
  text-align: center;
}

.placementsTop > h2 {
  font-size: 50px;
  line-height: 1.2;
  padding-bottom: 15px;
  margin: 2rem 0 50px 0;
  text-transform: uppercase;
  position: relative;
  font-weight: 500;
}

.placementsTop > h2::after {
  position: absolute;
  bottom: 0;
  width: 120px;
  left: 50%;
  height: 4px;
  background: #440fcb;
  transform: translateX(-50%);
  content: "";
}

/* PlacementsMid */

.placementsMid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin: 0 11rem;
}

.placementsMidNum {
  text-align: center;
  margin-bottom: 30px;
}

.placementsMidNum > span {
  font-size: 70px;
  display: inline-block;
  margin-bottom: 5px;
  text-align: left;
  min-width: 130px;
  font-weight: 700;
  line-height: 1;
  max-width: 400px;
  color: #1b0166;
}

.count {
  display: inline-block;
  min-width: auto;
  background-image: linear-gradient(45deg, #d51097 0%, #440fcb 100%);
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.plus {
  font-size: 30px;
  display: inline;
  font-weight: 600;
}

.placementsMidNum > span > small {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
  display: block;
  text-transform: none;
  font-weight: 300;
}

/* PlacementBot */

.placementsBot > p {
  margin-bottom: 2rem;
  color: #000;
  font-size: 12px;
  text-align: center;
}

/* UPES */
.upesMain {
  background: linear-gradient(45deg, #d51097 0%, #440fcb 100%);
  color: #fff;
  padding: 0.5rem 0 3rem 0;
  margin-bottom: 2rem;
}

/* UPES Top */
.upesTop {
  text-align: center;
}

.upesTop > h2 {
  font-size: 50px;
  line-height: 1.2;
  padding-bottom: 15px;
  margin: 2rem 0 40px 0;
  text-transform: uppercase;
  position: relative;
  font-weight: 600;
}

.upesTop > h2::after {
  position: absolute;
  bottom: 0;
  width: 120px;
  left: 50%;
  height: 4px;
  background: #fff;
  transform: translateX(-50%);
  content: "";
}

/* UPES Mid */
.upesMid {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin: 0 10rem 0 10rem;
}

.upesMidOne > li > img,
.upesMidTwo > li > img {
  height: 80px;
}

.upesMidOne > li > p,
.upesMidTwo > li > p {
  width: 25rem;
  font-size: 20px;
}

.upesMidOne > li,
.upesMidTwo > li {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin: 2rem 0 2rem 0;
}

/* Programmes */

/* ProgrammesTop */

.programmesTop {
  text-align: center;
}

.programmesTop > h2 {
  font-size: 50px;
  line-height: 1.2;
  padding-bottom: 15px;
  margin: 2rem 0 50px 0;
  text-transform: uppercase;
  position: relative;
  font-weight: 500;
}

.programmesTop > h2::after {
  position: absolute;
  bottom: 0;
  width: 120px;
  left: 50%;
  height: 4px;
  background: #440fcb;
  transform: translateX(-50%);
  content: "";
}

/* ProgrammesMid */

.programmesMid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 16.3rem;
}

.programmesCard {
  border: 1px solid #e8e8e8;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  overflow: hidden;
  text-align: center;
  height: 100%;
  position: relative;
}

.programmesCard > h3 {
  background-color: #e8e8e8;
  padding: 20px 15px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}

.programmesCard > h3 > small {
  font-size: 16px;
  display: block;
  font-weight: 400;
}

.programmesCard > h3 > span {
  font-size: 30px;
}

.programmesCard > p {
  padding: 20px 15px 30px;
  margin-bottom: 1rem;
  font-weight: 300;
}

.programmesCardOne > span {
  color: #21a8dc;
}
.programmesCardTwo > span {
  color: #006097;
}
.programmesCardThree > span {
  color: #fdc521;
}
.programmesCardFour > span {
  color: #fd9901;
}
.programmesCardFive > span {
  color: #f8317c;
}
.programmesCardSix > span {
  color: #339999;
}
.programmesCardSeven > span {
  color: #ff6699;
}
.programmesCardEight > span {
  color: #21a8dc;
}

/* Achievements */
.achievements {
  margin-bottom: 3rem;
}

.achievementsTop {
  text-align: center;
}

.achievementsTop > h2 {
  font-size: 50px;
  line-height: 1.2;
  padding-bottom: 15px;
  margin: 3rem 0 50px 0;
  text-transform: uppercase;
  position: relative;
  font-weight: 500;
}

.achievementsTop > h2::after {
  position: absolute;
  bottom: 0;
  width: 120px;
  left: 50%;
  height: 4px;
  background: #440fcb;
  transform: translateX(-50%);
  content: "";
}

/* Achievements Mid */

.achievementsMid {
  text-align: center;
  display: flex;
  gap: 4rem;
  margin: 0 8rem;
}

.achievementsMid > div > figure {
  width: 250px;
  height: 250px;
  border: 4px solid #440fcb;
  border-radius: 50%;
  display: inline-block;
  overflow: hidden;
}

.achievementsMid > div > figure > img {
  vertical-align: middle;
  border-style: none;
  width: 100%;
}

.achievementsMid > div > p {
  font-size: 20px;
  margin-top: 20px;
  font-weight: 300;
}

.achievementsMid > div > p > strong {
  font-weight: 600;
}

/*------ buttom ------*/
.button {
  border: 1.9px solid black;
  background-color: red;
  border-radius: 4rem;
  padding: 5px;
  width: 8rem;
  margin-bottom: 1rem;
  cursor: pointer;
  margin: auto;
}
.button > a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px;
}

/* ----------------- */
/* Media Queries */
/* ----------------- */

@media screen and (max-width: 1024px) {
  .upesLogo {
    margin: 0.7rem 0rem 0.7rem 12rem;
  }

  .hero {
    gap: 4rem;
    padding: 3rem;
  }

  .heroLeftBatch {
    margin-bottom: 14px;
  }

  .heroLeftMedia > div > img {
    width: 70px;
  }

  .placementsMid {
    margin: 0 3rem;
  }

  /* upesMid */

  .upesMid {
    gap: 3rem;
  }

  .upesMidOne > li,
  .upesMidTwo > li {
    gap: 0.5rem;
  }

  .upesMidOne > li > p,
  .upesMidTwo > li > p {
    width: 18rem;
    font-size: 16px;
  }

  .programmesMid {
    margin: 0 5rem;
  }

  .achievementsMid {
    gap: 2rem;
    margin: 0 2rem;
  }
}

@media screen and (max-width: 768px) {
  .upesLogo {
    margin: 0.7rem 2rem 0.7rem 2rem;
    justify-content: center;
  }

  .hero {
    gap: 3.5rem;
  }

  .heroRight > iframe {
    width: 300px;
    height: 690px;
  }

  .heroLeftMedia > div > img {
    width: 65px;
  }

  .heroBottom > h2 {
    font-size: 34px;
  }

  .placementsMid {
    justify-content: space-between;
  }

  /* Upes */

  .upesMid {
    gap: 2rem;
  }

  .upesMidOne > li,
  .upesMidTwo > li {
    gap: 0;
    justify-content: center;
  }

  .upesMidOne > li > img,
  .upesMidTwo > li > img {
    height: 60px;
  }

  .upesMidOne > li > p,
  .upesMidTwo > li > p {
    width: 16rem;
    font-size: 13px;
  }

  .programmesMid {
    margin: 0 2rem;
  }

  .achievementsMid {
    gap: 1rem;
    margin: 0 1rem;
  }

  .achievementsMid > div > figure {
    width: 170px;
    height: 170px;
  }

  .achievementsMid > div > p {
    font-size: 16px;
    margin-top: 10px;
  }
}

@media screen and (max-width: 426px) {
  .hero {
    flex-direction: column;
  }

  .heroLeftHeading > h2 {
    text-align: left;
    line-height: 1.1;
    letter-spacing: 1.5px;
  }

  .heroLeftHeading > h3 {
    text-align: center;
  }

  .heroLeftMedia {
    gap: 1rem;
  }

  .heroLeftMedia > div {
    margin-top: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .heroRight > iframe {
    width: 350px;
    height: 650px;
  }

  .heroBottom > h2 {
    font-size: 28px;
  }

  .placementsMid {
    justify-content: center;
    gap: 1rem;
  }

  .placementsMidNum > span > small {
    text-align: center;
    margin-top: 5px;
  }

  .placementsMidNum > span {
    text-align: center;
  }

  .placementsBot > p {
    font-size: 14px;
    margin: 0 1rem 2rem 1rem;
  }

  /* upes */

  .upesMid {
    flex-direction: column;
    margin: 0 2rem 0 2rem;
    gap: 0;
  }

  .upesMidOne > li,
  .upesMidTwo > li {
    gap: 1rem;
    margin: 1.5rem 0 1.5rem 0;
  }

  .upesMidOne > li > p,
  .upesMidTwo > li > p {
    width: unset;
    font-size: 16px;
  }

  .programmesMid {
    display: flex;
    flex-direction: column;
  }

  .programmesCard {
    margin: 1rem 0 1rem 0;
  }

  .achievementsMid {
    flex-direction: column;
    margin: 0 3rem;
    gap: 2rem;
  }
}
