/* Blog Styles */
.blog-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 60px;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.blog-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.blog-search-form {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-form .input-group {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.search-form .input-group:focus-within {
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.search-form .form-control {
    border: none;
    padding: 18px 25px;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-form .btn {
    border: none;
    padding: 18px 25px;
    border-radius: 0 50px 50px 0;
    background: #ef4f27;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 60px;
}

.search-form .btn:hover {
    background: #d43d1a;
    transform: translateX(2px);
}

.search-form .btn:active {
    transform: scale(0.95);
}

.search-help-text {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.search-results-info {
    margin-top: 20px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.search-results-info p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-weight: 600;
    font-size: 1.1rem;
}

.search-results-info .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    transition: all 0.3s ease;
}

.search-results-info .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.current-tag {
    margin-top: 20px;
}

.current-tag .badge {
    font-size: 1rem;
    padding: 8px 16px;
    background: #ef4f27;
}

.current-tag .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    transition: all 0.3s ease;
}

.current-tag .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Alert styling for search errors */
.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #fff;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto 20px;
}

.alert-warning .close {
    color: #fff;
    opacity: 0.8;
}

.alert-warning .close:hover {
    opacity: 1;
}

/* Search validation states */
.search-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.search-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading state for search button */
.search-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-form .btn:disabled:hover {
    transform: none;
}

/* Responsive search improvements */
@media (max-width: 768px) {
    .blog-search-form {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .search-form .form-control {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .search-form .btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .search-results-info p {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-results-info .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.blog-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #ef4f27;
}

.blog-card-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
}

.blog-tags {
    margin-bottom: 15px;
}

.blog-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: #ef4f27;
    color: white;
    text-decoration: none;
}

.read-more {
    color: #ef4f27;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #d43d1a;
    text-decoration: none;
    transform: translateX(5px);
}

/* Blog Post */
.blog-post-header {
    padding: 60px 0 40px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: #ef4f27;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #666;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.blog-post-summary {
    margin-bottom: 30px;
}

.blog-post-summary .lead {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.blog-post-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #333;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.blog-post-footer {
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-post-tags h5 {
    margin-bottom: 15px;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
}

.pagination .page-link {
    color: #ef4f27;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #ef4f27;
    color: white;
    border-color: #ef4f27;
}

.pagination .page-item.active .page-link {
    background: #ef4f27;
    border-color: #ef4f27;
    color: white;
}

/* Sidebar */
.blog-sidebar-section {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8f9fa;
}

.blog-sidebar {
    max-width: 800px;
    margin: 0 auto;
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: white;
    color: #666;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.tag-link:hover {
    background: #ef4f27;
    color: white;
    text-decoration: none;
    border-color: #ef4f27;
}

/* Related Posts */
.related-posts-section {
    margin-top: 60px;
    padding: 40px 0;
    background: #f8f9fa;
}

.related-posts-section h3 {
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.related-posts-placeholder {
    color: #666;
    font-style: italic;
}

/* Back to Blog */
.back-to-blog-section {
    padding: 40px 0;
}

.back-to-blog-section .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog-section .btn:hover {
    transform: translateY(-2px);
}

/* No Posts */
.no-posts {
    padding: 80px 0;
    color: #666;
}

.no-posts h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-post-title {
        font-size: 1.8rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
} 