/*!
 * Start Bootstrap - Resume v5.0.4 (https://startbootstrap.com/template-overviews/resume)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-resume/blob/master/LICENSE)
 */

:root {
  --body-text-color: #868e96;
  --titles-text-color: #343a40;
  --social-icons-background-color: #495057;
  --social-icons-color: #fff;
  --hr-color: rgba(0, 0, 0, 0.1);

  --navbar-selected-text-color: #fff;
  --navbar-unselected-text-color: rgba(255, 255, 255, 0.75);
  --navbar-hover-text-color: rgba(255, 255, 255, 0.5);

  --main-primary-color: #3876bd;
  --link-on-focus-color: #0e4a8f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --body-background-color: black;
    --titles-text-color: #dddddd;
    --hr-color: rgba(255, 255, 255, 0.2);

    --navbar-selected-text-color: rgba(255, 255, 255, 0.9);
    --navbar-unselected-text-color: rgba(255, 255, 255, 0.7);
  }
}

body {
  font-family: Muli, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  padding-top: 54px;
  color: var(--body-text-color);
  background-color: var(--body-background-color);
}
@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: var(--titles-text-color);
}
h1 {
  font-size: 6rem;
  line-height: 5rem;
  word-break: break-all;
}
h2 {
  font-size: 3.5rem;
}
h3 {
  font-size: 2rem;
}
p.lead {
  font-size: 1.15rem;
  font-weight: 400;
}
.subheading {
  font-weight: 500;
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.5rem;
}
.social-icons a {
  display: inline-block;
  height: 3.5rem;
  width: 3.5rem;
  background-color: var(--social-icons-background-color);
  color: var(--social-icons-color) !important;
  border-radius: 100%;
  text-align: center;
  font-size: 1.5rem;
  line-height: 3.5rem;
  margin-right: 1rem;
}
.social-icons a:last-child {
  margin-right: 0;
}
.social-icons a:hover {
  background-color: var(--main-primary-color);
}
.dev-icons {
  font-size: 3rem;
}
.dev-icons .list-inline-item i:hover {
  color: var(--main-primary-color);
}
#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}
#sideNav .navbar-toggler:focus {
  outline-color: #d48a6e;
}
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--navbar-selected-text-color);
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--navbar-unselected-text-color);
}
.navbar-dark .navbar-nav .nav-link {
  color: var(--navbar-hover-text-color);
}
hr {
  border-top: 1px solid var(--hr-color);
}
@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-flex: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}
section.resume-section {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  max-width: 75rem;
}
section.resume-section .resume-item .resume-date {
  min-width: none;
}
/* Removed legacy mobile h1 size hack; superseded by theme.css */
@media (min-width: 992px) {
  section.resume-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}
.bg-primary {
  background-color: var(--main-primary-color) !important;
}
.text-primary {
  color: var(--main-primary-color) !important;
}
a {
  color: var(--main-primary-color);
}
a:active,
a:focus,
a:hover {
  color: var(--link-on-focus-color);
}
img.logo {
  float: left;
  max-width: 150px;
  max-height: 80px;
  margin: 0 20px 0 0;
}

@media (min-width: 768px) {
  /* For .resume-item that IS a flex container with row direction (like in Education) */
  section.resume-section .resume-item.flex-md-row > .resume-content {
    flex-grow: 1;
    margin-right: 1rem; /* Space between content and date */
  }

  /* section.resume-section .resume-item .resume-content { */
  /* This rule at line ~225 is general and currently empty, which is fine. */
  /* Specific content styling for non-flex .resume-item (Experience) is handled by .job-header etc. */
  /* } */

  .job-header {
    overflow: hidden; /* Contains floats - clearfix */
  }

  .job-header .main-experience-date {
    float: right; /* Float the date to the right */
    margin-left: 1rem; /* Space to the left of the date */
    /* white-space: nowrap; */ /* Optional: if date should not wrap */
    /* text-align: right; */ /* Already has text-md-right, but can be explicit */
  }

  .job-header .job-title-text {
    overflow: hidden; /* Prevents text from wrapping around the floated date if it's too long */
    /* This will take up the remaining space to the left of the date */
  }

  /* Remove or reset styles for the old .resume-date.text-md-right if it was a direct child of .resume-item */
  section.resume-section .resume-item > .resume-date.text-md-right {
    display: block !important; /* Ensure it is visible, overriding previous 'none' */
    flex-shrink: 0; /* Prevent date from shrinking */
    min-width: 10rem; /* Give it a minimum width */
    text-align: right; /* Align text to the right */
    white-space: nowrap; /* Keep date on one line */
  }

  section.resume-section
    .resume-item
    .resume-content
    .resume-date.text-md-left {
    flex: none; /* Remove any inherited flex item behavior */
    min-width: auto; /* Reset min-width, let it be natural */
    white-space: normal; /* Allow text to wrap if needed */
    text-align: left; /* Ensure text is left-aligned */
    display: block; /* Behave as a standard block element */
    margin-bottom: 0.25rem; /* Optional: space below this inner date */
  }
}
