.certificate_details {
  padding-left: 10rem;
  font-family: "Libre Baskerville", serif;
}

/* Custom styles for the image */
.image-container {
  display: flex;
  align-items: center;
  height: 85vh; /* Adjust the height as needed */
  margin: 0; /* Center the container horizontally */
}

.image-container img {
  position: relative;
  width: 100%;
  height: auto;
  padding: 2px;
}

/* Center the image container */
.courses-container {
  background-image: url("../assets/images/courses/courses_Bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right;
  padding-left: 75px;
  max-height: 100%;
  padding-top: 8rem;
}

/* Custom styles for the arrow buttons */
.arrow-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.arrow-button.prev {
  left: 66.5%;
}

.arrow-button.next {
  right: 0.25rem; /* Adjust the position for centering */
}

.courses-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: black;
  width: 30%;
}

.courses-text h1 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
}

.courses-text p {
  font-size: 1.2rem;
  font-family: "Quicksand", sans-serif;
}

/* Custom styles for the modal close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 22rem;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
}

/* Custom styles for the modal image */
#modalImageContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75%;
  height: 75%; /* Adjust the height for the zoomed-in image */
}

#modalImage {
  height: 50rem;
  width: 100rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#imageModal {
  justify-content: center;
  align-items: center;
}

a.active {
  color: black !important;
}

/* Custom styles for the modal content to center the image */
.modal-content {
  text-align: center;
}


/* Media queries for devices with a maximum width of 576px (smaller phones in portrait mode) */

footer {
  bottom: 0;
  left: 0;
  right: 0;
  position: relative;
  background-color: #111;
  height: 200px;
  width: 100vw;
  font-family: sans-serif;
  padding-top: 40px;
  color: #fff;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-family: "Quicksand", sans-serif;
  letter-spacing: 0.083em;
}

.footer-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: capitalize;
  line-height: 3rem;
}

.footer-content p {
  max-width: 500px;
  margin: 10px auto;
  line-height: 18px;
  font-size: 14px;
}

.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 3rem 0;
}

.socials li {
  margin: 0 10px;
}

.socials a {
  text-decoration: none;
  color: #fff;
}

.socials a i {
  font-size: 2rem;
  transition: color 0.4s ease;
}

/* Style the dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show/hide the dropdown menu on click */
.dropdown.active .dropdown-content {
  display: block;
}

@media screen and (max-width: 570px) {
  .row {
    display: block;
    width: 100%;
  }

  .courses-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
    width: 50%;
  }

  .courses-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .courses-text p {
    font-size: 1.5rem;
    font-family: "Quicksand", sans-serif;
  }

  .image-container {
    align-items: center;
  }
  .image-container img {
    width: 75%;
    margin-left: 10rem;
    margin-top: 20rem;
  }

  .arrow-button.prev {
    left: 16%;
  }

  .arrow-button.next{
    right:7%;
  }

  .arrow-button{
    transform: translateY(60%);
  }

  .fa {
    font-weight: bolder;
    font-size: large;
  }

  #modalImage {
    height: auto; /* Adjust the height for phones to maintain aspect ratio */
    max-width: 90%; /* Adjust the width for phones */
    left: -10rem;
  }
  

  #modalImageContainer {
    width: 100%;
    height: 60vh; /* Adjust the height for phones */
  }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
  }
}

@media screen and (min-width:571px) and (max-width: 768px){
  .row {
    display: block;
    width: 100%;
  }

  .courses-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
    width: 50%;
  }

  .courses-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .courses-text p {
    font-size: 1.5rem;
    font-family: "Quicksand", sans-serif;
  }

  .image-container {
    display:flex;
    align-items: center;
  }
  .image-container img {
    width: 65%;
    margin-left: 15rem;
    margin-top: 20rem;
  }
  .arrow-button{
    transform: translateY(60%);
  }

  .arrow-button.prev {
    left: 15rem;
  }

  .arrow-button.next{
    left:63.5rem;
  }

  #modalImage {
    height: auto; /* Adjust the height for phones to maintain aspect ratio */
    max-width: 90%; /* Adjust the width for phones */
    left: -5rem;
  }
  

  #modalImageContainer {
    width: 100%;
    height: 60vh; /* Adjust the height for phones */
  }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
  }
}

@media screen and (min-width:768px) and (max-width: 1024px){
  .courses-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
    width: 30%;
    padding-right:10rem;
  }

  #modalImage , .modal-dialog{
    height: auto; /* Adjust the height for phones to maintain aspect ratio */
    width: 70%;
  }

  #imageModal {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
}
