/* Blog Styles */
.blog-section {
    background: #ffffff;
}

.blog-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-item .blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-item .blog-image img.blog-main-image,
.blog-item .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-main-image {
    position: relative;
    z-index: 2;
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.blog-item:hover .blog-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    font-weight: 600;
}

.overlay-content i {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.overlay-content span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Section Title */
.blog-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.title-icon {
    display: inline-block;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #007bff);
    border-radius: 2px;
    animation: underlineGrow 2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes underlineGrow {
    to {
        width: 100%;
    }
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.featured-badge i {
    margin-right: 4px;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-meta .badge-primary {
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 500;
}

.blog-meta .meta-row {
    margin-bottom: 5px;
}

.blog-footer {
    border-top: 1px solid #eee;
    margin-top: auto !important;
}

/* Hover Effects */
.blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item h3 a:hover {
    color: #ff6b35;
}

.featured-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Section Divider */
.section-divider {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.divider-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, #007bff, #ff6b35, transparent);
    border-radius: 1px;
    position: relative;
}

.divider-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 2px solid #ff6b35;
}

.divider-line::after {
    content: '✈';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b35;
    font-size: 18px;
    z-index: 1;
}

.blog-section {
    position: relative;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .blog-meta .meta-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .blog-meta .category {
        margin-bottom: 5px;
    }
    
    .blog-footer .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .blog-footer .stats {
        margin-top: 8px;
    }

    .blog-item:hover {
        transform: translateY(-4px);
    }
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-meta .category {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.blog-meta .category:hover {
    color: white;
    background: #0056b3;
}

.blog-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #007bff;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-footer .author {
    font-size: 14px;
    color: #666;
}

.blog-footer .stats span {
    margin-left: 15px;
    font-size: 14px;
    color: #999;
}

/* Homepage Blog Specific Styles */
.blog-section .blog-item .blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-section .blog-item .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Homepage Blog Specific Styles */
.blog-section .blog-item .blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-section .blog-item .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Blog Detail Styles */
.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-author-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 15px;
    background: #f1f3f4;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover,
.tag.active {
    background: #007bff;
    color: white;
}

.social-share .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: #34495e; }

.post-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.nav-post {
    padding: 0 15px;
}

.nav-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-post h6 {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.nav-post a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-post a:hover {
    color: #007bff;
}

/* Comments */
.comment-item {
    padding: 25px;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.comment-item.reply {
    margin-left: 40px;
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.comment-date {
    font-size: 14px;
    color: #666;
}

.comment-text {
    color: #444;
    line-height: 1.6;
}

.comment-actions {
    margin-top: 15px;
}

.reply-btn {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.reply-btn:hover {
    text-decoration: underline;
}

/* Sidebar */
.blog-sidebar .sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h4 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    position: relative;
}

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

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #007bff;
}

.category-list span {
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h6 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-content h6 a {
    color: #333;
    text-decoration: none;
}

.recent-post-content h6 a:hover {
    color: #007bff;
}

.recent-post-content .date {
    font-size: 12px;
    color: #666;
}

/* Blog Filters */
.blog-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filter-links a:hover,
.filter-links a.active {
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .comment-item.reply {
        margin-left: 20px;
    }
}