/* Projects Page Styles */

/* Archive Header */
.archive-page-header {
    text-align: center;
}

.archive-page-header .page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin: 0;
}

.archive-page-header .page-title span {
    color: #00af50;
}

/* Post Grid */
.post-item .box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.post-item .box:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.post-item .box-image {
    overflow: hidden;
}

.post-item .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-item .box:hover .box-image img {
    transform: scale(1.05);
}

.post-item .box-text {
    padding: 20px;
}

.post-item .post-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.post-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item .post-title a:hover {
    color: #00af50;
}

.post-item .is-divider {
    margin: 10px 0;
    border-top: 1px solid #eee;
}

.post-item .from_the_blog_excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ======================== */
/* PROJECT DETAIL STYLES     */
/* ======================== */

/* Entry Header */
.blog-single .article-inner {
    max-width: 100%;
}

.blog-single .entry-header {
    margin-bottom: 24px;
}

.blog-single .entry-header-text-top {
    text-align: left;
}

.blog-single .entry-category {
    color: #00af50;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-single .entry-category a {
    color: #00af50;
    text-decoration: none;
}

.blog-single .entry-category a:hover {
    text-decoration: underline;
}

.blog-single .entry-title {
    font-size: 30px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin: 8px 0;
}

.blog-single .entry-divider.small {
    margin: 12px 0;
    border-color: #ddd;
}

.blog-single .entry-meta {
    font-size: 13px;
    color: #888;
}

.blog-single .entry-meta a {
    color: #888;
    text-decoration: none;
}

.blog-single .entry-meta a:hover {
    color: #00af50;
}

/* Project Info Box */
.project-info-box {
    margin-bottom: 20px;
}

.project-info-box p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.project-info-box strong {
    color: #333;
    font-weight: 600;
}

/* Project Content */
.project-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.project-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00af50;
    line-height: 1.4;
}

.project-content h2 span {
    color: #339966;
}

.project-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}

.project-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
}

.project-content p {
    margin-bottom: 14px;
    font-weight: 400;
}

.project-content p:last-child {
    margin-bottom: 0;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.project-content img.aligncenter {
    display: block;
    margin: 16px auto;
}

.project-content img.size-full,
.project-content img.size-large {
    width: 100%;
}

.project-content a {
    color: #00af50;
    text-decoration: none;
}

.project-content a:hover {
    text-decoration: underline;
}

.project-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.project-content table th {
    background: #f5f5f5;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #ddd;
}

.project-content table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
}

/* Entry Content wrapper */
.blog-single .entry-content.single-page {
    padding: 0;
}

/* Share buttons */
.blog-share {
    margin: 30px 0;
}

.blog-share .is-divider.medium {
    margin-bottom: 20px;
}

.blog-share .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #555;
    margin: 0 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

.blog-share .social-icons a:hover {
    background: #00af50;
    border-color: #00af50;
    color: #fff;
}

/* Footer entry meta */
footer.entry-meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
}

footer.entry-meta a {
    color: #00af50;
    text-decoration: none;
}

footer.entry-meta a:hover {
    text-decoration: underline;
}

/* Related posts */
.relatedcat {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.relatedcat h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00af50;
    display: inline-block;
}

.related-post {
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.related-post .col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.related-post .feature {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related-post a {
    display: block;
    text-decoration: none;
}

.related-post a:hover .feature {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.related-post .feature .image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.related-post a:hover .image {
    transform: scale(1.08);
}

.relatedcat h4.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00af50;
    display: inline-block;
    letter-spacing: 0.3px;
}

.related-post-item {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.related-post-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.related-post-link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.related-post .related-title {
    margin-top: 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-post-link:hover .related-title {
    color: #00af50;
}

/* Sidebar recent posts */
.post-sidebar {
    background: #fafafa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 0;
}

.post-sidebar .widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.post-sidebar .is-divider.small {
    margin-bottom: 16px;
    margin-top: 6px;
}

.post-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-sidebar .recent-blog-posts-li {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
    border-radius: 4px;
}

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

.post-sidebar .recent-blog-posts-li:hover {
    background: rgba(41, 179, 75, 0.04);
}

.post-sidebar .flex-row.recent-blog-posts {
    align-items: center;
}

.recent-post-link {
    display: block;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.recent-post-link:hover {
    background: rgba(41, 179, 75, 0.04);
    padding-left: 4px;
}

.recent-post-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.recent-post-link:hover .recent-post-title {
    color: #00af50;
}

.post-sidebar .badge {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-sidebar .recent-blog-posts-li:hover .badge {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.post-sidebar .badge-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.post-sidebar .recent-blog-posts-li:hover .badge-inner {
    transform: scale(1.1);
}


/* Pagination */
.projects-pagination-wrapper {
    padding: 20px 0;
    text-align: center;
}

.projects-pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Html before comments */
.html-before-comments {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-single .entry-title {
        font-size: 24px;
    }

    .related-post .feature {
        height: 140px;
    }

    .post-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .blog-single .entry-title {
        font-size: 20px;
    }

    .post-item .box-text {
        padding: 15px;
    }

    .post-item .post-title {
        font-size: 14px;
    }

    .relatedcat {
        margin-top: 30px;
        padding-top: 24px;
    }

    .relatedcat h4.section-title {
        font-size: 16px;
    }

    .related-post {
        margin-left: -6px;
        margin-right: -6px;
    }

    .related-post-item {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 16px;
    }

    .related-post .feature {
        height: 130px;
    }

    .related-post .related-title {
        font-size: 13px;
        padding: 12px;
    }

    .post-sidebar {
        padding: 16px;
    }

    .post-sidebar .widget-title {
        font-size: 15px;
    }

    .post-sidebar .badge {
        width: 65px;
        height: 65px;
    }

    .recent-post-title {
        font-size: 12px;
    }

    .project-content h2 {
        font-size: 18px;
    }

    .project-content h3 {
        font-size: 16px;
    }
}
