/* Blog Page Styles */
.blog-page {
    min-height: 100vh;
}

/* Header Section */
.blog-hero {
    background: linear-gradient(135deg, #34B0DC 0%, #2A9BC1 100%);
    color: white;
    padding: 100px 0 60px;
    margin: 32px 0 0 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.blog-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Content */
.blog-main {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #34B0DC;
    box-shadow: 0 0 0 3px rgba(52, 176, 220, 0.1);
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-btn {
    background: #34B0DC;
    color: white;
    border: none;
    padding: 18px 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: #2A9BC1;
}

.search-results-info {
    margin-top: 20px;
    text-align: center;
    color: #6c757d;
}

.search-results-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.clear-search {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.clear-search:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #34B0DC;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #6c757d;
}

.date {
    font-weight: 500;
}

.reading-time {
    background: #f1f3f4;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.blog-title {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #34B0DC;
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.author {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.read-more {
    color: #34B0DC;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2A9BC1;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.no-results-content {
    text-align: center;
    max-width: 400px;
}

.no-results-content i {
    color: #dee2e6;
    margin-bottom: 30px;
}

.no-results-content h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-results-content p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: #34B0DC;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #2A9BC1;
}

/* Pagination */
.pagination-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #34B0DC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.page-btn:hover {
    background: #2A9BC1;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num,
.page-current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-num {
    color: #6c757d;
    background: #f8f9fa;
}

.page-num:hover {
    background: #34B0DC;
    color: white;
}

.page-current {
    background: #34B0DC;
    color: white;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .blog-main {
        padding: 40px 0;
    }
    
    .search-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input,
    .search-btn {
        border-radius: 0;
    }
    
    .search-input {
        border-radius: 15px 15px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 15px 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        margin: 0;
    }
    
    .category-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .blog-title {
        font-size: 1.3rem;
    }
} 