:root {
  --hover-color: rgba(138, 214, 255, 0.602);
  --common-background: rgb(240, 240, 240, 0.4)
}

body {
  background-color: #f8f9fa;
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

/* .sidebar-color {
  background-color: #f8f8fc;
  opacity: 0.9;
  background-image: radial-gradient(#444cf7 0.5px, #f4f4ff 0.5px);
  background-size: 10px 10px;
} */


.sidebar-color {
  background-color: #ffffff;
  background-image: linear-gradient(135deg, #f5f5f9 25%, #fafafe 25%, #fafafe 50%, #f5f5f9 50%, #f5f5f9 75%, #fafafe 75%, #fafafe 100%);
  background-size: 20px 20px;
  border-right: 1px solid #eaeaea;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.05);
}

#sidebar {
  height: 100%;
  /* background-color: aliceblue; */
  color: #000000;
  transition: margin-left 0.3s;
  text-align: center;
  font-size: 18px;
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


#content {
  transition: margin-left 0.3s;
  padding: 15px;
  margin-left: 250px;
}

#menu-toggle,
#menu-close {
  cursor: pointer;
  display: none;
  position: fixed;
  top: 8px;
  left: 93%;
  z-index: 1002;
}

#sidebar .list-group-item {
  background-color: rgba(255, 255, 255, 0);
  color: #000000;
  border: none;
  text-align: left;
  padding-left: 10%;
  padding-bottom: 0px;
  padding-top: 0px;
  margin-bottom: 5px;
}

#sidebar .list-group-item:hover {
  background-color: var(--hover-color);
}

#sidebar .list-group-item.active {
  background-color: #80d0ea;
  border-left: 4px solid #0086b3;
  /* Change the border color as needed */
}

.list-unstyled.components li {
  margin-bottom: 13px;
}

/* top hamberger color bar */
.color-bar {
  display: none;
}

/* modern hyperlink start */
.modern-link {
  color: #3b82f6;
  text-decoration: none;
  padding: 0.25rem 0.05rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  background-color: rgba(59, 131, 246, 0.047);
  /* font-weight: 500; */
}

a {
  text-decoration: none;
}

.modern-link:hover {
  background-color: rgba(59, 130, 246, 0.1);
  /* text-decoration: underline; */
}

/* modern hyperlink end */


/* important page start */
/* Image styling */
.hoverImage {
  position: relative;
  align-self: stretch;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  width: 96px;
  height: 96px;
  color: black;
  transition: transform 0.5s ease-in-out;
}

.impPageLink {
  color: black;
}

.impPageLink:hover {
  color: black;
}

.impPageLinkdiv {
  font-family: Perpetua, serif;
  font-size: 20pt;
  text-align: center;
}

.hoverImageWrapper:hover .hoverImage {
  transform: scale(1.3);
  color: black;
}

/* important page end */

/* news update start */
.news-container {
  height: 480px;
  /* border: 1px solid #ccc; */
  /* padding: 10px;          */
  box-shadow: 0px 4px 8px rgba(72, 72, 72, 0.1);
  font-family: 'GFS Didot';
  font-size: 13.5pt;
  overflow-y: auto;
}

/* Styling each news item */
.news-item {
  margin-bottom: 13px;
  margin-left: 12px;
  /* Spacing between news items */
}

/* Date part */
.news-item .date {
  font-weight: bold;
  color: #333;

}

/* News description */
.news-item .description {
  color: #595959;
  display: inline;
  /* Keep the date and news on one line */
}

/* Optional: Scrollbar styling (for modern browsers) */
.news-container::-webkit-scrollbar {
  width: 6px;
}

.news-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  /* Color of scrollbar thumb */
  border-radius: 10px;
}

/* Hover effect for the news item */
.news-item:hover {
  background-color: var(--hover-color);
  /* Change background color on hover */
}

.news_card {
  margin-bottom: 10px;
  /* background-color: rgba(242, 223, 250, 0.403); */
  /* height: 900px; */
  background-color: var(--common-background);
  border: none;
}

/* news update end */


/* card start */
.pub_card {
  margin-bottom: 10px;
}

.contact-button {
  display: inline-block;
  color: #3d3d3d;
  font-size: 18px;
  padding: 6px 6px;
  font-family: 'GFS Didot';
  border-radius: 8px;
  border: 1px solid rgb(0, 0, 0);
  margin-bottom: 3px;
  /* margin: 30px; */
  /* border-bottom: 20px; */
  white-space: nowrap;
  /* line-height: 45px; */
}

.contact-button:hover {
  /*formatting goes here*/
  background-color: var(--hover-color);
  color: #000000;
}

.default_card_text {
  font-size: 14pt;
  /* font-family: 'Lato', sans-serif; */
  font-family: 'GFS Didot';
  /* text-align: justify; */
  color: #575757;
}

.about_card {
  margin-bottom: 3px;
  background-color: rgb(240, 240, 240);
  border: none;

}

.edu_card {
  margin-bottom: 10px;
  background-color: var(--common-background);
  border: none;
}

.cv_card {
  margin-bottom: 10px;
  background-color: var(--common-background);
  border: none;
}

.exp_card {
  margin-bottom: 10px;
  background-color: var(--common-background);
  border: none;
}

/* highlight horizontal card start */
.highlight-carousel-wrapper {
  position: relative;
  margin: 20px auto;
  max-width: 100%;
}

.highlight-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  padding: 4px 0;
}

.highlight-card-container {
  display: flex;
  gap: 16px;
  padding: 0 16px;
}

.highlight-card {
  width: calc(100vw - 32px);
  max-width: 300px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

@media (min-width: 400px) {
  .highlight-card {
      width: calc(100vw - 64px);
  }
}

@media (min-width: 640px) {
  .highlight-card {
      width: calc((100vw - 96px) / 2);
  }
}

@media (min-width: 1024px) {
  .highlight-card {
      width: calc((100vw - 128px) / 3);
  }
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  padding-bottom: 10px;
}

.highlight-card-title {
  /* padding-top: 10px; */
  /* font-family: sans-serif; */
  /* color: #1a1b1e; */
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  /* font-size: clamp(1rem, 2.5vw, 1.125rem); */
}

.highlight-modern-link {
  color: #161616;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  background-color: rgba(59, 206, 246, 0.047);
  font-family: 'GFS Didot';
  /* font-weight: 500; */
}


.highlight-modern-link:hover {
  background-color: rgba(59, 202, 246, 0.259);
  /* text-decoration: underline; */
}

.highlight-scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.highlight-carousel-wrapper:hover .highlight-scroll-button {
  opacity: 1;
  pointer-events: all;
}

.highlight-scroll-button:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.highlight-scroll-button.left {
  left: 8px;
}

.highlight-scroll-button.right {
  right: 8px;
}

.highlight-scroll-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #333;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-scroll-container::-webkit-scrollbar {
  display: none;
}

.highlight-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 768px) {
  .highlight-card-container {
      padding: 0 8px;
  }
}
/* highlight horizontal card end */

/* experiance mini card start */
.mini-card-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  width: 100%;
  cursor: grab;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.mini-card {
  flex: 0 0 300px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: rgb(248, 248, 248);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-7px);
}

.mini-card img {
  width: 100%;
  height: 50%;
  /* padding-top: 2%; */
  /* object-fit: cover; */
}

.mini-card-content {
  padding: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  /* font-family: Perpetua, serif;  */
  font-family: 'GFS Didot';
  text-align: center;
}


.mini-card-title {
  font-size: 1.2rem;
  /* font-weight: bold; */
  margin: 0;
  margin-top: 3px;
}

.mini-card-title-inside {
  font-size: 1rem;
  font-weight: normal;
  margin-top: 8px;
}

.mini-card-text {
  /* margin-top: 8px; */
  font-size: 1rem;
  color: #555;
}

.mini-card-container::-webkit-scrollbar {
  display: none;
}

.mini-card-container:active {
  cursor: grabbing;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.292);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
  z-index: 10;
  opacity: 0;
}

.scroll-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.mini-card-wrapper:hover .scroll-button {
  opacity: 1;
}

.left-button {
  left: 10px;
}

.right-button {
  right: 10px;
}

/* experiance mini card end */

/* tiles image start */
.tiles_container {
  display: flex;
  align-items: center;
  max-width: 100%;

  padding-bottom: 6px;
  /* border: 1px solid #ccc; */
  /* border-radius: 8px; */
}

.tiles_container img {
  width: 84px;
  height: 74px;
  /* height: auto; */
  padding-right: 10px;
  /* border: 1px solid #ccc; */
  /* object-fit: cover; */
  /* border-radius: 50%; */
  /* margin-right: 15px; */
}

.tiles_container p {
  margin: 0;
  font-size: 13pt;
  line-height: 1.2;
}

/* tiles image end */

/* .pub_card:hover {
  transform: scale(1.01);
  transition: transform 0.3s ease;
} */

.publication_title {
  font-size: 20pt;
  /* margin-bottom: 3px;  */
  font-family: 'GFS Didot';
  line-height: 1.1;
  /* margin: 2px; */
  padding: 3px;
  color: #464646;
}

.author_name {
  background-color: rgb(221, 221, 221);
  padding: 3px;
  display: inline-block;
  color: #464646;
  margin-right: 2px;
  border-radius: 8px;
  margin-bottom: 2px;
  font-family: 'Poiret One';
  font-size: 13pt;
}

.journal_name {
  font-size: 19px;
  margin-top: 2px;
  margin-bottom: 0px;
  font-family: 'GFS Didot';
  padding: 2px;
  display: inline-block;
  border-radius: 8px;
  /* background-color: rgb(255, 216, 216); */
  color: #464646;
}

.journal_name_span {
  background-color: #c6f8f8d4;
  /* background-color: rgb(200, 255, 209); */
  /* background-color: rgb(255, 216, 216); */
  padding: 3px;
  border-radius: 8px;
  line-height: 1.7;
}

.card_button {
  font-size: 18px;
  padding: 4px 8px;
  font-family: 'GFS Didot';
  margin-bottom: 3px;
  /* color: #173737; 
  border: 1px solid #04d80f; */
}

.card_button:hover {
  /* background-color: #ff5c16; /* Darker on hover */
  border-color: #0056b3;
  color: #ffffff; */
}

/* card end */

/* carousel start */


#image-carousel {
  max-width: 75%;
  /* Set your preferred max width */
  margin: 0 auto;
  /* Center the carousel on the page */
}

.splide__track {
  height: 60%;
  /* Adjust to desired height */
}

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ensure the images maintain aspect ratio and don't overflow */
.splide__slide img {
  max-width: 100%;
  /* Image scales down but keeps ratio */
  max-height: 100%;
  /* Image scales to fit the container */
  object-fit: contain;
  /* Ensure the entire image is visible without distortion */
}

/* carousel end */

/* dark mode */
#toggleDarkMode {
  cursor: pointer;
  position: fixed;
  width: 0;
  top: 8px;
  left: 97%;
  z-index: 1003;
}


/* dark mode start */


.dark-mode {
  background-color: #222;
  color: #fff;
}

.dark-mode img.sidebar-img {
  filter: invert(1);
}

.dark-mode .card {
  background-color: #333;
  /* Dark mode background color */
  color: #fff;
  /* Dark mode text color */
}


.dark-mode .popup {
  background-color: #333;
  color: #fff;
}

/* dark sidebar bg start */
.dark-mode .sidebar-color {
  background-color: #1a1b1e;
  background-image: linear-gradient(135deg, #212226 25%, #1d1e22 25%, #1d1e22 50%, #212226 50%, #212226 75%, #1d1e22 75%, #1d1e22 100%);
  background-size: 20px 20px;
  border-right: 1px solid #2a2b2f;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.2);
}

/* dark sidebar bg end */


/* modern hyperlink start */
.dark-mode.modern-link {
  color: #60a5fa;
}

.dark-mode.modern-link:hover {
  background-color: rgba(96, 165, 250, 0.1);
}

/* modern hyperlink end */

.dark-mode #sidebar {
  background-color: #333;
  color: #fff;
}

.dark-mode #sidebar .list-group-item:hover {
  background-color: rgb(47, 119, 119);
}

.dark-mode #sidebar .list-group-item.active {
  background-color: #224a75;
  border-left: 4px solid #002a56;
  /* Change the border color as needed */
}

.dark-mode #sidebar .list-group-item {
  background-color: #33333300;
  color: #ebebeb;
}

.dark-mode .color-bar {
  background-color: #333;
  color: #ebebeb;
}

.dark-mode .contact-button {
  background-color: #333;
  color: #ebebeb;
  border-color: #fff;
}

.dark-mode .contact-button:hover {
  background-color: rgb(138, 208, 255);
  color: #000000;
}

/* publication text color start*/
.dark-mode .publication_title {
  color: #ebebeb;
}

.dark-mode .default_card_text {
  color: #ebebeb;
}


/* publication text color end*/


/* important page start */
.dark-mode .impPageLink {
  color: rgb(236, 236, 236);
}

.dark-mode .impPageLink:hover {
  color: rgb(236, 236, 236);
}

/* important page end */

/* highlight horizontal card start */
.dark-mode .highlight-card-title {
  color: #fff;
}
.dark-mode .highlight-modern-link {
  color: #fff;
}
/* highlight horizontal card end */

/* experiance mini card start */
.dark-mode .mini-card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #333;

}

.dark-mode .mini-card-title {
  color: #fff;
}

.dark-mode .mini-card-text {
  color: #fff;
}

/* experiance mini card end */

/* new update start */
/* Date part */
.dark-mode .news-item .date {
  font-weight: bold;
  color: #ededed;
}

/* News description */
.dark-mode .news-item .description {
  color: #eaeaea;
  display: inline;
  /* Keep the date and news on one line */
}

/* Hover effect for the news item */
.dark-mode .news-item:hover {
  background-color: #211b1b;
  /* Change background color on hover */
}

/* new update end */

/* dark mode end */


@media (max-width: 1300px) {

  #sidebar {
    margin-left: -250px;
    /* text-align: left; */
    text-align: center;
  }

  #content {
    margin-left: 0;
  }

  #sidebar.active {
    margin-left: 0;
  }

  #menu-toggle {
    display: block;
  }

  #menu-close {
    display: none;
  }

  #toggleDarkMode {
    cursor: pointer;
    position: fixed;
    width: 0;
    top: 8px;
    left: 87%;
    z-index: 1003;
  }

  .color-bar {
    display: block;
    width: 100%;
    height: 40px;
    background-color: aliceblue;
    text-align: center;
    position: fixed;
    top: 0;
    color: #000000;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: bold;
    line-height: 40px;
    font-size: 16px;
    border-radius: 8px;
    z-index: 1001;
    opacity: 0.9;
  }

  /* card start */
  .default_card_text {
    font-size: 11pt;
  }

  .reference_card_text {
    font-size: 11pt;
  }

  .publication_title {
    margin-top: 10px;
    font-size: 14pt;
    line-height: 1.1;
  }

  .author_name {
    font-size: 11pt;
  }

  .journal_name {
    font-size: 14px;
  }

  .card_button {
    font-size: 15px;
  }

  /* card end */

  /* experience mini card start */

  .mini-card {
    flex: 0 0 200px;
    height: 330px;

  }

  .mini-card-title {
    font-size: 0.9rem;
    /* margin: 0; */
  }

  .mini-card-title-inside {
    font-size: 0.9rem;
  }

  .mini-card-text {
    font-size: 0.9rem;
    color: #555;
  }

  /* experience mini card end */

  /* carousel start */
  #image-carousel {
    max-width: 95%;
    /* Set your preferred max width */
    margin: 0 auto;
    /* Center the carousel on the page */
  }

  .splide__track {
    height: 90%;
    /* Adjust to desired height */
  }

  /* carousel end */

  /* contact button start */
  .contact-button {
    font-size: 13px;
  }

  /* contact button end */

  /* imporatnt page start */
  .impPageLinkdiv {
    font-size: 11pt;
  }

  .hoverImage {
    width: 66px;
    height: 66px;
  }

  /* imporatnt page end */

  /* lateset news start */
  .news-container {
    font-size: 11pt;
  }

  /* lateset news end */

  /* tiles image start */
  .tiles_container p {
    font-size: 11pt;
  }

  /* tiles image end */

}

@media (max-width: 768px) {

  /* experience mini card start */
  .scroll-button {
    display: none;
  }

  /* experience mini card end */
}