/* RMT Portfolio Stacking Cards Widget Styles */
/* Variables */
/* Container */
.rmt-portfolio-stacking-cards {
  width: 100%;
  position: relative;
  background: transparent;
  overflow: hidden;
  /* RTL Support */
}
.rmt-portfolio-stacking-cards.rmt-rtl {
  direction: rtl;
  text-align: right;
}
.rmt-portfolio-stacking-cards.rmt-rtl .rmt-card {
  padding: var(--card-gap-vertical, 0px) var(--card-gap-horizontal, 20px);
  margin-top: var(--card-gap-vertical, 0px);
  margin-bottom: var(--card-gap-vertical, 0px);
}
.rmt-portfolio-stacking-cards.rmt-rtl .rmt-card__content {
  direction: rtl;
}
.rmt-portfolio-stacking-cards.rmt-rtl .rmt-card-title a {
  direction: inherit;
}
.rmt-portfolio-stacking-cards.rmt-rtl .rmt-card-meta {
  justify-content: flex-end;
}

/* Cards wrapper with scroll padding */
.rmt-cards-wrapper {
  padding-top: 0;
  position: relative;
}

/* Individual card container */
.rmt-card {
  position: relative;
  height: var(--card-height, 75vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--card-gap-vertical, 0px) var(--card-gap-horizontal, 20px);
  margin-top: var(--card-gap-vertical, 0px);
  margin-bottom: var(--card-gap-vertical, 0px);
}

/* Card content - sticky inside card */
.rmt-card__content {
  position: sticky;
  top: 50px;
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  transform-origin: center top;
  will-change: transform;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background-color: inherit;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Card image */
.rmt-card-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
  background: #f0f0f0;
}
.rmt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card content area */
.rmt-card-content {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow: visible;
}

/* Card title */
.rmt-card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
  word-wrap: break-word;
  word-break: break-word;
}
.rmt-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.rmt-card-title a:hover {
  color: #0073aa;
}
.rmt-card-title:hover {
  color: #0073aa;
}

/* Card description */
.rmt-card-description {
  margin: 0;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  word-wrap: break-word;
  word-break: break-word;
}

/* Card meta */
.rmt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* Category tags */
.rmt-category-tag {
  display: inline-block;
  font-size: 12px;
  padding: 6px 12px;
  background: #f0f0f0;
  color: #666;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.rmt-category-tag:hover {
  background: #0073aa;
  color: white;
}

/* Responsive - Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .rmt-card {
    height: var(--card-height-tablet, 70vh);
  }
}
/* Responsive - Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .rmt-card {
    height: var(--card-height-tablet, 70vh);
    padding: 50px 15px;
  }
  .rmt-card__content {
    /* KEEP position: sticky for animation to work! */
    position: sticky;
    max-height: none;
  }
  .rmt-card-image {
    height: 300px;
  }
  .rmt-card-content {
    padding: 20px 15px;
  }
  .rmt-card-title {
    font-size: 20px;
  }
  .rmt-card-description {
    font-size: 14px;
  }
}
/* Responsive - Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .rmt-card {
    height: var(--card-height-mobile, 60vh);
    padding: 40px 10px;
  }
  .rmt-card__content {
    /* KEEP position: sticky for animation to work! */
    position: sticky;
    max-height: none;
    border-radius: 8px;
  }
  .rmt-card-image {
    height: 250px;
  }
  .rmt-card-content {
    padding: 15px 12px;
    gap: 8px;
  }
  .rmt-card-title {
    font-size: 16px;
    font-weight: 600;
  }
  .rmt-card-description {
    font-size: 13px;
  }
  .rmt-card-meta {
    gap: 6px;
    margin-top: 6px;
  }
  .rmt-category-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/*# sourceMappingURL=portfolio-cards.css.map */
