.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #151b54;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 1rem;
    background-color: transparent;
    border: none;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #151b54;
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.content-area {
    width: 100%;
    padding: 0 15px;
}

.sidebar {
    width: 100%;
    padding: 0 15px;
}

/* Mobile Search */
.mobile-search {
    display: block;
    margin-bottom: 2rem;
}

.sidebar .search-widget {
    display: none;
}

@media (min-width: 768px) {
    .content-area {
        width: 70%;
    }

    .sidebar {
        width: 30%;
    }

    .mobile-search {
        display: none;
    }

    .sidebar .search-widget {
        display: block;
    }
}

/* Utility classes */
.text-right {
    text-align: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Blog list */
.blog-list {
    margin-bottom: 3rem;
}

.blog-item {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
}

@media (min-width: 768px) {
    .blog-image {
        width: 40%;
    }
}

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

.blog-content {
    width: 100%;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .blog-content {
        width: 60%;
    }
}

.blog-title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    /* color: #333; */
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
}

.read-more-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #151b54;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more-link:hover {
    background-color: #000;
}

/* Sidebar widgets */
.widget {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #151b54;
    color: #333;
}

.category-list a,
h4 a,
span a {
    text-decoration: none;
    color: #151b54;
}

.social-links li,
.recent-posts li,
.category-list li {
    list-style: none;
    margin-bottom: 1rem;
}

.recent-posts li {
    display: flex;
    align-items: center;
}

.post-thumbnail {
    flex: 0 0 60px;
    margin-right: 1rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    justify-content: center;
    margin-top: 2rem;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .active a,
.pagination a:hover {
    background-color: #151b54;
    color: #fff;
    border-color: #151b54;
}

/* Tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.5rem 0.5rem 0;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #151b54;
    color: #fff;
}

.tag-large {
    font-size: 1rem;
}

/* Blog Post Styles */
.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.post-header {
    padding: 2rem 2rem 1rem;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    /* color: #333; */
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.post-meta a {
    color: #151b54;
    text-decoration: none;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.post-featured-image img {
    width: 50%;
    height: auto;
    max-height: 250px;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .post-featured-image img {
        width: 100%;
        padding: 1.5rem;
    }
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    /* color: #333; */
}

.post-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

blockquote {
    border-left: 4px solid #151b54;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #f9f9f9;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.share-link {
    display: inline-block;
    padding: 0.5rem;
    color: #777;
    transition: color 0.3s;
}

.share-link:hover {
    color: #151b54;
}

/* Author Bio */
.post-author-bio {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.author-info {
    margin-left: 1.5rem;
}

.author-social a {
    color: #777;
    margin-right: 1rem;
    transition: color 0.3s;
}

.author-social a:hover {
    color: #151b54;
}

/* Comments Section */
.comments-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.comment {
    display: flex;
    margin-bottom: 1.5rem;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-meta {
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    margin-right: 1rem;
}

.comment-date {
    color: #777;
    font-size: 0.9rem;
}

.reply-button {
    background: none;
    border: none;
    color: #151b54;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Existing comment styles... */

/* Reply styles */
.comment-replies {
    margin-left: 2rem;
    margin-top: 1.5rem;
}

.comment.reply {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    border-left: 2px solid #151b54;
}

.comment.reply .comment-avatar {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .comment-replies {
        margin-left: 1rem;
    }

    .comment.reply {
        padding: 0.75rem;
    }
}

.reply-form {
    margin-top: 1rem;
    margin-left: 2rem;
    display: none;
}

.reply-form.active {
    display: block;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.reply-form button {
    background-color: #151b54;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-button {
    background-color: #151b54;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #000;
}

/* Sidebar Widgets */
.author-widget {
    text-align: center;
}

.author-widget-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #151b54;
}

.related-posts li {
    margin-bottom: 1rem;
    list-style: none;
}

.related-post {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.related-post img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    margin-right: 1rem;
}

.related-post-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.subscribe-button {
    width: 100%;
    background-color: #151b54;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-button:hover {
    background-color: #000;
}