/* Blog Specific Styles */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-dark: #0f172a;
    --color-light: #f8fafc;
    --color-gray: #64748b;
    --color-gray-light: #e2e8f0;
}

/* Blog Hero Section */
.blog-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    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 1200 600" opacity="0.1"><path d="M0 0h1200v600H0z" fill="none"/><path d="M0 300L1200 300" stroke="white" stroke-width="2"/><path d="M600 0L600 600" stroke="white" stroke-width="2"/><circle cx="300" cy="150" r="50" fill="white"/><circle cx="900" cy="450" r="50" fill="white"/></svg>');
    background-size: cover;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 300;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

.breadcrumb a:hover {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.breadcrumb span {
    color: white;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.blog-stats .stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.blog-stats .stat:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-stats .stat i {
    font-size: 1.4rem;
    color: #e0e7ff;
}

.blog-stats .stat span {
    font-weight: 600;
    font-size: 1rem;
}

/* Categories Section */
.blog-categories {
    padding: 50px 0;
    background: var(--color-light);
    margin-bottom: 40px;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-gray);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--color-gray-light);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.category-tag:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.category-tag.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
    background: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.featured-post-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--color-gray-light);
}

.featured-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}

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

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

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-warning);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.featured-post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.post-category {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #bae6fd;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date i {
    font-size: 0.9rem;
}

.featured-post-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-dark);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.featured-post-card:hover h3 {
    color: var(--color-primary);
}

.post-excerpt {
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 10px 0;
    position: relative;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.read-more-btn:hover {
    gap: 15px;
    color: var(--color-secondary);
}

.read-more-btn:hover::after {
    width: 100%;
}

/* All Posts Grid */
.all-posts {
    padding: 80px 0;
    background: var(--color-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid var(--color-gray-light);
    transition: all 0.3s ease;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--color-primary);
}

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

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

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.post-card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
    line-height: 1.4;
    flex-grow: 1;
}

.post-card-excerpt {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 2;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-gray);
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-light);
    margin-top: auto;
}

.post-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    color: var(--color-gray);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--color-gray-light);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.page-link:hover:not(.disabled) {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.page-link.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-gray-light);
}

.page-link i {
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter-section {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0;
    margin: 80px 0;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.newsletter-section::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 1200 600" opacity="0.05"><circle cx="200" cy="200" r="100" fill="white"/><circle cx="1000" cy="400" r="80" fill="white"/><rect x="400" y="100" width="400" height="400" fill="white" opacity="0.2"/></svg>');
    background-size: cover;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-subtitle {
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-btn {
    padding: 18px 35px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.newsletter-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-dropdown-menu {
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .featured-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .blog-stats {
        gap: 20px;
    }
    
    .blog-stats .stat {
        padding: 10px 20px;
    }
    
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .category-tag {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-post-content {
        padding: 20px;
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .page-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-post-card,
.post-card {
    animation: fadeIn 0.6s ease forwards;
}

