body {
  font-family: 'Open Sans', serif;
  padding-top: 54px;
  color: #4a4a4a;
  line-height: 1.8;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem; } }

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Saira Extra Condensed', serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #343a40; }

h1 {
  font-size: 3rem;
  line-height: 3.5rem; }

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #a638b2;
}

img {
  max-width: 11rem;
  max-height: 11rem;
}

.subheading {
  text-transform: none;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.35rem;
  color: #6f2478;
}

.list-social-icons a {
  color: #495057; }
  .list-social-icons a:hover {
    color: #BD5D38; }
  .list-social-icons a .fa-lg {
    font-size: 1.75rem; }

.list-icons {
  font-size: 3rem; }
  .list-icons .list-inline-item i:hover {
    color: #BD5D38; }

#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

#sideNav .navbar-nav .nav-item .nav-link.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 992px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    width: 17rem;
    height: 100vh; }
    #sideNav .navbar-brand {
      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: flex;
      align-items: flex-start;
      flex-grow: 0;
      width: 100%;
      margin-bottom: auto; }
      #sideNav .navbar-collapse .navbar-nav {
        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 {
  border-bottom: 1px solid #dee2e6;
  padding: 3rem 1rem !important;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resume-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.resume-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.resume-content {
  flex: 1; /* Allow content to take available space */
}

.resume-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Saira Extra Condensed', serif;
  color: #343a40;
}

.resume-content .subheading {
  font-weight: 500;
  color: #6f2478; /* Use a color from the theme */
}

.resume-content p {
  color: #4a4a4a; /* Ensure text color is consistent */
  margin-bottom: 1rem; /* Add spacing for readability */
}

.resume-date {
  flex-shrink: 0;
  text-align: right;
  color: #8a2d95;
}

.resume-date .location {
  display: block;
  font-size: 1rem;
  color: #6f2478;
  font-style: italic; /* Make text italic */
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
  body {
    padding-top: 0;
  }
  
  section.resume-section {
    padding: 2rem 1rem !important;
  }
  
  .resume-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  img.img-profile {
    max-width: 8rem;
    margin-bottom: 1rem;
  }
  
  #about {
    padding-top: 4rem !important;
  }
  
  /* Adjust the image and text layout */
  #about .row {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  
  #about .col-6 {
    width: 50%;
    max-width: 50%;
    padding: 0 15px;
  }
  
  #about img.img-profile {
    margin-top: 0;
    margin-bottom: 0;
    max-width: 100%;
    height: auto;
  }
  
  /* Keep table left-aligned */
  #about table {
    margin-left: 0;
    margin-right: auto;
  }
  
  /* Adjust text alignment */
  #about h1,
  #about h2,
  #about .mb-4 {
    text-align: left;
  }
}

/* Improve link styling */
a {
  text-decoration: none;
  border-bottom: 1px dotted #a638b2;
  transition: all 0.3s ease;
}

a:hover {
  border-bottom-style: solid;
  color: #6f2478;
}

/* Ensure proper contrast and focus states */
:focus {
  outline: 2px solid #a638b2;
  outline-offset: 2px;
}

.text-primary {
  color: #8a2d95 !important; /* Slightly darker for better contrast */
}

.bg-primary {
  background-color: #451a4a !important; /* Slightly darker for better contrast */
}

/* Container adjustments */
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  body {
    padding-left: 17rem;
  }
  
  section.resume-section {
    padding: 5rem 2rem !important;
  }
}
