:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --light-bg: #f8fafc;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}


/* Hero Header */
.blog-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 5rem;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 4rem;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Content Container */
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Center all headings in the content */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Author Section */
.author-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    margin: 4rem auto;
    max-width: 800px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Blog Content Styling */
.blog-content {
    font-size: 1.1rem;
    color: var(--text-dark);
    overflow-wrap: break-word;
}

.blog-content p {
    margin-bottom: 1.75rem;
}

.blog-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}


/* YouTube video container - Enlarged */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin: 2rem auto;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Make videos even larger on desktop */
@media (min-width: 768px) {
    .video-container {
        max-width: 130%; /* Increased from 800px */
        margin: 1rem auto;
    }
}

/* Mobile responsive adjustment */
@media (max-width: 767px) {
    .video-container {
        margin: 0.5rem auto;
        border-radius: 0.5rem;
    }
}
/* Buy Now button styling - centered */
.buy-now-button {
    display: block;
    background-color: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 2rem auto;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 200px;
}

.buy-now-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Image handling */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem auto;
    display: block;
    box-shadow: var(--card-shadow);
}

/* Related Posts */
.related-posts {
    margin: 6rem auto;
    max-width: 1200px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.related-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background: white;
    max-width: 350px;
    width: 90%;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.related-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.related-card-body {
    padding: 1.5rem;
    text-align: left;
}

.related-card-category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.related-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Floating Share Buttons */
.share-buttons {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1.25rem;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: white;
}

.share-btn.facebook:hover {
    background: #3b5998;
}

.share-btn.twitter:hover {
    background: #1da1f2;
}

.share-btn.linkedin:hover {
    background: #0077b5;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-title {
        font-size: 2.75rem;
    }
    
    .blog-container {
        padding: 0 1.5rem;
    }
    
    .share-buttons {
        left: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .blog-title {
        font-size: 2.25rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 3rem 0;
        transform: none;
    }
    
    .video-container {
        margin: 0.2rem auto;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .buy-now-button {
        max-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        height: 50vh;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-container {
        padding: 0 1rem;
    }
    

}