/* === SIMPLIFIED BLOG LISTING STYLES === */
.blog-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

/* Blog Cards - All Equal Size */
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blog Image */
.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Blog Content */
.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* === SINGLE BLOG POST STYLES === */

/* Single Blog Section */
.single-blog-section {
    padding: 100px 0;
    background: var(--gradient-dark);
}

/* Blog Post Article */
.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
}

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.post-date,
.post-reading {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin: 0 0 2rem 0;
}

/* Featured Image (After Title) */
.post-featured-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    color: var(--gray-300);
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-content h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.post-content h3 {
    color: white;
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: var(--gray-300);
}

.post-content strong {
    color: white;
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--gray-200);
    font-style: italic;
}

/* Post Footer CTA */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box {
    background: var(--gradient-primary);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--primary);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* === SIDEBAR STYLES === */

.blog-sidebar {
    position: sticky;
    /*top: 100px;*/
    top: 2%;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: opacity 0.3s;
}

.recent-post:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post:hover {
    opacity: 0.8;
}

.recent-post img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-info {
    flex: 1;
}

.recent-post-info h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gray-300);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cat-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-name i {
    color: var(--primary-light);
}

.cat-count {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.tag-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === RESPONSIVE STYLES === */

@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }

    .post-title {
        font-size: 1.65rem;
    }

    .blog-post {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-image img {
        height: 180px;
    }

    .blog-title {
        font-size: 1rem;
    }
    
    .blog-content {
        padding: 1.25rem;
    }

    .single-blog-section {
        padding: 60px 0;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 2rem 1.5rem;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 1.35rem;
    }

    .blog-post {
        padding: 1.25rem;
    }
}
