@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h1 {
  font-size: 44px;
  color: #5377a3;
  font-family: "Poppins", sans-serif;
  font-weight: 250;
}
p {
  font-size: 15px;
  color: black;
  font-family: "Poppins", sans-serif;
}

/* ------------header part-------------- */
header {
  padding: 10px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}
header img {
  left: 0;
  width: 150px;
}
header ul {
  list-style: none;
  display: flex;
  gap: 5px;
}
header ul a {
  text-decoration: none;
}
header ul li {
  padding-top: 15px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 19px;
  height: 60px;
  color: black;
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s ease-in;
}
header ul li:hover {
  background-color: #d22129;
}
.socialmedia {
  padding-left: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fab {
  font-size: 27px;
  color: #551a8b;
}
.fab:hover {
  color: #0866ff;
}
.menu,
.cross {
  position: absolute;
  top: 23%;
  right: 5%;
  font-size: 30px;
  color: black;
  display: none;
  cursor: pointer;
  z-index: 6;
}
.menu {
  color: #0056b3;
}

.reshed-wrap {
  background-color: #4c4c4c9e;
  height: 100vh;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  display: none;
}
.res-hed {
  float: right;
  height: 100vh;
  width: 250px;
  background-color: #0c59a1;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}
.show {
  transform: translateX(0%);
}

/* ---------------slider part------------------------ */
.donate {
  padding: 9px 13px;
  background-color: #6bbdd6;
  margin-left: 20px;
  margin-top: 9px;
  width: fit-content;
  height: fit-content;
  text-decoration: none;
  color: black;
  font-size: 18px;
  overflow: hidden;
  position: absolute;
  bottom: 38%;
  right: 0;
  border-radius: 5%;
  font-family: "Poppins", sans-serif;
  z-index: 3;
}

.donate:hover {
  background-color: #6bc9d6;
}
.container {
  height: 100%;
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.photo {
  margin-left: -10px;
  height: 103vh;
  display: block;
  opacity: 1;
}

.dot {
  height: 13px;
  width: 13px;
  border-radius: 50%;
  background-color: whitesmoke;
  cursor: pointer;
}
.dot:hover {
  background-color: #0c59a1;
}
.dot.active {
  background-color: #0c59a1;
}
.dot-container ul {
  display: flex;
  gap: 5px;
  list-style: none;
}
.dot-container {
  position: absolute;
  top: 90%;
  left: 45%;
  z-index: 4;
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 180%;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  transform: translateY(-10%);
  background: linear-gradient(to right, #f1f1f1c3 -2%, #f3f3f3 26%);
}

.content {
  position: absolute;
  top: 55%;
  left: 55%;
  transform: translateY(-50%);
  width: 450px;
}
.content h1 {
  color: #5377a3;
  line-height: 1.5;
}
.content p {
  color: black;
  margin-top: 20px;
  text-align: start;
}

/* --------------------Founder's Words------------------------------------ */
.weird-circle {
  background-color: #0c59a1;
  height: 420px;
  width: 420px;
  border-radius: 50%;
}

.weird-container {
  position: relative;
  width: fit-content;
  margin: 80px auto;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 80px;
}
.weird-container img {
  position: absolute;
  top: -9%;
  left: 1%;
  border-radius: 50%;
}

.wecon1 {
  transform: translateX(-200px);
  transition: transform 1s ease;
}
.wecon2 {
  max-width: 573px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  transform: translateY(-200px);
  transition: transform 1s ease;
}
#namefo {
  font-size: 20px;
  width: 200px;
  margin: 0 auto;
}

/* --------------------about us------------ */
.about-us {
  background-color: #cccccc5c;
  padding: 50px 80px;
  overflow: hidden;
}
.about-under {
  display: flex;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  align-items: center;
}

.about-us img {
  width: 550px;
}

#about2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
#about2 p {
  font-size: 16px;
}
#about2 button {
  padding: 5px;
  font-size: 18px;
  align-self: flex-end;
  background-color: #0c59a1;
  border: none;
  color: black;
  font-family: "Poppins", sans-serif;
}
#about2 button:hover {
  background-color: #d22129;
  cursor: pointer;
}
.atransy {
  transform: translateY(-100px);
  transition: transform 1s ease;
}
.atransx {
  transform: translateX(200px);
  transition: transform 1s ease;
}
/* --------------impact------------------------ */
.impact {
  display: flex;
  width: fit-content;
  margin: 40px auto;
  align-items: center;
  margin-bottom: 60px;
  gap: 20px;
}
.impact1 {
  max-width: 650px;
}

.impact1 h1,
.impact1 p {
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 15px;
  text-align: start;
}
.ildiv p {
  font-size: 16px;
  margin-top: 5px;
}

.impact div img {
  width: 500px;
}

.il-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.ildiv {
  margin-top: 15px;
  width: 115px;
  transform: rotateX(106deg);
  transition: transform 1s ease;
}

/*  ----------------------------Volunter------------------------- */

.volunter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 17px;
}
.volunter div {
  padding: 20px;
  width: 344px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: rgba(0, 0, 0, 0.066);
  border-radius: 3%;
}
.volunter i {
  font-size: 45px;
  color: #0c59a1;
}
.volunter h1 {
  font-size: 25px;
}
.volunter p {
  text-align: start;
  color: black;
}

/* ----------------------------Make an impact -------------------------*/
.make {
  display: flex;
  align-items: center;
  margin: 40px 0;
  justify-content: center;
  background-color: #0c59a1;
  gap: 80px;
  padding: 40px;
}
.make h1 {
  color: black;
}
.slbutton button {
  background-color: #d22129;
  border: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 5%;
  cursor: pointer;
}
.slbutton button:hover {
  padding: 12px;
}

/* ---------Second Last---------- */
.second-last {
  display: flex;
  justify-content: space-evenly;
  background-color: #0c59a1;
  margin-top: -40px;
  padding-top: 20px;
  flex-wrap: wrap;
}
.second-last div {
  width: 215px;
  display: flex;
  gap: 5px;
  padding-bottom: 20px;
  align-items: center;
}

.line {
  border: 0.5px solid rgba(0, 0, 0, 0.715);
}
.quick-wrap {
  background-color: #0c59a1;
}
.quick-linkdiv {
  margin-left: 25px;
  padding: 30px;
}
.quick-linkdiv ul {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.quick-linkdiv ul li {
  list-style: none;
}
.quick-linkdiv ul li a {
  text-decoration: none;
  color: black;
}
.quick-linkdiv ul li a {
  font-size: 18px;
}

/* ------------footer--------------------- */
footer {
  background-color: #0c59a1ee;
  padding: 20px 0;
}
footer div {
  display: flex;
  justify-content: space-around;
}

/* ---------------gallery----------------------- */
.famousHeader {
  margin: 25px auto;
  padding: 10px;
  width: max-content;
}

.famous {
  margin: 0 70px;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
}

.famous div img {
  height: 85%;
  width: 100%;
  object-fit: cover;
}

.gab1,
.gab2,
.gab3,
.gab4,
.gab5,
.gab6,
.gab7,
.gab8,
.gab9,
.gab10,
.gab11,
.gab12,
.gab13,
.gab14,
.gab15,
.gab16,
.gab17,
.gab18,
.gab19 {
  cursor: pointer;
  position: relative;
}

.formore {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #f2f2f266;
  height: 100%;
  width: 100%;
}

.formore h2 {
  padding: 25%;
}
.dnibs {
  display: none;
}

/* --------------------PhotoVitra-------------------- */
.gallery-container {
  display: none;
  height: 100vh;
  width: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  overflow: hidden;
}

.gallery-container .vi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 100%;

  margin: auto auto;
}

.image-wrapper {
  overflow: hidden;
}

.gallery-image {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#prevBtn,
#nextBtn,
#cross1,
#pnum,
#description {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #0c59a1ee;
  color: #ffffffe4;
  border: none;
  border-radius: 5px;
}
#pnum {
  font-size: 22px;
}
#description {
  width: fit-content;
  position: absolute;
  font-size: 17px;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
}

#prevBtn:hover,
#nextBtn:hover,
#cross1:hover {
  background-color: #0056b3;
}
#pnum {
  position: absolute;
  top: 5%;
  left: 5%;
}
#cross1 {
  position: absolute;
  top: 5%;
  right: 5%;
}

/* ---------contact us---------------- */
.form-all {
  height: fit-content;
  max-width: 372px;
  margin: 20px auto;
  border-radius: 5px;
}
label {
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 1000;
}
input {
  line-height: 1.5;
}
form div {
  padding: 10px;
}
.form-all h3 {
  padding: 10px;
}
#jsbutton11 {
  margin: 10px 10px;
  padding: 9px;
  width: 90px;
  border: none;
  color: black;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  background-color: #0c59a1;
}
#jsbutton11:hover {
  background-color: red;
}

.required-message {
  color: red;
  font-weight: bold;
}
.required {
  color: red;
  font-weight: bold;
}

/* ---------------Our Team----------------------------- */
.ourteam {
  width: fit-content;
  margin: 20px auto;
}
.ourteamdiv h1 {
  margin-top: 20px;
  color: black;
  font-size: 35px;
}
.ourteamdiv p {
  font-size: 19px;
  margin-top: 5px;
}

/* ------------Event  & news-details------------------------ */
.event-header {
  width: fit-content;
  margin: 0 auto;
  color: black;
}
#photo-in-render {
  width: 367px;
  height: 367px;
}
.news-header {
  padding: 25px 0;
  text-align: center;
  cursor: pointer;
  border: 1px solid #eddfdfe2;
  width: 65%;
  margin: 20px auto;
}

.news-header h1 {
  margin: 0;
}

.container-news {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.news-details {
  display: flex;
  flex-direction: column;
}

.header-photo {
  width: 50%;
  height: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.content-news {
  padding: 20px;
  width: fit-content;
  margin: 0 auto;
}

.content-news p {
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

/* -------------------------------------------------------- */

@media screen and (max-width: 1048px) {
  header ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 10%;
    z-index: 6;
    display: none;
  }
  header img {
    height: 80px;
  }
  .menu {
    display: block;
  }
  .socialmedia {
    padding: 15px;
    gap: 20px;
  }
  .fab {
    font-size: 30px;
  }

  .content {
    right: 20%;
    width: 300px;
  }
  .content h1 {
    line-height: 1.2;
    font-size: 38px;
  }

  .weird-container {
    gap: 10px;
  }
  .wecon2 {
    max-width: 400px;
  }
  .about-us img {
    width: 400px;
  }
  .about-us {
    padding: 50px 50px;
  }
  #about2 {
    gap: 3px;
  }
  .impact {
    flex-direction: column;
  }
  .donate {
    bottom: 5%;
  }
}
@media screen and (max-width: 850px) {
  .weird-container {
    flex-direction: column;
  }
  .weird-container img {
    top: -9%;
    left: 1%;
  }
  .about-under {
    flex-direction: column;
  }
  .about-under {
    align-items: flex-start;
  }
  .about-us img {
    width: 480px;
  }
  .about-us {
    padding: 50px 20px;
  }
}

@media (max-width: 750px) {
  .famous {
    margin: 0 50px;
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    grid-auto-rows: 150px;
    row-gap: 10px;
  }

  .famous > *:nth-child(3n + 3) {
    grid-column: span 2;
    grid-row: span 2;
    height: 85%;
  }

  .famous div img {
    height: 100%;
  }
  .dnibs {
    display: block;
  }
}

@media screen and (max-width: 666px) {
  .overlay {
    display: none;
  }
  .content {
    left: 20%;
    width: 300px;
  }
  .content h1 {
    color: rgba(255, 255, 255, 0.783);
    line-height: 1.3;
    font-size: 38px;
  }
  .content p {
    color: rgba(255, 255, 255, 0.783);
  }
  .impact div img {
    width: 400px;
  }
  .il-wrap {
    gap: 6px;
    flex-wrap: wrap;
  }
  .ildiv {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  footer div {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .photo {
    height: 69vh;
    width: 100%;
  }
  .donate {
    bottom: 51%;
    font-size: 13px;
  }
  header {
    background-color: rgba(0, 0, 0, 0.822);
  }
  .about-us-photo {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .gallery-container .vi {
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
  }
  .image-wrapper {
    width: 100%;
  }
  .gallery-image {
    width: 100%;
  }
  #prevBtn,
  #nextBtn,
  #cross1 {
    padding: 8px;
  }

  #description {
    display: none;
  }
  .galaryl {
    font-size: 11px;
  }
  .news-header {
    width: 90%;
  }
}

@media screen and (max-width: 500px) {
  .content {
    left: 10%;
  }
  .photo {
    object-fit: none;
    width: 160%;
  }
  .wecon2 {
    max-width: 300px;
  }
  .weird-circle {
    height: 365px;
    width: 353px;
  }
  .weird-container img {
    height: 385px;
    width: 365px;
    top: -9%;
    left: -1%;
  }
  .wecon2 h1 {
    font-size: 35px;
  }

  .about-us img {
    width: 230px;
  }
  .about-us {
    padding: 65px 20px;
  }
  .impact div img {
    width: 290px;
  }
  #imp {
    text-align: center;
    max-width: 280px;
  }
  .make {
    gap: 30px;
  }
  .atransy {
    display: none;
  }
  .oip {
    display: none;
  }
  .il-wrap {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .il-wrap > div {
    width: calc(50% - 20px);
    margin: 10px;
  }
  .about-us-photo {
    display: none;
  }
  .header-photo {
    width: 75%;
    height: 75%;
  }
  .famous {
    margin: 0 10px;
  }
  #photo-in-render {
    width: 300px;
    height: 300px;
  }
}
