/*
 Theme Name: AIC - Theme
 Author: S.Y
 Description: Custom theme for Arab Investors Choice blog
 Version: 1.0
*/

.blog-post-box {
    position: relative;
    overflow: hidden;
}

.blog-post-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-box:hover img {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 10px 0;
    font-size: 12px;
    color: #666666;
}

.blog-date {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.blog-category {
    background: #062832;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.blog-post-box h6.blog-title {
    min-height: 48px;
    display: -webkit-box;          
    -webkit-line-clamp: 2;         
    -webkit-box-orient: vertical; 
    overflow: hidden;              
    text-overflow: ellipsis;       
    line-height: 1.4;
    align-items: flex-start; 
}

.blog-post-box p.blog-excerpt {
    min-height: 60px;
    margin-bottom: 15px;
    display: -webkit-box;          
    -webkit-line-clamp: 3;         
    -webkit-box-orient: vertical;  
    overflow: hidden;              
    text-overflow: ellipsis;      
}

/* Pagination Styles */
.blog-pagination {
    margin-top: 50px;
}

.pagination-wrapper {
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
    margin: 0 5px;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers a:hover,
.pagination-wrapper .page-numbers .current {
    background: #062832;
    color: white;
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Single Post Styles */
.blog-single-content {
    padding: 50px 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    color: #062832;
}


.post-content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

/* Tags */
.post-tags {
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-tags h6 {
    margin-bottom: 15px;
    color: #333;
}

.post-tags .tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
}

.post-tags .tag:hover {
    background: #062832;
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin-bottom: 40px;
}

.nav-previous, .nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.nav-next {
    text-align: right;
}

.nav-previous a, .nav-next a {
    text-decoration: none;
    color: #333;
    display: block;
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #062832;
}

/* Back to Blog Button */
.back-to-blog {
    text-align: center;
    margin: 40px 0;
}

.btn-back {
    display: inline-block;
    padding: 12px 25px;
    background: #062832;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: #062832;
    color: white;
}

/* Sidebar Styles */
.blog-sidebar {
    padding-left: 30px;
}

.sidebar-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.sidebar-widget h5 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.recent-posts, .categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li, .categories li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child, .categories li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a, .categories a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.recent-posts a:hover, .categories a:hover {
    color: #062832;
}

.post-date {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.categories span {
    color: #666;
    font-size: 12px;
    float: right;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #062832, #0c4151);
    color: white;
}

.cta-widget h5 {
    color: white;
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #062832;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #f8f9fa;
    color: #0c4151;
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .post-navigation .col-md-6 {
        margin-bottom: 15px;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .post-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

  