.blog-single {
    max-width: 944px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ── Hero Image ── */
.blog-hero-image {
    position: relative;
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease;
}
.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-hero-image:hover img {
    transform: scale(1.02);
}
.blog-hero-image .hero-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.blog-hero-image .hero-cat-badge:hover {
    background: #10b981;
    color: #fff;
}
/* ── Post Title ── */
.blog-post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}
/* ── Meta Bar ── */
.blog-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    flex-wrap: wrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.blog-meta-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}
.blog-meta-author-info {
    display: flex;
    flex-direction: column;
}
.blog-meta-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.blog-meta-author-role {
    font-size: 11px;
    color: var(--text-muted);
}
.blog-meta-items {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-left: auto;
}
.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.blog-meta-item svg {
    width: 15px;
    height: 15px;
    color: #10b981;
}
.blog-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background-color 0.3s ease;
}
.blog-updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background:rgba(var(--primary-rgb), 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}
/* ── Post Content Card ── */
.blog-content-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
/* ── Post Content Typography ── */
.blog-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}
.blog-post-content p {
    margin: 0 0 1.4em;
}
.blog-post-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #0a467d;
    line-height: 1.35;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}
body.dark-mode .blog-post-content h2 {
    color: #60a5fa;
}
.blog-post-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.8em 0 0.5em;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.blog-post-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5em 0 0.5em;
    transition: color 0.3s ease;
}
.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.4em;
    padding-left: 1.5em;
}
.blog-post-content li {
    margin-bottom: 0.4em;
}
.blog-post-content li::marker {
    color: #10b981;
}
.blog-post-content a {
    color: #10b981;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.blog-post-content a:hover {
    color: #059669;
}
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5em 0;
    display: block;
}
.blog-post-content blockquote {
    border-left: 4px solid #10b981;
    background: rgba(16,185,129,0.06);
    margin: 1.5em 0;
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}
.blog-post-content blockquote p:last-child {
    margin-bottom: 0;
}
.blog-post-content pre,
.blog-post-content code {
    font-family: 'Courier New', Courier, monospace;
}
.blog-post-content code {
    background: var(--code-bg);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #10b981;
    transition: background-color 0.3s ease;
}
.blog-post-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.blog-post-content pre code {
    background: none;
    padding: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95em;
}
.blog-post-content th,
.blog-post-content td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
    transition: border-color 0.3s ease;
}
.blog-post-content th {
    background: rgba(16,185,129,0.06);
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.blog-post-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
    transition: border-color 0.3s ease;
}
.blog-post-content iframe,
.blog-post-content video {
    max-width: 100%;
    border-radius: 16px;
    margin: 1.5em 0;
}
/* ── Tags Section ── */
.blog-tags-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.blog-tags-label svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}
.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-tag-pill:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.blog-tag-pill svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}
.blog-tag-pill:hover svg {
    opacity: 1;
}
/* ── Share Section ── */
.blog-share-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 20px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}
.blog-share-label svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}
.blog-share-buttons {
    display: flex;
    gap: 8px;
}
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0;
}
.blog-share-btn svg {
    width: 18px;
    height: 18px;
}
.blog-share-btn:hover {
    background:var(--secondary-color);
    border-color:var(--gma);
    color: #fff;
    transform: translateY(-2px);
}
.blog-share-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
/* ═══════════════════════════════════════════════════
   RELATED POSTS — Title Overlaid on Thumbnail
   ═══════════════════════════════════════════════════ */
.blog-related-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-related-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.blog-related-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffa5d2, #ff0027);
    box-shadow: 0 20px 25px -5px #ffa5d2, 0 8px 10px -6px #ffa5d2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blog-related-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
.blog-related-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
/* ── Related Card ── */
.blog-related-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16/10;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-related-card:hover {
    border-color: rgba(16,185,129,0.35);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
    transform: translateY(-4px);
}
/* Thumbnail fills the whole card */
.blog-related-card-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.blog-related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-related-card:hover .blog-related-card-thumb img {
    transform: scale(1.1);
}
/* Permanent dark gradient at bottom for text readability */
.blog-related-card-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(0, 0, 0, 0.15) 55%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}
/* Green tint on hover */
.blog-related-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb), 0.15) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}
.blog-related-card:hover .blog-related-card-thumb::after {
    opacity: 1;
}
/* Title overlaid on image */
.blog-related-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 18px;
    z-index: 2;
}
.blog-related-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.blog-related-card:hover .blog-related-card-title {
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}
/* Arrow icon */
.blog-related-card-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(6px, -6px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}
.blog-related-card:hover .blog-related-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
    background:var(--primary-color);
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}
.blog-related-card-arrow svg {
    width: 16px;
    height: 16px;
    color: #fff;
}
/* ── Toast ── */
.blog-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #10b981;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16,185,129,0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
}
.blog-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
/* ── Mobile ── */
@media (max-width: 768px) {
    .blog-single {
    padding: 0 10px 40px;
}
.blog-hero-image {
    border-radius: 20px;
    margin-bottom: 20px;
}
.blog-post-title {
    font-size: 20px;
}
.blog-meta-bar {
    padding: 14px 16px;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.blog-meta-items {
    margin-left: 0;
    gap: 10px;
}
.blog-content-card {
    padding: 18px 16px;
    border-radius: 16px;
}
.blog-post-content {
    font-size: 15px;
}
.blog-post-content h2 {
    font-size: 18px;
}
.blog-post-content h3 {
    font-size: 16px;
}
.blog-post-content img {
    border-radius: 12px;
}
.blog-tags-section {
    padding: 18px 16px;
    border-radius: 16px;
}
.blog-share-section {
    padding: 16px;
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
}
.blog-related-section {
    padding: 20px 16px;
    border-radius: 16px;
}
.blog-related-header h2 {
    font-size: 18px;
}
.blog-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}
.blog-related-card {
    aspect-ratio: 16/9;
}
.blog-related-card-info {
    padding: 16px 14px 14px;
}
.blog-related-card-title {
    font-size: 14px;
}
.blog-related-card-arrow {
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
}
.blog-related-card-arrow svg {
    width: 14px;
    height: 14px;
}
}
