/* Blog Page Styles */

/* Header Styles */
.page-header-blog {
    background-image: url('../../images/Blog/JK_Blog_Header.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Blog Filter */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
}

/* Blog Content */
.blog-content {
    padding: 8rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    z-index: 1;
}

.blog-content-wrapper {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #777;
}

.blog-date {
    margin-right: 2rem;
}

.blog-date i, .blog-author i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.blog-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.blog-card h3 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.6;
}

.blog-card .read-more {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.blog-card .read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

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

.blog-card .read-more:hover i {
    transform: translateX(5px);
}

/* Single Blog Post */
.single-post {
    padding: 8rem 0;
}

.post-header {
    margin-bottom: 4rem;
}

.post-title {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    color: var(--tertiary);
    font-size: 1.6rem;
}

.post-meta-item {
    display: flex;
    align-items: center;
    margin-right: 3rem;
}

.post-meta-item i {
    margin-right: 1rem;
    font-size: 1.8rem;
}

.post-featured-image {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

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

.post-content {
    color: var(--secondary);
    font-size: 1.8rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 2.5rem;
}

.post-content h2 {
    font-size: 3.2rem;
    margin: 4rem 0 2rem;
    color: var(--primary);
}

.post-content h3 {
    font-size: 2.8rem;
    margin: 3.5rem 0 1.5rem;
    color: var(--primary);
}

.post-content ul, .post-content ol {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-content blockquote {
    border-left: 5px solid var(--accent);
    padding: 2rem 3rem;
    margin: 3rem 0;
    background-color: rgba(22, 61, 98, 0.05);
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 3rem 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 4rem 0;
}

.post-tag {
    background-color: rgba(22, 61, 98, 0.1);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Author Box */
.author-box {
    display: flex;
    background-color: rgba(22, 61, 98, 0.05);
    border-radius: 1rem;
    padding: 3rem;
    margin: 5rem 0;
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 3rem;
    flex-shrink: 0;
}

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

.author-info {
    flex-grow: 1;
}

.author-name {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.author-bio {
    color: var(--secondary);
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.author-social {
    display: flex;
    gap: 1.5rem;
}

.author-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(22, 61, 98, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.author-social a:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Related Posts */
.related-posts {
    margin: 8rem 0;
}

.related-posts-title {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Comments Section */
.comments-section {
    margin: 8rem 0;
}

.comments-title {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.comment {
    display: flex;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(22, 61, 98, 0.1);
}

.comment-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
}

.comment-date {
    font-size: 1.4rem;
    color: var(--tertiary);
}

.comment-text {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.comment-reply {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.comment-reply:hover {
    color: var(--primary);
}

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

.comment-form-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.form-control {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(22, 61, 98, 0.1);
    border-radius: 0.5rem;
    font-size: 1.6rem;
    color: var(--secondary);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    padding: 1.5rem 3rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-input {
    flex-grow: 1;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(22, 61, 98, 0.1);
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1.6rem;
    color: var(--secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    padding: 1.2rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--accent);
}

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

.category-item {
    border-bottom: 1px solid rgba(22, 61, 98, 0.1);
    padding: 1.2rem 0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

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

.category-count {
    background-color: rgba(22, 61, 98, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.4rem;
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    margin-bottom: 2rem;
}

.recent-post:last-child {
    margin-bottom: 0;
}

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

.recent-post-info {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.recent-post-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-title a:hover {
    color: var(--accent);
}

.recent-post-date {
    font-size: 1.4rem;
    color: var(--tertiary);
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag-link {
    background-color: rgba(22, 61, 98, 0.1);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
    gap: 1rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.6rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.pagination a.active {
    background-color: var(--primary);
    color: var(--white);
}

.pagination a.disabled {
    background-color: rgba(22, 61, 98, 0.05);
    color: var(--tertiary);
    cursor: not-allowed;
}

/* Newsletter Container */
.newsletter-container {
    background-color: var(--primary);
    border-radius: 1rem;
    padding: 4rem;
    margin: 6rem 0;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.newsletter-container p {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 1.5rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1.6rem;
    color: var(--secondary);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 1.5rem 3rem;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #e67e22;
}

.form-note {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form button {
        border-radius: 0.5rem;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-featured-image {
        height: 400px;
    }
    
    .post-title {
        font-size: 3.6rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 3rem;
    }
    
    .post-featured-image {
        height: 300px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .author-social {
        justify-content: center;
    }
    
    .comment {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 2.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-meta-item {
        margin-bottom: 1rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
}
