/* Blog Section */
.blog-section {
  padding: 4rem 0;
  margin-top: var(--navbar-height);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, hsl(270, 75%, 60%), hsl(210, 100%, 56%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0 auto 2rem auto;
}

/* Blog Posts Layout */
.blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.blog-post-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.blog-post:nth-child(even) .blog-post-content {
  flex-direction: row-reverse;
}

.blog-post-text {
  flex: 1;
}

.blog-post-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

.blog-post-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
}

.blog-post-excerpt {
  color: hsl(var(--text-muted));
  margin-bottom: 2rem;
  line-height: 1.6;
}

.blog-post-thumbnail {
  flex: 0 0 45%;
  max-width: 350px;
}

.ytp-cued-thumbnail-overlay {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ytp-cued-thumbnail-overlay:hover {
  transform: scale(1.02);
}

.ytp-cued-thumbnail-overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ytp-large-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  z-index: 1;
}

.ytp-large-play-button-red-bg {
  transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.ytp-large-play-button-bg {
  transition: fill 0.1s cubic-bezier(0.4, 0, 1, 1), opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
}

.ytp-large-play-button:hover .ytp-large-play-button-bg {
  fill: #f00;
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .blog-post-content {
    flex-direction: column !important;
    gap: 1.5rem;
  }
  
  .blog-post {
    padding: 2rem;
  }
  
  .blog-post-thumbnail {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-bottom: 1.5rem;
    order: 1;
  }
  
  .blog-post-text {
    flex: 1 1 100%;
    width: 100%;
    order: 2;
  }
  
  .ytp-cued-thumbnail-overlay {
    padding-top: 56.25%;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .ytp-cued-thumbnail-overlay-image {
    background-size: cover;
  }
  
  .blog-section {
    padding: 2rem 0;
    overflow-x: hidden;
    margin-top: 0;
  }
  
  .blog-posts {
    gap: 2rem;
    overflow-x: hidden;
    margin-top: 1rem;
  }
  
  .blog-post {
    overflow-x: hidden;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
    margin: 0 auto 1rem auto;
  }
}
