/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/blog-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.blog-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.blog-hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.blog-hero-content p {
    font-size: 1.2em;
    animation: fadeInUp 1s ease-out;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 50px;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-image {
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-content {
    padding: 25px;
}

.category {
    background: #ff4d6d;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    display: inline-block;
    margin-bottom: 15px;
}

.post-meta {
    color: #666;
    font-size: 0.9em;
    margin: 15px 0;
}

.post-meta span {
    margin-right: 20px;
}

.read-more {
    color: #ff4d6d;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Animations */
.post-card.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.post-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Hover Effects */
.post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-card.featured {
        grid-template-columns: 1fr;
    }

    .blog-hero-content h1 {
        font-size: 2em;
    }

    .post-image {
        height: 200px;
    }
}





.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.search-container input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 200px;
}

.search-container button {
    padding: 8px 12px;
    background: #ff4081;
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: #f50057;
}

.search-results {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.search-result-item h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.search-result-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .search-container {
        margin-right: 60px;
    }
    
    .search-container input {
        width: 150px;
    }
}