/* default styling – overridden by layout classes and custom CSS */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Show the popup */
.modal-overlay.show {
  display: flex;
}

/* Modal container */
.modal {
  background: #194065;
  padding: 2rem;
  border-radius: 8px;
  max-width: 1000px;
  width: 90%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
  font-family: Arial, sans-serif;
  color: #fff;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
}

/* Layout: right-image */
.modal.right-image {
  display: flex;
  gap: 1rem;
  align-items:center;
}

.modal.right-image .modal-left {
  flex: 1;
}

.modal.right-image .modal-right {
  position: relative;
}

.modal.right-image .modal-right img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

/* Layout: top-image */
.modal.top-image {
  display: block;
  text-align: center;
}

.modal.top-image img {
  max-width: 100%;
  max-height:150px;
  margin-bottom: 1rem;
  border-radius: 8px;
  position: relative;
}

/* Layout: minimal */
.modal.minimal {
  padding: 1rem;
  text-align: center;
}

/* Buttons */
.modal-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.modal-buttons button,
.modal-buttons a {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.learn-more {
  background-color: #51A8F0;
  color: white;
  padding:12px 30px !important;
}

.schedule-now {
  background-color: transparent;
  color: white;
  padding:12px 30px !important;
}


/* === RIGHT-IMAGE LAYOUT (Default) === */
.layout-right-image {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding:2rem;
  align-items: center;
  justify-content: space-between;
}

.layout-right-image .modal-left {
  flex: 1;
}

.layout-right-image .modal-right {
  flex: 1;
  text-align: center;
}

.layout-right-image .modal-right img {
  max-width: 300px;
  width:100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .layout-right-image {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  .layout-right-image .modal-left,
  .layout-right-image .modal-right {
    width: 100%;
  }

  .layout-right-image .modal-buttons {
    justify-content: center;
  }
}

/* === TOP-IMAGE LAYOUT === */
.layout-top-image {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.layout-top-image .modal-left {
  width: 100%;
  max-width: 600px;
}

.layout-top-image .modal-right {
  width: 100%;
  margin-bottom: 1.5rem;
}

.layout-top-image .modal-right img {
  max-width: 100%;
  max-height: 225px;
  border-radius: 8px;
}

/* === MINIMAL LAYOUT === */
.layout-minimal {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.layout-minimal .modal-right {
  display: none !important;
}

.layout-minimal .modal-left {
  width: 100%;
  max-width: 600px;
  text-align: center;
  padding: 1rem;
}

.layout-minimal .modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* === Shared Enhancements === */
.layout-top-image h2,
.layout-minimal h2 {
  margin-top: 0.5rem;
  font-size: 1.75rem;
}

.layout-top-image .highlight,
.layout-minimal .highlight {
  font-weight: 600;
  color: #666;
}

.layout-top-image .modal-buttons,
.layout-minimal .modal-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.layout-top-image .modal-buttons button,
.layout-minimal .modal-buttons button {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .layout-top-image,
  .layout-minimal {
    padding: 1rem;
  }

  .layout-top-image .modal-left,
  .layout-minimal .modal-left {
    padding: 0.5rem;
  }

  .layout-top-image h2,
  .layout-minimal h2 {
    font-size: 1.5rem;
  }

  .layout-top-image .modal-buttons button,
  .layout-minimal .modal-buttons button {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .layout-top-image h2,
  .layout-minimal h2 {
    font-size: 1.3rem;
  }

  .layout-top-image .modal-buttons,
  .layout-minimal .modal-buttons {
    flex-direction: column;
  }
}


/* Responsive stacking */
@media (max-width: 767px) {
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons a,
  .modal-buttons button {
    width: 100%;
  }
}

/* Bio link overlay */
.bio-link-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(25, 64, 101, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  z-index: 1;
}

.bio-link-overlay:hover {
  text-decoration: underline;
}

/* White underline (hr-style) */
.bio-link-overlay::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  margin-top: 6px;
  border-radius: 1px;
}
