/* Blog Section */
.blog-section {
    min-height: calc(100vh - 120px);
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf3 100%);
}

.blog-title {
    text-align: center;
    font-size: 2.5rem;
    color: #5B2C91;
    margin-bottom: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Controls */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #5B2C91;
    box-shadow: 0 0 0 3px rgba(91, 44, 145, 0.1);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-container label {
    color: #666;
    font-weight: 500;
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:hover {
    border-color: #5B2C91;
}

.sort-select:focus {
    outline: none;
    border-color: #5B2C91;
    box-shadow: 0 0 0 3px rgba(91, 44, 145, 0.1);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(91, 44, 145, 0.15);
}

.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-card-date::before {
    content: "📅";
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.news-card-author {
    font-size: 0.85rem;
    color: #5B2C91;
    font-weight: 500;
    margin-top: auto;
}

.news-card-author::before {
    content: "✍️ ";
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #888;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #5B2C91;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-container {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-container label {
        margin-bottom: 0.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-section {
        padding: 100px 15px 40px;
    }
}

/* Scroll to Top Button */
.bubble-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5B2C91;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(91, 44, 145, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.bubble-scroll-top.visible {
    display: flex;
}

.bubble-scroll-top:hover {
    background: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 44, 145, 0.4);
}

.bubble-scroll-top .bubble-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.bubble-scroll-top span {
    font-size: 0.9rem;
    font-weight: 500;
}