/* Rocketconnect.ai - Blog Specific Styling */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(36, 11, 255, 0.15);
  border-color: rgba(36, 11, 255, 0.3);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  background: rgba(36, 11, 255, 0.12);
  border: 1px solid rgba(36, 11, 255, 0.25);
  color: #a3b2ff;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition-fast);
}

.blog-card:hover .blog-title {
  color: var(--accent);
}

.blog-excerpt {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-top: auto;
}

.blog-link-wrapper {
  text-decoration: none;
}

/* Individual Post Layout */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 0;
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.post-back-btn:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

.post-header {
  margin-bottom: 3rem;
}

.post-header-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 95, 0, 0.1);
  border: 1px solid rgba(255, 95, 0, 0.25);
  color: #ff914d;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.post-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-author {
  font-weight: 600;
  color: var(--text-main);
}

.post-featured-image {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
  text-align: justify;
}

.post-content p {
  margin-bottom: 1.75rem;
}

.post-content h2,
.post-content h3 {
  color: #ffffff;
  margin: 2.5rem 0 1rem;
}

.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.4rem; }

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #ffffff;
  background: rgba(255, 95, 0, 0.03);
  padding: 1.5rem;
  border-radius: 0 1rem 1rem 0;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.75rem;
  text-align: left; /* Keep list content left-aligned to prevent justification text gaps */
}

.post-content ul {
  list-style: none;
  padding-left: 0;
}

.post-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.post-content ul li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  font-size: 1.25rem;
  position: absolute;
  left: 0.5rem;
  top: -0.1rem;
}

.post-content ol {
  list-style: none;
  counter-reset: blog-ol-counter;
  padding-left: 0;
}

.post-content ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: blog-ol-counter;
}

.post-content ol li::before {
  content: counter(blog-ol-counter) ".";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0.5rem;
  font-family: 'Outfit', sans-serif;
}

/* Author Box */
.author-box {
  margin-top: 4rem;
  padding: 2.5rem;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.5rem;
  border: 2px solid var(--border-light);
}

.author-title h3 {
  font-size: 1.15rem;
  color: #ffffff;
}

.author-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.author-bio {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Blog Slider (Homepage only) */
.blog-slider-wrapper {
  overflow: visible;
  padding: 1.5rem 0;
  margin: 0 -1.5rem;
}

.blog-slider-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  padding: 0 1.5rem;
}

.blog-card-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 490px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
  position: relative;
}

.blog-card-slide:hover {
  transform: translateY(-8px);
  border-color: rgba(36, 11, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(36, 11, 255, 0.15);
}

.blog-card-slide .blog-link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Dots navigation */
.blog-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.blog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-dot.active {
  background: var(--accent);
  width: 25px;
  border-radius: 5px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .blog-card-slide {
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}

@media (max-width: 768px) {
  .blog-card-slide {
    flex: 0 0 100%;
  }
}
