/**
 * Blog, Search & Single Post
 * @package Eshanarya
 */

.ea-blog-hero {
    background: linear-gradient(180deg, var(--ea-cream) 0%, #fff 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.18);
    padding: 34px 0 38px;
    text-align: center;
}

.ea-blog-hero .subtitle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--ea-gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ea-blog-hero h1 {
    margin: 0 auto 14px;
    max-width: 820px;
    color: var(--ea-black);
    font-family: var(--ea-font-heading);
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.08;
}

.ea-blog-hero h1 span {
    color: var(--ea-gold-dark);
}

.ea-blog-hero p {
    max-width: 680px;
    margin: 0 auto 8px;
    color: #6f675e;
    font-size: 1rem;
    line-height: 1.75;
}

.ea-blog-hero-text > *:last-child {
    margin-bottom: 0;
}

.ea-search-hero .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 620px;
    margin: 26px auto 0;
}

.ea-search-hero .search-field {
    min-height: 48px;
    border: 1px solid #eadfcc;
    border-radius: 8px;
    padding: 0 16px;
    background: #fff;
    color: var(--ea-black);
    outline: none;
}

.ea-search-hero .search-field:focus {
    border-color: var(--ea-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.16);
}

.ea-search-hero .search-submit {
    min-height: 48px;
    border: 1px solid var(--ea-gold);
    border-radius: 8px;
    padding: 0 24px;
    background: var(--ea-gold);
    color: #fff;
    font-weight: 700;
}

.ea-blog-section {
    background: #fff;
    padding-top: 30px;
}

.ea-blog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #eadfcc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ea-blog-card:hover {
    border-color: rgba(201, 168, 76, 0.55);
    box-shadow: 0 18px 42px rgba(26, 26, 26, 0.1);
    transform: translateY(-2px);
}

.ea-blog-card-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ea-cream);
}

.ea-blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.ea-blog-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(255, 255, 255, 0.62)),
        var(--ea-cream);
    color: var(--ea-gold-dark);
    font-size: 3rem;
}

.ea-blog-card-body {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    padding: 24px;
}

.ea-blog-meta,
.ea-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #766d62;
    font-size: 0.84rem;
    line-height: 1.45;
}

.ea-blog-meta span,
.ea-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ea-blog-meta i,
.ea-post-meta i {
    color: var(--ea-gold-dark);
}

.ea-blog-card-title {
    margin: 14px 0 12px;
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.16;
}

.ea-blog-card-title a {
    color: var(--ea-black);
}

.ea-blog-card-title a:hover {
    color: var(--ea-gold-dark);
}

.ea-blog-card-excerpt {
    color: #5f564b;
    line-height: 1.75;
}

.ea-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--ea-gold-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ea-blog-read-more:hover {
    color: var(--ea-black);
}

.ea-blog-sidebar {
    position: sticky;
    top: 112px;
}

.ea-blog-sidebar .ea-widget,
.ea-blog-sidebar .widget {
    margin-bottom: 22px;
    border: 1px solid #eadfcc;
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.07);
}

.ea-blog-sidebar .ea-widget-title,
.ea-blog-sidebar .widget-title,
.ea-blog-sidebar h2,
.ea-blog-sidebar h3 {
    margin: 0 0 14px;
    color: var(--ea-black);
    font-family: var(--ea-font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
}

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

.ea-blog-sidebar li {
    margin: 0;
    border-bottom: 1px solid #f0e7d8;
    padding: 10px 0;
}

.ea-blog-sidebar li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ea-blog-sidebar a {
    color: #51483d;
    font-weight: 700;
}

.ea-blog-sidebar a:hover {
    color: var(--ea-gold-dark);
}

.ea-blog-sidebar .search-form {
    display: grid;
    gap: 10px;
}

.ea-blog-sidebar .search-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid #eadfcc;
    border-radius: 8px;
    padding: 0 13px;
}

.ea-blog-sidebar .search-submit {
    min-height: 44px;
    border: 1px solid var(--ea-gold);
    border-radius: 8px;
    background: var(--ea-gold);
    color: #fff;
    font-weight: 800;
}

.ea-single-post-section {
    background: linear-gradient(180deg, var(--ea-cream) 0, #fff 220px);
    padding-top: 42px;
}

.ea-single-post {
    border: 1px solid #eadfcc;
    border-radius: 8px;
    background: #fff;
    padding: 34px;
    box-shadow: 0 14px 36px rgba(26, 26, 26, 0.07);
}

.ea-post-header {
    margin-bottom: 28px;
    text-align: left;
}

.ea-single-post-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.ea-single-post-cats a,
.ea-post-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(201, 168, 76, 0.34);
    border-radius: 8px;
    padding: 4px 10px;
    background: #fff9e8;
    color: var(--ea-gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.ea-post-title {
    margin: 0 0 16px;
    max-width: 850px;
    font-family: var(--ea-font-heading);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
}

.ea-post-header .ea-post-meta {
    justify-content: flex-start;
}

.ea-post-featured-image {
    margin-top: 28px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ea-cream);
}

.ea-single-post-img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.ea-blog-collection-list {
    display: grid;
    gap: 10px;
}

.ea-blog-collection-list li {
    border: 0;
    padding: 0;
}

.ea-blog-collection-list a {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid #f0e7d8;
    border-radius: 8px;
    padding: 8px;
    background: #fffaf1;
}

.ea-blog-collection-list img,
.ea-blog-collection-icon {
    width: 48px;
    height: 48px;
    border-radius: 7px;
}

.ea-blog-collection-list img {
    object-fit: cover;
}

.ea-blog-collection-icon {
    display: grid;
    place-items: center;
    background: #e7f2f0;
    color: #087768;
}

.ea-entry-content {
    color: #4f463d;
    font-size: 1.03rem;
    line-height: 1.9;
}

.ea-entry-content h2,
.ea-entry-content h3,
.ea-entry-content h4 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-family: var(--ea-font-heading);
}

.ea-entry-content blockquote {
    margin: 28px 0;
    border-left: 4px solid var(--ea-gold);
    background: var(--ea-cream);
    padding: 22px 24px;
    color: #4f463d;
    font-family: var(--ea-font-heading);
    font-size: 1.3rem;
    line-height: 1.55;
}

.ea-entry-content img {
    border-radius: 8px;
}

.ea-post-footer {
    margin-top: 34px;
    border-top: 1px solid #f0e7d8;
    padding-top: 24px;
}

.ea-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}

.ea-post-tags span {
    color: var(--ea-black);
    font-weight: 800;
}

.ea-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ea-post-nav > div:last-child {
    text-align: right;
}

.ea-post-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #eadfcc;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ea-black);
    font-weight: 800;
}

.ea-post-nav a:hover {
    border-color: var(--ea-gold);
    color: var(--ea-gold-dark);
}

.ea-search-product-result .product {
    width: 100% !important;
}

@media (max-width: 991.98px) {
    .ea-blog-sidebar {
        position: static;
    }

    .ea-single-post {
        padding: 26px;
    }
}

@media (max-width: 575.98px) {
    .ea-blog-hero {
        padding: 46px 0 42px;
    }

    .ea-search-hero .search-form {
        grid-template-columns: 1fr;
    }

    .ea-blog-card-body {
        min-height: 0;
        padding: 20px;
    }

    .ea-single-post {
        padding: 20px;
    }

    .ea-post-nav {
        grid-template-columns: 1fr;
    }

    .ea-post-nav > div:last-child {
        text-align: left;
    }
}
