/* ────────────────────────────────
   UXOne Responsive Header
──────────────────────────────── */
.header_banner {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid #e5e5e5;
}

.navbar {
  padding: 0.5rem 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 100px;
  height: auto !important;
  display: block;
}

.navbar-toggler {
  border: none;
  background: transparent;
  box-shadow: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
.navbar-toggler:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav {
  gap: 1rem;
}

/* ────────────────────────────────
   Desktop User Icon
──────────────────────────────── */
.navbar-user {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 2rem !important;
}

.navbar-user .fa-user-alt {
  font-size: 2rem;
  transition: color 0.3s ease;
}

.navbar-user .fa-user-alt:hover {
  color: #0074D9;
}

/* ────────────────────────────────
   Mobile Overlay User Icon
──────────────────────────────── */
@media (max-width: 991.98px) {
  .site-logo img {
    max-width: 250px;
  }
 
  .navbar-collapse {
    /*background-color: #fefefe;*/
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }

  .ux1-mobile-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 30vh;
    padding-top: 1rem;
  }

  .navbar-user-mobile {
    text-align: left !important;
	padding-left: 0.5rem;
    margin-bottom: 1rem;
  }

  .navbar-user-mobile .fa-user-alt {
    font-size: 2.2rem;
    transition: color 0.3s ease;
  }

  .navbar-user-mobile .fa-user-alt:hover {
    color: #0074D9;
  }
}

												   
/* ────────────────────────────────
   Mobile Overlay Menu
──────────────────────────────── */
@media (max-width: 991.98px) {
  /* Theme-controlled mobile menu text color overrides */
  .ux1-mobile-overlay.text-dark a.nav-link {
    color: #212529 !important;
  }

  .ux1-mobile-overlay.text-light a.nav-link {
    color: #f8f9fa !important;
  }
  
  .ux1-mobile-overlay.collapse {
    position: fixed;
    top: 110px;
    left: 0;
    width: 100%;
    /*background-color: #fefefe;*/
    z-index: 1010;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    padding: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .ux1-mobile-overlay.collapse:not(.show) {
    display: none !important;
  }

  .ux1-mobile-overlay.collapse.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: ux1SlideDown 0.3s ease-out;
  }

  .ux1-mobile-overlay .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .ux1-mobile-overlay .nav-link {
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .ux1-mobile-backdrop {
    position: fixed;
    top: 91px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1009;
  }
}

/* ────────────────────────────────
   Slide-down animation for mobile overlay
──────────────────────────────── */
@keyframes ux1SlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ────────────────────────────────
   UXOne Local Tasks (Primary Tabs)
──────────────────────────────── */
/* Remove border from active tab */
.tabs-wrapper .nav-link.active,
.tabs-wrapper .nav-link.is-active {
  border: none !important;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
}

/* ────────────────────────────────
   UXOne Local Tasks Tabs Styling
──────────────────────────────── */
.tabs-wrapper.tabs-primary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

/* Horizontal layout */
.tabs-wrapper .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: none; /* Remove Bootstrap's default tab border*/
  align-items: center;
}


/* Tab items */
.tabs-wrapper .nav-item {
  display: inline-block;
  margin: auto;
}
.tabs-wrapper .tab-toggle.dropdown-toggle {
  display: none !important;
}
@media (max-width: 767.98px) {
  .tabs-wrapper.is-collapsible .nav-item:not(.active) {
    display: block !important;
  }
  .tabs-wrapper .nav-item,
  .tabs-wrapper ul {
    width:100%;	  
	margin: auto;
  }
  
}

/* Inactive tab links */
.tabs-wrapper .nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  font-weight: 500;
}

/* Hover/focus */
.tabs-wrapper .nav-link:hover,
.tabs-wrapper .nav-link:focus {
  background-color: #e2e6ea;
  color: #000;
}

/* Active tab — vibrant UXOne style */
.tabs-wrapper .nav-link.active,
.tabs-wrapper .nav-link.is-active {
  background-color: #0056b3 !important; /* UXOne deep blue */
  color: #fff !important;
  font-weight: 600;
  border: 1px solid #0056b3 !important;
  /*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/	
}


/* ────────────────────────────────
   UXOne User Account Menu Styling
──────────────────────────────── */
.menu--account {
  display: flex;
  justify-content: flex-end; /* Aligns menu to the right */
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Horizontal layout */
.menu--account .nav {
  display: flex !important;
  flex-direction: row;
  gap: 1.5rem;
  margin-right: 1.5rem;
  padding-left: 0;
  list-style: none;
}

/* Individual items */
.menu--account .nav-item {
  display: inline-block;
}

.menu--account .nav-link {
  display: inline-block;
  color: #333;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.menu--account .nav-link:hover,
.menu--account .nav-link:focus {
  background-color: #e2e6ea;
  color: #000;
}

.menu--account .nav-link.active {
  font-weight: bold;
  color: #007bff;
}


/* ────────────────────────────────
   UXOne Content Region Layout
──────────────────────────────── */
.region-content {
  max-width: 960px;         /* Constrain width on desktop */
  margin: 0 auto;           /* Center horizontally */
  padding: 1.5rem 1rem !important;     /* Responsive inner spacing */
  width: 100%;              /* Allow full width on mobile */
  box-sizing: border-box;  /* Prevent overflow from padding */
}

/* Constrain images inside .region-content */
.region-content img { 
  max-width: 100%;
  height: auto;
  display: block;
}

/* Add subtle vertical rhythm */
.region-content > * + * {
  margin-top: 1.5rem;
}

.region .block-views h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
  padding: 2rem;
  background: linear-gradient(135deg, #007b5e, #009e7f);
}

/* ────────────────────────────────
   UXOne Article Teaser
──────────────────────────────── */
.blog-articles-page {
  max-width: 928px;
  margin: 0 auto;
  padding: 0 1rem;
}

.article-teaser {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  background-color: #f9f9fb;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  font-family: 'Helvetica Neue', sans-serif;
}

.article-teaser:hover {
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .article-teaser {
    flex-direction: row;
  }
}

/* Image wrapper */
.card-img-left {
  width: 100% !important;
  max-height: 250px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .card-img-left {
    width: 40% !important;
    max-height: none;
  }
}

/* Image itself */
.card-img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem 0 0 0.5rem;
}

@media (max-width: 767px) {
  .card-img-left img {
    border-radius: 0 !important; /* Remove bottom-left rounding on mobile */
  }
}

/* Content wrapper */
.card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Title styling — editorial, not link-like */
.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2b425f;
  margin-bottom: 0.5rem;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

/* Body text */
.card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Read more button */
.card-body .btn {
  align-self: start;
}


/* ────────────────────────────────
   UXOne Footer Styling
──────────────────────────────── */
.footer-dark {
  background-color: #212529;
  color: #f8f9fa;
}

.region-footer {
  padding: 1.5rem 0;
  text-align: center;
}

.region-footer .navbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

/* Applies to all active footer links */
.region-footer .nav-link.active,
.region-footer .nav-link.is-active,
.region-footer .nav-link[aria-current="page"],
.region-footer .nav-item.active > .nav-link,
.region-footer .nav-item.is-active > .nav-link,
.region-footer .nav-item > .nav-link[aria-current="page"] {
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* Mobile layout: full-width underline, centered */
@media (max-width: 991.98px) {
  .region-footer .navbar-nav {
    flex-direction: column;
    /*align-items: center;*/
  }

  .region-footer .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 400;
    color: #cfcfcf;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
  }

  .region-footer .nav-link:hover,
  .region-footer .nav-link:focus {
    color: #ffc107;
    border-bottom: 1px solid #ffc107;
    text-decoration: none;
  }

}

/* Desktop layout: text-width underline, centered */
@media (min-width: 992px) {
  .region-footer .nav-link {
    display: inline-block;
    text-align: center;
    font-weight: 400;
    color: #cfcfcf;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
  }

  .region-footer .nav-link:hover,
  .region-footer .nav-link:focus {
    color: #ffc107;
    border-bottom: 1px solid #ffc107;
    text-decoration: none;
  }

}

.region-footer a {
  color: #f8f9fa;
}

.region-footer a:hover {
  color: #ffc107;
  text-decoration: underline;
}

.copyright-text {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 1rem;
}

/* ────────────────────────────────
   UXOne System Messages
──────────────────────────────── */
.ux1-system-messages {
  /*margin: 1rem auto;*/
  font-family: Arial, sans-serif;
}

.ux1-system-messages__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ux1-system-messages .messages {
  border-left: 4px solid #ccc;
  padding: 1rem;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.ux1-system-messages .alert-status {
  margin: 0 !important;
}

.ux1-system-messages .messages--status {
  border-color: #0074D9;
  background-color: #e6f2ff;
}

.ux1-system-messages .messages--warning {
  border-color: #FF851B;
  background-color: #fff8e6;
}

.ux1-system-messages .messages--error {
  border-color: #FF4136;
  background-color: #ffe6e6;
}

.ux1-system-messages .ux1-system-message {
  margin: 0;
}

/* ────────────────────────────────
   UXOne Page Title Banner Styling
──────────────────────────────── */
.ux1-page-title-banner {
  background: linear-gradient(90deg, #0074D9, #00B5AD);
  color: #fff;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
}

.ux1-page-title-banner .page-title {
  color: #fff;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .ux1-page-title-banner {
    padding: 8rem 2rem;
  }

  .ux1-page-title-banner .page-title {
    font-size: 3rem;
  }
}


/* ────────────────────────────────
   UXOne Footer Bottom Layout
──────────────────────────────── */
.footer-bottom-top,
.footer-bottom-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  gap: 1rem;
}

.menu--footer .nav {
  padding-left: 0;
  margin-bottom: 0;
}

.menu--footer .nav-link {
  color: inherit;
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  text-decoration: none;
}


.social_icon_wrapper {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  margin: auto;
}

.social_icon_wrapper a {
  text-decoration: none;
  padding: 0 8px;
  margin: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit; /* Follows theme settings */
}

.social_icon_label {
  font-size: 12px;
}

.social {
  font-weight: bold;
  text-decoration: none;
  margin-right: 1rem;
  color: inherit; /* Follows theme settings */
}

.social i {
  margin-right: 0.5rem;
  font-size: 36px !important;
}

.social:hover {
  color: #00ffcc; /* Optional: hover accent */
}


@media (max-width: 768px) {
  .footer-bottom-top,
  .footer-bottom-bottom   {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ────────────────────────────────
   UXOne Webform Confirmation
──────────────────────────────── */
.ux1-webform-confirmation {
  margin: 2rem auto;
  padding: 1rem;
  max-width: 720px;
  font-family: Arial, sans-serif;
}

.ux1-webform-confirmation__message {
  background-color: #e6f2ff;
  border-left: 4px solid #0074D9;
  padding: 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ────────────────────────────────
   UXOne Contact Form Styling
──────────────────────────────── */
.webform-submission-contact-us-form {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #fefefe;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family: Arial, sans-serif;
}

.webform-submission-contact-us-form .form-item {
  margin-bottom: 1.25rem;
}

.webform-submission-contact-us-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
}

.webform-submission-contact-us-form input[type="text"],
.webform-submission-contact-us-form input[type="email"],
.webform-submission-contact-us-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.webform-submission-contact-us-form textarea {
  resize: vertical;
  min-height: 120px;
}

.webform-submission-contact-us-form .form-actions {
  margin-top: 2rem;
  text-align: left;
}

.webform-submission-contact-us-form input[type="submit"],
.webform-submission-contact-us-form button[type="submit"] {
  background-color: #0074D9;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.webform-submission-contact-us-form input[type="submit"]:hover,
.webform-submission-contact-us-form button[type="submit"]:hover {
  background-color: #005fa3;
}


/* ────────────────────────────────
   UXOne Basic Page Article Styling
──────────────────────────────── */
.ux1-basic-page {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.ux1-basic-page .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0074D9;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.ux1-basic-page .page-body {
  font-size: 1.1rem;
}

.ux1-basic-page .page-body p {
  margin-bottom: 1.25rem;
}

.ux1-basic-page .page-body h2,
.ux1-basic-page .page-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #005fa3;
}

.ux1-basic-page .page-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.ux1-basic-page .page-body ul li {
  margin-bottom: 0.5rem;
}

.ux1-basic-page .content-above,
.ux1-basic-page .content-below {
  background-color: #f9f9fb;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}


/* ────────────────────────────────
   UXOne Tag List Styling
──────────────────────────────── */
.ux1-tags {
  margin-top: 1rem;
}

.ux1-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
}

.ux1-tag {
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ensure table layout is stable */
.field-multiple-table {
  width: 100%;
  table-layout: auto;
  overflow: visible;
}

/* Ensure drag handle is visible and clickable */
a.tabledrag-handle .handle {
  width: 16px !important;
  height: 40px !important;
}

/* Prevent clipping in table cells */
tr.draggable td {
  overflow: visible !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}


/* Prevent form items from collapsing */
.field-multiple-table .form-item {
  min-width: 200px;
  overflow: visible;
}

/* Optional: make rows more readable */
.field-multiple-table tr {
  vertical-align: middle;
}


@media (max-width: 768px) {
  .field-multiple-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
