/* --- Blog Post Specific Styles --- */

.blog-post {
    max-width: 80ch; /* Optimal width for reading text */
    margin: 4rem auto;
    background: rgba(17, 17, 17, 0.5); /* Slightly lighter background for the article */
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 60ch;
    margin: 0 auto 1.5rem auto;
}

.blog-meta-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.meta-item i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

.blog-post section {
    margin-bottom: 2.5rem;
}

.blog-post h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

.blog-post h2 i {
    color: var(--accent-secondary);
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.blog-post strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.blog-post blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-secondary);
}

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

.blog-post ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.blog-post ul li::before {
    content: '⚛';
    position: absolute;
    left: 0;
    color: var(--accent-tertiary);
    font-size: 1.2rem;
    line-height: 1;
}

.equation-container {
    background: #000;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.blog-figure {
    margin: 2rem 0;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.blog-figure figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.takeaway-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 0, 128, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.takeaway-box h3 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: var(--accent-tertiary);
    margin-bottom: 1rem;
}
/* In your quantum_blog.css */

.blog-header {
    /* Keep other styles, and add or adjust margin-bottom */
    margin-bottom: 1rem; /* Reduce or remove bottom margin */
    text-align: center; /* Ensure header content is centered */
}

.blog-figure {
    /* Keep other styles, and add or adjust margin-top */
    margin-top: 1rem; /* Reduce or remove top margin */
}

.blog-figure .image-placeholder {
    text-align: center; /* Center the image horizontally */
}

.blog-figure img {
  display: block; /* Removes any extra space below the image */
  max-width: 100%; /* Ensures the image is responsive */
  height: auto; /* Maintains the correct aspect ratio */
  margin: 1rem auto; /* Adds space above/below and centers the image */
  border-radius: 15px; /* Gives the image soft, rounded corners */
  border: 1px solid var(--glass-border); /* Adds a subtle border that matches your theme */
}

/* --- Responsive Video Container --- */

.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625) */
  margin: 2rem auto;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}