/* ═══════════════════════════════════════════════════════════════════════════
   BLOG PAGE STYLES
   Add these to your main styles.css file
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(135deg, #0B1120 0%, #1a1a2e 50%, #0B1120 100%);
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(34, 211, 238, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.blog-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.blog-hero-orb-1 {
  top: 10%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 238, 0.1);
}

.blog-hero-orb-2 {
  bottom: 10%;
  right: 20%;
  width: 250px;
  height: 250px;
  background: rgba(59, 130, 246, 0.08);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero-label {
  display: inline-block;
  color: #22d3ee;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero-subtitle {
  font-size: 1.25rem;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.blog-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke: #22d3ee;
}

.blog-stat-text {
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

.blog-hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG TOPICS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-topics-section {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.blog-topics-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-topics-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-topics-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0B1120;
  margin: 0 0 0.5rem;
}

.blog-topics-header p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.topic-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-icon-box svg {
  width: 24px;
  height: 24px;
}

.topic-content {
  flex: 1;
  min-width: 0;
}

.topic-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0B1120;
  margin: 0 0 0.25rem;
}

.topic-content p {
  font-size: 0.8rem;
  color: #6B7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-arrow {
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.topic-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #6B7280;
}

.topic-card:hover .topic-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Topic Card Color Variants */
.topic-card.topic-python { border-left: 3px solid #3b82f6; }
.topic-card.topic-python .topic-icon-box { background: rgba(59, 130, 246, 0.1); }
.topic-card.topic-python .topic-icon-box svg { stroke: #3b82f6; }
.topic-card.topic-python:hover { border-color: #3b82f6; }

.topic-card.topic-r { border-left: 3px solid #2563eb; }
.topic-card.topic-r .topic-icon-box { background: rgba(37, 99, 235, 0.1); }
.topic-card.topic-r .topic-icon-box svg { stroke: #2563eb; }
.topic-card.topic-r:hover { border-color: #2563eb; }

.topic-card.topic-stats { border-left: 3px solid #8b5cf6; }
.topic-card.topic-stats .topic-icon-box { background: rgba(139, 92, 246, 0.1); }
.topic-card.topic-stats .topic-icon-box svg { stroke: #8b5cf6; }
.topic-card.topic-stats:hover { border-color: #8b5cf6; }

.topic-card.topic-ml { border-left: 3px solid #f59e0b; }
.topic-card.topic-ml .topic-icon-box { background: rgba(245, 158, 11, 0.1); }
.topic-card.topic-ml .topic-icon-box svg { stroke: #f59e0b; }
.topic-card.topic-ml:hover { border-color: #f59e0b; }

.topic-card.topic-viz { border-left: 3px solid #10b981; }
.topic-card.topic-viz .topic-icon-box { background: rgba(16, 185, 129, 0.1); }
.topic-card.topic-viz .topic-icon-box svg { stroke: #10b981; }
.topic-card.topic-viz:hover { border-color: #10b981; }

.topic-card.topic-quarto { border-left: 3px solid #22d3ee; }
.topic-card.topic-quarto .topic-icon-box { background: rgba(34, 211, 238, 0.1); }
.topic-card.topic-quarto .topic-icon-box svg { stroke: #22d3ee; }
.topic-card.topic-quarto:hover { border-color: #22d3ee; }

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG ARTICLES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-articles-section {
  padding: 5rem 2rem 3rem;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
  position: relative;
}

.blog-articles-section.full-width {
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.blog-articles-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-label {
  display: inline-block;
  color: #22d3ee;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin: 0 0 0.75rem;
}

.blog-subtitle {
  font-size: 1rem;
  color: #9CA3AF;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}

.blog-listing-spacer {
  height: 3rem;
  background: linear-gradient(180deg, #1E293B 0%, #f8fafc 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUARTO LISTING CUSTOMIZATION
   ═══════════════════════════════════════════════════════════════════════════ */

#blog-listing {
  padding: 4rem 2rem;
  background: #f8fafc;
  margin-top: 2rem;
}

#blog-listing .quarto-listing {
  max-width: 1200px;
  margin: 0 auto;
}

/* Listing Header/Filters */
#blog-listing .listing-actions {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

#blog-listing .form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

#blog-listing .form-control:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Listing Cards */
#blog-listing .quarto-listing-default {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

#blog-listing .quarto-post {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

#blog-listing .quarto-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #22d3ee;
}

#blog-listing .quarto-post .thumbnail {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1120, #1E293B);
}

#blog-listing .quarto-post .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#blog-listing .quarto-post:hover .thumbnail img {
  transform: scale(1.05);
}

#blog-listing .quarto-post .body {
  padding: 1.5rem;
}

#blog-listing .quarto-post .listing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1120;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

#blog-listing .quarto-post .listing-title a {
  color: inherit;
  text-decoration: none;
}

#blog-listing .quarto-post .listing-title a:hover {
  color: #0891b2;
}

#blog-listing .quarto-post .listing-description {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.6;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#blog-listing .quarto-post .listing-date {
  font-size: 0.8rem;
  color: #9CA3AF;
}

#blog-listing .quarto-post .listing-reading-time {
  font-size: 0.8rem;
  color: #9CA3AF;
}

#blog-listing .quarto-post .listing-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

#blog-listing .quarto-post .listing-category {
  padding: 0.25rem 0.6rem;
  background: rgba(34, 211, 238, 0.1);
  color: #0891b2;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

#blog-listing .quarto-post .listing-category:hover {
  background: rgba(34, 211, 238, 0.2);
}

/* Categories Sidebar */
#blog-listing .quarto-listing-category {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

#blog-listing .quarto-listing-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0B1120;
  margin-bottom: 1rem;
}

#blog-listing .category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.25rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

#blog-listing .category:hover {
  background: #22d3ee;
  color: white;
}

/* Pagination */
#blog-listing .page-link {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #4B5563;
  text-decoration: none;
  transition: all 0.2s ease;
}

#blog-listing .page-link:hover {
  background: #22d3ee;
  border-color: #22d3ee;
  color: white;
}

#blog-listing .page-item.active .page-link {
  background: #0891b2;
  border-color: #0891b2;
  color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG NEWSLETTER SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-newsletter-section {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.blog-newsletter-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.newsletter-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(34, 211, 238, 0.03));
  border: 2px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
}

.newsletter-icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.newsletter-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.newsletter-content {
  flex: 1;
}

.newsletter-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0B1120;
  margin: 0 0 0.5rem;
}

.newsletter-content p {
  color: #6B7280;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.newsletter-cta-btn {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.newsletter-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG RESOURCES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-resources-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0B1120 0%, #1E293B 50%, #0B1120 100%);
}

.blog-resources-section.full-width {
  border-radius: 0 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.blog-resources-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.resource-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon-box svg {
  width: 28px;
  height: 28px;
}

.resource-content {
  flex: 1;
  min-width: 0;
}

.resource-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.35rem;
}

.resource-content p {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.4;
}

.resource-arrow {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.resource-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #9CA3AF;
}

.resource-card:hover .resource-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Resource Card Variants */
.resource-card.resource-youtube .resource-icon-box {
  background: rgba(239, 68, 68, 0.15);
}
.resource-card.resource-youtube .resource-icon-box svg {
  fill: #ef4444;
}
.resource-card.resource-youtube:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.resource-card.resource-facebook .resource-icon-box {
  background: rgba(59, 130, 246, 0.15);
}
.resource-card.resource-facebook .resource-icon-box svg {
  fill: #3b82f6;
}
.resource-card.resource-facebook:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.resource-card.resource-tutoring .resource-icon-box {
  background: rgba(34, 211, 238, 0.15);
}
.resource-card.resource-tutoring .resource-icon-box svg {
  stroke: #22d3ee;
}
.resource-card.resource-tutoring:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-cta-section {
  position: relative;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0B1120, #1E293B);
  overflow: hidden;
}

.blog-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.1), transparent 70%);
}

.blog-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.blog-cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: white;
  margin: 0 0 1rem;
}

.blog-cta-content p {
  font-size: 1.1rem;
  color: #9CA3AF;
  margin: 0 0 2rem;
}

.blog-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 1.5rem 4rem;
  }
  
  .blog-hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-stat-divider {
    display: none;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-box {
    flex-direction: column;
    text-align: center;
  }
  
  #blog-listing .quarto-listing-default {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero-title {
    font-size: 2rem;
  }
  
  .topic-card {
    padding: 1rem;
  }
  
  .topic-content p {
    display: none;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   BLOG PAGE PULSATING LOGO
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-hero-logo-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.blog-hero-logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.4));
}

/* Pulsating Rings */
.pulsating-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid;
  opacity: 0;
}

.pulsating-ring-1 {
  width: 60px;
  height: 60px;
  border-color: #22d3ee;
  animation: pulsate 2s ease-out infinite;
}

.pulsating-ring-2 {
  width: 60px;
  height: 60px;
  border-color: #f59e0b;
  animation: pulsate 2s ease-out infinite 0.5s;
}

.pulsating-ring-3 {
  width: 60px;
  height: 60px;
  border-color: #22d3ee;
  animation: pulsate 2s ease-out infinite 1s;
}

@keyframes pulsate {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}
