/* Modern Blog Styles for Casablanca Desert Tours */

/* ===== Blog Header / Site Header Fix ===== */
/* The site header is absolute on all pages; on blog pages there is no dark
   hero section behind it, so give it a solid background and push the content
   down with a spacer so nothing slides underneath. */
body.page-blog header.header {
    background-color: rgba(33, 33, 33, 0.95);
}

.blog-header-spacer {
    height: 120px;
}

@media (max-width: 767px) {
    .blog-header-spacer {
        height: 110px;
    }
}

/* ===== Blog Header ===== */
.blog-header {
    padding: 80px 0 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
}

.blog-title {
    color: #2c3e50;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.blog-title span {
    color: #c59d5f;
}

.blog-subtitle {
    color: #6c757d;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== Category Filter ===== */
.blog-categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.btn-category {
    padding: 10px 22px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.btn-category:hover,
.btn-category.active {
    background: #c59d5f;
    color: #ffffff;
    border-color: #c59d5f;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.3);
}

/* ===== Blog Listing Cards ===== */
.blog-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    border: 1px solid #f1f3f5;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-post-image img,
.blog-post-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.08);
}

.blog-post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.blog-post-card .blog-post-content {
    padding: 28px;
}

.blog-post-card .blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #868e96;
}

.blog-post-card .blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-post-card .blog-meta .blog-category {
    background: rgba(197, 157, 95, 0.1);
    color: #c59d5f;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-post-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.blog-post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h3 a:hover {
    color: #c59d5f;
}

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

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c59d5f;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #a67c3d;
    gap: 12px;
    text-decoration: none;
}

.read-more-btn i {
    font-size: 0.85em;
}

/* ===== Single Article Page ===== */
.blog-post-single {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.blog-post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.blog-post-single .blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.blog-post-single .blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-single .blog-meta .blog-category {
    background: #c59d5f;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-post-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2c3e50;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.blog-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

/* ===== Table of Contents ===== */
.blog-toc {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px 28px;
    margin-bottom: 35px;
    border-left: 4px solid #c59d5f;
}

.blog-toc h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc li {
    margin-bottom: 8px;
}

.blog-toc a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.blog-toc a:hover {
    color: #c59d5f;
    padding-left: 5px;
}

/* ===== Article Content Typography ===== */
.blog-post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #343a40;
}

.blog-post-content p {
    margin-bottom: 22px;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 45px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #34495e;
    margin-top: 32px;
    margin-bottom: 16px;
}

.blog-post-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34495e;
    margin-top: 24px;
    margin-bottom: 12px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 22px;
    padding-left: 25px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.blog-post-content strong {
    color: #2c3e50;
    font-weight: 700;
}

.blog-post-content a {
    color: #c59d5f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    border-bottom-color: #c59d5f;
}

.blog-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #c59d5f;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #495057;
    border-radius: 0 12px 12px 0;
}

.blog-post-content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 40px 0;
}

.blog-post-content .checklist {
    list-style: none;
    padding-left: 0;
}

.blog-post-content .checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.blog-post-content .checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #c59d5f;
}

/* ===== Tags ===== */
.blog-tags {
    margin: 40px 0 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.blog-tags strong {
    color: #2c3e50;
    margin-right: 10px;
}

.blog-tags .tag {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.blog-tags .tag:hover {
    background: #c59d5f;
    color: #ffffff;
}

/* ===== Social Sharing ===== */
.blog-sharing {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px;
    margin-top: 35px;
}

.blog-sharing h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
}

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

.social-buttons .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-facebook {
    background: #3b5998;
    color: #ffffff;
}

.btn-facebook:hover {
    background: #2d4373;
    color: #ffffff;
}

.btn-twitter {
    background: #1da1f2;
    color: #ffffff;
}

.btn-twitter:hover {
    background: #0d8bd9;
    color: #ffffff;
}

.btn-linkedin {
    background: #0077b5;
    color: #ffffff;
}

.btn-linkedin:hover {
    background: #005885;
    color: #ffffff;
}

/* ===== Sidebar ===== */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #f1f3f5;
}

.sidebar-widget h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c59d5f;
    display: inline-block;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #c59d5f;
}

.search-form button {
    background: #c59d5f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 18px;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: #a67c3d;
}

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

.categories-list li {
    border-bottom: 1px solid #f1f3f5;
}

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

.categories-list a {
    display: block;
    padding: 12px 0;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: #c59d5f;
    padding-left: 8px;
}

.recent-post {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f3f5;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-image {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.recent-post-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

.recent-post-content h5 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h5 a:hover {
    color: #c59d5f;
}

.recent-post-date {
    font-size: 13px;
    color: #868e96;
}

.cta-widget {
    background: linear-gradient(135deg, #c59d5f 0%, #a67c3d 100%);
    color: #ffffff;
    text-align: center;
}

.cta-widget h4,
.cta-widget p {
    color: #ffffff;
}

.cta-widget h4 {
    border-bottom-color: rgba(255,255,255,0.3);
}

.cta-widget .btn {
    background: #ffffff;
    color: #a67c3d;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 30px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cta-widget .btn:hover {
    background: #2c3e50;
    color: #ffffff;
}

/* ===== Pagination ===== */
.pagination {
    margin-top: 40px;
}

.pagination .page-link {
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin: 0 4px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #c59d5f;
    color: #ffffff;
    border-color: #c59d5f;
}

.pagination .page-item.active .page-link {
    background: #c59d5f;
    border-color: #c59d5f;
    color: #ffffff;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: #c59d5f;
    text-decoration: none;
}

.breadcrumb .active {
    color: #6c757d;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .blog-post-single {
        padding: 25px;
    }
    
    .blog-post-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 50px 0 35px;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-subtitle {
        font-size: 1.05rem;
    }
    
    .blog-categories-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .btn-category {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .blog-post-title {
        font-size: 1.7rem;
    }
    
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-buttons .btn {
        width: 100%;
    }
}
