body { 
  padding-top: 56px; 
  margin: 0;
  overflow-x: hidden;
  font-family: 'Lato Light';
}

.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: #45b06cff; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom:.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/*------------------------------- sidebar -------------------------------*/
.wrapper {
  display: flex;
  width: 100%;
}

#sidebar {
  width: 250px;
  color:#9DBAE2;
  position: fixed;
  top: 0; /* Stick to the top */
  left: 0;
  min-height: 100vh; /* sidebar height full */
  transition: margin-left 0.3s ease; /* Add smooth transition */
  z-index: 999;
}

#sidebar.active {
  margin-left: -250px;
}

a[data-toggle="collapse"] {
  position: relative;
}

.btn-info {
  background-color: #9DBAE2; 
  border-color: #9DBAE2;
  border: none;
  padding: 0; 
}

.navbutton-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  background-color: #9DBAE2; 
}

/*------------------------------- header -------------------------------*/
.custom-header {
  background-color: #9DBAE2; 
  padding-top: 33%; 
  padding-bottom: 33%; 
  background-size: cover;     
  background-position: center; 
  background-repeat: no-repeat; 
}

.custom-header h1, .custom-header p {
  font-family: 'Louis George Cafe', sans-serif;
  color: #fff;
  font-size:calc(3.475rem + 2.7vw);
  font-weight: 300;
  line-height: 1.2;
}

/*------------------------------- header photos-------------------------------*/

.full-page-header {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}


/*------------------------------- home page header -------------------------------*/

/*------------------------------- footer -------------------------------*/
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: white; text-decoration: underline; }


/*------------------------------ navbar -------------------------------*/
.navbar-custom {background-color: #365486; }
.navbar {
  font-family: 'Late Light';
  font-size: 18px;
}
.navbar .nav-link {color: #ffffff; /* Change link color */}
.navbar .nav-link:hover {color: #9DBAE2; /* Change hover color */}

.navbar-nav .nav-link {
  margin-top: -20px;
  padding-left: 20px;
}
.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0.5rem;
  padding-left: 1.0rem;
}

.dropdown-menu{
  font-size: 18px;
  background-color: #365486;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .25rem;
}

.dropdown-item{
  color:#fff
}

/*------------------------------- fonts -------------------------------*/

@font-face {
    font-family: 'Lato Light';
    src: url('static/Lato-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Louis George Cafe';
    src: url('static/louis-george-cafe-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
  font-size: 1.2rem;
}

/*------------------------------- loader -------------------------------*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 1;
    height: 100%;
    width: 100%;
    z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
}

.loader img {display: block;}

.fade-out {
    animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
    from {opacity: 1;}
    to {opacity: 0;}
}

/*------------------------------- team container -------------------------------*/
.teamcontainer {
  padding: 0 20px;
} 

.teamcard {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  position: relative; /* recent: to ensure overlay positioning */
  height: 500px;
  overflow: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.teamcolumn {
  flex: 0 0 33%; 
  max-width: 30%;
  box-sizing: border-box;
  padding: 0 20px;
  margin-bottom: 40px;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #365486;
  display: flex; /* added in recent */
  align-items: center; /* added in recent */
  justify-content: center; /* added in recent */
}

.image-container:hover .overlay {
  opacity: 1;
}

.overlaytext {
  color: white;
  font-size: 18px;
  text-align: center;
  margin: 3px;
  overflow-y: scroll;
}

.image-container {
  position: relative; 
  display: inline-block; 
  height: 70%;
  width: 100%; 
}

.image-container img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 

}

@media screen and (max-width: 650px) {
  .teamcolumn {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/*------------------------------- team scrollbar -------------------------------*/

.custom-scrollbar {
    overflow-y: scroll; 
    overflow-x: clip;
    max-height: 300px; 
    width: 100%; 
    box-sizing: border-box; 
  
}

/* width */
.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.custom-scrollbar::-webkit-scrollbar-track {
  background: #365486; 
}

/* Handle */
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: white; 
}

/* Handle on hover */
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #888; 
}


/*------------------------------- home page container -------------------------------*/

.hometextcolumn {
  flex: 0 0 57%; 
  max-width: 100%;
  margin-bottom: 100px;
}

.homeimagecolumn {
  flex: 0 0 38%; 
  max-width: 100%;
  padding: 0 30px;
  margin-bottom: 100px;
}


/*------------------------------- transitions for home page -------------------------------*/
.fade-in,
.slide-in-left,
.slide-in-right,
.slide-up-right,
.slide-up-center {
  opacity: 0;
  transition: opacity 2s, transform 2s;
}

.fade-in.active,
.slide-in-left.active,
.slide-in-right.active,
.slide-up-right.active,
.slide-up-center.active {
  opacity: 1;
}

.slide-in-left {
  transform: translateX(-100%);
}

.slide-in-left.active {
  transform: translateX(0);
}

.slide-in-right {
  transform: translateX(100%);
}

.slide-in-right.active {
  transform: translateX(0);
}

.slide-up-right {
  transform: translate(100%, 100%);
}

.slide-up-right.active {
  transform: translate(0, 0);
}

.slide-up-center {
  transform: translateY(100%);
}

.slide-up-center.active {
  transform: translateY(0);
}

/*------------------------------- img adjustment -------------------------------*/
.img-fluid {
  max-height: 66.67vh;
  width: 100%;
  height: auto;
}

/*------------------------------- flex container for overflow home page -------------------------------*/
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px; /* can adjust */
}

.flex-item {
  flex: 1 1 45%;
  box-sizing: border-box;
  padding: 10px;
  max-width: 45%;
}

@media screen and (max-width: 650px) {
  .flex-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/*------------------------------- SIDEBAR STYLING -------------------------------*/

@media (max-width: 768px) {
  #sidebar {
      margin-left: -250px;
  }
  #sidebar.active {
      margin-left: 0;
  }
}

a, a:hover, a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

#sidebar {
  /* don't forget to add all the previously mentioned styles here too */
  background-color: #9DBAE2;
  color: #fff;
  transition: all 0.3s;
}

#sidebar ul.components {
  padding: 20px 0;
}


#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul li a {
  padding: 10px;
  font-size: 1.1em;
  display: block;
}
#sidebar ul li a:hover {
  color: #365486;
  background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
  color: #fff;
  background: #9DBAE2;
}

.btn-info :hover{
  background-color: #9DBAE2;
  border-color: #9DBAE2;
}

ul ul a {
  font-size: 0.9em !important;
  padding-left: 30px !important;
  background: #9DBAE2;
}


/*------------------------------- engineering page body -------------------------------*/

.content-with-sidebar {
  margin-right: 20%;
}


.sidebar {
  width: 250px;
  height: 100%;
  color:#9DBAE2;
  position: absolute;
  left: -40%;
  min-height: 100vh; /* sidebar height full */
  transition: left 0.3s ease; /* Add smooth transition */
  z-index: 999;
}


@media (max-width: 768px) {
  .sidebar {
      margin-left: -250px;
  }
  .sidebar.active {
      margin-left: 0;
  }
}

.sidebar {
  /* don't forget to add all the previously mentioned styles here too */
  background-color: #9DBAE2;
  color: #fff;
  transition: all 0.3s;
}


.sidebar ul p {
  color: #fff;
  padding: 10px;
}

.sidebar ul li a {
  padding: 20px;
  font-size: 1.2rem;
  display: block;
  padding-left: 40px;
  border-bottom: 1px solid #fff;
}
.sidebar ul li a:hover {
  color: #9DBAE2;
  background: #fff;
}

.sidebar ul li.active > a, a[aria-expanded="true"] {
  color: #fff;
  background: #9DBAE2;
}

.custom{
  flex-flow: wrap;
}

.active{
  left: -11%;
}

.tomove{
  position: relative;
  left: 0%;
  top:0%;
  transition: left 0.3s ease;
}

.active-tomove{
  left: 20%;
}

/*------------------------------- contributions table -------------------------------*/

.table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid black; /* Border color set to black */
}
.table th, .table td {
    border: 1px solid black; /* Cell border color set to black */
    padding: 8px;
    text-align: center; /* Center align text */
}

/* Set column widths */
.table th:nth-child(1), .table td:nth-child(1) {
  width: 20%;
}
.table th:nth-child(2), .table td:nth-child(2) {
  width: 15%;
}
.table th:nth-child(3), .table td:nth-child(3) {
  width: 15%;
}
.table th:nth-child(4), .table td:nth-child(4) {
  width: 50%;
}
