/* =============================================
   Evopolls Success Story Detail Page Styles
   ============================================= */

/* ---- Story Hero ---- */
.ep-story-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
}
.ep-story-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
  transition: transform 8s ease;
}
.ep-story-hero:hover .ep-story-hero-bg { transform: scale(1.03); }
.ep-story-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,15,61,0.92) 0%, rgba(10,15,61,0.5) 50%, rgba(10,15,61,0.2) 100%);
}
.ep-story-hero-content { position: relative; z-index: 1; padding-top: 100px; }

.ep-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s ease;
}
.ep-back-link:hover { color: #fff; background: rgba(255,255,255,0.18); }

.ep-story-hero-tag-wrap { margin-bottom: 14px; }
.ep-story-hero-tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.15);
}
.ep-story-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.ep-story-hero-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ep-story-hero-meta span { font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.ep-story-hero-meta i { color: #F5A623; }

/* ---- Story Content Area ---- */
.ep-story-content-wrap {
  padding: 60px 0 40px;
}

.ep-story-block {
  margin-bottom: 48px;
}
.ep-story-block:last-child { margin-bottom: 0; }
.ep-story-block-title {
  font-size: 22px; font-weight: 800;
  color: #14259B;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f5f7ff;
}
.ep-story-block-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.85;
}

/* Services list */
.ep-story-services-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ep-story-service-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: #1f2937;
  background: #f5f7ff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e8ecf8;
}
.ep-story-service-item i { color: #14259B; font-size: 15px; flex-shrink: 0; }
@media (max-width: 575px) {
  .ep-story-services-list { grid-template-columns: 1fr; }
}

/* Gallery */
.ep-gallery-thumb {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 1;
  background: #f5f7ff;
}
.ep-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.ep-gallery-thumb:hover img { transform: scale(1.08); }

/* ---- Sidebar ---- */
.ep-story-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.ep-sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e8ecf8;
  box-shadow: 0 4px 20px rgba(20,37,155,0.06);
}
.ep-sidebar-card h4 {
  font-size: 15px; font-weight: 800;
  color: #14259B;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.ep-sidebar-card h4 i { color: #F5A623; }

.ep-sidebar-detail-list { list-style: none; padding: 0; margin: 0; }
.ep-sidebar-detail-list li {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f5f7ff;
  font-size: 13px;
}
.ep-sidebar-detail-list li:last-child { border-bottom: none; }
.ep-sidebar-detail-list li span { color: #6b7280; font-weight: 500; }
.ep-sidebar-detail-list li strong { color: #1f2937; font-weight: 700; text-align: right; max-width: 60%; }

.ep-sidebar-cta {
  background: linear-gradient(135deg, #14259B 0%, #1e3bcc 100%) !important;
  border-color: transparent !important;
}
.ep-sidebar-cta h4 { color: #fff !important; }
.ep-sidebar-cta h4 i { color: #F5A623 !important; }
.ep-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 20px; line-height: 1.6; }

.ep-share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f5f7ff; color: #14259B; font-size: 15px;
  border: 1px solid #e8ecf8;
  transition: all 0.2s ease;
}
.ep-share-btn:hover { background: #14259B; color: #fff; border-color: #14259B; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .ep-story-hero { min-height: 320px; padding-bottom: 36px; }
  .ep-story-hero-content { padding-top: 80px; }
  .ep-story-content-wrap { padding: 40px 0; }
  .ep-story-sidebar { position: static; }
}
@media (max-width: 575px) {
  .ep-story-hero-title { font-size: 1.7rem; }
}
