/* Blog Post Styles */
.blog-post {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Post Header */
.post-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.post-header .container {
    position: relative;
    z-index: 2;
}

.post-meta {
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.post-date, .post-category {
    display: inline-block;
    margin: 0 10px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.post-header h1 {
    font-size: 2.8rem;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-featured-image {
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-featured-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.post-featured-image:hover img {
    transform: scale(1.03);
}

/* Post Content Layout */
.post-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post Body */
.post-body {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.post-section {
    margin-bottom: 50px;
}

.post-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.post-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
}

.post-section p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.post-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.post-section li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    position: relative;
    padding-left: 15px;
}

.post-section li::before {
    content: '•';
    color: #4ecdc4;
    font-weight: bold;
    position: absolute;
    left: -5px;
}

/* Step by Step */
.step {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #4ecdc4;
}

.step h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Pro Tip */
.pro-tip {
    background: #e8f7f6;
    border-left: 4px solid #4ecdc4;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.pro-tip::before {
    content: '💡';
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.5rem;
}

.pro-tip strong {
    color: #2c3e50;
}

/* Lists */
.tips-list li,
.mistakes-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.tips-list li::before {
    content: '✓';
    color: #4ecdc4;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.mistakes-list li::before {
    content: '✗';
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Conclusion */
.conclusion {
    background: #f5f9ff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.cta-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cta-box .btn {
    margin: 20px 0 10px;
    padding: 12px 30px;
    font-size: 1rem;
}

.cta-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-navigation .btn-outline {
    border: 2px solid #2c3e50;
    color: #2c3e50;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.post-navigation .btn-outline:hover {
    background: #2c3e50;
    color: #fff;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Author Bio */
.author-bio {
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.author-bio h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.author-bio p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags a {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f0f0;
    color: #555;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tags a:hover {
    background: #4ecdc4;
    color: #fff;
}

/* Subscribe Form */
.subscribe-form {
    margin-top: 20px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.subscribe-form .btn {
    width: 100%;
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.subscribe-form .btn:hover {
    background: #1a252f;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .post-content {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .post-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2.2rem;
    }
    
    .post-body {
        padding: 30px 20px;
    }
    
    .post-section h2 {
        font-size: 1.6rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-navigation .btn-outline {
        text-align: center;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .post-header {
        padding: 40px 0;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .post-date, .post-category {
        display: inline-block;
        margin: 5px 0;
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    .post-section {
        margin-bottom: 40px;
    }
    
    .post-section h2 {
        font-size: 1.4rem;
    }
    
    .step {
        padding: 20px 15px;
    }
    
    .step h3 {
        font-size: 1.2rem;
    }
}
