*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
  border: none;
}

html,
body {
  width: 100%;
  color: #000000;
  background-color: #e7f4ff;
  box-sizing: border-box; /* Apply box-sizing globally */
}

main.main {
  width: 100%;
  background-color: #e7f4ff;
}

nav{
  z-index: 1000;
}
main.main div.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  background: url("../images/our-core-programs/34e13cf5e0dd8627abc022158768e6c1.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; /* Alternative to prevent distortion */
  position: relative;
}

main.main div.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4); /* Light color overlay */
  mix-blend-mode: screen;
  z-index: 1;
}

main.main div.header header {
  z-index: 10;
}

main.main div.header header h3 {
  color: #020656;
  font-size: 44px;
}

main.main div.header header p {
  font-size: 20px;
  font-style: italic;
  margin: 0;
}
.container {
  background-color: #e7f4ff;
  padding: 20px;
  border-radius: 8px;
}

.image-container {
  height: 200px; /* Fixed height to align with text */
  overflow: hidden;
}

.image-container .img-fluid {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Keeps the image aspect ratio */
  border-radius: 8px;
}

.text-primary {
  color: #020656;
  font-weight: bold;
}

.list-unstyled {
  margin: 0;
  padding-left: 20px;
  color: #111;
}

.container h2 {
  color: #020656 !important;
  font-weight: 400;
}

footer {
  background-color: #020656;
  color: #fff;
  padding: 40px 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.logo img {
  max-width: 150px;
}

.footer-container h3 {
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 1px solid #22287c;
  padding-bottom: 10px;
}

.footer-container ul {
  list-style: none;
  padding: 0;
}

.footer-container ul li {
  margin: 8px 0;
}

.footer-container a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #f0f0f0;
}

.social-media ul {
  display: flex;
  padding: 0;
}

.social-media li {
  margin-right: 4px !important;
}

.social-media a {
  font-size: 24px;
  color: white;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #f0f0f0;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 768px) {
  .footer-container {
      flex-direction: column;
      align-items: start;
  }
  .footer-container h3{
    border: none;
  }

  .footer-container div {
      margin-bottom: 20px;
      text-align: left;
  }
  .social-media i{
    margin: 1px 5px;
  }
}
/* Full-page overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* Initially hidden */
  z-index: 999;
}

/* Popup box */
#popup {
  position: fixed;
  top: 40%;
  left: 50%;
  border: 3px solid #23298A;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 1000;
  display: none; /* Initially hidden */
  max-width:50%;
  width: 90%; /* Responsive width */
  text-align: center;
}

/* Header overlay on image within popup */
#popup .img {
  position: relative;
}

/* Dark overlay on the image within popup */
#popup .overlay-darken {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  z-index: 1;
}

#popup .header {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 10px;
  color: white;
  font-size: 1.35rem;
  text-align: center;
  z-index: 2;
}

/* Close button in popup */
#popup .close-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  z-index: 1001;
  cursor: pointer;
  border-radius: 50%;
}

/* Form styling within popup */
#popup .text p {
  font-weight: bold;
  margin-bottom: 10px;
}

#popup .form-group label {
  font-weight: bold;
}

#popup .input-group .form-control {
  border-right: none;
}

#popup .input-group .input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #popup {
        max-width: 95%; /* Popup takes more space on small screens */
        width: 95%;
    }
    #popup .header {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #popup .header {
        font-size: 1.2rem; /* Even smaller text size on very small screens */
    }
}

#popup .input-group-append button, 
#popup .input-group-append button:hover {
    background-color: #D9D9D980;
    color: #111;
    border-color: #d8d8d8;
}

#popup form input {
    border-color: #d8d8d8 !important;
}

#popup form input:focus {
    outline: none !important;
}
.font-weight-bold{
  font-weight: bold!important;
}
ul li i{
  font-weight: bold;
}