/*
Theme Name: Earn Money Online
Description: A modern WordPress theme for passive income and money-making blogs with lead magnets and course sales focus.
Version: 1.0.1
Author: Your Name
*/

/* WordPress Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* WordPress Admin Bar Compatibility */
.admin-bar nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar nav {
        top: 46px;
    }
}

.admin-bar .hero {
    padding-top: 150px;
}

/* Remove WordPress defaults */
.wp-site-blocks {
    padding: 0;
    margin: 0;
}

#main, #primary {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e8f4fd;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f97316;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    color: #2563eb;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .highlight {
    color: #2563eb;
    position: relative;
}

.hero-text p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-form {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.hero-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #2563eb, #f97316);
    border-radius: 22px;
    z-index: -1;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.4);
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.trust-item i {
    color: #10b981;
}

/* Featured Section */
.featured {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.featured-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-secondary {
    background: #2563eb;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-header {
    height: 200px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h4 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #ffffff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h5 {
    color: #1e293b;
    font-weight: 600;
    margin: 0;
}

.author-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #f97316;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* ===== BLOG STYLES ===== */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.admin-bar .blog-hero {
    padding-top: 150px;
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #f97316;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.blog-main {
    padding: 0;
}

.blog-filters {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.blog-filters h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #64748b;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
}

.post-meta-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
}

.post-meta-overlay span {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.post-content {
    padding: 1.5rem;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a:hover {
    color: #2563eb;
}

.post-excerpt {
    color: #64748b;
    margin: 0.5rem 0 1rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    color: #64748b;
    font-size: 0.9rem;
}

.read-more-btn {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #f97316;
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 3rem;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.25rem;
    background: white;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Sidebar */
.blog-sidebar {
    padding: 0;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.widget-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.widget-cta-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.popular-post,
.related-post {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child,
.related-post:last-child {
    border-bottom: none;
}

.popular-post-title,
.related-post-title {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.popular-post-title:hover,
.related-post-title:hover {
    color: #2563eb;
}

.popular-post-date,
.related-post-date {
    color: #64748b;
    font-size: 0.8rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.newsletter-form button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Single Post Styles */
.single-post {
    background: white;
}

.post-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 120px 0 60px;
}

.admin-bar .post-header {
    padding-top: 150px;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta span {
    color: #64748b;
    font-size: 0.9rem;
}

.post-title {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-excerpt p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
}

.post-featured-image {
    margin: 2rem 0;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
}

.post-content-wrapper {
    padding: 4rem 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-tags {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #f97316;
    color: white;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-previous,
.nav-next {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #f8fafc;
}

.nav-previous div,
.nav-next div {
    flex: 1;
}

.nav-previous span,
.nav-next span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-previous h4,
.nav-next h4 {
    font-size: 1rem;
    margin: 0.5rem 0 0;
    line-height: 1.3;
}

.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    margin: 3rem 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #64748b;
    line-height: 1.6;
}

.sticky-widget {
    position: sticky;
    top: 100px;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.admin-bar .page-header {
    padding-top: 150px;
}

.page-title {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.page-main {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-stats {
        gap: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* ===== UPDATED BLOG CONTENT STYLING ===== */
/* Add this to your style.css file - REPLACE the existing single post styles */

/* Single Post Styles - Updated with Shadow Boxes */
.single-post {
    background: #f8fafc; /* Light background for the page */
}

.post-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 120px 0 60px;
}

.admin-bar .post-header {
    padding-top: 150px;
}

.post-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-meta span {
    color: #64748b;
    font-size: 0.9rem;
}

.post-title {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-excerpt p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
}

.post-featured-image {
    margin: 2rem 0;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-content-wrapper {
    padding: 4rem 0;
    background: #f8fafc; /* Light background */
}

.post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* MAIN CONTENT BOX STYLING - NEW */
.post-main {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin: 0; /* Remove default margins since we have padding on container */
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child {
    margin-top: 0; /* Remove top margin for first heading */
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content p:last-child {
    margin-bottom: 0; /* Remove bottom margin for last paragraph */
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* POST TAGS STYLING - Updated */
.post-tags {
    margin: 3rem -3rem -3rem -3rem; /* Negative margins to extend to container edges */
    padding: 2rem 3rem;
    background: #f8fafc;
    border-radius: 0 0 16px 16px; /* Only round bottom corners */
    border-top: 1px solid #e2e8f0;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #2563eb;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.tag:hover {
    background: #f97316;
    color: white;
}

/* POST NAVIGATION STYLING - Updated */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem -3rem 0 -3rem; /* Negative margins to extend to container edges */
    padding: 0 3rem;
}

.nav-previous,
.nav-next {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #f8fafc;
}

.nav-previous div,
.nav-next div {
    flex: 1;
}

.nav-previous span,
.nav-next span {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-previous h4,
.nav-next h4 {
    font-size: 1rem;
    margin: 0.5rem 0 0;
    line-height: 1.3;
}

/* AUTHOR BIO STYLING - Updated */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 3rem;
    background: #f8fafc;
    border-radius: 0;
    margin: 3rem -3rem -3rem -3rem; /* Negative margins to extend to container edges */
    border-top: 1px solid #e2e8f0;
}

.author-avatar img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #64748b;
    line-height: 1.6;
}

/* SIDEBAR STYLING - Keep existing */
.post-sidebar {
    padding: 0;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.sidebar-widget h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.widget-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.widget-cta-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.popular-post,
.related-post {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child,
.related-post:last-child {
    border-bottom: none;
}

.popular-post-title,
.related-post-title {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.popular-post-title:hover,
.related-post-title:hover {
    color: #2563eb;
}

.popular-post-date,
.related-post-date {
    color: #64748b;
    font-size: 0.8rem;
}

.sticky-widget {
    position: sticky;
    top: 100px;
}

/* Blog Page Content Styling - Also update blog page */
.blog-content {
    padding: 80px 0;
    background: #f8fafc; /* Light background */
}

.blog-main {
    padding: 0;
}

.blog-filters {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white; /* White background */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Shadow */
    border: 1px solid #e2e8f0; /* Border */
}

/* Page Content Styling - Also update static pages */
.page-content {
    padding: 4rem 0;
    background: #f8fafc; /* Light background */
}

.page-main {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    background: white; /* White background */
    padding: 3rem; /* Padding */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Shadow */
    border: 1px solid #e2e8f0; /* Border */
}

.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4 {
    color: #1e293b;
    margin: 2rem 0 1rem;
}

.content-wrapper h2:first-child,
.content-wrapper h3:first-child,
.content-wrapper h4:first-child {
    margin-top: 0;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper p:last-child {
    margin-bottom: 0;
}

/* Responsive Design - Updated */
@media (max-width: 968px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-main {
        padding: 2rem;
    }
    
    .post-tags {
        margin: 3rem -2rem -2rem -2rem;
        padding: 2rem;
    }
    
    .post-navigation {
        margin: 3rem -2rem 0 -2rem;
        padding: 0 2rem;
    }
    
    .author-bio {
        padding: 2rem;
        margin: 3rem -2rem -2rem -2rem;
    }
    
    .content-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-main {
        padding: 1.5rem;
    }
    
    .post-tags {
        margin: 3rem -1.5rem -1.5rem -1.5rem;
        padding: 1.5rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        margin: 3rem -1.5rem 0 -1.5rem;
        padding: 0 1.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin: 3rem -1.5rem -1.5rem -1.5rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== FIXED NAVIGATION STYLES ===== */
/* Replace the existing navigation CSS with this */

/* Navigation - Non-sticky version */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative; /* Changed from fixed */
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e8f4fd;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #f97316;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    color: #2563eb;
    font-size: 1.5rem;
}

/* Hero Section - Remove top padding since nav is not fixed */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 80px 0; /* Reduced from 120px since no fixed nav */
    position: relative;
    overflow: hidden;
}

/* Blog Hero - Remove top padding */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    color: white;
    padding: 80px 0; /* Reduced from 120px */
    text-align: center;
}

/* Post Header - Remove top padding */
.post-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 80px 0 60px; /* Reduced from 120px */
}

/* Page Header - Remove top padding */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding: 80px 0 60px; /* Reduced from 120px */
    text-align: center;
}

/* Remove admin bar adjustments since nav is not fixed */
.admin-bar nav {
    top: auto;
}

.admin-bar .hero,
.admin-bar .blog-hero,
.admin-bar .post-header,
.admin-bar .page-header {
    padding-top: 80px; /* Same as regular padding */
}

/* Mobile Navigation - Fixed */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu {
        display: block;
        order: 3;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .nav-menu {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding: 1rem 0;
        border-top: 1px solid #e8f4fd;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: #f8fafc;
        color: #f97316;
    }
    
    /* Adjust hero sections for mobile */
    .hero,
    .blog-hero,
    .post-header,
    .page-header {
        padding: 60px 0 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Hero content mobile adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Blog stats mobile */
    .blog-stats {
        gap: 1.5rem;
        flex-direction: column;
    }
    
    /* Trust indicators mobile */
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Post meta mobile */
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Tablet adjustments */
@media (max-width: 968px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
}

/* Large mobile devices */
@media (max-width: 640px) {
    .nav-container {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero,
    .blog-hero,
    .post-header,
    .page-header {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}