.arrow-bounce {
  width: 30px;
  height: 30px;
  border-left: 4px solid #007EA8;
  border-bottom: 4px solid #007EA8;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
  margin: 1.5rem auto;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(-45deg);
  }
  40% {
    transform: translateY(10px) rotate(-45deg);
  }
  60% {
    transform: translateY(5px) rotate(-45deg);
  }
}

.rotating-text-container {
  display: inline-block;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}
.rotating-text {
  display: block;
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
}
.rotating-text.show {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}
.quote-section {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--rankior-light, #f5f5f5);
  color: #222;
}
.quote-section blockquote {
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.quote-logo img {
  display: block;
  margin: 0 auto;
}
body.dark-mode .quote-section {
  background: #0B2A37;
  color: #eee;
}
body.dark-mode .quote-separator svg path {
  fill: #0B2A37;
}

/* Arrow animation */
.rankior-collapsible-toggle::after {
  content: "▼";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  font-size: 0.85rem;
  color: var(--rankior-blue);
  position: relative;
  top: 1px;
}
.rankior-collapsible[open] .rankior-collapsible-toggle::after {
  content: "▲";
  transform: rotate(180deg);
}

.rankior-collapsible summary:hover {
  color: var(--rankior-blue-dark);
  border-color: var(--rankior-blue-dark);
}

.sub-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #111;
}

.fade-group {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-bar {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.search-bar input {
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--rankior-border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--rankior-white);
  color: var(--rankior-dark);
  transition: border 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-mode .search-bar input {
  background: #222;
  border: 1px solid #444;
  color: #eee;
}

@media (min-width: 768px) {
  .search-bar input {
    max-width: 700px;
    font-size: 18px;
  }
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--rankior-light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  color: var(--rankior-dark);
  transition: background 0.3s ease;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--rankior-blue);
  color: #fff;
}

.insight-card {
  background: var(--rankior-card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-img {
  position: relative;
}
.card-img img {
  width: 100%;
  height: auto;
  display: block;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rankior-blue);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.card-content {
  padding: 1.25rem;
}
.card-content .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.card-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.tags span {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: 4px;
}
.read-more {
  display: inline-block;
  color: var(--rankior-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.read-more:hover {
  text-decoration: underline;
}

body.dark-mode .insight-card {
  background: #1a1a1a;
  border: 1px solid #333;
}
body.dark-mode .card-content .meta,
body.dark-mode .card-content p {
  color: #ccc;
}
body.dark-mode .tags span {
  background: #333;
  color: #eee;
}