:root {
  --spot-primary: #7a4f01;
  --spot-accent: #d4a017;
  --spot-accent-soft: #f6e6b8;
  --spot-bg: #fffaf0;
  --spot-surface: #ffffff;
  --spot-text: #2a2013;
  --spot-muted: #7a6f5c;
  --spot-border: #ecdcb0;
  --spot-shadow: 0 16px 42px rgba(122, 79, 1, 0.14);
}

/* ---------- Achievers / Announcements panels, anchored inside the home page hero ----------
   Mirrored pair: achievers on the right, announcements on the left. z-index is set above
   the existing .banner-logo (Alliance Insurance Brokers logo, z-index:1000) so neither
   panel is ever hidden behind it, even if their positions happen to overlap at some
   viewport width. */

.spotlight-hero-panel {
  position: absolute;
  top: 132px;
  width: 300px;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 160px);
  z-index: 1001;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: var(--spot-shadow);
  border: 1px solid rgba(212, 160, 23, 0.35);
  display: flex;
  flex-direction: column;
}

.spotlight-hero-panel--right {
  right: 1.6rem;
}

.spotlight-hero-panel--left {
  left: 1.6rem;
}

.spotlight-hero-panel .spotlight-col-heading {
  margin: 0 0 0.6rem;
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--spot-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 991px) {
  /* .main-banner is a row flexbox on desktop; force it to stack children
     top-to-bottom on mobile so the two panels don't collide side by side
     with each other and with the hero caption. */
  .main-banner {
    flex-direction: column;
    padding-top: 6.5rem;
    padding-bottom: 1.5rem;
  }

  .spotlight-hero-panel {
    position: static;
    width: 100%;
    max-width: 420px;
    max-height: none;
    margin: 1.2rem auto 0;
    background: rgba(255, 255, 255, 0.97);
  }
}

.spotlight-ticker-frame {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--spot-surface);
  border: 1px solid var(--spot-border);
}

.spotlight-ticker-frame::before,
.spotlight-ticker-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 2;
  pointer-events: none;
}

.spotlight-ticker-frame::before {
  top: 0;
  background: linear-gradient(180deg, var(--spot-surface), rgba(255, 255, 255, 0));
}

.spotlight-ticker-frame::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--spot-surface), rgba(255, 255, 255, 0));
}

.spotlight-ticker-track {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem;
  animation: spotlight-scroll-up linear infinite;
  animation-duration: var(--spotlight-duration, 30s);
}

.spotlight-ticker-frame:hover .spotlight-ticker-track {
  animation-play-state: paused;
}

@keyframes spotlight-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Achievement card */
.spotlight-achievement-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--spot-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, #fffaf0);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.spotlight-achievement-card:hover {
  box-shadow: 0 8px 20px rgba(122, 79, 1, 0.16);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.spotlight-achievement-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--spot-accent);
}

.spotlight-achievement-body {
  min-width: 0;
}

.spotlight-achievement-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--spot-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-achievement-headline {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--spot-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-achievement-batch {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--spot-primary);
  background: var(--spot-accent-soft);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.spotlight-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--spot-muted);
  font-size: 0.85rem;
}

.spotlight-view-all {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--spot-primary);
  text-decoration: underline;
  text-align: center;
}

/* Banner card (Announcements ticker) */
.spotlight-banner-card {
  display: block;
  border: 1px solid var(--spot-border);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefb, #fffaf0);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.spotlight-banner-card:hover {
  box-shadow: 0 8px 20px rgba(122, 79, 1, 0.16);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}

.spotlight-banner-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.spotlight-banner-title {
  padding: 0.5rem 0.7rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--spot-text);
}

/* ---------- Achievement detail page ---------- */

.spotlight-detail-page {
  min-height: 100vh;
  padding: 7.2rem 1rem 2.6rem;
  background: linear-gradient(165deg, #fffaf0 0%, #fff5e0 100%);
}

.spotlight-detail-shell {
  width: min(880px, 100%);
  margin: 0 auto;
  background: var(--spot-surface);
  border: 1px solid var(--spot-border);
  border-radius: 18px;
  box-shadow: var(--spot-shadow);
  overflow: hidden;
}

.spotlight-detail-header {
  padding: 2rem 1.8rem;
  background: linear-gradient(135deg, var(--spot-primary), var(--spot-accent));
  color: #fff;
  display: flex;
  gap: 1.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.spotlight-detail-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.spotlight-detail-header h1 {
  margin: 0 0 0.3rem;
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.spotlight-detail-header .headline {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.spotlight-detail-meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spotlight-detail-meta span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.spotlight-detail-body {
  padding: 1.6rem 1.8rem 2rem;
}

.spotlight-detail-body .full-story {
  color: var(--spot-text);
  line-height: 1.7;
  white-space: pre-line;
  font-size: 0.98rem;
}

.spotlight-detail-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: var(--spot-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.spotlight-detail-link:hover {
  background: var(--spot-accent);
  color: #fff;
  text-decoration: none;
}

.spotlight-other-heading {
  margin: 2rem 0 0.8rem;
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  color: var(--spot-primary);
  font-size: 1.05rem;
}

.spotlight-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

/* ---------- Manage pages (staff-only add/edit/list) ---------- */

.spotlight-manage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.spotlight-manage-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.spotlight-manage-btn.primary {
  background: var(--spot-primary);
  color: #fff;
}

.spotlight-manage-btn.primary:hover {
  background: var(--spot-accent);
  color: #fff;
  text-decoration: none;
}

.spotlight-manage-btn.secondary {
  background: #fff;
  color: var(--spot-primary);
  border: 1px solid var(--spot-border);
}

.spotlight-manage-btn.secondary:hover {
  background: var(--spot-accent-soft);
  color: var(--spot-primary);
  text-decoration: none;
}

.spotlight-manage-btn.danger {
  background: #fdecea;
  color: #a13a2c;
  border: 1px solid #f2c6bd;
}

.spotlight-manage-btn.danger:hover {
  background: #f9d6d0;
  color: #a13a2c;
}

.spotlight-manage-btn.small {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.spotlight-manage-table-wrap {
  border: 1px solid var(--spot-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--spot-shadow);
}

.spotlight-manage-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--spot-surface);
}

.spotlight-manage-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, var(--spot-primary), var(--spot-accent));
  color: #fff;
  font-family: Montserrat, "Segoe UI", Tahoma, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.spotlight-manage-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f1e6c8;
  color: var(--spot-text);
  font-size: 0.88rem;
  vertical-align: middle;
}

.spotlight-manage-table tbody tr:last-child td {
  border-bottom: none;
}

.spotlight-manage-table tbody tr:hover td {
  background: #fffaf0;
}

.spotlight-manage-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.spotlight-manage-thumb.square {
  border-radius: 8px;
}

.spotlight-manage-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spotlight-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.spotlight-status-badge.published {
  background: #e6f4ea;
  color: #1e7a3d;
}

.spotlight-status-badge.draft {
  background: #f1e6c8;
  color: var(--spot-primary);
}

/* Form */

.spotlight-form-field {
  margin-bottom: 1rem;
}

.spotlight-form-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--spot-text);
}

.spotlight-form-field input[type="text"],
.spotlight-form-field input[type="url"],
.spotlight-form-field input[type="number"],
.spotlight-form-field input[type="file"],
.spotlight-form-field select,
.spotlight-form-field textarea {
  width: 100%;
  border: 1px solid var(--spot-border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--spot-text);
  background: #fff;
}

.spotlight-form-field input:focus,
.spotlight-form-field select:focus,
.spotlight-form-field textarea:focus {
  outline: none;
  border-color: var(--spot-accent);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.16);
}

.spotlight-form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spotlight-form-checkbox input {
  width: auto;
}

.spotlight-form-errors {
  color: #a13a2c;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.spotlight-form-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.spotlight-current-image {
  margin-bottom: 0.6rem;
}

.spotlight-current-image img {
  max-height: 90px;
  border-radius: 10px;
  border: 1px solid var(--spot-border);
}
