/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
    z-index: 3;
}

.blog-hero .container {
    position: relative;
    z-index: 4;
}

.hero-breadcrumb {
    margin-bottom: 2rem;
}

.hero-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
}

.hero-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
}

.hero-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Section */
.blog-section {
    padding: 0 0 80px 0;
}

/* Blog Posts Wrapper */
.blog-posts-wrapper {
    margin-bottom: 2rem;
}

/* Custom Blog Posts Styling */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.post-list li {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-list li h3 {
    margin: 0 0 1rem 0;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.post-list li h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-list li h3 a:hover {
    color: #3498db;
}

.post-list li .info {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.post-list li .info a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.post-list li .info a:hover {
    text-decoration: underline;
}

.post-list li .excerpt {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.post-list li.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 1.1rem;
    border: 2px dashed #cbd5e1;
}

/* Pagination Styling */
.pagination {
    list-style: none;
    padding: 0;
    margin: 3rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination li {
    margin: 0;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-2px);
}

.pagination li.active a {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Sidebar Styles */
.blog-sidebar {
    padding-left: 2rem;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-title i {
    color: #3498db;
    font-size: 1.1rem;
}

/* Search Widget */
.search-input-group {
    position: relative;
    display: flex;
}

.search-input-group .form-control {
    border-radius: 12px 0 0 12px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-group .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.search-btn {
    background: #3498db;
    border: 2px solid #3498db;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li a {
    color: #64748b;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.category-list li a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    padding-left: 0.5rem;
}

/* Recent Posts Widget */
.recent-posts-list {
    /* Styles for recent posts will be added when populated */
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.newsletter-widget .widget-title {
    color: #fff;
    margin-bottom: 1rem;
}

.newsletter-widget .widget-title i {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-content {
    text-align: center;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.newsletter-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: #fff;
}

.newsletter-btn {
    background: #fff;
    color: #3498db;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .post-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .blog-section {
        padding-bottom: 60px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-breadcrumb .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
}
