/* 
 * ==========================================
 * Blog & Blog Post General Styles
 * ==========================================
 */

.blog-header {
    background: linear-gradient(135deg, rgba(237, 108, 17, 0.9), rgba(28, 35, 49, 0.9)), url('../image/al-amana-furniture-moving-storage-riyadh-hero.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}

/* 
 * ==========================================
 * Horizontal Card Styles (Blog Listing)
 * ==========================================
 */
.article-horizontal-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.article-horizontal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-img-wrapper {
    height: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.article-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-horizontal-card:hover .article-img {
    transform: scale(1.05);
}

.article-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.article-category-badge {
    background-color: rgba(237, 108, 17, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1c2331;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.article-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #d15a0c;
    color: #fff;
    transform: translateX(-5px);
}

/* 
 * ==========================================
 * Sidebar Styles
 * ==========================================
 */
.sidebar-widget {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0; /* Added from blog-post */
}

/* Merge widget-title (blog) and sidebar-title (blog-post) */
.widget-title, .sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c2331;
    margin-bottom: 20px;
    padding-bottom: 15px; /* Adjusting to match blog-post */
    border-bottom: 2px solid rgba(237, 108, 17, 0.2);
    position: relative;
}

.widget-title::after, .sidebar-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.category-list li {
    margin-bottom: 12px;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.category-link:hover {
    background: rgba(237, 108, 17, 0.1);
    color: var(--primary-color);
    padding-right: 18px;
}

.category-count {
    background: #fff;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-link:hover .category-count {
    background: var(--primary-color);
    color: #fff;
}

/* Modern Help Widget */
.help-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, #b84f09 100%);
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(237, 108, 17, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.help-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%), radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    transform: rotate(30deg);
    pointer-events: none;
}

.help-widget-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.help-widget:hover .help-widget-icon {
    transform: scale(1.1) rotate(-5deg);
}

.help-widget-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-widget-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.help-widget-btn {
    background: #fff;
    color: var(--primary-color) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

.help-widget-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 
 * ==========================================
 * Blog Post Detailed View
 * ==========================================
 */
.article-hero {
    background-color: #f8f9fa;
    padding: 60px 0;
    border-bottom: 1px solid #eaeaea;
}

.article-cover-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    background: #fff;
}

.article-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-meta-large {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    font-family: 'Cairo', sans-serif;
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #1c2331;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.article-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-right: 40px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content blockquote {
    border-right: 4px solid var(--primary-color);
    background-color: #f8f9fa;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.25rem;
    border-radius: 8px 0 0 8px;
    color: #555;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-whatsapp { background: #25d366; }

/* Author Box */
.author-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 50px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .article-img-wrapper {
        min-height: 200px;
    }
}
