/* 
 * Blog Archive Revamp Styles 
 * Theme: EcoPro Builders Modern Layout
 */

:root {
    --primary-orange: #f05a28;
    /* Property Theme Orange */
    --accent-yellow: #f2be00;
    /* Property Theme Yellow */
    --dark-charcoal: #222222;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-muted: #666666;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
}

/* Base resets for the blog wrapper */
.blog-revamp-wrapper {
    background-color: var(--bg-light);
    color: var(--dark-charcoal);
    font-family: 'Inter', sans-serif;
    padding-top: 10px;
    line-height: 1.6;
}

.blog-revamp-wrapper i.fas,
.blog-revamp-wrapper i.fa,
.blog-revamp-wrapper .fas {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
}

.blog-revamp-wrapper * {
    box-sizing: border-box;
}

.blog-revamp-wrapper a {
    text-decoration: none;
    transition: var(--transition-base);
}

/* Hero Section - Simplified for Property Theme Look */
.blog-hero {
    position: relative;
    padding: 60px 20px;
    background-color: var(--white);
    border-bottom: 1px solid #eeeeee;
    text-align: center;
    color: var(--dark-charcoal);
    overflow: hidden;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.blog-breadcrumb {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-breadcrumb a {
    color: var(--primary-orange);
}

.blog-breadcrumb a:hover {
    color: var(--dark-charcoal);
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-charcoal);
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 90px;
    display: flex;
    gap: 40px;
}

.blog-main {
    flex: 1 1 70%;
    min-width: 0;
}

.blog-sidebar {
    flex: 0 0 30%;
    min-width: 0;
}

/* Post Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Cards */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-orange);
}

.blog-card-img {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio */
    overflow: hidden;
    background: #eaeaea;
}

.blog-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-yellow);
    color: var(--dark-charcoal);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.blog-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary-orange);
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--dark-charcoal);
}

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

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    gap: 8px;
    align-self: flex-start;
}

.blog-btn:hover {
    color: var(--dark-charcoal);
    gap: 12px;
    /* Slight slide effect for icon */
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 30px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.blog-empty i {
    font-size: 60px;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.blog-empty h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.blog-empty p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white) !important;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background: var(--dark-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-charcoal);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

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

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #eee;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-base);
    background: var(--bg-light);
}

.search-input:focus {
    border-color: var(--primary-orange);
    background: var(--white);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 45px;
    border-radius: 50%;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-btn:hover {
    background: var(--dark-charcoal);
}

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

.cat-list li {
    margin-bottom: 12px;
}

.cat-list li:last-child {
    margin-bottom: 0;
}

.cat-list a {
    display: flex;
    align-items: center;
    color: var(--dark-charcoal);
    font-weight: 500;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.cat-list a i {
    color: var(--primary-orange);
    margin-right: 12px;
}

.cat-list a .count {
    margin-left: auto;
    background: var(--white);
    color: var(--primary-orange);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cat-list a:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.cat-list a:hover i {
    color: var(--white);
}

/* Recent Posts Widget */
.recent-post {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.rp-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.recent-post:hover .rp-thumb img {
    transform: scale(1.1);
}

.rp-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.rp-info h4 a {
    color: var(--dark-charcoal);
}

.recent-post:hover .rp-info h4 a {
    color: var(--primary-orange);
}

.rp-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tag Cloud Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-cloud a:hover {
    background: var(--primary-orange);
    color: var(--white);
}

/* CTA Widgets */
.widget-cta {
    background: var(--white);
    color: var(--dark-charcoal);
    text-align: center;
    border: 1px solid #eeeeee;
    box-shadow: var(--shadow-soft);
}

.widget-cta .widget-title {
    color: var(--dark-charcoal);
}

.widget-cta .widget-title::after {
    background: var(--primary-orange);
    left: 50%;
    transform: translateX(-50%);
}

.widget-cta p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    margin-bottom: 15px;
    outline: none;
}

.cta-btn {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    background: var(--dark-charcoal);
    color: var(--white);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
}

.cta-btn:hover {
    background: var(--white);
    color: var(--primary-orange);
}

.btn-white {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d85020 100%);
    color: var(--white) !important;
    border: none;
}

.btn-white:hover {
    background: linear-gradient(135deg, #d85020 0%, #b84010 100%);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 90, 40, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar {
        margin-top: 40px;
    }

    .blog-hero-title {
        font-size: 2.8rem;
    }
}

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

    .blog-hero-title {
        font-size: 2.2rem;
    }

    .blog-hero {
        padding: 60px 20px;
    }

    .blog-container {
        padding: 50px 20px;
    }
}

/* Single Post Layout Fix for Fixed Navbar */
body.single-post main.site-main {
    padding-top: 140px;
}