/*@import url('components/site-header.css');*/
@charset "UTF-8";
/*!
 * Custom Theme Overrides for Bootstrap Subtheme
 * Bootstrap 5.3.3 framework loaded by parent theme
 * This file contains ONLY custom overrides and additions
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Courier+Prime:wght@400;700&display=swap');/* ===== CUSTOM CSS VARIABLES ===== */
:root,
[data-bs-theme=light] {
  --header-h: 6rem;
  /* CUSTOM: Override primary color */
  --bs-primary: #C71C1C;
  --bs-primary-rgb: 199, 28, 28;
  --bs-secondary: #4FB9A4;
  --bs-secondary-rgb: 79, 185, 164;
  /* CUSTOM: Font variables - Inter + Courier */
  --font-body-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-weight-bold: 700;
  --font-heading-family: "Courier Prime", "Courier New", monospace;
  --font-heading-style: normal;
  --font-heading-weight: 600;
  --font-body-scale: 1.0;
  --font-heading-scale: 1.0;

  /* CUSTOM: Override Bootstrap font stack */
  --bs-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* CUSTOM: Link colors */
  --bs-link-color: #b13736;
  --bs-link-color-rgb: 177, 55, 54;
  --bs-link-hover-color: #4FB9A4;
  --bs-link-hover-color-rgb: 79, 185, 164;
}

/* Custom button color overrides */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #a91515;          /* slightly darker red for hover */
  --bs-btn-hover-border-color: #a91515;
  --bs-btn-color: #fff;                /* text color */
  --bs-btn-hover-color: #fff;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bs-secondary);
  color: #fff;
}

/* Inter optimization */
body {
  padding-top: calc(var(--header-h) + var(--toolbar-h, 0px)); /* Automatically scales with base font size */
  letter-spacing: -0.011em;
}

/* ===== ENHANCED HEADING STYLES ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading-family);
  font-weight: 500;
  letter-spacing: -0.02em; /* Compensates for Courier natural spacing */
  max-width: 100%;
}

/* Component-specific heading fixes */
.form-wrapper.accordion .accordion-button {
  font-family: var(--font-heading-family);
  font-weight: 700;
}

.btn, .form-label, .modal-title, .card-title {
  font-family: var(--font-heading-family);
}

/* Code blocks retain monospace */
code, pre, kbd, .font-monospace {
  font-family: var(--bs-font-monospace);
}

/* ===== CUSTOM POSITIONING ===== */
.listing-header-text-inner {
  position: absolute;
  bottom: 1.875rem;
  width: 100%;
}

/* ===== CUSTOM BLOCKQUOTE CITE ===== */
blockquote {
  border-left: 4px solid var(--bs-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--font-heading-family);
  font-size: 1.2rem;
  color: var(--bs-secondary);
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
  background: rgba(79, 185, 164, 0.05);

  p { margin-bottom: 0; }

  cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--bs-body-color);
    opacity: 0.7;
    &::before { content: '— '; }
  }
}

/* ===== CUSTOM BADGE STYLES ===== */
.badge.category-name {
  --bs-badge-font-size:  1.5rem;
  --bs-badge-padding-y:  0.75rem;
  --bs-badge-padding-x:  1.25rem;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 1.5rem;
  display: inline-flex;
  align-items:  center;
  justify-content:  center;
  text-align:  center;
  text-decoration:  none;
  position: relative;
  background-clip: padding-box;
}

.badge. category-name:: before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: inherit;
  opacity: 0.5;
}

.badge.category-name:hover,
.badge.category-name:focus {
  text-decoration: none;
}

.badge.category-name a {
  text-decoration: none;
  color: inherit;
}

.badge.category-name a:hover,
.badge.category-name a:focus {
  text-decoration: none;
  color: inherit;
}

/* ===== CUSTOM CAROUSEL CONTROLS ===== */
.carousel-control-prev,
.carousel-control-next {
  width: 2.5rem; /* Changed from Bootstrap default 15% to fixed small width */
}

/* ===== ACCORDION CUSTOMIZATIONS ===== */
.form-wrapper.accordion .accordion-item {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ===== CUSTOM BUTTON BADGE STYLES ===== */
.btn-badge {
  --bs-badge-font-size: 1.25rem;
  --bs-badge-padding-y:   0.75rem;
  --bs-badge-padding-x:    1.25rem;
  color: #fff;
  padding:  0.5rem 1rem;
  border-radius:   999px;
  font-size: 1.25rem;
  font-weight: 400;
  display: inline-flex;
  align-items:   center;
  justify-content:   center;
  text-align:   center;
  text-decoration:   none;
  position: relative;
  background-clip: padding-box;
}

/* Border effect using background color at reduced opacity */
.btn-badge::before {
  content:  '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hover effect - just brighten the border */
.btn-badge:hover::before {
  opacity: 0.8;
}

.btn-badge a {
  text-decoration:  none;
  color: inherit;
}

.btn-badge a:hover,
.btn-badge a:focus {
  text-decoration: none;
  color:   inherit;
}

/* ===== DRUPAL-SPECIFIC OVERRIDES ===== */

/* Links in UI widgets */
.ui-widget-content a {
  color: #c71c1c;
  text-decoration: underline;
}
.ui-widget-content a:hover {
  color: #0a58ca;
}

/* CKEditor button fixes */
.ckeditor-buttons li .cke-icon-only {
  width: auto;
}
.ckeditor-buttons li a {
  min-height: 28px;
}
.ckeditor-buttons .cke_button_icon img {
  vertical-align: initial;
}

/* ===== BUTTON CUSTOMIZATIONS ===== */

/* Link button styling */
button.link {
  color: #c71c1c;
}

/* Button sizes */
.button--small {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.5rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: var(--bs-border-radius-sm);
}

/* Anchor button overrides */
a.button {
  text-decoration: none;
}

a.button.button--primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c71c1c;
  --bs-btn-border-color: #c71c1c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #c71c1c;
  --bs-btn-disabled-border-color: #c71c1c;
}

a.button.button--danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #dc3545;
  --bs-btn-border-color: #dc3545;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bb2d3b;
  --bs-btn-hover-border-color: #b02a37;
}

a.button.button-action {
  --bs-btn-color: #000;
  --bs-btn-bg: #0dcaf0;
  --bs-btn-border-color: #0dcaf0;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #31d2f2;
  --bs-btn-hover-border-color: #25cff2;
}

/* Button spacing (only when not in button group) */
.btn, button.link, .button, a.button {
  margin: 0 0.5rem;
}
.btn:first-child, button.link:first-child, .button:first-child {
  margin-left: 0;
}
.btn:last-child, button.link:last-child, .button:last-child {
  margin-right: 0;
}

/* Reset spacing in button groups */
.btn-group .btn,
.btn-group button.link,
.btn-group .button {
  margin: 0;
}

/* Default button class styling */
a[class=button] {
  --bs-btn-color: #000;
  --bs-btn-bg: #f8f9fa;
  --bs-btn-border-color: #f8f9fa;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #f9fafb;
  --bs-btn-hover-border-color: #f9fafb;
}

/* ===== FORM CUSTOMIZATIONS ===== */

/* Image button width fix */
.form-control.image-button {
  width: unset;
}

/* Checkbox/radio display fixes */
.form-control.form-checkbox,
.form-control.form-radio {
  display: inline-block;
  height: auto;
  width: unset;
}

/* Form select minimum width */
.form-select {
  min-width: 5rem;
}

/* Search input box-sizing */
input[type=search] {
  box-sizing: border-box;
}

/* Dropbutton border reset */
.dropbutton-multiple .dropbutton .dropbutton-action > * {
  border: 0;
}

/* Node form spacing */
@media (min-width: 992px) {
  .node-form {
    margin: 2rem;
  }
}

.node-form .form-actions {
  text-align: center;
}

/* Container inline fixes */
.container-inline div,
.container-inline label {
  display: inline-block;
  margin: 0;
}

.container-inline.webform-multiple-add > .form-item > * {
  display: inline-block;
  width: unset;
}

/* Table cell form items */
td > .form-item {
  margin: 0;
}

/* Search block form display */
#search-block-form {
  display: flex;
}

/* Dropbutton minimum height */
.js td .dropbutton-wrapper {
  min-height: 2.25rem;
}

/* Dropbutton widget styling */
.dropbutton-widget {
  background-color: #fff;
  border-radius: var(--bs-border-radius);
}

.dropbutton-widget .dropbutton .dropbutton-action > * {
  padding: 0.375rem 0.75rem;
}

.webform-dropbutton .dropbutton-wrapper .dropbutton-widget {
  background-color: #fff;
}

/* File system settings form labels */
.system-file-system-settings .form-item label {
  display: table;
  font-weight: 700;
}

/* DateTime field labels */
.form-type-datetime label {
  display: block;
}

.form-type-datetime.webform-element--title-inline label,
.form-type-datetime[class$=-title-after] label {
  display: inline-block;
}

/* ===== PARAGRAPHS MODULE CUSTOMIZATIONS ===== */

.paragraph-type-label,
.paragraph-type-title {
  font-weight: 700;
}

.paragraphs-dropdown-action.button.btn-primary {
  background-color: #c71c1c;
}

.paragraphs-dropdown-action.button.btn-danger {
  background-color: #dc3545;
}

.field--widget-paragraphs .field-add-more-submit,
.field--widget-entity-reference-paragraphs .field-add-more-submit {
  margin: 0;
}

.js .field--widget-entity-reference-paragraphs td {
  padding: 1rem;
}

/* ===== NAVBAR CUSTOMIZATIONS ===== */

/* Search form in navbar */
.navbar .block-search form {
  display: flex;
  flex-direction: column;
  text-align: center;
}

@media (min-width: 576px) {
  .navbar .block-search form {
    flex-direction: row;
  }
}

.navbar .block-search form .form-actions {
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .navbar .block-search form .form-actions {
    margin-left: 0.5rem;
    margin-top: 0;
  }
}

/* Navbar link spacing */
.navbar-nav .nav-link {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.navbar-nav .nav-link.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navbar brand customizations */
.navbar-brand {
  white-space: unset;
}

.navbar-brand .site-slogan {
  display: none;
  font-size: 0.875rem;
}

@media (min-width: 992px) {
  .navbar-brand .site-slogan {
    display: block;
  }
}

.navbar-brand a.site-title {
  color: #212529;
  text-decoration: none;
}

.navbar-brand a.site-title:hover {
  color: #212529;
  text-decoration: none;
}

.navbar-brand .site-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar-brand img {
  height: 36px;
  margin: 0 1rem 0 0;
  width: auto;
}

@media (min-width: 992px) {
  .navbar-brand img {
    height: 60px;
  }
}

/* Dark navbar brand colors */
.navbar-dark .navbar-brand a.site-title,
.footer-dark .navbar-brand a.site-title {
  color: #f8f9fa;
  text-decoration: none;
}

.navbar-dark .navbar-brand a.site-title:hover,
.footer-dark .navbar-brand a.site-title:hover {
  color: #f8f9fa;
  text-decoration: none;
}

/* ===== NODE PREVIEW CUSTOMIZATIONS ===== */

.node-preview-container {
  background-color: #fff;
}

.node-preview-container .form-type-select {
  margin: 0;
}

/* ===== REGION CUSTOMIZATIONS ===== */

.region-nav-branding,
.region-nav-additional {
  flex-shrink: 0;
}

/* ===== TABS CUSTOMIZATIONS ===== */

.tabs-primary {
  margin: 1rem 0;
}

.tabs-secondary {
  margin: 0 0 1rem 0;
}

/* Mobile tabs styling */
@media (max-width: 767.98px) {
  .tabs-wrapper .tab-toggle {
    color: var(--bs-emphasis-color);
    padding: 0.5rem 1rem;
  }

  .tabs-wrapper .nav-tabs {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
  }

  .tabs-wrapper .nav-item {
    padding: 0.25rem 0.5rem;
  }

  .tabs-wrapper .nav-item.active {
    background-color: #dee2e6;
  }

  .tabs-wrapper .nav-item .nav-link {
    border: 0;
    border-radius: 0;
    background-color: unset;
    flex-grow: 1;
  }

  .tabs-wrapper .nav-item .nav-link.active {
    background-color: unset;
  }

  .tabs-wrapper:not(.is-collapsible) .nav-item:not(:first-of-type) {
    border-top: var(--bs-border-width) solid var(--bs-border-color);
  }

  .tabs-wrapper.is-collapsible .nav-item.active {
    display: flex;
    order: -1;
  }

  .tabs-wrapper.is-collapsible .nav-item:not(.active) {
    display: none;
  }

  .tabs-wrapper.is-collapsible .is-open .nav-item {
    display: flex;
  }

  .tabs-wrapper.is-collapsible .is-open .nav-item.active {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
  }

  .tabs-wrapper.is-collapsible .is-open .nav-item:not(.active) {
    border-top: var(--bs-border-width) solid var(--bs-border-color);
  }
}

@media (min-width: 768px) {
  .tabs-wrapper .tab-toggle {
    display: none;
  }
}

/* ===== TABLE CUSTOMIZATIONS ===== */

/* Tabledrag handle */
a.tabledrag-handle .handle {
  height: 1.7em;
  display: table-cell;
  padding-right: 1rem !important;
}

/* Table caption positioning reset */
table {
  caption-side: unset;
}

/* Progress element reset */
.progress {
  display: block;
  height: unset;
  overflow: unset;
  font-size: unset;
  background-color: unset;
}

/* ===== REGION TITLE CUSTOMIZATIONS ===== */

.region-title__action a.button {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c71c1c;
  --bs-btn-border-color: #c71c1c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b5ed7;
  --bs-btn-hover-border-color: #0a58ca;
}

tr.region-title {
  --bs-table-bg: #f8f9fa;
}

tr.region-title td {
  --bs-table-bg: #f8f9fa;
}

/* ===== CUSTOM COLOR CLASSES ===== */

.color-primary {
  --bs-alert-color: #084298;
  --bs-alert-bg: #084298;
  --bs-alert-border-color: #b6d4fe;
}

.color-secondary {
  --bs-alert-color: #41464b;
  --bs-alert-bg: #41464b;
  --bs-alert-border-color: #d3d6d8;
}

.color-success {
  --bs-alert-color: #0f5132;
  --bs-alert-bg: #0f5132;
  --bs-alert-border-color: #badbcc;
}

.color-info {
  --bs-alert-color: #055160;
  --bs-alert-bg: #055160;
  --bs-alert-border-color: #b6effb;
}

.color-warning {
  --bs-alert-color: #664d03;
  --bs-alert-bg: #664d03;
  --bs-alert-border-color: #ffecb5;
}

.color-danger {
  --bs-alert-color: #842029;
  --bs-alert-bg: #842029;
  --bs-alert-border-color: #f5c2c7;
}

.color-light {
  --bs-alert-color: #636464;
  --bs-alert-bg: #636464;
  --bs-alert-border-color: #fdfdfe;
}

.color-dark {
  --bs-alert-color: #141619;
  --bs-alert-bg: #141619;
  --bs-alert-border-color: #bcbebf;
}

/* ===== VIEWS ADMIN CUSTOMIZATIONS ===== */

.views-admin a {
  color: #c71c1c;
  text-decoration: underline;
}

.views-admin a:hover {
  color: #0a58ca;
}

.views-admin .views-displays .tabs {
  list-style: none;
}

.views-admin .views-ui-display-tab-bucket__title {
  padding: 4px 6px 6px;
}

.views-admin .dropbutton .dropbutton-action > * {
  line-height: 20px;
  padding: 0.1em 0.5em;
}

.views-admin .dropbutton .dropbutton-action .btn-primary {
  color: #c71c1c;
  text-decoration: underline;
}

.views-admin .dropbutton .dropbutton-action .btn-primary:hover {
  color: #0a58ca;
  text-decoration: none;
}

.views-admin .view-preview-form .form-item-view-args,
.views-admin .view-preview-form .form-actions {
  display: block;
  margin-left: 1rem;
  margin-right: 1rem;
}

/* ===== PAGINATION CUSTOMIZATIONS ===== */

.pagination {
  flex-wrap: wrap;
  padding: 1rem 0;
  justify-content: center;
}

/* ===== MEDIA LIBRARY CUSTOMIZATIONS ===== */

/* Media item edit/remove buttons */
.media-library-item__edit,
.media-library-item__remove {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  overflow: hidden;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.3125rem;
  padding: 0;
  transition: 0.2s border-color;
  color: transparent;
  background-size: 0.75rem;
  text-shadow: none;
  font-size: 0;
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: 0.25em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.75rem;
}

.media-library-item__edit {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3e%3cg fill='%23545560'%3e%3cpath d='M14.545 3.042l-1.586-1.585a1.003 1.003 0 00-1.414 0L10.252 2.75l3 3 1.293-1.293a1.004 1.004 0 000-1.415zM5.25 13.751l-3-3 6.998-6.998 3 3zM.908 14.775c-.087.262.055.397.316.312l2.001-.667-1.65-1.646-.667 2.001z'/%3e%3c/g%3e%3c/svg%3e");
  right: 3rem;
}

.media-library-item__remove {
  background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2.344 2.343l11.313 11.313M2.344 13.657L13.657 2.343' stroke='%2355565B' stroke-width='3'/%3e%3c/svg%3e");
  right: 1rem;
}

/* Media library grid layout */
.view-media-library .media-library-views-form {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  position: relative;
}

.view-media-library .media-library-views-form .form-actions,
.view-media-library .media-library-views-form .form-wrapper,
.view-media-library .media-library-views-form .media-library-select-all {
  flex: 0 0 auto;
  width: 100%;
  margin: 1rem 0;
}

.view-media-library .media-library-views-form .form-actions .form-checkbox,
.view-media-library .media-library-views-form .form-wrapper .form-checkbox,
.view-media-library .media-library-views-form .media-library-select-all .form-checkbox {
  margin-right: 1rem;
}

.view-media-library .media-library-views-form .media-library-item--grid {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .view-media-library .media-library-views-form .media-library-item--grid {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .view-media-library .media-library-views-form .media-library-item--grid {
    flex: 0 0 auto;
    width: 25%;
  }
}

.view-media-library .media-library-views-form .media-library-item--grid .views-field-media-library-select-form,
.view-media-library .media-library-views-form .media-library-item--grid .views-field-media-bulk-form {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
}

.view-media-library .media-library-views-form .media-library-item--grid .views-field-media-library-select-form .form-item,
.view-media-library .media-library-views-form .media-library-item--grid .views-field-media-bulk-form .form-item {
  margin: 0;
}

.view-media-library .media-library-views-form .media-library-item--grid .views-field-rendered-entity {
  height: calc(100% - 1rem);
  padding-top: 3rem;
  margin: 0.5rem;
}

/* Media library widget */
.media-library-view--widget {
  display: flex;
  flex-direction: column;
}

.media-library-view--widget .view-filters .form--inline,
.view-media-library .view-filters .form--inline {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
  align-items: flex-end;
}

.media-library-view--widget .view-filters .form--inline > div,
.view-media-library .view-filters .form--inline > div {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .media-library-view--widget .view-filters .form--inline > div,
  .view-media-library .view-filters .form--inline > div {
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 1rem;
  }
}

/* Media library selection */
.media-library-selection {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.media-library-selection .media-library-item.media-library-item--grid {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding-top: 3rem;
  margin: 0.5rem;
}

@media (min-width: 768px) {
  .media-library-selection .media-library-item.media-library-item--grid {
    flex: 0 0 auto;
    width: 50%;
    width: calc(50% - 1rem);
  }
}

@media (min-width: 992px) {
  .media-library-selection .media-library-item.media-library-item--grid {
    flex: 0 0 auto;
    width: 25%;
    width: calc(25% - 1rem);
  }
}

#media-library-add-form-wrapper .item-list ul {
  padding-left: 0;
  list-style: none;
}

/* ===== MISC DRUPAL OVERRIDES ===== */

/* Placeholder element reset */
em.placeholder {
  display: unset;
  min-height: unset;
  vertical-align: unset;
  cursor: unset;
  background-color: unset;
  opacity: unset;
}

/* Card image top */
.card-img-top img {
  width: 100% !important;
  max-width: 100% !important;
}

/* Alert close button */
.alert-dismissible .close {
  color: #000;
}

/* Code overflow */
code {
  overflow-y: auto;
}

/* ===== YOUR CUSTOM BLOG SECTION STYLES ===== */

.blog-section-three .btn-twentyTwo {
  position: absolute;
  right: 0;
  top: 8px;
}

.blog-meta-three .post-img {
  border-radius: 10px;
  overflow: hidden;
}

.blog-meta-three .post-date {
  font-size: 14px;
  letter-spacing: 1px;
}

.blog-meta-three .blog-title {
  font-size: 26px;
  line-height: 1.53em;
}

.blog-meta-three .blog-title.xl {
  font-size: 32px;
}

.blog-meta-three .blog-title:hover {
  color: var(--prime-five);
}

.blog-meta-three .read-btn {
  line-height: 45px;
  border: 1px solid #DBDBDB;
  border-radius: 23px;
  padding: 0 32px;
  color: var(--prime-two);
}

.blog-meta-three .read-btn:hover {
  border-color: var(--prime-two);
  background: var(--prime-two);
  color: #fff;
}

.blog-meta-three .read-btn-two {
  line-height: 45px;
  border: 1px solid var(--prime-ten);
  border-radius: 23px;
  padding: 0 32px;
  color: var(--prime-ten);
}

.blog-meta-three .read-btn-two:hover {
  background: var(--prime-ten);
  color: #fff;
}

.blog-meta-three.text-style {
  padding: 35px 50px 40px;
  border: 2px solid #000;
  border-radius: 8px;
}

.title {
  text-align: center;
}

/* ===== YOUR CUSTOM HERO REGION PARALLAX ===== */

.hero-region {
  width: 100%;
  min-height: 60vh;
  margin-bottom: 4rem;
  display: flex;
  color: #fff;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  --hero-pad: clamp(1rem, 2vw + 0.5rem, 2rem);
  display: grid;            /* replaces earlier display:flex */
  align-items: normal;      /* reset any centering from old flex */
  justify-content: normal;  /* reset */
  --parallax-bleed: 6rem;
}

.hero-region .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0,0,0,0.45);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-media picture,
.hero-media img,
.hero-media .hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* Ensure hero content is above the dark overlay and provides a positioning context */
.hero-region[data-hero-fit="scale"] .hero-content,
.hero-region .hero-content {
  position: relative;
  width: 100%;
  z-index: 2;           /* Above ::before / .hero-overlay */
  min-height: inherit;  /* Inherit min-height: 60vh from .hero-region so bottom is the region’s bottom */
  align-content: stretch;
  display: flex !important;      /* Bootstrap default: flexbox */
  flex-direction: column;        /* stack top (title) and bottom content */          /* fill the hero height */
}

.hero-region .hero-content .block-page-title-block {
  margin-top: auto;              /* pushes down from top */
  margin-bottom: auto;           /* pushes up from bottom => centered vertically */
  align-self: center;            /* center horizontally */
  text-align: center;            /* Bootstrap-like text-center without changing markup */
  width: 100%;
  padding-left: var(--hero-pad, 1rem);
  padding-right: var(--hero-pad, 1rem);
}

/* Ensure the H1 itself isn’t absolutely positioned by earlier rules */
.hero-region .hero-content .block-page-title-block h1.title {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0;
}

/* If you have an explicit bottom row element inside hero-content, let it sit at the bottom */
.hero-region .hero-content > .hero-bottom,
.hero-region .hero-content > .align-bottom,
.hero-region .hero-content > .hero-text-overlay {
  margin-top: auto;              /* pushes this block to the bottom of the region */
}

@media (max-width: 767.98px) {

  .hero-region {
    width: 100%;
    min-height: 26vh;
    margin-bottom: 4rem;
    display: flex;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    --hero-pad: clamp(1rem, 2vw + 0.5rem, 2rem);
    display: grid;            /* replaces earlier display:flex */
    align-items: normal;      /* reset any centering from old flex */
    justify-content: normal;  /* reset */
  }
  /* make hero flow normally and avoid forced min-height extremes */
  .hero-region[data-hero-fit="scale"] {
    position: relative !important;
    min-height: 20rem !important;
    height: auto !important;
    display: block !important;
    aspect-ratio: auto !important;
  }

  /* disable transforms/absolute layering from CSS or JS-driven parallax */
  .hero-region[data-hero-fit="scale"] .hero-media,
  .hero-region[data-hero-fit="scale"] .hero-media.no-parallax,
  .hero-region[data-hero-fit="scale"] .hero-media.parallax,
  .hero-region[data-hero-fit="scale"] .hero-media.is-parallax {
    position: static !important;
    inset: auto !important;
    z-index: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    will-change: auto !important;
    transform: none !important;
  }

  /* ensure image scales by width (no forced height) and preserve aspect ratio */
  .hero-region[data-hero-fit="scale"] .hero-media img,
  .hero-region[data-hero-fit="scale"] .hero-media picture,
  .hero-region[data-hero-fit="scale"] .hero-media .hero-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    object-fit: contain !important; /* or 'cover' if you prefer cropping */
    object-position: center center !important;
  }

  /* overlay and content remain positioned but not affected by transforms */
  .hero-region[data-hero-fit="scale"] .hero-overlay,
  .hero-region[data-hero-fit="scale"]::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0,0,0,0.35);
  }

  .hero-region[data-hero-fit="scale"] .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .hero-region.hero-scale-active {
    overflow: visible !important;
  }
}

  .hero-region a,
  .hero-region a:visited,
  .hero-region a:hover,
  .hero-region a:focus,
  .hero-region a:active {
    color: #fff !important;
    text-decoration-color: #fff;
  }
/* When using a responsive <img> inside .hero-media */
.hero-media {
  /* Add vertical bleed so parallax never reveals grey at top/bottom */
  top: calc(-1 * var(--parallax-bleed));
  bottom: calc(-1 * var(--parallax-bleed));
  /* left/right remain from existing inset: 0 */
}

/* Hero term badge */
.hero-term {
  position: absolute;
  left: 50%;
  top: calc(50% + 2.5rem);
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.term-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.category-icon-wrapper {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-block;
  line-height: 0;
  border-radius: 50%;
  overflow: visible;
}

.category-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.category-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.term-label {
  font-size: .9rem;
  color: rgba(255,255,255,0.95);
  margin-top: .25rem;
  pointer-events: none;
}

@media (min-width: 600px) {
  .category-icon-wrapper {
    width: 4rem;
    height: 4rem;
  }

  .category-icon {
    font-size: 1.8rem;
  }
}

/* ===== YOUR CUSTOM POST/CONTENT LAYOUT ===== */

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-with-sidebar {
  display: flex;
  margin-top: 20px;
}

.main-content {
  flex: 1;
}

.right-sidebar {
  width: 300px;
  margin-left: 20px;
}

/* ===== YOUR CUSTOM STORY TERM BUTTON COLORS ===== */

.btn-story-red { background-color: #E63946; color: #fff; }
.btn-story-black { background-color: #000000; color: #fff; }
.btn-story-white { background-color: #FFFFFF; color: #22223B; }
.btn-story-lightgray { background-color: #F1FAEE; color: #22223B; }
.btn-story-gray { background-color: #A8A8A8; color: #22223B; }
.btn-story-charcoal { background-color: #22223B; color: #fff; }
.btn-story-darkred { background-color: #C1121F; color: #fff; }
.btn-story-pink { background-color: #FFD6DF; color: #22223B; }
.btn-story-warmgray { background-color: #BFC0C0; color: #22223B; }
.btn-story-blue { background-color: #457B9D; color: #fff; }

/* ===== YOUR CUSTOM ICON ENHANCEMENTS ===== */

button i.la {
  font-size: 2.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  color: #333;
  transition: transform 0.2s ease, color 0.2s ease;
}

button:hover i.la {
  transform: scale(1.2);
  color: #22223B;
}

/* ===== YOUR CUSTOM OFFCANVAS Z-INDEX FIX ===== */

body > .offcanvas {
  z-index: 900 !important;
}

/* Base horizontal nav */
.hierarchical-taxonomy-menu.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  justify-content: center;
}

/* Position nested dropdowns */
.hierarchical-taxonomy-menu .dropdown {
  position: relative;
}

/* Hide all dropdowns by default */
.hierarchical-taxonomy-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  min-width: 16rem;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

/* Center parent icon above dropdown */
.hierarchical-taxonomy-menu .nav-item > .dropdown-menu {
  left: 50%;
  transform: translateX(-50%);
}

/* Show dropdown on hover for parent items */
.hierarchical-taxonomy-menu .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Nested dropdown positioning - appear to the right */
.hierarchical-taxonomy-menu .dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  transform: none;
  margin-top: -0.5rem;
  margin-left: -1px;
}

/* Dropdown items */
.hierarchical-taxonomy-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.hierarchical-taxonomy-menu .dropdown-item:hover,
.hierarchical-taxonomy-menu .dropdown-item:focus {
  color: #1e2125;
  background-color: #e9ecef;
}

/* Arrow indicator for nested items */
.hierarchical-taxonomy-menu .dropdown-menu .dropdown-toggle::after {
  content: "▶";
  border: none;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* Remove default Bootstrap arrow from nested dropdowns */
.hierarchical-taxonomy-menu .dropdown-item.dropdown-toggle::after {
  float: right;
  margin-top: 0.25rem;
}

/* Remove dropdown arrows from parent terms */
.hierarchical-taxonomy-menu .nav-link.dropdown-toggle::after {
  display: none;
}

/* Category Icon Styling */
.hierarchical-taxonomy-menu .category-icon-inline {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.hierarchical-taxonomy-menu .category-icon-svg {
  display: block;
}

.hierarchical-taxonomy-menu .category-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  pointer-events: none;
}

/* Adjust icon size for nav-link (top level) */
.hierarchical-taxonomy-menu .nav-link .category-icon {
  font-size: 1.6rem;
}

/* Adjust icon size for dropdown items */
.hierarchical-taxonomy-menu .dropdown-item .category-icon {
  font-size: 0.6875rem;
}

/* Large parent category icons */
.hierarchical-taxonomy-menu .category-icon-large .category-icon-svg {
  width: 3.125rem;
  height: 3.125rem;
}

.hierarchical-taxonomy-menu .category-icon-large {
  font-size: 4.5rem;
}

/* Mobile carousel styling */
@media (max-width: 768px) {
  .hierarchical-taxonomy-menu.nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    justify-content: flex-start;
  }

  .hierarchical-taxonomy-menu .nav-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    position: static;
  }

  /* Dropdowns on mobile */
  .hierarchical-taxonomy-menu .nav-item > .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    margin-top: 0.3rem;
  }

  /* Hide scrollbar but keep functionality */
  .hierarchical-taxonomy-menu.nav::-webkit-scrollbar {
    display: none;
  }

  .hierarchical-taxonomy-menu.nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Nested dropdowns appear below instead of to the right */
  .hierarchical-taxonomy-menu .dropdown-menu .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,.1);
    padding-left: 1rem;
    max-height: 30rem;
    transition: max-height 1.4s ease-out;
    -webkit-transition: max-height 1.4s ease-out;
  }

  .hierarchical-taxonomy-menu .dropdown:hover > .dropdown-menu {
    max-height: 200rem;
  }

  /* Indent nested items */
  .hierarchical-taxonomy-menu .dropdown-menu .dropdown-item {
    padding-left: 1.5rem;
  }
}

/**
 * User Picture Field Styles
 * Bootstrap-friendly circular avatar component
 * Uses Bootstrap utilities where possible
 */

/* Base user picture styles */
.user-picture {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.user-picture img,
.user-picture__default {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  background-color: var(--bs-gray-300, #dee2e6);
}

.user-picture__default {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray-600, #6c757d);
}

.user-picture__default svg {
  width: 60%;
  height: 60%;
}

/* Size variants using Bootstrap spacing scale */

/* Small - for comments, menu, inline use */
.user-picture--small {
  width: 2rem;
  height: 2rem;
}

.user-picture--small img,
.user-picture--small .user-picture__default {
  box-shadow: inset 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.15);
}

/* Medium - for article authors, listings (default) */
.user-picture--medium {
  width: 7rem;
  height: 7rem;
}

/* Large - for user profiles */
.user-picture--large {
  width: 10.5rem;
  height: 10.5rem;
}

.user-picture--large img,
.user-picture--large .user-picture__default {
  box-shadow: inset 0 0.1875rem 0.75rem rgba(0, 0, 0, 0.2);
}

/* Mobile responsive adjustments using Bootstrap breakpoints */
@media (max-width: 767.98px) {
  .user-picture--large {
    width: 6rem;
    height: 6rem;
  }

  .user-picture--medium {
    width: 2.5rem;
    height: 2.5rem;
  }

  .user-picture--small {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .user-picture--large {
    width: 5rem;
    height: 5rem;
  }
}

/* Context-specific overrides */

/* Article author */
.node--type-article .field--name-user-picture {
  margin-right: 0.75rem;
}

/* Comments */
.comment .user-picture {
  margin-right: 0.5rem;
}

/* User profile page */
.user-profile .user-picture,
.page-user .user-picture {
  margin-bottom: 1rem;
}

/* Menu/header */
.user-menu .user-picture,
.region-header .user-picture {
  vertical-align: middle;
}

/* Optional: Hover effect for interactive contexts using Bootstrap transitions */
a .user-picture img,
a .user-picture .user-picture__default {
  transition: box-shadow 0.15s ease-in-out;
}

a:hover .user-picture img,
a:hover .user-picture .user-picture__default {
  box-shadow: inset 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25);
}

a:focus .user-picture img,
a:focus .user-picture .user-picture__default {
  outline: 0;
  box-shadow: inset 0 0.125rem 0.5rem rgba(0, 0, 0, 0.25),
              0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
}
