/*
Theme Name: Divi Child
Theme URI: https://dianaboni.law
Template: Divi
Description: Divi Child Theme for Diana Boni Law
Author: Derek Olalehe
Version: 1.0.0
*/

/* Blog Archive Grid */
.archive-header {
    margin-bottom: 30px;
}

.archive-title {
    font-size: 30px;
    font-weight: 500;
    color: #333;
    padding-bottom: 10px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.post-item .post-thumbnail {
    display: block;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #eee;
}

.post-item .post-content-container {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-item .entry-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 500;
    height: 51px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-item .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item .entry-title a:hover {
    color: #5e7f5f;
}

.post-item .post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.post-item .post-meta a {
    color: #666;
    text-decoration: none;
}

.post-item .post-meta a:hover {
    color: #5e7f5f;
}

.post-item .entry-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7em;
    margin-bottom: 20px;
    flex: 1;
}

.post-item .entry-content p {
    padding-bottom: 0;
    font-size: 18px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #5e7f5f;
    background-color: #5e7f5f;
    color: #fff;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #fff;
    color: #5e7f5f;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
    clear: both;
}

.pagination .nav-links {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #e2e2e2;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
}

.pagination .current {
    background-color: #5e7f5f;
    color: #fff;
    border-color: #5e7f5f;
}

.pagination a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Single Post Specific Styles */
.single .entry-title {
    font-size: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.single .post-meta {
    font-size: 14px;
    color: #999;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.single .post-meta a {
    color: #666;
    text-decoration: none;
}

.single .post-meta a:hover {
    color: #5e7f5f;
}

.single .et_featured_image {
    margin-bottom: 30px;
}

.single .et_featured_image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.single .entry-content p {
    margin-bottom: 1.5em;
    font-size: 24px;
    line-height: 36px;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    color: #333;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

#left-area .post-meta {
    font-size: 18px;
    padding-bottom: 15px;
}

.post-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.post-nav a {
    color: #5e7f5f;
    text-decoration: none;
    font-weight: 500;
}

.post-nav a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 980px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 26px;
    }

    .single .entry-title {
        font-size: 26px;
    }
}

/* Sidebar & Widget Styles */
#sidebar {
    border-left: 1px solid #e2e2e2;
}

.et_pb_widget,
.widget {
    margin-bottom: 30px;
    background: #fff;
    padding: 0;
}

.et_pb_widget .widgettitle,
.et_pb_widget h2.widgettitle,
.et_pb_widget h3.widgettitle,
.et_pb_widget h4.widgettitle,
.widget .widget-title,
.widget h4.widget-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #5e7f5f;
    display: inline-block;
    padding-bottom: 5px;
    font-weight: 500;
}

.et_pb_widget ul,
.widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.et_pb_widget ul li,
.widget ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #eee;
}

.et_pb_widget ul li:last-child,
.widget ul li:last-child {
    border-bottom: none;
}

.et_pb_widget ul li a,
.widget ul li a {
    color: #666;
    text-decoration: none;
    font-size: 18px;
}

.et_pb_widget ul li a:hover,
.widget ul li a:hover {
    color: #5e7f5f;
}

#sidebar .widget .widget-title {
    font-size: 24px;
}