.banner {
  text-align: center;
}
.text-color {
  color: #fff !important;
}
.intro{
  font-size: 1.1rem;
}
.padding-content{
  padding: 0 15px;
}
.resource-card {
  transition: transform 0.2s ease;
}
.resource-card:hover {
  transform: scale(1.02);
}
.width-btn{
  max-width: 250px;
  width: 100%;
  margin: 0 auto;
}

.bg-dark-primary{
  background: rgb(0 36 84);
}

section h2{
  color: rgb(255, 255, 255);
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
  max-width: 1003px;
  font-size: 2rem;
  font-weight: 600;
  padding: 0.5em 1em;
  background: rgb(0 36 84);
}

.text-white{
  color: #fff !important;
}

#langToggleBtn {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}

#langToggleBtn:hover {
  transform: scale(1.05);
  background-color: #ffc107 !important;
  color: #000 !important;
}

.modal i {
  color: white !important;
}

.modal-dialog {
  max-height: 90vh; /* max height relative to viewport */
  margin: 1.75rem auto;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

/* On screens 480px or less: smaller button */
@media(max-width: 650px){
  .banner > div.position-absolute {
    padding: 0.5rem 1rem; /* less padding on container */
  }

  .banner a.btn {
    font-size: 0.875rem; /* smaller text */
    padding: 0.25rem 0.5rem; /* smaller padding */
  }

  .padding-content{
    padding: 0 25px;
  }
}

@media (max-width: 480px) {
  .padding-content h2{
    font-size: 1.6rem;
  }
}

@media (max-width: 320px) {
  .padding-content h2{
    font-size: 1.3rem;
  }
}

/*FADE OUT AND FADE IN CONTENT*/
.fade-transition {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fade-transition.hidden {
    opacity: 0;
}

/*POP-UP CSS*/
.auto-popup-button {
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  background-color: #007BFF;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.auto-popup-button:hover {
  background-color: #0056b3;
}

/* Modal overlay */
.auto-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.auto-popup-modal[hidden] {
  display: none;
}

/* Modal content */
.auto-popup-modal-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
}

/* Close button */
/* Close button - light blue with white icon, closer to edge */
.auto-popup-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background-color: #339DFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auto-popup-close-btn:hover,
.auto-popup-close-btn:focus {
  background-color: #0056b3;
  outline: none;
}

/* Link styling */
.auto-popup-modal-content a {
  display: inline-block;
  margin-top: 16px;
  color: #007BFF;
  text-decoration: none;
  font-weight: bold;
}

#modalTitle{
  text-align: center;
}

.auto-popup-modal-content a:hover {
  text-decoration: underline;
}

/* Accessibility outline */
.auto-popup-modal-content:focus {
  outline: 2px solid #007BFF;
}

@media (max-width: 600px) {
  .auto-popup-modal-content {
    padding: 18px;
  }
}

@media(max-width: 480px){
  .auto-popup-close-btn {
    top: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
  }
}
/*ED OF POP-UP CSS*/