/* Renamed: rt-features-grid */
.rt-features-grid {
  display: flex;
  flex-wrap: wrap; 
  /* GRID IS ALWAYS CENTERED IN PAGE */
  justify-content: center; 
  gap: 30px; 
  margin-top: 40px; 
  width: 100%;
}

.rt-features-grid--has-separator {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

/* === ITEM LAYOUT (Renamed: rt-feature-item) === */
.rt-feature-item {
  display: flex;
  align-items: flex-start;
  flex-basis: 300px; 
  /* Default (No Border): Do not stretch, stay compact in center */
  flex-grow: 0; 
  flex-shrink: 1;
  min-width: 250px; 
  gap: 15px;
  box-sizing: border-box; 
}

/* IF CARD STYLE IS ENABLED: Allow stretching */
.rt-feature-item--card {
  flex-grow: 1; 
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rt-feature-item--card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* === CONTENT ALIGNMENT (Text inside the card) === */
.rt-feature-item.align-center { 
  align-items: center; 
  text-align: center; 
}
.rt-feature-item.align-right { 
  align-items: flex-end; 
  text-align: right; 
}
.rt-feature-item.align-left { 
  align-items: flex-start; 
  text-align: left; 
}

/* === LAYOUT: TOP (STACKED ICONS) === */
.rt-feature-item--top {
  flex-direction: column;
  gap: 20px;
}

/* === STANDARD ICON (WITH CIRCLE) (Renamed: rt-feature-icon) === */
.rt-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #f4f6f8; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rt-feature-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.rt-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === FULL SIZE ICON (NO CIRCLE) === */
.rt-feature-icon--full {
  background: transparent !important; 
  border-radius: 0 !important;
}

.rt-feature-icon--full img,
.rt-feature-icon--full svg {
  width: 40px !important;
  height: 40px !important;
}

.rt-feature-content {
  display: flex;
  flex-direction: column;
}

/* Renamed: rt-feature-title */
.rt-feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #333;
  line-height: 1.2;
}

/* Renamed: rt-feature-desc */
.rt-feature-desc {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* === MOBILE FIX === */
@media screen and (max-width: 768px) {
  .rt-features-grid {
    flex-direction: column; 
    gap: 20px !important;
    padding-left: 15px; 
    padding-right: 15px;
  }

  .rt-feature-item {
    width: 100%;
    flex: 0 0 auto !important; 
    margin-bottom: 0 !important;
  }
}
