/* ========================================
   PARTNERSHIP BOARD — PARTNERSHIPS.CSS
   Page-specific styles for partnerships.html
   ======================================== */

/* --- Body offset for fixed nav on interior page --- */
.partnerships-page {
  padding-top: 72px;
}

/* --- Nav active state --- */
.nav-active {
  color: var(--purple) !important;
  font-weight: 600 !important;
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--lavender-light) 40%, #f0edf8 70%, var(--bg-lighter) 100%);
  z-index: 0;
}

.page-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(95, 23, 157, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(0, 112, 93, 0.05) 0%, transparent 40%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--purple);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.breadcrumb span {
  color: var(--text-body);
}

/* Title */
.page-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Stats Bar */
.stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  padding: 12px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.stat-item i {
  color: var(--purple);
  font-size: 0.85rem;
  opacity: 0.7;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.08);
}

.btn-post {
  font-size: 1rem;
}

/* ========================================
   FILTER/SEARCH BAR
   ======================================== */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 0;
  transition: box-shadow 0.3s ease;
}

.filter-bar.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.search-input-wrap input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.search-input-wrap input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.filter-dropdowns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-dropdowns select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 36px 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-dropdowns select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-clear:hover {
  color: var(--purple);
  background: var(--lavender-light);
  border-color: rgba(95, 23, 157, 0.1);
}

.results-count {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ========================================
   LISTINGS SECTION
   ======================================== */
.listings-section {
  padding: 40px 0 80px;
  background: var(--bg-light);
  min-height: 50vh;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ========================================
   LISTING CARD
   ======================================== */
.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.listing-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Category Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.badge-research { background: rgba(95, 23, 157, 0.08); color: var(--purple); }
.badge-data { background: rgba(0, 112, 93, 0.08); color: var(--teal); }
.badge-grant { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.badge-evaluation { background: rgba(37, 99, 235, 0.08); color: #2563eb; }
.badge-implementation { background: rgba(5, 150, 105, 0.08); color: #059669; }
.badge-default { background: var(--lavender-light); color: var(--purple); }

.badge-type {
  background: var(--bg-light);
  color: var(--text-muted);
  font-weight: 500;
}

.listing-card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.listing-card:hover .listing-card-title {
  color: var(--purple);
}

.listing-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.listing-meta-item i {
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.65;
}

.listing-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.listing-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  gap: 12px;
  flex-wrap: wrap;
}

.listing-footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.deadline-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.deadline-green { background: rgba(5, 150, 105, 0.08); color: #059669; }
.deadline-yellow { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.deadline-red { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

.posted-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.listing-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(95, 23, 157, 0.06);
  padding: 3px 10px;
  border-radius: 100px;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--purple);
  background: none;
  border: 1px solid rgba(95, 23, 157, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-view-details:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* ========================================
   SKELETON LOADING
   ======================================== */
.skeleton-card {
  cursor: default;
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none;
  box-shadow: none;
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8ef 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.5s ease infinite;
}

.skeleton-line.w40 { width: 40%; height: 10px; }
.skeleton-line.w50 { width: 50%; height: 10px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; height: 12px; }
.skeleton-line.w100 { width: 100%; height: 12px; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  background: var(--lavender);
  border-radius: 50%;
  color: var(--purple);
  font-size: 1.5rem;
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   DETAIL MODAL
   ======================================== */
.detail-modal-content {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
}

.detail-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: var(--bg-light);
  color: var(--text-body);
  z-index: 10;
}

.detail-modal-close:hover {
  background: var(--lavender);
  color: var(--purple);
}

.detail-modal-body {
  padding: 40px 40px 32px;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.detail-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-meta-item i {
  width: 18px;
  text-align: center;
  color: var(--purple);
  opacity: 0.7;
  margin-top: 3px;
  font-size: 0.85rem;
}

.detail-meta-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.detail-meta-value {
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 500;
}

.detail-section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-description {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 28px;
  white-space: pre-wrap;
}

.detail-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.detail-skills .skill-tag {
  font-size: 12px;
  padding: 5px 14px;
  background: var(--lavender-light);
  border-color: rgba(95, 23, 157, 0.08);
}

.detail-footer-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.detail-footer-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-footer-info span i {
  font-size: 0.8rem;
}

.btn-apply {
  width: 100%;
  padding: 14px 28px;
  font-size: 1rem;
}

/* Apply Form within Detail Modal */
.apply-form-wrapper {
  margin-top: 24px;
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: fadeInUp 0.3s ease;
}

.apply-form-wrapper h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.apply-form .form-group {
  margin-bottom: 14px;
}

.apply-form .form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-body);
  display: block;
  margin-bottom: 5px;
}

.apply-form .form-group input,
.apply-form .form-group select,
.apply-form .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.apply-form .form-group input:focus,
.apply-form .form-group select:focus,
.apply-form .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.apply-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.apply-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.apply-form .form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.apply-success {
  text-align: center;
  padding: 32px 20px;
  animation: fadeInUp 0.3s ease;
}

.apply-success i {
  font-size: 2.5rem;
  color: var(--teal);
  margin-bottom: 12px;
}

.apply-success h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.apply-success p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========================================
   CREATE MODAL
   ======================================== */
.create-modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
}

.create-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  background: var(--bg-light);
  color: var(--text-body);
  z-index: 10;
}

.create-modal-close:hover {
  background: var(--lavender);
  color: var(--purple);
}

.create-modal-body {
  padding: 40px 40px 32px;
}

.modal-header-section {
  margin-bottom: 28px;
}

.modal-header-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.modal-header-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Create Form */
.create-form .form-row {
  margin-bottom: 16px;
}

.create-form .form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.create-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.create-form .form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-body);
}

.create-form .form-group .required {
  color: #dc2626;
}

.create-form .form-group input,
.create-form .form-group select,
.create-form .form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
  outline: none;
  transition: all var(--transition);
}

.create-form .form-group input:focus,
.create-form .form-group select:focus,
.create-form .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(95, 23, 157, 0.08);
}

.create-form .form-group input::placeholder,
.create-form .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.create-form .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b7b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.create-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.create-form .form-group input[type="date"] {
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: rgba(0, 0, 0, 0.18);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Preview Pane */
.preview-pane {
  animation: fadeInUp 0.3s ease;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.preview-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.preview-content {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.preview-content .detail-title {
  font-size: 1.25rem;
}

/* Form validation */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-error-msg {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: 2px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--teal);
  min-width: 300px;
  max-width: 420px;
  animation: toastIn 0.4s ease;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
}

.toast.toast-success {
  border-left-color: var(--teal);
}

.toast.toast-error {
  border-left-color: #dc2626;
}

.toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast.toast-success i {
  color: var(--teal);
}

.toast.toast-error i {
  color: #dc2626;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 4px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.toast-close:hover {
  opacity: 1;
}

.toast.exiting {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(40px); }
}

/* ========================================
   LOADING SPINNER ON BUTTONS
   ======================================== */
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 14px;
}

.btn-secondary.loading::after {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--text-body);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 768px) {
  .partnerships-page {
    padding-top: 72px;
  }

  .page-header {
    padding: 40px 0 36px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    justify-content: center;
  }

  .stat-divider {
    display: none;
  }

  /* Filter bar responsive */
  .filter-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-input-wrap {
    max-width: 100%;
  }

  .filter-dropdowns {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-dropdowns select {
    flex: 1;
    min-width: 0;
  }

  .results-count {
    margin-left: 0;
    text-align: center;
  }

  /* Listings */
  .listings-grid {
    grid-template-columns: 1fr;
  }

  .listings-section {
    padding: 28px 0 60px;
  }

  /* Modals */
  .detail-modal-body,
  .create-modal-body {
    padding: 28px 20px 24px;
  }

  .detail-modal-content,
  .create-modal-content {
    max-height: 95vh;
    margin: 8px;
    border-radius: var(--radius-md);
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .create-form .form-row.two-col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 32px 0 28px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .listing-card {
    padding: 20px;
  }

  .stat-item {
    font-size: 0.85rem;
  }
}
