/* Blog Hero Section */
.blog-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark, #0f1923) 0%, var(--color-secondary-dark, #1a2a3a) 100%);
    overflow: hidden;
    padding-top: 90px;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-decoration {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0 3rem;
}

.blog-hero-content h1 {
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}


/* Blog Filters */
.blog-filters {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(67, 160, 71, 0.3);
    /* Using absolute color for shadow/border as fallback */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: center;
    white-space: nowrap;
    display: inline-block;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.blog-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Blog Post specific styles */
.blog-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-text);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-blog:hover {
    color: var(--primary-color);
}

.post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-body ol {
    padding-left: 1.6rem;
    margin-bottom: 1.5rem;
    list-style: decimal;
    color: var(--text-color);
}

.post-body ol li {
    margin-bottom: 0.75rem;
    padding-left: 0.4rem;
    color: var(--light-text);
}

.post-body ol li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.post-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.post-body ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.4rem;
    color: var(--light-text);
}



.post-body .lead {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: #fff;
}

.post-body p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.post-body blockquote {
    padding: 2rem;
    margin: 3rem 0;
    background: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    font-size: 1.25rem;
    font-style: italic;
    color: #fff;
}

.post-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.post-highlight h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.post-highlight ul {
    list-style: none;
    padding: 0;
}

.post-highlight li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-text);
}

.post-highlight li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-tags span {
    color: var(--light-text);
    font-weight: 500;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-share span {
    color: var(--light-text);
    font-weight: 500;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 140px 0 30px;
    }

    .blog-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   BLOG CARD SHARE BUTTONS
   ============================================ */
.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-share-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--light-text, #aaa);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.card-share-btn.wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    transform: translateY(-2px);
}

.card-share-btn.li:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: #fff;
    transform: translateY(-2px);
}