/* =========================================================
   EducationistGuru - Modern Blog Design System
   High-Contrast Editorial Typography, Live Search & Category Hub
   ========================================================= */

/* Top Blog Hero & Search Hub */
.eg-blog-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 40px 36px 32px;
    margin-bottom: 35px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    position: relative;
    overflow: hidden;
}

.eg-blog-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.eg-blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 107, 0, 0.18);
    color: #ff7663;
    border: 1px solid rgba(255, 107, 0, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.eg-blog-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 10px;
}

.eg-blog-hero-title span {
    color: #ff6b00;
}

.eg-blog-hero-subtitle {
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 0 24px;
}

/* Main Live Search Input Box */
.eg-blog-search-wrap {
    position: relative;
    max-width: 720px;
    margin-bottom: 20px;
}

.eg-blog-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.eg-blog-search-icon {
    position: absolute;
    left: 18px;
    font-size: 16px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s;
}

.eg-blog-search-input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 44px 14px 48px;
    font-size: 15px;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.eg-blog-search-input:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.eg-blog-search-clear {
    position: absolute;
    right: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    font-size: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.eg-blog-search-clear:hover {
    background: #ff6b00;
    color: #ffffff;
}

/* Category Filter Pills */
.eg-blog-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.eg-blog-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.eg-blog-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
}

.eg-blog-pill.active {
    background: #ff6b00;
    color: #ffffff;
    border-color: #ff6b00;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.eg-blog-pill-count {
    font-size: 11px;
    opacity: 0.85;
    background: rgba(0, 0, 0, 0.2);
    padding: 1px 7px;
    border-radius: 12px;
}

/* Active Filter Info Bar */
.eg-blog-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: #64748b;
}

.eg-blog-status-badge {
    font-weight: 700;
    color: #0f172a;
}

.eg-blog-reset-btn {
    background: none;
    border: none;
    color: #ff6b00;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.eg-blog-reset-btn:hover {
    text-decoration: underline;
}

/* 2-Column Responsive Card Grid */
.eg-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    .eg-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Editorial Blog Card */
.eg-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
}

.eg-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    border-color: #ff6b00;
}

.eg-blog-thumb,
.eg-blog-card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0f172a;
}

.eg-blog-thumb img,
.eg-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.eg-blog-card:hover .eg-blog-thumb img,
.eg-blog-card:hover .eg-blog-card-media img {
    transform: scale(1.06);
}

.eg-blog-card-cats {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    max-width: calc(100% - 100px);
}

.eg-blog-cat-badge,
.eg-blog-card-cat {
    display: inline-block;
    white-space: nowrap !important;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.2s;
    line-height: 1.4;
}

.eg-blog-card-cat:hover {
    background: rgba(255, 107, 0, 0.95);
    border-color: rgba(255, 107, 0, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.eg-blog-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ff6b00, #ea580c);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eg-blog-read-time {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.eg-blog-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eg-blog-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.eg-blog-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.eg-blog-card-title {
    font-size: 18.5px;
    font-weight: 800;
    line-height: 1.38;
    color: #0f172a;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eg-blog-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.eg-blog-card-title a:hover {
    color: #ff6b00;
}

.eg-blog-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.eg-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.eg-blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #ff6b00;
    text-decoration: none;
    transition: gap 0.2s;
}

.eg-blog-read-link:hover {
    color: #e0260d;
    gap: 9px;
    text-decoration: none;
}

/* Empty State */
.eg-blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    grid-column: 1 / -1;
}

.eg-blog-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ff6b00;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.eg-blog-empty h4 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.eg-blog-empty p {
    font-size: 14px;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 20px;
}

.eg-blog-empty-btn {
    background: #ff6b00;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.eg-blog-empty-btn:hover {
    background: #e0260d;
}

/* Modernized Sidebar Cards */
.eg-sidebar-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.eg-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
}

.eg-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #ff6b00;
    border-radius: 2px;
}

/* Sidebar Search Widget */
.eg-side-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.eg-side-search-input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.eg-side-search-input:focus {
    border-color: #ff6b00;
    background: #ffffff;
}

.eg-side-search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
}

.eg-side-search-btn:hover {
    color: #ff6b00;
}

/* Sidebar Categories Interactive List */
.eg-side-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eg-side-cat-item {
    border-bottom: 1px dashed #e2e8f0;
}

.eg-side-cat-item:last-child {
    border-bottom: none;
}

.eg-side-cat-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    text-align: left;
    font-size: 13.5px;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, padding-left 0.2s;
}

.eg-side-cat-btn:hover {
    color: #ff6b00;
    padding-left: 6px;
}

.eg-side-cat-btn.active {
    color: #ff6b00;
    font-weight: 700;
}

.eg-side-cat-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.eg-side-cat-btn.active .eg-side-cat-badge {
    background: #ff6b00;
    color: #ffffff;
}

/* Sidebar Trending Posts */
.eg-side-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.eg-side-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.eg-side-post-thumb {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}

.eg-side-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-side-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eg-side-post-date {
    font-size: 11px;
    color: #ff6b00;
    font-weight: 700;
    margin-bottom: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eg-side-post-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eg-side-post-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.eg-side-post-title a:hover {
    color: #ff6b00;
}

/* Free Counseling Helpline Card */
.eg-helpline-card {
    background: linear-gradient(135deg, #ff6b00 0%, #e6260c 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
    text-align: left;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.eg-helpline-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.eg-helpline-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.eg-helpline-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.eg-helpline-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0 0 16px;
}

.eg-helpline-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #ffffff;
    color: #ff6b00;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.eg-helpline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: #ff6b00;
    text-decoration: none;
}
