/* Blog Section & Article Styles */

/* Latest News Section (Homepage) */
.latest-news-section {
    padding: 100px 0;
    background: #fff;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.news-sub {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.news-header h2 {
    font-size: 3rem;
    color: var(--text-dark);
}

.news-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

.news-date .day {
    font-size: 1.5rem;
    font-weight: 800;
}

.news-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

.news-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.news-meta i {
    color: var(--primary);
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.news-btn:hover {
    color: var(--primary);
    gap: 20px;
}

/* Blog Archive & Single Post Styles */
.blog-archive-page {
    background: #fdfdfd;
    padding: 80px 0;
}

.pagination-wrapper {
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pagination .page-numbers {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 166, 81, 0.2);
}

/* Single Post Specifics */
.single-post-page article {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.post-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary);
}

.post-content-entry {
    margin-top: 40px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.post-content-entry p {
    margin-bottom: 25px;
}

.post-content-entry h2,
.post-content-entry h3 {
    margin: 40px 0 20px;
    color: var(--text-dark);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post-page article {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-header h2 {
        font-size: 2.22rem;
    }
}

/* Comments Section Styles */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
    list-style: none;
}

.comment-body {
    position: relative;
    padding: 30px;
    background: #f9fbf9;
    border-radius: 20px;
    display: flex;
    gap: 25px;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.comment-body:hover {
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.vcard img {
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 70px !important;
    height: 70px !important;
}

.comment-author .fn {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    font-style: normal;
    display: block;
    margin-bottom: 5px;
}

.comment-metadata {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.comment-metadata a {
    color: inherit;
}

.comment-content {
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
}

.reply {
    margin-top: 20px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 25px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
}

.comment-reply-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.2);
}

/* Comment Form Styles */
.comment-respond {
    background: #fff;
    padding: 60px;
    border-radius: 25px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    margin-top: 80px;
}

.comment-reply-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.comment-form .form-group {
    margin-bottom: 25px;
}

.comment-form .form-control {
    width: 100%;
    padding: 18px 25px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form textarea.form-control {
    min-height: 180px;
}

.comment-form .form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.08);
    outline: none;
}

.comment-form .btn-primary {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(0, 166, 81, 0.25);
}

@media (max-width: 767px) {
    .comment-body {
        flex-direction: column;
        padding: 25px;
    }

    .comment-respond {
        padding: 30px;
    }

    .comment-reply-title {
        font-size: 1.8rem;
    }
}