/* Custom style for portal image titles */
/* Updated: Dropdown underline thickness reduced to 1px */
.portal-image-title {
  font-style: italic;
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* InfoMax custom styles — red brand theme */
:root {
  --infomax-red: #cc0000;
  --infomax-red-dark: #8b0000;
  --infomax-red-light: #e63946;
}

body {
  background-color: #f5f5f5;
}

.navbar-brand {
  font-size: 1.4rem;
}

/* Page banner images */
.page-banner {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}



/* Tinted sections for visual variety */


.list-group-item.active {
  background-color: var(--infomax-red);
  border-color: var(--infomax-red);
}

.list-group-item-dark {
  background-color: #f0f0f0 !important;
  color: #333 !important;
  font-weight: 600;
  border-left: 3px solid var(--infomax-red) !important;
}

h1 {
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--infomax-red-light);
}

h2 {
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.card {
  transition: box-shadow 0.2s;
  border-top: 2px solid var(--infomax-red);
}

.card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.card-title {
  color: #333;
}

.btn-danger {
  background-color: var(--infomax-red);
  border-color: var(--infomax-red);
}

.btn-danger:hover {
  background-color: var(--infomax-red-dark);
  border-color: var(--infomax-red-dark);
}

.btn-outline-danger {
  color: var(--infomax-red);
  border-color: var(--infomax-red);
}

.btn-outline-danger:hover {
  background-color: var(--infomax-red);
  border-color: var(--infomax-red);
  color: #fff;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8d7da;
  color: var(--infomax-red-dark);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--infomax-red);
  color: #fff;
}

/* Dropdown menu underline effect - fade in from left */
.navbar-nav .nav-item.dropdown .nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.navbar-nav .nav-item.dropdown .nav-link-text {
  position: relative;
  display: inline-block;
}
.navbar-nav .nav-item.dropdown .nav-link-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #cc0000;
  opacity: 0;
  transition: width 0.4s cubic-bezier(.4,0,.2,1), opacity 0.2s ease-out;
  border: none !important;
}
.navbar-nav .nav-item.dropdown .nav-link.show .nav-link-text::after,
.navbar-nav .nav-item.dropdown .nav-link[aria-expanded="true"] .nav-link-text::after {
  width: 100%;
  opacity: 1;
}

.navbar-nav .nav-item.dropdown .nav-link,
.navbar-nav .nav-item.dropdown .nav-link.show,
.navbar-nav .nav-item.dropdown .nav-link[aria-expanded="true"] {
  border-bottom: none !important; /* Remove default Bootstrap bottom border */
  box-shadow: none !important; /* Remove box shadow */
}

/* Add extra space above the portal carousel for visual separation */
.portal-carousel-spacing {
    margin-top: 8rem !important;
}

/* Fix introduction paragraph spacing on Portal page */
.portal-intro p {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}
