/**
 * Jeeva Earth Blog Page & Category Filters Styles
 */

/* Section & Container */
.jeeva-blog-section {
    width: 100%;
    padding: 48px 0 80px 0;
    box-sizing: border-box;
    font-family: inherit;
}

.jeeva-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Hero Header */
.jeeva-blog-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px auto;
}

.jeeva-blog-tagline {
    display: inline-block;
    background: #eaf5ee;
    color: #045A31;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(4, 90, 49, 0.15);
}

.jeeva-blog-heading {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.jeeva-blog-subheading {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Controls Bar (Category Filter Tabs + Search) */
.jeeva-blog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Category Tabs (Scrollable Container) */
.jeeva-blog-tabs-wrap {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.jeeva-blog-tabs-wrap::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.jeeva-blog-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 2px 2px;
}

.jeeva-blog-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    outline: none;
}

.jeeva-blog-tab:hover {
    border-color: #045A31;
    color: #045A31;
    background: #f0fdf4;
    transform: translateY(-1px);
}

.jeeva-blog-tab.is-active {
    background: #045A31 !important;
    border-color: #045A31 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(4, 90, 49, 0.25);
}

.jeeva-tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
}

.jeeva-blog-tab:hover .jeeva-tab-count {
    background: rgba(4, 90, 49, 0.12);
    color: #045A31;
}

.jeeva-blog-tab.is-active .jeeva-tab-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Search Box */
.jeeva-blog-search-box {
    position: relative;
    width: 240px;
    flex-shrink: 0;
}

.jeeva-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

#jeeva-blog-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#jeeva-blog-search-input:focus {
    border-color: #045A31 !important;
    box-shadow: 0 0 0 3px rgba(4, 90, 49, 0.12) !important;
}

/* Articles Grid */
.jeeva-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

/* Individual Blog Card */
.jeeva-blog-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.jeeva-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* Thumbnail Wrap */
.jeeva-blog-thumb-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f1f5f9;
    overflow: hidden;
}

.jeeva-blog-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    border-bottom: none !important;
}

.jeeva-blog-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.jeeva-blog-card:hover .jeeva-blog-thumb-img {
    transform: scale(1.06);
}

.jeeva-blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #045A31 0%, #067842 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 6px;
    text-decoration: none !important;
}

.jeeva-thumb-icon {
    font-size: 34px;
    text-decoration: none !important;
}

.jeeva-thumb-brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.9;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Category Badge */
.jeeva-blog-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #045A31;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 13px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(4, 90, 49, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* Card Content Body */
.jeeva-blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta Row (Date & Reading Time) */
.jeeva-blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.jeeva-blog-date,
.jeeva-blog-readtime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jeeva-blog-dot {
    color: #cbd5e1;
}

/* Post Title */
.jeeva-blog-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
    color: #1e293b;
    letter-spacing: -0.01em;
    text-decoration: none !important;
}

.jeeva-blog-title a,
.jeeva-blog-title a:hover,
.jeeva-blog-title a:focus,
.jeeva-blog-title a:active,
.jeeva-blog-title a:visited {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none;
    transition: color 0.2s ease;
}

.jeeva-blog-title a:hover {
    color: #045A31 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Excerpt */
.jeeva-blog-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 22px 0;
    flex: 1;
}

/* Card Footer */
.jeeva-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.jeeva-blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jeeva-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #045A31;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jeeva-author-name {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* Read More Link */
.jeeva-blog-read-more,
.jeeva-blog-read-more:hover,
.jeeva-blog-read-more:focus,
.jeeva-blog-read-more:active,
.jeeva-blog-read-more:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F47521 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none;
    transition: all 0.2s ease;
}

.jeeva-blog-read-more svg {
    transition: transform 0.2s ease;
}

.jeeva-blog-read-more:hover {
    color: #045A31 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.jeeva-blog-read-more:hover svg {
    transform: translateX(4px);
}

/* Empty States */
.jeeva-blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 20px auto;
}

.jeeva-empty-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
}

.jeeva-blog-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.jeeva-blog-empty p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0 0 18px 0;
}

.jeeva-reset-filter-btn {
    background: #045A31;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jeeva-reset-filter-btn:hover {
    background: #F47521;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jeeva-blog-section {
        padding: 28px 0 60px 0;
        overflow-x: clip;
    }

    .jeeva-blog-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .jeeva-blog-hero {
        margin-bottom: 24px;
    }

    .jeeva-blog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        max-width: 100%;
        padding-bottom: 12px;
    }

    .jeeva-blog-tabs-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .jeeva-blog-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: max-content;
        padding: 2px 0;
    }

    .jeeva-blog-search-box {
        width: 100%;
        max-width: 100%;
    }

    .jeeva-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Card is clickable */
.jeeva-blog-card {
    cursor: pointer;
}


