/**
 * Blog Page Styles
 * Modern blog layout with sidebar and animations
 */

/* ========================================
   Blog Hero Section
   ======================================== */
.blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 50px 50px;
    opacity: 0.5;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ========================================
   Blog Container Layout
   ======================================== */
.blog-container {
    max-width: 1233px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 22px;
}

@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}

/* ========================================
   Featured Post
   ======================================== */
.featured-post {
    background: linear-gradient(135deg, #585858 0%, #78675a 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
}

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

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

.featured-post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.featured-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.featured-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-post-content h2 a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.featured-post-content h2 a:hover {
    opacity: 0.8;
}

.featured-post-content .excerpt {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 25px;
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.featured-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post-image {
        height: 250px;
    }
    
    .featured-post-content {
        padding: 30px;
    }
    
    .featured-post-content h2 {
        font-size: 1.5rem;
    }
}

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

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Blog Post Card
   ======================================== */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
    animation: blogFadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes blogFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

.blog-card-image .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1a1a2e;
}

.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
    color: #667eea;
}

.blog-card-content .excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-btn {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more-btn:hover {
    gap: 10px;
    color: #764ba2;
}

.read-more-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

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

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    position: relative;
}

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

.search-widget input[type="text"],
.search-widget input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-widget input[type="text"]:focus,
.search-widget input[type="search"]:focus {
    border-color: #667eea;
    outline: none;
}

.search-widget button,
.search-widget input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-widget button:hover,
.search-widget input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Categories Widget */
.categories-widget ul,
.sidebar-widget ul.wp-block-categories,
.sidebar-widget .widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-widget li,
.sidebar-widget ul.wp-block-categories li,
.sidebar-widget .widget_categories ul li {
    margin-bottom: 12px;
}

.categories-widget li a,
.sidebar-widget ul.wp-block-categories li a,
.sidebar-widget .widget_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-widget li a:hover,
.sidebar-widget ul.wp-block-categories li a:hover,
.sidebar-widget .widget_categories ul li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateX(5px);
}

/* Recent Posts Widget */
.recent-posts-widget .recent-post-item,
.sidebar-widget .wp-block-latest-posts li,
.sidebar-widget .widget_recent_entries ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recent-posts-widget .recent-post-item:last-child,
.sidebar-widget .wp-block-latest-posts li:last-child,
.sidebar-widget .widget_recent_entries ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget .wp-block-latest-posts,
.sidebar-widget .widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget .wp-block-latest-posts li a,
.sidebar-widget .widget_recent_entries ul li a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.sidebar-widget .wp-block-latest-posts li a:hover,
.sidebar-widget .widget_recent_entries ul li a:hover {
    color: #667eea;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.recent-post-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.recent-post-info h5 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-info h5 a:hover {
    color: #667eea;
}

.recent-post-info .date {
    font-size: 0.8rem;
    color: #888;
}

/* Tags Widget */
.tags-widget .tags-cloud,
.sidebar-widget .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-widget .tag,
.sidebar-widget .tagcloud a {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem !important;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-widget .tag:hover,
.sidebar-widget .tagcloud a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #585858 0%, #72645a 100%);
    color: #fff;
    text-align: center;
}

.cta-widget h4 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-widget .cta-btn {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-widget .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================================
   Pagination
   ======================================== */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.blog-pagination .current,
.blog-pagination span.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.blog-pagination .prev-next {
    padding: 0 25px;
}

/* ========================================
   No Posts Found
   ======================================== */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: #f8f9fa;
    border-radius: 16px;
}

.no-posts svg {
    width: 80px;
    height: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-posts p {
    color: #888;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1024px) {
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Old blog.css styles */
.custom-ad-bnr {
    background: #9a9c7a;
    padding: 20px;
}
