.addlistingbtn {
    --bs-btn-bg: #b01117;
    --bs-btn-border-color: #b01117;
    --bs-btn-hover-bg: #8e0e12;
    --bs-btn-hover-border-color: #8e0e12;
    --bs-btn-focus-shadow-rgb: none;
    --bs-btn-active-bg: #8e0e12;
    --bs-btn-active-border-color: #8e0e12;
    --bs-btn-disabled-bg: #b01117;
    --bs-btn-disabled-border-color: #b01117;
    --bs-btn-color: #fff;
}


.addlistingbtn:hover {
    color: #b01117;
    background-color: #fff;
    border-color: var(--bs-primary);
}

/* Video Section Styles */
.video-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 3px;
}

.video-card:hover .play-overlay {
    background: var(--bs-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.video-meta {
    color: #6c757d;
    font-size: 14px;
}

.video-views {
    margin-right: 15px;
}

/* Loading animation */
.video-loading {
    text-align: center;
    padding: 40px;
}

.video-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-thumbnail img {
        height: 180px;
    }
    
    .play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-overlay i {
        font-size: 16px;
    }
}

/* Blog Category Cards */
.blog-category-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: all 0.3s ease;
}

/* Category-specific gradient overlays */
.blog-category-card[data-category="travel"]::before {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.7) 0%, rgba(109, 213, 237, 0.5) 100%);
}

.blog-category-card[data-category="food"]::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.7) 0%, rgba(192, 57, 43, 0.5) 100%);
}

.blog-category-card[data-category="technology"]::before {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7) 0%, rgba(155, 89, 182, 0.5) 100%);
}

.blog-category-card[data-category="lifestyle"]::before {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.7) 0%, rgba(39, 174, 96, 0.5) 100%);
}

.blog-category-card[data-category="business"]::before {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.7) 0%, rgba(44, 62, 80, 0.5) 100%);
}

.blog-category-card[data-category="health"]::before {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.7) 0%, rgba(211, 84, 0, 0.5) 100%);
}

.blog-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.blog-category-card:hover::before {
    opacity: 0.8;
}

.category-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
}

.category-content {
    text-align: center;
    color: white;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.category-icon {
    margin-bottom: 20px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.blog-category-card:hover .category-icon {
    opacity: 1;
    transform: scale(1.1);
}

.category-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.blog-category-card:hover .category-title {
    transform: scale(1.05);
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
}

.category-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.blog-category-card:hover .category-stats {
    opacity: 1;
    transform: translateY(-5px);
}

.article-count {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.read-time {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Category specific gradients for fallback */
.blog-category-card[data-category="travel"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-category-card[data-category="food"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-category-card[data-category="technology"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-category-card[data-category="lifestyle"] {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.blog-category-card[data-category="business"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.blog-category-card[data-category="health"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Responsive blog categories */
@media (max-width: 768px) {
    .blog-category-card {
        height: 220px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .blog-category-card:hover .category-title {
        font-size: 1.4rem;
    }
}

/* Blog list page - grid section (matches liston blog.html) */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog cards: style.css narrows .card-footer (width calc + margin:auto), which left a floating
   inset strip; restore full width and horizontal padding to match .card-body. */
.blog-grid article.card .card-footer,
.blog-carousel.owl-carousel .card .card-footer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--bs-card-spacer-x, 1.5rem);
    padding-right: var(--bs-card-spacer-x, 1.5rem);
    padding-bottom: 1.25rem;
    background-color: transparent;
    border-top-color: var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

/*
 * TipTap/CMS HTML often stores inline color: rgb(0,0,0) on nested tags (strong, em, spans).
 * A broad descendant rule with !important beats those inlines in both light and dark themes.
 * Links / marks / code / table headers are exceptions. Excerpt uses .text-muted — keep muted.
 */
.rich-content * {
    color: var(--bs-body-color) !important;
}
.rich-content.text-muted * {
    color: var(--bs-secondary-color) !important;
}
.rich-content a,
.rich-content a * {
    color: var(--bs-primary) !important;
}
.rich-content mark,
.rich-content mark * {
    color: var(--bs-dark, #212529) !important;
}
.rich-content code,
.rich-content pre code {
    color: var(--bs-body-color) !important;
    background-color: rgba(0, 0, 0, 0.055) !important;
}
[data-bs-theme="dark"] .rich-content code,
[data-bs-theme="dark"] .rich-content pre code {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.rich-content th {
    background-color: var(--bs-light, #f8f9fa) !important;
    color: var(--bs-body-color) !important;
}
[data-bs-theme="dark"] .rich-content th {
    background-color: var(--bs-secondary-bg, #2b3035) !important;
    color: var(--bs-body-color) !important;
}
