body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 1;
}

.site-footer {
    margin-top: auto;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #6b7280;
}

.blog-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #1a1a1a;
    padding: 80px 40px;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: -1;
}

.blog-header h1 {
    font-size: 3.5rem;
    margin: 0 0 25px 0;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-header p {
    font-size: 1.3rem;
    margin: 0;
    color: #4a4a4a;
    font-weight: 400;
}

.blog-filters {
    display: flex;
    gap: 25px;
    margin-bottom: 50px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 350px;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 18px 25px;
    padding-right: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.search-box input::placeholder {
    color: #6b7280;
}

.search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 18px;
}

.category-filters select {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.category-filters select:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.category-filters select:focus {
    outline: none;
    border-color: rgba(156, 163, 175, 0.6);
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.1), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-filters select option {
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 8px 12px;
    font-weight: 500;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.article-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 2.5rem;
}

.article-content {
    padding: 22px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.article-category {
    position: relative;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.article-category:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.article-date {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.article-date i {
    color: #9ca3af;
    font-size: 0.9rem;
}

.article-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    flex: 1;
}

.article-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: #6b7280;
}

.article-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    font-weight: 400;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-subtitle {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.8;
}

.article-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.read-more {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(107, 114, 128, 0.3);
    font-size: 0.85rem;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.page-link {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: #4b5563;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    min-width: 44px;
    justify-content: center;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(156, 163, 175, 0.5);
    color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(156, 163, 175, 0.2);
}

.page-link.active {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border-color: #9ca3af;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.no-articles i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.no-articles h3 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-articles p {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.reset-filters-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.reset-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.reset-filters-btn i {
    margin-right: 8px;
}

@media (max-width: 1200px) {
    .articles-grid {
        gap: 20px;
    }
    
    .article-card {
        min-height: 380px;
    }
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-header {
        padding: 60px 30px;
    }
    
    .blog-header h1 {
        font-size: 3rem;
    }
    
    .article-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 15px;
    }
    
    .blog-header {
        padding: 50px 25px;
        margin-bottom: 40px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .search-box {
        min-width: auto;
        max-width: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        min-height: auto;
    }
    
    .article-content {
        padding: 18px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .page-link {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .articles-grid {
        gap: 18px;
    }
    
    .article-card {
        min-height: auto;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 40px 20px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 18px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .search-box input,
    .category-filters select {
        padding: 16px 20px;
        font-size: 16px;
    }
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2937;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter-icon {
    font-size: 3rem;
    color: #6b7280;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(107, 114, 128, 0.3));
}

.newsletter-text {
    flex: 1;
    min-width: 280px;
}

.newsletter-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.newsletter-text p {
    margin: 0;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    flex-shrink: 0;
    margin-right: 50px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 12px;
    margin: 0;
}

.newsletter-form input[type="email"] {
    padding: 16px 20px;
    border: 2px solid rgba(156, 163, 175, 0.2);
    border-radius: 12px;
    font-size: 16px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.8);
    color: #1f2937;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #9ca3af;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 4px rgba(156, 163, 175, 0.1),
        0 4px 16px rgba(156, 163, 175, 0.1);
    transform: translateY(-1px);
}

.newsletter-form input[type="email"]::placeholder {
    color: #9ca3af;
}

.btn-newsletter {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 
        0 4px 16px rgba(107, 114, 128, 0.3),
        0 2px 8px rgba(107, 114, 128, 0.2);
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(107, 114, 128, 0.4),
        0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-newsletter:active {
    transform: translateY(0);
}

.newsletter-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.2);
    color: #6b7280;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.newsletter-close:hover {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.3);
    color: #374151;
    transform: scale(1.1);
}

.newsletter-message {
    position: relative;
    z-index: 2;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.3);
}

.newsletter-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }
    
    .btn-newsletter {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-icon {
        font-size: 2.5rem;
    }
    
    .newsletter-text h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 25px 15px;
        margin: 15px;
    }
    
    .newsletter-text h3 {
        font-size: 1.4rem;
    }
    
    .newsletter-text p {
        font-size: 1rem;
    }
}
