/* =============================================================
   NOTIFICATIONS PAGE
   ============================================================= */

/* ----- Page Hero ----- */
.page-hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a4fa0 100%);
  padding: 140px 0 72px;   /* top clears fixed navbar */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-content .section-tag { background: rgba(232,160,32,0.15); color: var(--accent); }

.page-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin: 16px 0 12px;
}

.page-hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Filter Bar ----- */
.notif-filter-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 64px;   /* sits just below the fixed navbar */
  z-index: 100;
}

.filter-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover  { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ----- Notifications Grid ----- */
.notifications-section { background: var(--bg); }

.notif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ----- Notification Card ----- */
.notif-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Badge */
.notif-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notif-badge.new      { background: rgba(34,197,94,0.12); color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.notif-badge.upcoming { background: rgba(232,160,32,0.12); color: var(--accent-dark); border: 1px solid rgba(232,160,32,0.3); }
.notif-badge.completed     { background: rgba(197, 34, 34, 0.12); color: #c11010; border: 1px solid rgba(197, 34, 34, 0.3); }

/* Header */
.notif-header { display: flex; align-items: center; gap: 14px; }

.notif-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.notif-icon.iso   { background: rgba(26,79,160,0.1);  color: var(--primary); }
.notif-icon.iatf  { background: rgba(232,160,32,0.12); color: var(--accent-dark); }
.notif-icon.esg   { background: rgba(34,197,94,0.1);  color: #16a34a; }
.notif-icon.tools { background: rgba(139,92,246,0.1); color: #7c3aed; }

.notif-meta { display: flex; flex-direction: column; gap: 4px; }

.notif-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.notif-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Content */
.notif-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  padding-right: 60px;
}

.notif-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* Details row */
.notif-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notif-details span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 5px 10px;
  border-radius: 6px;
}

.notif-fee {
  background: rgba(26,79,160,0.08) !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* CTA */
.notif-cta {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Hidden card (filter) */
.notif-card.hidden-filter {
  display: none;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) { .notif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .notif-grid { grid-template-columns: 1fr; } }
