/*
 * Worxogo Research Cards Widget CSS
 *
 * Elementor Research Cards Widget Styles
 */

/* ===== RESEARCH CARDS SECTION ===== */
.research-cards-section {
  width: 100%;
  box-sizing: border-box;
}

.research-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
  justify-content: flex-start;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.research-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 8px;
  padding: 60px 70px 0px;
  width: 100%;
  box-sizing: border-box;
}

.research-card-content {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.research-card-text {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 50%;
}

.research-card-logo {
  width: 200px;
  height: 48px;
  object-fit: contain !important;
}

.research-card-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.research-card-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 112%;
  font-weight: 700;
  margin: 0;
}

.research-card-title__highlight {
  color: #4000a9;
}

.research-card-title__main {
  color: #290074;
}

.research-card-title__span {
  color: #290074;
  font-size: 32px;
  font-weight: 600;
}

.research-card-description {
  color: #4b484e;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 400;
  margin: 0;
}

.research-card-media {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  max-width: 45%;
  /* Align with title area by using flex positioning */
  align-self: flex-start;
  padding-top: 100px;
}

.research-media-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;

  margin: 0 auto;
}

.research-media-image {
  border-radius: 8px !important;
  border: 8px solid #ffffff !important;
  width: 100%;
  max-width: 515px !important;
  height: auto;
  object-fit: cover !important;
  box-shadow: 20px 20px 30px 0px rgba(0, 0, 0, 0.06);
  display: block;
  align-self: center;
}

.research-media-thumbnail {
  border-radius: 8px !important;
  border: 8px solid #ffffff !important;
  width: 100%;
  max-width: 515px !important;
  height: auto;
  object-fit: cover !important;
  box-shadow: 20px 20px 30px 0px rgba(0, 0, 0, 0.06);
  display: block;
  align-self: center;
}

.research-media-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  width: 134px;
  height: 134px;
  overflow: hidden;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.research-media-overlay:hover {
  opacity: 1;
}

.research-overlay-icon {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
}

.research-card-button {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px;
}

.research-card-button .worxogo-hero-button-primary {
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8) inset;
  border-radius: 60px;
  background: radial-gradient(
    54.93% 131.82% at 49.74% 140.91%,
    #e100ff 0%,
    #4000a9 100%
  );
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-top: none;
  color: white !important;
  position: relative;
  z-index: 2;
  padding: 12px 24px;
  gap: 8px;
}

.research-card-button .worxogo-hero-button-primary:hover {
  box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.8) inset,
    0px 0px 20px rgba(64, 0, 169, 0.4);
}

/* ===== LAYOUT ORIENTATIONS ===== */
/* Content Left, Media Right (Default) */
.research-cards-section-content-left .research-card-content {
  flex-direction: row;
}

.research-cards-section-content-left .research-card-text {
  order: 1;
}

.research-cards-section-content-left .research-card-media {
  order: 2;
}

/* Content Right, Media Left */
.research-cards-section-content-right .research-card-content {
  flex-direction: row;
}

.research-cards-section-content-right .research-card-text {
  order: 2;
}

.research-cards-section-content-right .research-card-media {
  order: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .research-cards-section {
    padding: 0px 60px;
  }

  .research-card {
    padding: 50px 50px 0px;
  }

  .research-card-content {
    gap: 40px;
  }

  .research-card-title {
    font-size: 36px;
  }

  .research-card-description {
    font-size: 15px;
  }

  .research-media-image,
  .research-media-thumbnail {
    max-width: 450px;
  }
}
.research-foundational-content-inner {
  max-width: 55% !important;
}

@media (max-width: 768px) {
  .research-cards-section {
    padding: 0px;
  }
  .research-foundational-content-inner {
    max-width: 100% !important;
  }

  .research-card {
    padding: 40px 30px;
  }

  .research-card-content {
    flex-direction: column !important;
    gap: 30px;
  }

  /* Reset order for mobile stacking */
  .research-cards-section-content-right .research-card-text,
  .research-cards-section-content-right .research-card-media {
    order: initial !important;
  }

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

  .research-card-media {
    max-width: 100%;
    align-self: center;
    padding-top: 20px;
  }

  .research-card-title {
    font-size: 32px;
  }

  .research-card-description {
    font-size: 14px;
    line-height: 130%;
  }

  .research-media-image,
  .research-media-thumbnail {
    max-width: 100%;
  }

  .research-media-overlay {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 576px) {
  .research-cards-section {
    padding: 0px 20px;
  }

  .research-card {
    padding: 30px 20px;
  }

  .research-card-content {
    gap: 25px;
  }

  .research-card-text {
    gap: 30px;
  }

  .research-card-logo {
    width: 150px;
    height: 36px;
  }

  .research-card-details {
    gap: 25px;
  }

  .research-card-title {
    font-size: 28px;
    line-height: 120%;
  }

  .research-card-description {
    font-size: 14px;
    line-height: 140%;
  }

  .research-card-media {
    gap: 25px;
  }

  .research-media-image,
  .research-media-thumbnail {
    border-width: 6px;
  }

  .research-media-overlay {
    width: 80px;
    height: 80px;
  }

  .research-card-button {
    margin-top: 15px;
  }
}
