/* Custom styles for About Me section on home page */
/* Removed - image moved to hero section */

/* Center modal buttons */
#subscribe-modal .btn-row,
#contact-modal .btn-row {
  justify-content: center !important;
}

#subscribe-modal .inner,
#contact-modal .inner {
  text-align: center !important;
}

#subscribe-modal #subscribe-modal-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--aurora-anchor) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
  font-family: var(--aurora-font) !important;
}

/* Custom styles for posts page search bar */
.search-filter-form {
  width: 100%;
}


.search-bar {
  display: grid;
  gap: 1rem;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.search-bar__field {
  position: relative;
  min-width: 0;
}

.search-bar__input {
  flex: 1 1 280px;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  min-height: 44px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar__input:focus {
  outline: none;
  border-color: #7de2b8;
  box-shadow: 0 0 0 3px rgba(125, 226, 184, 0.35);
}

.search-bar__select-wrapper {
  position: relative;
  min-width: 0;
}

.search-bar__select {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  min-height: 44px;
  appearance: none;
  padding-right: 2.8rem;
}

.search-bar__select:focus {
  outline: none;
  border-color: #b3b6f5;
  box-shadow: 0 0 0 3px rgba(179, 182, 245, 0.3);
}

.search-bar__select-wrapper::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
}

.search-bar__submit-container {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-bar__submit {
  white-space: nowrap;
  min-height: 44px;
  padding-left: 24px;
  padding-right: 24px;
  width: auto;
  max-width: max-content;
}

.load-more-container {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding: 0;
}

.load-more-inner-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding: 0;
}

.load-more-left-container {
  flex: 1;
  padding: 0;
}

.load-more-right-container {
  width: 240px;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.load-more-btn {
  min-width: 220px;
}

/* Mobile: Stack button below search results text */
@media (max-width: 600px) {
  .load-more-inner-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .load-more-right-container {
    width: 100%;
    justify-content: flex-start;
  }
  
  .load-more-btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .load-more-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .search-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .search-bar__submit-container {
    width: 100%;
    justify-self: stretch;
  }
  
  .search-bar__submit {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .search-bar {
    grid-template-columns: minmax(0, 1fr) 220px auto;
    align-items: center;
  }

  .search-bar__select-wrapper {
    width: 220px;
  }

  .search-bar__select {
    width: 100%;
  }
}

/* Aurora Pop Action Buttons */
.aurora-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #253047;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(27, 27, 29, 0.15);
}

.aurora-action-btn:hover,
.aurora-action-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(27, 27, 29, 0.2);
}

.aurora-action-btn:active {
  transform: translateY(0);
}

/* Pressed state - aurora pop peach */
.aurora-action-btn.pressed {
  background: #FFB3A7;
  color: #253047;
  border: none;
  box-shadow: 0 8px 20px -6px rgba(27, 27, 29, 0.4);
  filter: saturate(1.1);
}

.aurora-action-btn.pressed:hover,
.aurora-action-btn.pressed:focus {
  transform: translateY(-2px);
  filter: saturate(1.15);
  box-shadow: 0 12px 24px -6px rgba(27, 27, 29, 0.45);
}

.aurora-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: fill 0.2s ease;
}

.aurora-action-btn.pressed svg {
  fill: currentColor;
}

/* Aurora Pagination Styles */
.aurora-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aurora-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #253047;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(27, 27, 29, 0.15);
}

.aurora-pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(27, 27, 29, 0.2);
}

.aurora-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aurora-pagination-btn.active {
  background: linear-gradient(135deg, #7DE2B8, #B3B6F5);
  color: #253047;
  border: none;
  box-shadow: 0 4px 12px -2px rgba(27, 27, 29, 0.25);
}

.aurora-pagination-btn.active:hover {
  transform: translateY(-1px);
  filter: saturate(1.1);
  box-shadow: 0 6px 16px -2px rgba(27, 27, 29, 0.3);
}

/* Admin passkey management */
.passkeys-list {
  display: grid;
  gap: 12px;
}

.passkey-chip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(179, 182, 245, 0.12);
  border: 1px solid rgba(179, 182, 245, 0.35);
}

.passkey-chip strong {
  font-size: 0.95rem;
  color: #253047;
}

.passkey-chip code {
  font-size: 0.75rem;
  background: rgba(37, 48, 71, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.passkey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(37, 48, 71, 0.7);
  margin-top: 4px;
}

.btn.xs {
  padding: 6px 10px;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
}

.text-muted {
  color: rgba(37, 48, 71, 0.6);
}

.aurora-pagination-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Similar Posts Section - Removed white container to show colorful background */

/* Make Latest Posts title bigger */
.aurora-latest-header .aurora-latest-heading {
  font-size: clamp(2.2rem, 1.8rem + 0.6vw, 2.8rem) !important;
}

/* Prevent Similar Posts heading from wrapping */
.similar-posts-section .aurora-latest-heading {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ensure header container maintains spacing */
.similar-posts-section .aurora-latest-header {
  gap: 1rem;
  min-width: 0; /* Allow flex items to shrink if needed, but heading won't wrap */
}

/* Remove space below Latest Posts header container */
.aurora-latest-header {
  margin-bottom: 0 !important;
}

/* Mobile: Put View All Posts button above Latest Posts title */
@media (max-width: 500px) {
  .aurora-latest-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .aurora-latest-header .aurora-btn {
    order: -1;
  }
}

/* Remove space above Latest Posts quote */
.latest-posts-quote {
  font-size: 16px;
  text-align: left;
  margin-top: 0 !important;
}

/* When Latest Posts layout switches to mobile (button above header), center the quote text */
@media (max-width: 500px) {
  .latest-posts-quote {
    text-align: center;
  }
}

/* Reduce space below Organizations section heading */
.org-section-heading {
  margin-bottom: 0.5rem !important;
}

/* Reduce space above Organizations section when My Story is collapsed */
/* Target the organizations section that follows the story divider */
/* When story is expanded, the bottom divider's 3rem margin-top provides adequate spacing */
.story-divider-section ~ .mb-6 {
  margin-top: -2rem !important;
}

/* Add extra space below the story bottom divider when My Story is expanded */
/* Target when height is set to 3px (expanded state) or opacity is 0.9 */
#story-bottom-divider[style*="height: 3px"],
#story-bottom-divider[style*="height:3px"],
#story-bottom-divider[style*="opacity: 0.9"],
#story-bottom-divider[style*="opacity:0.9"] {
  margin-bottom: 4rem !important;
}

/* Add aurora mist border to post cards */
.aurora-post-card--grid {
  border: 1px solid var(--aurora-mist) !important;
}

/* Clamp confirmation card width */
.confirmation-card-wrapper,
.confirmation-card {
  max-width: 600px !important;
  width: 100%;
  margin-inline: auto;
}

.confirmation-card__actions {
  flex-direction: row;
}

@media (max-width: 500px) {
  .confirmation-card__actions {
    flex-direction: column;
  }
}

/* Ensure post card grid titles are limited to 2 lines */
.aurora-post-card--grid .aurora-post-card__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  max-height: calc(1.4em * 2) !important;
}

/* Edit post footer button layout */
body.aurora-theme .aurora-edit-actions {
  display: flex !important;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

body.aurora-theme .aurora-edit-actions .btn,
body.aurora-theme .aurora-edit-actions input[type="submit"],
body.aurora-theme .aurora-edit-actions button[type="submit"] {
  width: auto !important;
  max-width: none !important;
  min-width: 140px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

body.aurora-theme .aurora-edit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--aurora-mist);
  margin-top: 24px;
}

body.aurora-theme .aurora-edit-status {
  font-size: 0.875rem;
  color: var(--aurora-ink);
  opacity: 0.7;
  font-weight: 600;
}

/* Disabled grey button - override Aurora Pop gradient */
body.aurora-theme .btn-disabled-grey,
.btn-disabled-grey {
  background: #9ca3af !important;
  background-color: #9ca3af !important;
  background-image: none !important;
  background-clip: border-box !important;
  border-color: #9ca3af !important;
  color: #ffffff !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

body.aurora-theme .btn-disabled-grey:hover,
body.aurora-theme .btn-disabled-grey:focus,
body.aurora-theme .btn-disabled-grey:active,
.btn-disabled-grey:hover,
.btn-disabled-grey:focus,
.btn-disabled-grey:active {
  background: #9ca3af !important;
  background-color: #9ca3af !important;
  background-image: none !important;
  border-color: #9ca3af !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Admin posts metrics row - horizontal layout */
.aurora-metric-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .aurora-metric-row {
    flex-direction: column;
  }
}

/* Typing animation cursor */
.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
  color: #4b5563;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Search button aurora bouncing dots */
#search-submit-btn .dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#search-submit-btn .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7DE2B8;
  animation: aurora-bounce 0.9s infinite;
}

#search-submit-btn .dot:nth-child(2) {
  background: #B3B6F5;
  animation-delay: 0.1s;
}

#search-submit-btn .dot:nth-child(3) {
  background: #FFB3A7;
  animation-delay: 0.2s;
}

@keyframes aurora-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-9px);
  }
}

/* Load More button aurora bouncing dots */
.load-more-loading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 220px;
  min-height: 44px;
}

.load-more-loading .dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.load-more-loading .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7DE2B8;
  animation: aurora-bounce 0.9s infinite;
}

.load-more-loading .dot:nth-child(2) {
  background: #B3B6F5;
  animation-delay: 0.1s;
}

.load-more-loading .dot:nth-child(3) {
  background: #FFB3A7;
  animation-delay: 0.2s;
}

/* Hero Section Styles */
.hero-section {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.hero-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 0;
  padding-top: 0;
}

/* Left Container */
.hero-left-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
}

body.aurora-theme .hero-name {
  font-size: clamp(3rem, 7vw, 6rem) !important;
  font-weight: 800;
  color: var(--aurora-anchor, #253047);
  margin: 0;
  line-height: 1.1;
  white-space: nowrap;
  font-family: var(--aurora-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  letter-spacing: -0.02em;
}

.hero-typing-wrapper {
  position: relative;
  height: calc(1.5rem * 1.5 * 2); /* Fixed height for 2 lines: font-size * line-height * 2 */
  display: flex;
  align-items: flex-start;
  margin-top: 1.5rem; /* Spacing equal to text font-size */
  width: 100%;
}

.hero-typing-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  background: transparent !important;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-typing-placeholder__balls {
  display: inline-flex;
  gap: 8px;
  padding-top: 0.25rem;
}

.hero-typing-placeholder__balls span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7de2b8, #b3b6f5 60%, #ffb3a7);
  animation: hero-bounce 1s infinite ease-in-out;
}

.hero-typing-placeholder__balls span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-typing-placeholder__balls span:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-typing-wrapper.is-loaded .hero-typing-placeholder {
  opacity: 0;
  visibility: hidden;
}

.hero-typing-text {
  position: relative;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--aurora-ink, #1B1B1D);
  margin: 0;
  line-height: 1.5;
  font-weight: 600;
  font-family: var(--aurora-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  height: auto;
  max-height: calc(1.5rem * 1.5 * 2); /* Max height for 2 lines */
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-typing-wrapper.is-loaded .hero-typing-text {
  opacity: 1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Glass Icon Chip Style (Option 3) */
.hero-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 40px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--aurora-mist, #DDE5EA);
  color: var(--aurora-anchor, #253047);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  font-family: var(--aurora-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.hero-social-chip__ico-wrap {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--aurora-mint, #7DE2B8), var(--aurora-lav, #B3B6F5));
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.hero-social-chip__ico {
  width: 16px;
  height: 16px;
}

.hero-social-chip__label {
  white-space: nowrap;
}

.hero-social-chip:hover,
.hero-social-chip:focus {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.hero-social-chip:active {
  transform: translateY(0);
  filter: saturate(1);
}

.hero-social-chip:focus-visible {
  outline: 3px solid rgba(179, 182, 245, 0.35);
  outline-offset: 2px;
}

.hero-views-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(125, 226, 184, 0.45);
  color: #0f1720;
  border: none;
  box-shadow: 0 8px 18px -18px rgba(27, 27, 29, 0.5);
  font-family: var(--aurora-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.hero-views-badge svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: #0f1720;
  opacity: 0.9;
}

/* Right Container */
.hero-right-container {
  flex-shrink: 0;
  width: 400px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-profile-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.hero-profile-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-family: var(--aurora-font, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #253047;
  background: rgba(255, 255, 255, 0.9);
}

.hero-profile-placeholder__label {
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-profile-placeholder__balls {
  display: inline-flex;
  gap: 8px;
}

.hero-profile-placeholder__balls span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7de2b8, #b3b6f5 60%, #ffb3a7);
  animation: hero-bounce 1s infinite ease-in-out;
}

.hero-profile-placeholder__balls span:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-profile-placeholder__balls span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes hero-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
}

.hero-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-profile-wrapper.is-loaded .hero-profile-placeholder {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.hero-profile-wrapper.is-loaded .hero-profile-image {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }
  
  .hero-right-container {
    width: 300px;
  }
  
  .hero-profile-wrapper {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  body.aurora-theme .main-content {
    padding-top: 32px;
  }

  .hero-left-container {
    align-items: center;
    text-align: center;
    min-height: auto;
    width: 100%;
  }
  
  body.aurora-theme .hero-name {
    text-align: center;
  }
  
  .hero-typing-wrapper {
    justify-content: center;
    text-align: center;
  }
  
  .hero-typing-text {
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-right-container {
    width: 100%;
    justify-content: center;
  }
  
  .hero-profile-wrapper {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .hero-profile-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .hero-right-container {
    width: 250px;
  }
}

/* Post show page navigation buttons - stack on mobile */
@media (max-width: 450px) {
  .post-navigation-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .post-navigation-buttons .btn.ghost {
    width: 100%;
    text-align: center;
  }
}

/* Similar posts pagination - desktop: show buttons inline with pages */
.similar-posts-nav-buttons {
  display: contents;
}

.similar-posts-nav-buttons .aurora-pagination-btn--prev {
  order: 1;
}

.similar-posts-pagination-wrapper .aurora-pagination-pages {
  order: 2;
}

.similar-posts-nav-buttons .aurora-pagination-btn--next {
  order: 3;
}

/* Similar posts pagination - restructure on mobile */
@media (max-width: 767px) {
  .similar-posts-pagination-wrapper {
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .similar-posts-pagination-wrapper .aurora-pagination {
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    width: auto;
  }
  
  /* Nav buttons wrapper - side by side on mobile, above page numbers */
  .similar-posts-nav-buttons {
    display: flex;
    gap: 0.5rem;
    width: auto;
    justify-content: flex-end;
    order: 1;
  }
  
  .similar-posts-nav-buttons .aurora-pagination-btn {
    flex: 0 0 auto; /* Keep original size, don't grow or shrink */
    order: 0; /* Reset order within the wrapper */
  }
  
  /* Page numbers go below prev/next buttons */
  .similar-posts-pagination-wrapper .aurora-pagination-pages {
    order: 2;
    width: auto;
    justify-content: flex-end;
  }
}

/* When Similar Posts title stacks above buttons (around 500px), center the buttons */
@media (max-width: 500px) {
  .similar-posts-section .aurora-latest-header {
    align-items: center; /* Center heading and buttons */
  }
  
  .similar-posts-section .aurora-latest-heading {
    text-align: center;
    width: 100%;
  }
  
  .similar-posts-pagination-wrapper {
    width: 100%;
    margin-left: 0;
    align-self: center; /* Center the pagination wrapper itself */
  }
  
  .similar-posts-pagination-wrapper .aurora-pagination {
    align-items: center;
    width: 100%;
  }
  
  .similar-posts-nav-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .similar-posts-pagination-wrapper .aurora-pagination-pages {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 767px) {
  body.aurora-theme .aurora-post-card__pills {
    justify-content: flex-start;
  }
}

@media (min-width: 500px) {
  .post-show-metadata .aurora-post-card__pills {
    margin-left: auto;
  }
}

/* Admin Posts Layout - Ensure stats and buttons are on same row */
.aurora-admin-content > div:first-child {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.aurora-metric-row {
  display: flex !important;
  flex-direction: row !important;
}

/* Admin Posts - search + stats alignment */
.admin-search-stats-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
}

.admin-search-panel {
  flex: 1 1 60%;
  min-width: 360px;
}

.admin-stats-panel {
  flex: 1 1 40%;
  min-width: 320px;
}

@media (max-width: 1100px) {
  .admin-search-stats-row {
    flex-direction: column;
  }

  .admin-search-panel,
  .admin-stats-panel {
    min-width: 0;
    width: 100%;
  }
}

/* Toast Notification Styles */
.copied-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background-color: #ffffff;
  border: 2px solid #7de2b8;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0;
  min-width: 280px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.copied-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.copied-toast__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.copied-toast__message {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.copied-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
  border-radius: 4px;
  flex-shrink: 0;
}

.copied-toast__close:hover {
  color: #1f2937;
  background-color: #f3f4f6;
}

.copied-toast__close svg {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments for toast */
@media (max-width: 640px) {
  .copied-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    min-width: auto;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .copied-toast--visible {
    transform: translateY(0);
  }
}

/* Admin Post Form - Details Section Layout */
/* Ensure spacing between content editor and details section */
body.aurora-theme #post-form > div[style*="display: grid"] {
  gap: clamp(24px, 4vw, 36px) !important;
}

/* Force Details section to maintain two-row layout */
/* Target the grid container inside .content */
body.aurora-theme .acc details .content > div[style*="display: grid"],
body.aurora-theme .acc .content > div[style*="display: grid"] {
  display: grid !important;
  gap: 16px !important;
}

/* Target the flex rows inside the grid */
body.aurora-theme .acc details .content > div > div[style*="display: flex"],
body.aurora-theme .acc .content > div > div[style*="display: flex"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  flex-direction: row !important;
}

/* First row: Priority and URL Slug - keep side by side */
body.aurora-theme .acc details .content > div > div[style*="display: flex"]:first-child,
body.aurora-theme .acc .content > div > div[style*="display: flex"]:first-child {
  align-items: flex-end !important;
}

/* Second row: Posted Date and Email button - keep side by side */
body.aurora-theme .acc details .content > div > div[style*="display: flex"]:last-child,
body.aurora-theme .acc .content > div > div[style*="display: flex"]:last-child {
  align-items: center !important;
}

/* Data Policy Page - Force list bullets to display */
.policy-list {
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 2em !important;
  margin-bottom: 24px !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
}

.policy-list li {
  display: list-item !important;
  margin-bottom: 8px !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.policy-list li:last-child {
  margin-bottom: 0 !important;
}
