/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    background-color: var(--yinmn-blue);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(252, 122, 30, 0.1) 0%, rgba(252, 122, 30, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.blog-hero h1 {
    font-size: 40px;
    margin: 0 0 15px;
    color: white;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* Blog Content */
.py-12 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Featured Post */
.featured-post {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.featured-post img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.post-category {
    display: inline-block;
    background-color: var(--pumpkin);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.featured-post-content h2 {
    font-size: 28px;
    margin: 0 0 15px;
    color: white;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

/* Post Cards */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
}

.post-card-content {
    padding: 20px;
}

.post-card-content h3 {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.4;
}

.post-card-content .post-meta {
    color: #666;
    margin-bottom: 15px;
}

.post-card-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination a.active {
    background-color: var(--pumpkin);
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 20px;
    color: var(--yinmn-blue);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
}

/* Search Form */
.search-form {
    display: flex;
    position: relative;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
}

/* Category List */
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.mega-menu-list li:last-child {
    border-bottom: none;
}

.mega-menu-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.mega-menu-list a:hover {
    color: var(--pumpkin);
}

/* Recent Posts */
.recent-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

.recent-post-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: var(--pumpkin);
}

.post-date {
    font-size: 12px;
    color: #888;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 5px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Newsletter */
.sidebar-widget p {
    color: #666;
    margin-bottom: 15px;
}

.sidebar-widget .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.sidebar-widget .form-control:focus {
    border-color: var(--pumpkin);
    outline: none;
}

.w-100 {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .py-12 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .featured-post-content h2 {
        font-size: 24px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 60px 0;
    }
    
    .blog-hero h1 {
        font-size: 32px;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .featured-post-content h2 {
        font-size: 20px;
    }
} 