/* ============================================================
   PAGE: BLOG (/blog)
   ============================================================ */

/* Hero Section */
.blog-hero {
    padding: 180px 0 60px;
    background: var(--bg-body);
    text-align: center;
    position: relative;
    /* Optional: subtle pattern or gradient */
    background-image: radial-gradient(circle at top center, rgba(212, 160, 23, 0.05), transparent 70%);
}

.blog-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    color: var(--text-heading);
    animation: fadeInUp 0.8s ease;
}

.blog-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Filters Section */
.blog-filters-wrapper {
    position: sticky;
    top: 70px;
    /* Below header */
    z-index: 90;
    background: var(--bg-body);
    padding: 20px 0;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-filters-wrapper.is-sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
    /* For scrollbar if needed on mobile */
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-heading);
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.f-icon {
    font-size: 1.1rem;
}

/* Blog Grid */
.blog-feed {
    padding: 60px 0 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    /* Make them equal height */
}

/* Hover Effect */
.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 160, 23, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-card__img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card__img img {
    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: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Badge Colors based on category */
.badge--music {
    border-left: 3px solid var(--gold);
}

.badge--spirituality {
    border-left: 3px solid #9d4edd;
}

.badge--culture {
    border-left: 3px solid #e76f51;
}

.badge--personal {
    border-left: 3px solid #2a9d8f;
}

.badge--russia {
    border-left: 3px solid #457b9d;
}

.blog-card__content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-heading);
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-link {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: margin-left 0.3s;
    align-self: flex-start;
}

.blog-link:hover {
    margin-left: 5px;
}

/* Subscribe Section */
.blog-subscribe {
    padding: 80px 0;
    background: var(--bg-section);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.sub-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 12px;
}

.sub-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.sub-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.sub-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    color: #fff;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: border-color 0.3s;
}

.sub-form input:focus {
    border-color: var(--gold);
}

.sub-telegram {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sub-telegram a {
    color: #0088cc;
    /* Telegram blue-ish */
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 136, 204, 0.3);
}

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

@media (max-width: 768px) {
    .blog-filters {
        justify-content: flex-start;
        /* scrollable */
        padding-left: 20px;
        padding-right: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .sub-form {
        flex-direction: column;
        align-items: center;
    }
}