.prayer-times-widget {
  --pt-bg: #fff;
  --pt-text: #222;
  --pt-accent: #1e293b;
  --pt-border: #e0e0e0;
  border: 1px solid var(--pt-border);
  background-color: var(--pt-bg);
  color: var(--pt-text);
  padding: 1.75rem;
  margin: 1.5rem auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  display: inline-block;
}

.prayer-times-widget h4 {
  display: block;
  font-size: 1.2rem;
  font-weight: 700 !important;
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.65 !important;
}

.ptw-times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ptw-cell {
  background-color: #f9fafb;
  border: 1px solid var(--pt-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.ptw-cell:hover {
  border-color: var(--pt-accent);
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.15);
}

.ptw-prayer {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pt-accent);
}

/* Inline container for labels and times */
.ptw-times-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ptw-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
}

.ptw-time {
  font-size: 0.85rem;
  color: var(--pt-text);
}

/* Highlight the next prayer */
.ptw-cell.next-prayer {
  border-color: #00a99d; /* accent border */
  background-color: #e6f7f7; /* light highlight */
  box-shadow: 0 2px 12px rgba(0, 169, 157, 0.2);
  transition: all 0.3s ease;
}

.ptw-cell.next-prayer .ptw-prayer {
  color: #007a73; /* darker accent for the prayer name */
}

.ptw-cell.next-prayer .ptw-time {
  font-weight: 600;
  color: #007a73; /* highlight the time too */
}

/* Hadith */
.prayer-hadith {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
}

.prayer-hadith strong {
  color: var(--pt-accent);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .ptw-times {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .ptw-cell {
    flex: 1 1 100%;
  }

  .ptw-prayer {
    font-size: 0.85rem;
  }

  .ptw-label,
  .ptw-time {
    font-size: 0.8rem;
  }
}
