/* ------------------------------
   General color variables
--------------------------------*/

:root {
  --primary-color: #593196;
  --secondary-color: #17141f;

  --success-color: #13b955;
  --info-color: #009cdc;
  --warning-color: #efa31d;
  --danger-color: #fc3939;

  --light-color: #f5f5f5;
  --dark-color: #222222;

  --background-color: #593196;
  --highlight-color: #7e57c2;
  --text-color: #444444;
}

/* ------------------------------
 Title color
--------------------------------*/

#title-block-header .title {
  color: #593196;
}
/* ------------------------------
   Body & typography
--------------------------------*/

body {
  color: var(--text-color);
  padding: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  word-wrap: break-word;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  line-height: 1.3;
  color: var(--text-color);
}

/* Paragraphs */
p {
  text-align: left;
}

/* ------------------------------
   Links
--------------------------------*/

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--highlight-color);
}

/* ------------------------------
   Navbar
--------------------------------*/

.navbar {
  background-color: var(--background-color);
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-title {
  color: white !important;
  font-weight: normal;
}

.navbar .nav-link.active {
  font-weight: bold !important;
  color: white !important;
}

/* ------------------------------
   Tabsets
--------------------------------*/

.tabset .nav-tabs > li > a {
  color: white !important;
  font-weight: normal;
}

.tabset .nav-tabs > li.active > a {
  color: white !important;
  font-weight: bold !important;
}

/* ------------------------------
   Responsive images
--------------------------------*/

img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
  margin: 20px auto;
}

/* ------------------------------
   Footer
--------------------------------*/

footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 10px;
  text-align: center;
}

/* ------------------------------
   Numbered circle list
--------------------------------*/

.numbered-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  text-align: left;
}

.numbered-list li::before {
  content: attr(data-number);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 15px;
  font-weight: bold;
  color: white;
  background-color: var(--primary-color);
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ------------------------------
   Custom callout icons
--------------------------------*/

/* Spanish in Society Enrichment Program */
.callout-sisep i.callout-icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  content: "\f02d" !important;
}

/* Discover Multilingual New Brunswick */
.callout-dmnb i.callout-icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  content: "\f0ac" !important;
}

/* Multilingual NJ */
.callout-multinj i.callout-icon::before {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  content: "\f1ab" !important;
}

/* ------------------------------
   Responsive helpers
--------------------------------*/

/* Iframes */
iframe {
  max-width: 100%;
  height: auto;
  border: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Main content width */
body.fullcontent .page-columns {
  max-width: 70% !important;
  margin: 0 auto !important;
  grid-template-columns: 1fr !important;
}

/* Research card tint */
.research-right > .research-card {
  background-color: var(--light-color);
}

/* ------------------------------
   Mobile
--------------------------------*/

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    padding: 15px;
  }
}

/* Publications / presentations reference style */

.references-list {
  margin-left: 2em;
  text-indent: -2em;
  line-height: 1.8;
}

.references-list p {
  margin-bottom: 1em;
  text-align: left;
}

/*Space out navigation bar*/
.navbar-nav {
  gap: 1.75rem;
}

.navbar .nav-link {
  font-size: 1.25rem;
}

/* ------------------------------
   Mobile image handling
--------------------------------*/

@media (max-width: 768px) {
  img[style*="float"] {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    margin: 1rem auto !important;
  }

  figure[style*="float"] {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 1rem auto !important;
  }

  figure img {
    width: 100% !important;
    height: auto;
  }
}