/* breadcrumb */
/* faculty-staff */
#publication .breadcrumb {
  /* padding: 22px 22px; */
  padding-top: 25px;
  padding-bottom: 22px;
  font-size: 16px;
  color: #666;
  margin-bottom: 0px;
}

#publication .breadcrumb a {
  text-decoration: none;
  color: #86868b;
}

#publication .breadcrumb strong {
  text-decoration: none;
  color: #23559b;
}

#publication .breadcrumb a:hover {
  text-decoration: underline;
}

#publication .breadcrumb span {
  margin: 0 5px;
}

/* //.breadcrumb */
/* searchcontainer */
.search-input-wrapper {
  position: relative;
  width: 220px;
  margin-left: auto;
  margin-right: 20px;
}

.mobile-search {
  display: flex;
  gap: 20px;
}

.mobile-search img {
  display: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 35px 10px 15px;
  /* space for icon on the right */
  border: 1px solid #23559b;
  border-radius: 999px;
  background-color: #dde5f9;
  font-size: 14px;
  outline: none;
  color: #383838;
}

.search-icon-faculty {
  position: absolute;
  right: 12px;
  top: 50%;
  color: #23559b;
  transform: translateY(-50%);
  pointer-events: none;
}

/* searchends */
/* faculty */
.filter-flex {
  display: flex;
  gap: 15px;
}

.breadcrumb {
  font-size: 16px;
  color: #666;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.filters-container {
  /* padding: 15px 20px; */
}

.filters-container h3 {
  color: #858687;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.container-faculty {
  margin-top: 25px;
}

.filter-tabs {
  display: block;
}

.filter-tab {
  position: relative;
  white-space: nowrap;
  margin-bottom: 15px;
}

.filter-tab input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-tab label {
  display: inline-block;
  padding: 8px 15px 8px 40px;
  border-radius: 20px;
  font-size: 14px;
  color: #383939;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* Checkbox style */
.filter-tab label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #383939;
  border-radius: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* Tick mark for all tabs */
.filter-tab label::after {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Inactive tabs - gray tick */
.filter-tab:not(:has(input[type="radio"]:checked)) label::after {
  color: #383939;
  left: 24px;
  top: 10px;
  background: #f5f5f7;
}

/* Active tab styles */
.filter-tab input[type="radio"]:checked+label::before {
  background: #23559b;
  border-color: #23559b;
}

.filter-tab input[type="radio"]:checked+label::after {
  color: white;
  background-color: #23559b;
  left: 16px;
  top: 16px;
}

.filter-tab input[type="radio"]:checked+label {
  left: 0px;
}

.news-items {
  padding: 20px 0px;
  width: -webkit-fill-available;
}

.news-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.news-title {
  font-size: 18px;
  color: #0066cc;
  margin-bottom: 10px;
  font-weight: bold;
}

.news-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* faculty */

/* tab inside css */
/* publication */
#publication{
  min-height: 80vh;
}
#publication-tab .tab-heading {
  padding: 0;
  margin-bottom: 40px;
}

#publication-tab .active[data-tab-content] {
  display: block;
  color: #000000;
}

#publication-tab .tab.active {
  font-size: 18px;
  color: #23559b;
  font-weight: 600;
  border-color: #23559b;
  padding: 12px 25px 12px 25px;
  cursor: pointer;
}

#publication-tab [data-tab-content] {
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease;
}

#publication-tab .active[data-tab-content] {
  visibility: visible;
  opacity: 1;
  height: auto;
}

#publication-tab .common-tab {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#publication-tab .common-tab li {
  border-bottom: 2px solid #cfcfcf;
  padding: 12px 25px 12px 25px;
  font-size: 18px;
  cursor: pointer;
  line-height: 25px;
  font-weight: 400;
  color: #858687;
}

/* publication */
/* tab css ends */
/* pagination style changes */
.pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px;
  justify-content: flex-end;
}

.page-btn {
  width: 48px;
  height: 48px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: white;
  color: #003B8E;
  /* Arrow color */
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background-color: #e6ecff;
}

.page-btn.active {
  background-color: #1f56a6;
  color: white;
  border: none;
}
/* pagination arrows */
.page-btn.disabled,
.page-btn:disabled {
    opacity: 0.4;          /* look dim */
    cursor: not-allowed;   /* show blocked cursor */
    pointer-events: none;  /* extra safety – no clicks */
}
/* pagnatn ends */
/* cards inside */
/* publiction */
.research-card {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  margin-inline: 10px;
}

.research-title {
  font-size: 16px;
  font-weight: 600;
  color: #383939;
  margin-bottom: 20px;
  line-height: 24px;
}

.research-authors {
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-weight: 400;
  color: #383939;
  gap: 15px;
  margin-bottom: 20px;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
  justify-content: space-between;
}

.base-name span {
  font-size: 14px;
  font-weight: 400;
  padding: 0 10px 0 5px;
  color: #23559B;
  border-right: 1px solid #23559B;
}

.base-name span:last-child {
  border-right: none;
}

.read-more-fac {
  display: inline-block;
  color: #23559B;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: bold;
}

/* details ends */
/* details full */
/* cardinner */
.courses-card {
  min-height: 500px;
  margin-bottom: 50px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.back-button-c {
  margin-bottom: 30px;
  position: relative;
  top: 20px;
  left: 0;
  width: 40px;
  background: #D0BB68;
  color: #000000;
  border: none;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  z-index: 10;
}

.courses-section__article-category {
  display: inline-block;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  color: #fff;
  background-color: #e4efff;
  color: #23559b;
}

.courses-title {
  font-size: 16px;
  font-weight: 600;
  color: #383939;
  margin-bottom: 15px;
  line-height: 1.4;
}

.courses-card h4 {
  color: #23559B;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.courses-card p {
  color: #383939;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.courses-meta-inner {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-top: 30px;
}

.courses-meta-inner .news-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  background: transparent;
  color: #383939;
  padding: 10px 40px;
  font-weight: 600;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  margin-top: 50px;
  border: 1px solid #23559b;
  transition: color 0.3s ease-in-out;
  z-index: 1;
}

/* Background wipe effect */
.courses-meta-inner .news-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #23559b;
  transition: width 0.3s ease-in-out;
  border-radius: 25px;
  z-index: -1;
}

/* Initial background */
.courses-meta-inner .news-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d0bb68;
  z-index: -2;
  border-radius: 25px;
}

/* On hover: background expands and text color changes */
.courses-meta-inner .news-button:hover::before {
  width: 100%;
}

.courses-meta-inner .news-button:hover {
  color: white;
}

/* card end */
@media (max-width:1024px) {
  .filters-container {
    display: none;
    position: absolute;
    background: white;
    padding: 15px 20px;
    z-index: 12;
    right: 22px;
    border-radius: 8px;
  }

  .filter-flex {
    display: block;
  }

  .specialization-main {
    display: grid;
  }

  .specialization-group {
    margin-bottom: 0;
    padding: 0 20px;
  }

  .group-asso {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .mobile-search img {
    display: block;
    margin-right: 25px;
    width: 4%;
  }
}

@media (max-width: 499px) {
  #publication-tab .common-tab {
    overflow-x: auto;
    /* Enables horizontal scrolling */
    white-space: nowrap;
    /* Prevents items from wrapping */
    gap: 15px;
  }

  /* Hide scrollbar (optional) */
  #publication-tab .common-tab::-webkit-scrollbar {
    display: none;
  }

  #publication-tab .tab.active {
    background-color: transparent;
    border-bottom: 2px solid #23559b;
    color: #23559b;
  }

  .common-tab li {
    color: #1f2b6c;
    border-bottom: 2px solid #1f2b6c;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0;
  }
}