/* Blog Container Layout */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Post Hero Section */
.post-hero {
    position: relative;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-meta {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95em;
}

.post-meta i {
    color: var(--primary-color);
}

/* Post Content */
.post-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 2.5em;
    line-height: 1.3;
    color: #333;
    margin-bottom: 24px;
    font-family: 'Cormorant Garamond', serif;
}

.post-summary blockquote {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.post-body {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.post-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8em;
    color: #333;
    margin: 40px 0 20px;
}

/* Key Points and Info Box */
.key-points, .info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #eee;
}

.key-points h3, .info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.key-points ul {
    list-style-type: none;
    padding-left: 0;
}

.key-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.key-points li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.info-box ol {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}

.impact-item {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
}

.impact-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.impact-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.impact-item p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

/* Tags Section */
.post-tags {
    margin: 40px 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.tag {
    background: #f0f2f5;
    color: #555;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.linkedin { background: #0077b5; }
.share-button.twitter { background: #1da1f2; }
.share-button.whatsapp { background: #25d366; }
.share-button.email { background: #ea4335; }

/* Sidebar Widgets */
.blog-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Author Widget */
.author-widget {
    text-align: center;
}

.author-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
    color: #666;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Recent Posts Widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.recent-post:hover {
    transform: translateX(5px);
}

.post-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info h4 {
    font-size: 0.95em;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
}

.post-info .post-date {
    font-size: 0.85em;
    color: #666;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--primary-color);
    color: white;
}

.category-list span {
    font-size: 0.9em;
    color: #666;
}

.category-list a:hover span {
    color: white;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
}

.btn-subscribe {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .post-image-wrapper {
        height: 300px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .post-image-wrapper {
        height: 200px;
    }

    .post-category {
        font-size: 0.8em;
    }

    .recent-post {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        height: 150px;
    }
}

/* Blog Post Styles */
.blog-post {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 30px;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 10px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

.author-title {
    font-size: 0.9rem;
    color: #666;
}

.post-featured-image {
    margin: -30px -30px 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    line-height: 1.8;
    color: var(--text-color);
}

.post-excerpt {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
    line-height: 1.6;
    font-style: italic;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.post-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-family: 'Cormorant Garamond', serif;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    background: var(--light-bg);
    margin: 30px 0;
    font-style: italic;
    color: #444;
}

/* Read More Link Styles */
.read-more-link {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-link i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: var(--accent-color);
}

.read-more-link:hover i {
    transform: translateX(4px);
}

.blog-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-bg);
}

.post-tags {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.tag:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.share-section {
    text-align: center;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.share-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.share-button.linkedin { background: #0077b5; }
.share-button.twitter { background: #1da1f2; }
.share-button.whatsapp { background: #25d366; }

/* Sidebar Styles */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
    font-family: 'Cormorant Garamond', serif;
}

.author-widget .author-profile {
    text-align: center;
}

.author-widget img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.author-widget h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

.author-widget p {
    color: var(--text-color);
    line-height: 1.6;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-bg);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
}

.recent-posts a:hover {
    color: var(--secondary-color);
}

.recent-posts .post-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.recent-posts .post-date {
    font-size: 0.85rem;
    color: #666;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
    padding: 8px 0;
}

.categories-list a:hover {
    color: var(--secondary-color);
}

.categories-list span {
    font-size: 0.9rem;
    color: #666;
    background: var(--light-bg);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 80px 15px 30px;
    }

    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .author-widget img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .blog-post,
    .comments-section,
    .sidebar-widget {
        padding: 20px;
    }
    
    .post-featured-image {
        margin: -20px -20px 20px;
    }

    .post-excerpt {
        font-size: 1.1rem;
        padding: 15px;
    }
}
