/* Menu */
a.sub-item:hover {
  color: #001730 !important;
}

/* About the college Styles */
.portalsContainer {
  min-height: 330px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bg {
  position: absolute;
  width: 200px;
  right: 0;
  bottom: 0;
}
.bgTop {
  position: absolute;
  width: 200px;
  left: 0;
  top: 0;
}
.portalsContainer .aboutThePortals {
  height: 100%;
  /* margin-top: 35px; */
}
.portalsContainer .headerText {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}
.portalsContainer .headerText h1 {
  text-align: center;
}
.portalsContainer .headerText h4 {
  color: #00185b;
  text-align: center;
}
.portalsContainer .cardContainer {
  text-align: center;
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-left: auto;
  margin-right: auto;
}
.portalsContainer .cardContainer a {
  text-decoration: none;
  color: inherit;
}
.portalsContainer .cardBlue {
  width: 250px;
  position: relative;
  margin-left: 10px;
  border-radius: 16px;
  background: rgb(76, 106, 214);
  background: linear-gradient(
    180deg,
    rgba(76, 106, 214, 1) 0%,
    rgba(14, 48, 170, 1) 100%
  );
}

.portalsContainer .titles p {
  font-size: 25px;
  margin-top: 2px;
  font-weight: bolder;
}
.portalsContainer .titles h3 {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
.portalsContainer .titles {
  padding-top: 25px;
  padding-bottom: 25px;
  display: block;
  width: 100%;
  /* height: 100%; */
  float: right;
}
.portalsContainer .content {
  height: 150px;
  padding-right: 14px;
  padding-left: 14px;
  border-radius: 20px;
}
.portalsContainer .cardGreen {
  width: 250px;
  position: relative;
  margin-left: 10px;
  border-radius: 16px;
  background: rgb(76, 214, 164);
  background: linear-gradient(
    180deg,
    rgba(76, 214, 164, 1) 0%,
    rgba(14, 161, 170, 1) 100%
  );
}
.portalsContainer .cardBlue img {
  position: absolute;
  transform: translate(-50%, 50%);
  left: 30%;
  bottom: 30%;
  max-height: 217px;
  opacity: 0.2;
}
.portalsContainer .cardGreen img {
  position: absolute;
  transform: translate(-50%, 50%);
  left: 30%;
  bottom: 30%;
  max-height: 217px;
  opacity: 0.2;
}
.portalsContainer .cardLightBlue img {
  position: absolute;
  transform: translate(-50%, 50%);
  left: 30%;
  bottom: 30%;
  max-height: 217px;
  opacity: 0.2;
}
.portalsContainer .cardLightBlue {
  width: 250px;
  position: relative;
  margin-left: 10px;
  border-radius: 16px;
  background: rgb(76, 173, 214);
  background: linear-gradient(
    180deg,
    rgba(76, 173, 214, 1) 0%,
    rgba(14, 133, 170, 1) 100%
  );
}

/* Sections */
.section-start {
  background-image: url("../img/assets/blueBg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #e8eefe;
  height: auto;
  padding-top: 20px;
  padding-bottom: 40px;
}
.section-start h2 {
  padding-top: 20px;
  font-size: 26px;
  text-align: center;
  text-align: center;
}
.sections {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section-start .upper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto;
}

html:lang(ar) .section-start .upper {
  direction: rtl;
}

.section-start .upper h4 {
  text-align: center;
  font-size: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  margin-left: 1.25rem;
  margin-top: 1.25rem;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  padding: 10px;
  transition: all 0.4s ease-in;
}
.card img {
  width: 100px;
  margin-bottom: 1.25rem;
}
.card:hover {
  transform: scale(1.1);
}
/* Success */
.success-start {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 50rem;
}
.section-start h2 {
  text-align: center;
  font-weight: bold;
}
.update-title {
  text-align: center;
  font-weight: bold;
}
.success-start .success-body {
  height: 100%;
}
.success-start .success-card {
  display: block;
  margin-top: 80px;
  position: relative;
  height: 300px;
  padding: 1rem;
  margin-left: 1.5rem;
}
.success-start .success-flex-card {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: end;
  text-align: right;
  height: 95%;
  border-radius: 20px;
  background-color: #ffffff;
  border: rgba(208, 208, 208, 0.25);
  border-style: solid;
  border-width: 0.5px;
  -webkit-box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
  -moz-box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
  box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
}
.success-start .success-flex-card a {
  color: black;
  padding-right: 1.5rem;
  width: 50%;
}
.success-start .success-flex-card .success-text {
  width: 60%;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 100%;
}

.success-start .success-card img {
  position: absolute;
  left: 50px;
  top: -50px;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  -webkit-box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
  -moz-box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
  box-shadow: 22px 17px 30px -7px rgba(148, 148, 148, 0.26);
}
.success-start .success-text p {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-bottom: 12px;
  direction: rtl;
}
.success-start .success-text .class-h4 {
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: bold;
}
.success-start .success-text span {
  margin-top: 10px;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
  all: unset;
  padding: 1rem;
  color: #ffffff;
  border-radius: 10px;
  background-color: #00185b;
}
.success-start .success-main-title {
  text-align: center !important;
  margin-bottom: 20px;
}
@media (max-width: 1471px) {
  .success-card img {
    left: 30px;
    top: -50px;
    width: 280px;
    height: 280px;
  }
}
@media screen and (max-width: 1280px) {
  .portalsContainer .bg {
    position: absolute;
    width: 200px;
    right: 0;
    bottom: 0;
  }
  .section-start h2 {
    padding-top: 20px;
    font-size: 26px;
    text-align: center;
  }
  .success-start .success-card .success-text {
    display: flex;
    width: unset;
    height: 100%;

    padding-bottom: 70px;
    flex-direction: column;
    justify-content: end;
    align-items: center;
  }
}

@media screen and (max-width: 1160px) {
  .portalsContainer .bg {
    position: absolute;
    width: 200px;
    right: 0;
    bottom: 0;
  }
}

@media screen and (max-width: 1025px) {
  .portalsContainer .bg {
    position: absolute;
    width: 200px;
    right: 0;
    bottom: 0;
  }
}
@media (max-width: 1550px) {
  .success-start .success-flex-card .success-text {
    margin-top: 40px;
    align-items: center;
    text-align: center;
  }
  .portalsContainer .bg {
    position: absolute;
    width: 200px;
    right: 0;
    bottom: 0;
  }
  .portalsContainer .cardContainer {
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: 10px;
  }
  .section-start .upper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 20px;
  }
  .portalsContainer {
    height: 100%;
    flex-direction: row-reverse;
  }
  .section-start {
    height: auto;
  }
  .section-start h1 {
    padding-top: 20px;
    font-size: 26px;
    text-align: center;
  }
  .sections {
    display: flex;
    flex-direction: row-reverse;
  }
  .card {
    width: 150px;
    height: 150px;
    font-size: 14px;
    text-align: center;
  }
  .card img {
    width: 75px;
  }
  .cardGreen,
  .cardLightBlue,
  .cardBlue {
    margin-bottom: 10px;
  }
  .success-start .success-flex-card {
    display: block;
  }

  .section-start .success-card {
    flex-direction: column;
    height: 400px;
  }
  .section-start .success-text {
    width: 80%;
    text-align: center;
  }
  .section-start .success-card img {
    top: -60px;
    left: auto;
    right: auto;
    width: 180px;
    height: 180px;
  }
  .success-start .success-card img {
    height: 90%;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    top: -70px;
    width: 115px;
    height: 115px;
  }
}

@media screen and (min-width: 1247px) and (max-width: 1549px) {
  .section-start .upper {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-bottom: 20px;
  }
  .portalsContainer .cardContainer {
    flex-direction: row;
  }
  .portalsContainer .content {
    /* width: 400px; */
  }
}

@media (max-width: 768px) {
  .portalsContainer .bg {
    position: absolute;
    width: 200px;
    right: 0;
    bottom: 0;
  }
}

@media (max-width: 640px) {
  .portalsContainer {
    height: auto;
    padding-bottom: 30px;
  }

  .portalsContainer .bg {
    bottom: 0;
  }
  .portalsContainer .content {
    /* width: 100%; */
    height: 150px;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 20px;
  }
  .section-start {
    padding-bottom: 20px;
  }
  .sections {
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
  .section-start .upper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-right: 5px;
    margin-left: 5px;
  }
  .card {
    margin-left: 0;
  }
  .section-start .success-card {
    flex-direction: column;
    height: 60%;
    width: 80%;
    justify-content: end;
    padding-bottom: 20px;
  }
  .section-start .success-text .success-flex-card .class-h4 {
    width: 100%;
    font-size: 10px;
    text-align: center;
  }
  .section-start .success-text .success-flex-card .class-h4 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: bold;
  }
  .section-start .success-card .success-flex-card img {
    top: -70px;
    left: auto;
    right: auto;
    width: 160px;
    height: 160px;
  }
  .success-start .success-text .class-h4 {
    font-size: 20px;
    text-align: center;
  }
}
@media (max-width: 350px) {
  .portalsContainer {
    height: 100vh;
  }
  .bg {
    bottom: 0;
  }
  .content {
    width: 320px;
    height: 150px;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 20px;
  }
}
