/* about.css */
html {
  height: 100%;
  margin: 0em;
}

/* about.css */
body {
  height: 100%;
}

/* about.css */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* about.css */
.about-section {
  flex: 2;
  padding: 3rem 1rem;
  background-color: #F9F9FB;
  color: #1f2937;
}

/* about.css */
.about-section .container {
  max-width: 900px;
  margin: 0 auto;
}

/* about.css */
.about-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4b0082;
}

/* about.css */
.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* about.css */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

/* about.css */
.stat-card {
  flex: 1 1 200px;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #8b5cf6;
}

/* about.css */
.stat-card h2 {
  font-size: 2rem;
  color: #8b5cf6;
  margin-bottom: 0.5rem;
}

/* about.css */
.stat-card p {
  font-size: 1rem;
  color: #6b7280;
}

/* about.css */
.about-more h2 {
  font-size: 1.5rem;
  color: #4b0082;
  margin-bottom: 0.5rem;
}

/* about.css */
.about-more p {
  font-size: 1.05rem;
  color: #374151;
}

/* about.css */
footer {
  text-align: center;
  margin-bottom: 0;
}

/* author-list.css */
:root {
  --purple: #8b5cf6;
  --light-bg: #f8f7ff;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
  --text-light: #4B5563;
}

/* author-list.css, category.css, home.css, quote.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* author-list.css */
.author-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
}

/* author-list.css, topic.css */
.alphabet-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* author-list.css, topic.css */
.alphabet-nav li {
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

/* author-list.css, topic.css */
.alphabet-nav li:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* author-list.css, topic.css */
.alphabet-nav .active {
  background: var(--purple);
  color: #fff;
}

/* author-list.css, topic.css */
.letter-header {
  position: relative;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 2rem;
  padding-right: 0.5rem;
}

/* author-list.css, topic.css */
.letter-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2.5rem;
  right: 0;
  height: 2px;
  background: var(--purple);
  transform: translateY(-50%);
}

/* author-list.css */
.author-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 5rem;
}

/* author-list.css */
.author-list-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* author-list.css, author.css, category.css, topic.css */
.author-list-card .avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--purple);
  font-size: 1.125rem;
}

/* author-list.css, topic.css */
.info {
  flex: 1;
}

/* author-list.css, topic.css */
.name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* author-list.css, topic.css */
.count {
  font-size: 0.875rem;
  color: var(--purple);
  font-weight: 500;
}

/* author-list.css, author.css, category.css, topic.css */
.pagination {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  background-color: var(--light-bg);
}

/* author-list.css, author.css, category.css, topic.css */
.pagination a {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.2s, color 0.2s;
}

/* author-list.css, topic.css */
.pagination a:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* author-list.css, author.css, category.css, topic.css */
.pagination a.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

/* author.css, category.css */
:root {
  --purple-dark: #4C1D95;
  --purple-light: #7C3AED;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --yellow-500: #F59E0B;
}

/* author.css, category.css */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* author.css, category.css */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* author.css, category.css */
.author-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4B0082;
  text-align: center;
  margin: 2rem 0 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

/* author.css, category.css */
.quotes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* author.css, category.css */
.pagination a,
.pagination span {
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--gray-700);
}

/* author.css, category.css */
.pagination .active {
  background-color: var(--purple-light);
  color: #fff;
  border-color: var(--purple-light);
}

/* author.css, category.css */
.card {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

/* author.css, category.css */
.card:hover {
  transform: translateY(-4px);
}

/* author.css, category.css */
.card-content {
  padding: 1.5rem;
}

/* author.css, category.css */
blockquote {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  quotes: "\201C" "\201D";
}

/* author.css, category.css */
blockquote::before {
  content: open-quote;
  font-size: 2rem;
  vertical-align: -0.4em;
  color: var(--gray-300);
  margin-right: 0.25rem;
}

/* author.css, category.css */
blockquote::after {
  content: close-quote;
}

/* author.css, category.css */
.source {
  color: var(--gray-500);
  font-weight: 500;
}

/* author.css, category.css */
.card-footer {
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* author.css, category.css */
.rating {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--gray-700);
}

/* author.css, category.css */
.rating .star {
  color: var(--yellow-500);
  margin-right: 0.25rem;
  font-size: 1.125rem;
}

/* author.css, category.css */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

/* author.css, category.css */
.icon-btn:hover {
  color: var(--purple-light);
}

/* author.css, category.css */
.blue {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

/* author.css, category.css */
.green {
  background: linear-gradient(135deg, #56ab2f, #a8e063);
}

/* author.css, category.css */
.purple {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

/* author.css, category.css */
.orange {
  background: linear-gradient(135deg, #f09819, #ed6ea0);
}

/* author.css, category.css */
.red {
  background: linear-gradient(135deg, #fe5858, #ee0979);
}

/* author.css, category.css */
.lightblue {
  background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

/* author.css, category.css */
.amber {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

/* author.css, category.css */
.teal {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* author.css, category.css */
.section {
  margin-bottom: 3rem;
}

/* author.css, category.css */
.section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* author.css, category.css */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* author.css, category.css */
.cards .card {
  position: relative;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding-top: 100px;
  overflow: hidden;
  text-align: center;
}

/* author.css, category.css */
.card-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
}

/* author.css, category.css */
.card .avatar {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
}

/* author.css, category.css */
.card-body {
  margin-top: 30px;
  padding: 0 1rem 1rem;
  text-align: center;
}

/* author.css, category.css */
.card-body h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

/* author.css, category.css */
.site-footer {
  background-color: #2C2E82;
  color: #fff;
  padding: 60px 20px;
}

/* author.css, category.css */
.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
}

/* author.css, category.css */
.logo {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: bold;
}

/* author.css, category.css */
.logo .logo-highlight {
  color: #F4C20D;
}

/* author.css, category.css */
.about-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* author.css, category.css */
.social-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 20px;
  color: #fff;
  transition: color .2s;
}

/* author.css, category.css */
.social-links a:hover {
  color: #F4C20D;
}

/* author.css, category.css */
.footer-col h5 {
  font-size: 18px;
  margin-bottom: 16px;
}

/* author.css, category.css */
.footer-links {
  list-style: none;
}

/* author.css, category.css */
.footer-links li {
  margin-bottom: 10px;
}

/* author.css, category.css */
.footer-links a {
  color: #D1D1E0;
  text-decoration: none;
  transition: color .2s;
}

/* author.css, category.css */
.footer-links a:hover {
  color: #fff;
}

/* author.css, category.css */
.subscribe-text {
  margin-bottom: 12px;
  line-height: 1.5;
  color: #D1D1E0;
}

/* author.css, category.css */
.subscribe-form {
  display: flex;
  max-width: 300px;
}

/* author.css, category.css */
.subscribe-form input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

/* author.css, category.css */
.subscribe-form button {
  padding: 10px 20px;
  border: none;
  background-color: #F4C20D;
  color: #2C2E82;
  font-weight: bold;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color .2s;
}

/* author.css, category.css */
.subscribe-form button:hover {
  background-color: #ddb10b;
}

/* author.css, category.css */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}

/* footer.css */
footer {
  display: block;
  background-color: #f0f0f0;
  text-align: center;
  margin-top: auto;
  width: 100%;
  height: 75px;
  line-height: 75px;
}

/* header.css */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f0f0f0;
  background-color: #5724A9;
  height: 5em;
  padding-left: 1em;
  padding-right: 1em;
}

/* header.css */
.logo-link {
  text-decoration: none;
  color: white;
}

/* header.css */
.header-nav-links {
  list-style: none;
  display: flex;
  gap: 4em;
  padding: 0;
}

/* header.css */
.header-nav-links li a {
  text-decoration: none;
  color: white;
}

/* header.css */
#sticky-footer {
  position: static;
  bottom: auto;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background-color: #f5f5f5;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #ddd;
}

/* home.css, quote.css */
.home-first-section {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-self: center;
}

/* home.css, quote.css */
:root {
  --purple: #8b5cf6;
  --green: #16a34a;
  --red: #dc2626;
  --light-bg: #f8f7ff;
  --card-bg: #ffffff;
  --text-dark: #1f2937;
}

/* home.css, quote.css */
.quote-wrapper {
  width: 100%;
}

/* home.css, quote.css */
.quote-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border: 4px solid transparent;
}

/* home.css, quote.css */
.quote-card.positive {
  border-color: var(--green);
}

/* home.css, quote.css */
.quote-card.negative {
  border-color: var(--red);
}

/* home.css, quote.css */
.quote-card h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* home.css, quote.css */
.quote-card p {
  font-size: 1.5rem;
  font-style: italic;
  color: #4B5563;
  line-height: 1.5;
  margin: 1.5rem 0;
}

/* home.css, quote.css */
.quote-card .author {
  font-size: 1rem;
  color: var(--purple);
  font-weight: bold;
}

/* home.css, quote.css */
.actions {
  margin-top: 1.5rem;
  display: inline-flex;
  gap: 1rem;
}

/* home.css, quote.css */
.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

/* home.css, quote.css */
.btn.primary {
  background: var(--purple);
  color: #fff;
}

/* home.css, quote.css */
.btn.outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

/* home.css, quote.css */
.related-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* home.css, quote.css */
.related h2 {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

/* home.css, quote.css */
.related.similar h2 {
  color: var(--green);
}

/* home.css, quote.css */
.related.opposing h2 {
  color: var(--red);
}

/* home.css, quote.css */
.related-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 4px solid;
}

/* home.css, quote.css */
.related-card.similar {
  border-color: var(--green);
}

/* home.css, quote.css */
.related-card.similar .author {
  color: var(--green);
}

/* home.css, quote.css */
.related-card.opposing {
  border-color: var(--red);
}

/* home.css, quote.css */
.related-card.opposing .author {
  color: var(--red);
}

/* home.css, quote.css */
.navigation {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* main.css */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

/* main.css */
/* main.css */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 1em;
  margin-bottom: 1em;
  display: flex;
  flex-direction: column;

  /* NEW: center everything inside horizontally */
  align-items: center;  
}

/* quote.css */
.quote-main-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-self: center;
}

/* topic.css */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 5rem;
}

/* topic.css */
.topic-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Remove underlines from all hyperlinks */
a, a:link, a:visited, a:hover, a:active {
  text-decoration: none;
}

.quote-text-wrapper {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;           /* stays above related headers */
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.sticky-related {
  position: sticky;
  top: 68px;              /* Adjust to match height of .quote-text-wrapper */
  background: var(--card-bg);
  z-index: 5;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

@media (max-width: 600px) {
  .sticky-related {
    top: 100px;            /* If .quote-text-wrapper is taller on mobile */
  }
}