/* ===============================
   Global safety
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===============================
   GRID
================================ */
.member-stories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 80px;
}

/* ===============================
   CARD
================================ */
.member-story-card {
  background: #f9fbff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #eef2f7;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.member-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* ===============================
   HEADER
================================ */
.member-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.member-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.member-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1d2b4f;
}

/* ===============================
   CONTENT BOX
================================ */
.member-content-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
}

.member-rating {
  font-size: 16px;
  margin-bottom: 8px;
}

.member-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d2b4f;
}

.member-excerpt {
  font-size: 0.9rem;
  color: #5b6b8b;
  line-height: 1.6;
}

/* ===============================
   BUTTON
================================ */
.show-more-btn {
  margin-top: 12px !important;
  background: #f9fbff !important;
  border: 1px solid #d3ad2a !important;
  padding: 5px 10px !important;
  color: #0f0f0f !important;
  font-size: 0.95rem !important;
	font-weight: 500px !important
  cursor: pointer !important;
  text-decoration: none !important;
  border-radius: 20px !important;
}

/* ===============================
   RESPONSIVE GRID
================================ */
@media (max-width: 1024px) {
  .member-stories-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .member-stories-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

/* ===============================
   POPUP OVERLAY
================================ */
.review-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* ===============================
   POPUP BOX
================================ */
.review-popup {
  background: #ffffff;
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 30px;
  position: relative;
  animation: popupIn 0.25s ease;
}

/* Popup animation */
@keyframes popupIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===============================
   CLOSE BUTTON
================================ */
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 40px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #d3ad2a !important;
}

/* ===============================
   POPUP CONTENT
================================ */
.popup-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d2b4f;
}

.popup-rating {
  margin-bottom: 12px;
}

.popup-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}

/* ===============================
   REVIEWER INFO
================================ */
.popup-reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.popup-profile-picture {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.popup-name {
  font-weight: 600;
  color: #1d2b4f;
}

/* ===============================
   MOBILE POPUP TWEAK
================================ */
@media (max-width: 480px) {
  .review-popup {
    padding: 22px;
  }
}

.full-review-content {
  display: none !important;
}

/* ===============================
   MOBILE POPUP TWEAK
================================ */

.pagination {
	display: block !important;
  text-align: center !important;
  margin: 20px auto;
}

.pagination .current {
  background-color: #D3AD2A;
  color: #fff;
  border-color: #D3AD2A;
  padding: 8px 12px;
  display: inline-block;
  margin: 0 5px;
}

.pagination a, .pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a:hover {
  background-color: #D3AD2A;
  color: #fff;
  border-color: #D3AD2A;
}