 	/* =========================
   STAX POPUP SYSTEM
   ========================= */

/* Button */
/* CTA BUTTON (centred + larger) */
.stax-popup-btn {
  background-color: #f4814c;
  color: #ffffff;
  border: none;

  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;

  border-radius: 8px;
  cursor: pointer;

  display: inline-block;
  text-align: center;

  transition: all 0.2s ease;
}

/* Hover state */
.stax-popup-btn:hover {
  background-color: #1e4b57;
}

/* CENTRING WRAPPER (IMPORTANT FIX) */
.stax-popup-btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Overlay (full screen background) */
.stax-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* Modal */
.stax-popup-modal {
  background: #ffffff;
  width: min(600px, 90%);
  max-width: 600px;

  padding: 24px;
  border-radius: 12px;

  position: relative;

  display: flex;
  flex-direction: column;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  animation: popupFade 0.2s ease-out;
}

/* Close button */
.stax-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;

  font-size: 26px;
  background: none;
  border: none;

  cursor: pointer;
  line-height: 1;
}

/* Animation */
@keyframes popupFade {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* =========================
MEMBERS LIBRARY SEARCH BAR
========================= */

.doc_search_form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.doc_search_form input[type="text"] {
    width: 500px;
    max-width: 100%;
    padding: 18px 20px;
    border-radius: 10px;
    border: none;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.doc_search_form button,
.doc_search_form input[type="submit"] {
    padding: 18px 28px;
    border-radius: 10px;
    border: none;
    background: #0f5c6e;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.doc_search_form button:hover,
.doc_search_form input[type="submit"]:hover {
    opacity: 0.9;
}
/* =========================
MEMBERS LIBRARY SEARCH BAR
========================= */

.wp-block-shortcode form,
.entry-content form,
.elementor-widget-shortcode form {
    display: flex !important;
   gap: 8px !important;
    align-items: center !important;
    margin-top: 30px !important;
    flex-wrap: wrap !important;
}

.wp-block-shortcode input[type="search"],
.wp-block-shortcode input[type="text"],
.entry-content input[type="search"],
.entry-content input[type="text"],
.elementor-widget-shortcode input[type="search"],
.elementor-widget-shortcode input[type="text"] {
    width: 70% !important;
    max-width: 100% !important;
    padding: 18px 20px !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
}

.wp-block-shortcode button,
.wp-block-shortcode input[type="submit"],
.entry-content button,
.entry-content input[type="submit"],
.elementor-widget-shortcode button,
.elementor-widget-shortcode input[type="submit"] {
    padding: 18px 28px !important;
    border-radius: 10px !important;
    border: none !important;
    background: #0f5c6e !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
}
/* Members Library Popular Topics */

.popular-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    color: #ffffff;
    font-size: 15px;
}

.popular-topics span {
    font-weight: 700;
    margin-right: 4px;
}

.popular-topics a {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.45);
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.popular-topics a:hover {
    background: #ffffff;
    color: #0f5c6e;
}
.how-library-links a {
    color: #1f9aa5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.how-library-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.library-search .doc_search_form {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.library-search input[type="text"] {
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    padding: 16px 18px;
    font-size: 16px;
    color: #222222;
    width: 100%;
}

.library-search input[type="text"]::placeholder {
    color: #888888;
}

.library-search button,
.library-search input[type="submit"] {
    background: #1f9aa5;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.library-search button:hover,
.library-search input[type="submit"]:hover {
    opacity: 0.9;
}
/* Browse Full Library search bar */

.library-search form,
.library-search .wp-block-shortcode form,
.library-search .entry-content form {
    display: flex !important;
    gap: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 35px auto 20px auto !important;
    max-width: 1050px !important;
}

.library-search input[type="search"],
.library-search input[type="text"] {
    width: 100% !important;
    max-width: 850px !important;
    padding: 24px 28px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e2e2 !important;
    background: #ffffff !important;
    font-size: 22px !important;
    color: #222222 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}

.library-search input[type="search"]::placeholder,
.library-search input[type="text"]::placeholder {
    color: #777777 !important;
}

.library-search button,
.library-search input[type="submit"] {
    padding: 24px 38px !important;
    border-radius: 12px !important;
    border: none !important;
    background: #0f5c6e !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
/* MEMBERS LIBRARY SEARCH */

.library-search {
    text-align: center;
    margin-top: 50px;
}

.library-search form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.library-search input[type="search"],
.library-search input[type="text"] {
    width: 100% !important;
    max-width: 680px !important;
    padding: 18px 22px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e2e2 !important;
    background: #ffffff !important;
    font-size: 18px !important;
    color: #222222 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}

.library-search input::placeholder {
    color: #888888 !important;
}

.library-search button,
.library-search input[type="submit"] {
    padding: 20px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    background: #0f5c6e !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.library-search button:hover,
.library-search input[type="submit"]:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}
.library-search input[type="search"],
.library-search input[type="text"] {
    width: 100% !important;
    max-width: 680px !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e2e2 !important;
    background: #ffffff !important;
    font-size: 18px !important;
    color: #222222 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}
.library-search button,
.library-search input[type="submit"] {
    padding: 20px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    background: #0f5c6e !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
.library-search button:hover,
.library-search input[type="submit"]:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    transition: all 0.2s ease;
}