/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

:root {
  --team-member-card__title-size: 2.4rem;
  --team-member-card__subtitle-size: 2rem;
  --team-member-card__instutional-affil-text-size: 1.5rem;
  --team-member-card__indigenous-affil-text-size: 1.4rem;
  --team-member-card__bio-text-size: 1.6rem;

  --grid-gap-member-card: clamp(1rem, 1.434vw + 0.541rem, 2.5rem);
}

/* #team-member__filter-tab-content-container input[type="checkbox"] {
  display: none;
} */

/* #team-member__filter-tab-content-container input[type="checkbox"] + span {
  font-weight: normal;
  transform: translateX(0px);
}

#team-member__filter-tab-content-container
  input[type="checkbox"]:checked
  + span {
  transition: var(--default-transition);
}

#team-member__filter-tab-content-container
  input[type="checkbox"]:checked
  + span {
  font-weight: bold;
  transform: translateX(var(--grid-gap-member-card));
} */

/* Filter Bar Styles */
.research-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-by-research {
  font-family: "Inter Tight", sans-serif;
  font-weight: bold;
  margin-right: 5px;
  display: flex;
  align-items: center;
}

.research-filter-btn {
  background: var(--color_background_primary);
  border: 1px solid var(--color_main_primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Inter Tight", sans-serif;
  color: var(--color_main_primary);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.research-filter-btn:hover,
.research-filter-btn.is-active {
  background: var(--color_main_primary);
  color: #fff;
}

/* Grid Layout */
.research-display-title-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.research-title-card {
  border-radius: 20px;
  padding: 25px 20px;
  cursor: pointer;
  opacity: 1;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  max-width: clamp(250px, 50vw, 611px);
  width: 100%;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.research-title-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.research-title-card.decorative-image-card:hover {
  transform: none;
  box-shadow: none;
}

/* Utility class for filtering out cards */
.research-title-card.is-hidden {
  display: none !important;
}

.decorative-image-card {
  cursor: default;
  padding: 0;
  overflow: hidden;
}

.decorative-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.research-cat-badge,
.research-card-tags {
  text-transform: uppercase;
  color: var(--color_aux_primary);
}

.research-card-tags {
  font-family: "Du Bois &#8211; Regular";
}

.research-card-title {
  font-family: 'Inter Tight', sans-serif;
  height: 70%;
  font-size: 4rem;
  font-weight: 700;
}

.drawer-template-tags {
  font-family: "Du Bois &#8211; Regular";
  color: var(--color_aux_primary);
  margin-top: 30px;
  text-transform: uppercase;
}

/* Sliding Drawer Styles */
.research-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99998;
}

.research-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.research-drawer {
  position: fixed;
  top: 83px;
  right: 0;
  width: 1200px;
  max-width: calc(100vw - 40px);
  height: 87vh;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  padding: 40px 60px;
}

.research-drawer.is-active {
  transform: translateX(-17px);
}

.research-drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-drawer-close {
  background: var(--color_main_secondary);
  border: none;
  font-size: 19px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 15px 25px;
  border-radius: 37px;
  font-family: "Du Bois &#8211; regular";
  text-transform: uppercase;
}

.research-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-template-categories {
  background-color: var(--color_main_primary);
  color: var(--color_background_secondary);
  padding: 15px 25px;
  border-radius: 37px;
  font-weight: 300;
}

.drawer-template-body {
  margin-top: 45px;
}

.drawer-subtitle {
  font-family: "Inter Tight";
  font-weight: bold;
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.drawer-template-body p {
  font-weight: 300;
}

.drawer-template-members {
  color: var(--color_aux_primary);
  text-transform: uppercase;
  margin-top: 20px;
}

.drawer-template-body h2 {
  font-family: "Inter Tight";
}

.drawer-image img {
  border-radius: 20px;
  margin-bottom: 30px;
}

.drawer-project-link {
  background-color: var(--color_main_secondary);
  font-weight: bold;
  padding: 15px;
  border-radius: var(--border-radius__medium);
  margin: 15px 0;
}

/* Research carousel */
.research-gallery-slider {
  width: 100%;
  margin-top: 15px;
  padding-bottom: 35px;
  position: relative;
  margin-bottom: 40px;
}

.research-gallery-slider .swiper-pagination {
  position: absolute;
  bottom: -30px;
  /* Moves dots 30px below the image container */
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.research-gallery-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.research-gallery-slider .swiper-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.research-gallery-slider .swiper-button-next,
.research-gallery-slider .swiper-button-prev {
  color: rgb(255, 255, 255);
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 40px;
}

.responsive-video-container iframe,
.responsive-video-container object,
.responsive-video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-numbers {
  margin-right: 20px;
  opacity: .5;
}

.page-numbers.current {
  font-weight: 800;
  opacity: 1;
}

.research-pagination {
  display: flex;
  justify-content: center;
}

/* Responsive Breakpoints */

@media (max-width: 1694px) {
  .research-card-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 1462px) {
  .research-display-title-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1102px) {
  .research-display-title-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 742px) {
  .research-display-title-grid {
    grid-template-columns: 1fr;
  }

  .research-title-card {
    max-width: 100%;
  }
}