/* Enhanced Blog Page Styling - Modern & Beautiful Design */

/* Blog Header Section */
.blog-header-section {
    background: linear-gradient(135deg, #043370 0%, #4385f6 50%, #667eea 100%);
    padding: 80px 0 60px;
    margin-top: 52px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.blog-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.blog-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.blog-main-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.blog-main-title i {
    margin-right: 15px;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.blog-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content Area */
.pxl-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    min-height: 70vh;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 20px;
}

.loading-indicator p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* No Results & Error Messages */
.no-results-message,
.error-message {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.no-results-content i,
.error-message i {
    font-size: 4em;
    color: #e41407;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results-content h3,
.error-message h3 {
    color: #043370;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-results-content p,
.error-message p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Enhanced Blog Post Cards */
.pxl-archive-post {
    background: white;
    border-radius: 25px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
    animation: slideInUp 0.6s ease-out both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pxl-archive-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Post Image Container */
.post-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.pxl-archive-post:hover .post-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(4, 51, 112, 0.8), rgba(228, 20, 7, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    text-decoration: none;
}

.pxl-archive-post:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 2.5em;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.image-overlay span {
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.pxl-archive-post:hover .image-overlay i,
.pxl-archive-post:hover .image-overlay span {
    transform: translateY(0);
}

/* Post Content */
.post-content {
    padding: 35px 30px 30px;
}

.post-metas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.9em;
    color: #666;
}

.post-metas span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.post-metas i {
    color: #e41407;
    font-size: 1.1em;
}

.post-title {
    margin: 20px 0 15px;
    line-height: 1.3;
}

.post-title a {
    color: #043370;
    text-decoration: none;
    font-size: 1.6em;
    font-weight: 700;
    transition: all 0.3s ease;
    display: block;
}

.post-title a:hover {
    color: #e41407;
    text-decoration: none;
}

.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.read-more-btn {
    background: linear-gradient(135deg, #043370, #4385f6);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #4385f6, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 133, 246, 0.4);
    color: white;
    text-decoration: none;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.post-tags .tag {
    background: linear-gradient(135deg, #f0f0f0, #e9e9e9);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    color: #555;
}

/* Enhanced Sidebar */
.sidebar-area-wrap {
    position: sticky;
    top: 80px;
}

.widget {
    background: white;
    margin-bottom: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.widget-content {
    padding: 30px 25px 25px;
}

.widget-title {
    color: #043370;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #e41407;
    font-size: 1.2em;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e41407, #ff6b6b);
    border-radius: 2px;
}

/* Search Widget */
.search-input-group {
    position: relative;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1em;
    background: #f8f9fa;
    outline: none;
}

.search-input:focus {
    background: white;
    box-shadow: none;
}

.search-btn {
    background: linear-gradient(135deg, #e41407, #ff6b6b);
    border: none;
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8a80);
    transform: scale(1.05);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-item a:hover {
    background: linear-gradient(135deg, #043370, #4385f6);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    font-weight: 500;
}

.post-count {
    background: rgba(228, 20, 7, 0.1);
    color: #e41407;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.category-item a:hover .post-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Newsletter Widget */
.newsletter-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #4385f6;
    box-shadow: 0 0 0 0.2rem rgba(67, 133, 246, 0.25);
    outline: none;
}

.newsletter-btn {
    background: linear-gradient(135deg, #e41407, #ff6b6b);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff8a80);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(228, 20, 7, 0.3);
    color: white;
}

/* Enhanced Pagination */
.pagination-wrapper {
    background: white;
    padding: 30px 0;
    margin-top: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 48px;
    justify-content: center;
}

.pagination-link:hover {
    border-color: #4385f6;
    background: #4385f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 133, 246, 0.3);
}

.pagination-link.active {
    background: linear-gradient(135deg, #043370, #4385f6);
    border-color: #043370;
    color: white;
    box-shadow: 0 5px 15px rgba(4, 51, 112, 0.3);
}

.pagination-prev,
.pagination-next {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-main-title {
        font-size: 2.5em;
    }
    
    .blog-subtitle {
        font-size: 1.1em;
    }
    
    .pxl-main {
        padding: 40px 0;
    }
    
    .post-content {
        padding: 25px 20px 20px;
    }
    
    .post-title a {
        font-size: 1.4em;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .read-more-btn {
        text-align: center;
        justify-content: center;
    }
    
    .post-metas {
        gap: 15px;
        font-size: 0.85em;
    }
    
    .widget-content {
        padding: 25px 20px 20px;
    }
    
    .sidebar-area-wrap {
        position: static;
        margin-top: 40px;
    }
    
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-prev span,
    .pagination-next span {
        display: none;
    }
}

@media (max-width: 480px) {
    .blog-header-section {
        padding: 60px 0 40px;
    }
    
    .blog-main-title {
        font-size: 2em;
    }
    
    .blog-main-title i {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .post-image-container {
        height: 200px;
    }
    
    .post-content {
        padding: 20px 15px 15px;
    }
    
    .post-title a {
        font-size: 1.2em;
    }
    
    .post-metas {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-item a {
        padding: 10px 12px;
    }
    
    .search-input,
    .search-btn {
        padding: 12px 15px;
    }
}