.sd-projects-wrap *,
.sd-projects-wrap *::before,
.sd-projects-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sd-projects-wrap {
  direction: rtl;
  padding: 60px 0 80px;
}

.sd-projects-header {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
}

.sd-projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8f5e9, #f9fbe7);
  border: 1px solid #d0e8d0;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  color: #2e7d32;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.sd-projects-eyebrow::before {
  content: "⬡";
  font-size: 1rem;
  animation: sdPulse 2.5s ease-in-out infinite;
  color: #43a047;
}

@keyframes sdPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.sd-projects-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1a2b1a;
  line-height: 1.3;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sd-projects-title::before,
.sd-projects-title::after {
  content: "";
  flex: 1;
  max-width: 80px;
  height: 2px;
  border-radius: 2px;
}

.sd-projects-title::before {
  background: linear-gradient(90deg, transparent, #43a047);
}

.sd-projects-title::after {
  background: linear-gradient(90deg, #43a047, transparent);
}

.sd-title-bar {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #43a047);
  border-radius: 4px;
  margin: 0 auto 20px;
}

.sd-projects-subtitle {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #e8f5e9, #f9fbe7);
  border: 1px solid #d0e8d0;
  border-radius: 12px;
  padding: 14px 40px 14px 24px;
  font-size: 0.95rem;
  color: #5a7a5a;
  line-height: 1.7;
  max-width: 620px;
}

.sd-projects-subtitle::before {
  content: "❝";
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 1.4rem;
  color: #43a047;
  opacity: 0.5;
  line-height: 1;
}

.sd-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.sd-filter-btn {
  background: #fff;
  border: 1.5px solid #d0e8d0;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.85rem;
  color: #5a7a5a;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.sd-filter-btn:hover,
.sd-filter-btn.active {
  background: linear-gradient(135deg, #2e7d32, #43a047);
  border-color: #2e7d32;
  color: #fff;
}

.sd-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sd-project-card:first-child {
  grid-column: span 2;
}

.sd-project-card {
  background: #fff;
  border: 1px solid #e0f0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sd-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(46, 125, 50, 0.15);
  border-color: #43a047;
}

.sd-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 57%;
  background: #1a2b1a;
  overflow: hidden;
}

.sd-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sd-project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(46, 125, 50, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}

.sd-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sd-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sd-card-location,
.sd-card-power {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #5a7a5a;
}

.sd-card-location::before { content: "📍"; font-size: 0.85rem; }
.sd-card-power::before { content: "⚡"; font-size: 0.85rem; }

.sd-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a2b1a;
  line-height: 1.5;
}

.sd-project-card:first-child .sd-card-title {
  font-size: 1.2rem;
}

.sd-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
  flex: 1;
}

.sd-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 22px;
  border-top: 1px solid #e8f5e9;
  background: linear-gradient(135deg, #f9fbe7, #e8f5e9);
}

.sd-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sd-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: #2e7d32;
}

.sd-stat-label {
  font-size: 0.72rem;
  color: #5a7a5a;
}

.sd-card-divider {
  width: 1px;
  height: 32px;
  background: #d0e8d0;
}

@media (max-width: 900px) {
  .sd-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sd-project-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .sd-projects-grid {
    grid-template-columns: 1fr;
  }

  .sd-project-card:first-child {
    grid-column: span 1;
  }

  .sd-projects-title {
    font-size: 1.4rem;
  }
}
