/* Blog Styles */

/* Blog Hero */
.blog-hero {
    height: 50vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?w=1600') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 90px;
}

.blog-hero > .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
    z-index: 0;
}

.blog-hero h1 {
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

.blog-hero .container {
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Blog Layout */
.blog-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* Blog Main Content */
.blog-main {
    /* Main content area */
}

/* Featured Post */
.blog-post.featured {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 60px;
    transition: 0.3s;
}

.blog-post.featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

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

.post-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content {
    padding: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-meta span {
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.post-date i,
.post-reading i {
    margin-right: 5px;
    color: var(--accent);
}

.post-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-read-more:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

.btn-read-more i {
    transition: 0.3s;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

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

.link-arrow {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--accent-hover);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    transition: 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Sidebar */
.blog-sidebar {
    /* Sidebar container */
}

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    width: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.search-form button:hover {
    background: var(--accent-hover);
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: 0.3s;
}

.category-list a:hover {
    background: #f8f9fa;
    color: var(--accent);
    padding-left: 20px;
}

.category-list i {
    margin-right: 10px;
    color: var(--accent);
}

.category-list span {
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    transition: 0.3s;
}

.recent-post:hover {
    background: #f8f9fa;
}

.recent-post img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.recent-date {
    font-size: 0.8rem;
    color: #999;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.newsletter-widget h3 {
    color: var(--accent);
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
}

/* CTA Widget */
.cta-widget {
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
}

.cta-widget i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.cta-widget h3 {
    color: white;
    border-bottom: none;
    margin-bottom: 10px;
}

.cta-widget p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
}

.cta-widget .btn {
    background: white;
    color: var(--accent);
}

.cta-widget .btn:hover {
    background: var(--primary);
    color: white;
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        margin-top: 75px;
        height: 40vh;
        min-height: 300px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .post-image {
        height: 250px;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}
