/* =============================================
   SINGLE BLOG POST STYLES
   Individual Article Page - African Trails Expeditions
   Includes Gutenberg Image Block Styling
   ============================================= */

/* =============================================
   HERO IMAGE
   ============================================= */

.blog-hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.blog-hero-category {
    background: #0e8b23;
    color: #ffffff;
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* =============================================
   ARTICLE STRUCTURE
   ============================================= */

.blog-article {
    background: #FDFBF7;
}

.blog-article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 0;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

/* =============================================
   BREADCRUMBS
   ============================================= */

.blog-breadcrumbs {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
}

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

.blog-breadcrumbs a:hover {
    color: #0e8b23;
}

.blog-breadcrumbs .separator {
    margin: 0 8px;
    color: #ddd;
}

/* =============================================
   ARTICLE HEADER
   ============================================= */

.blog-header {
    margin-bottom: 40px;
}

.blog-title {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: 1px;
}

.blog-excerpt {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 30px;
}

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

.blog-meta-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-meta-left span {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-left svg {
    color: #0e8b23;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-share-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.blog-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F1E8;
    color: #333;
    transition: all 0.3s ease;
}

.blog-share a:hover {
    background: #0e8b23;
    color: #ffffff;
    transform: translateY(-3px);
}

/* =============================================
   ARTICLE BODY
   ============================================= */

.blog-body {
    font-family: 'Public Sans', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.blog-body p {
    margin: 0 0 24px;
}

.blog-body h2 {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 48px 0 20px;
    line-height: 1.3;
}

.blog-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 36px 0 16px;
    line-height: 1.3;
}

.blog-body h4 {
    font-family: 'Public Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 28px 0 12px;
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

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

.blog-body a {
    color: #0e8b23;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-body a:hover {
    color: #0a6b1c;
}

.blog-body strong {
    font-weight: 600;
    color: #1a1a1a;
}

.blog-body em {
    font-style: italic;
}

.blog-body blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: #F5F1E8;
    border-left: 4px solid #0e8b23;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
}

/* =============================================
   GUTENBERG IMAGE BLOCKS
   ============================================= */

/* Standard Image (Center Aligned) */
.blog-body .wp-block-image {
    margin: 40px 0;
}

.blog-body .wp-block-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Wide Width Image */
.blog-body .wp-block-image.alignwide {
    margin: 48px -100px;
    max-width: calc(100% + 200px);
}

.blog-body .wp-block-image.alignwide img {
    width: 100%;
    border-radius: 12px;
}

/* Full Width Image */
.blog-body .wp-block-image.alignfull {
    margin: 60px calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.blog-body .wp-block-image.alignfull img {
    width: 100%;
    border-radius: 0;
}

/* Left Aligned Image (Text Wraps) */
.blog-body .wp-block-image.alignleft {
    float: left;
    margin: 8px 28px 20px 0;
    max-width: 400px;
}

/* Right Aligned Image (Text Wraps) */
.blog-body .wp-block-image.alignright {
    float: right;
    margin: 8px 0 20px 28px;
    max-width: 400px;
}

/* Image Captions */
.blog-body .wp-block-image figcaption {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: #999;
    text-align: center;
    margin-top: 12px;
    padding: 0 20px;
}

/* =============================================
   GUTENBERG GALLERY BLOCKS
   ============================================= */

.blog-body .wp-block-gallery {
    margin: 48px 0;
    display: grid;
    gap: 20px;
}

/* 2 Column Gallery */
.blog-body .wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 Column Gallery */
.blog-body .wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 Column Gallery */
.blog-body .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-body .wp-block-gallery .wp-block-image {
    margin: 0;
}

.blog-body .wp-block-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.blog-body .wp-block-gallery img:hover {
    transform: scale(1.05);
}

/* =============================================
   GUTENBERG COVER BLOCK (Full-Width Feature)
   ============================================= */

.blog-body .wp-block-cover {
    margin: 60px calc(-50vw + 50%);
    width: 100vw;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-body .wp-block-cover .wp-block-cover__inner-container {
    max-width: 800px;
    padding: 40px;
    text-align: center;
    color: #ffffff;
}

/* =============================================
   TAGS
   ============================================= */

.blog-tags {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E5E1D8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-tags-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999;
}

.blog-tags a {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    padding: 6px 14px;
    background: #F5F1E8;
    color: #333;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tags a:hover {
    background: #0e8b23;
    color: #ffffff;
}

/* =============================================
   SIDEBAR
   ============================================= */

.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.widget-title {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #0e8b23;
}

/* Widget: Author */
.widget-author-content {
    text-align: center;
}

.widget-author-icon {
    margin-bottom: 14px;
}

.widget-author-icon img {
    max-width: 50px;
    height: auto;
}

.widget-author-logo {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #0e8b23;
    font-weight: 600;
}

.widget-author-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.widget-author-bio {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Widget: Post Info */
.widget-post-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget-post-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F5F1E8;
}

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

.widget-post-meta-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.widget-post-meta-value {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.widget-post-meta-value a {
    color: #0e8b23;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-post-meta-value a:hover {
    color: #0a6b1c;
}

/* Widget: Safaris (same as archive) */
.widget-safari-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.widget-safari-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.widget-safari-item:hover {
    background: #F5F1E8;
    transform: translateX(3px);
}

.widget-safari-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.widget-safari-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-safari-info {
    flex: 1;
}

.widget-safari-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px;
    line-height: 1.3;
}

.widget-safari-meta {
    font-family: 'Public Sans', sans-serif;
    font-size: 11px;
    color: #0e8b23;
    display: flex;
    gap: 6px;
}

.widget-safari-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 6px;
    color: #ddd;
}

/* Widget: Destinations & Journey Types */
.widget-destination-list,
.widget-journey-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.widget-destination-item,
.widget-journey-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-destination-item:hover,
.widget-journey-item:hover {
    background: #F5F1E8;
    transform: translateX(3px);
}

.widget-destination-icon,
.widget-journey-icon {
    font-size: 14px;
}

.widget-destination-name,
.widget-journey-name {
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Widget: Newsletter (same as archive) */
.widget-newsletter-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin: 0 0 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid #E5E1D8;
    border-radius: 6px;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0e8b23;
}

.newsletter-form button {
    padding: 10px;
    background: #0e8b23;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Public Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #0a6b1c;
    transform: translateY(-2px);
}

/* =============================================
   RELATED POSTS
   ============================================= */

.blog-related {
    padding: 80px 0;
    background: #F5F1E8;
}

.blog-related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.blog-related-title {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 48px;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.related-post-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0e8b23;
    color: #ffffff;
    font-family: 'Public Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-content {
    padding: 24px;
}

.related-post-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 10px;
}

.related-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #0e8b23;
}

.related-post-meta {
    font-family: 'Public Sans', sans-serif;
    font-size: 12px;
    color: #999;
}

/* =============================================
   FINAL CTA
   ============================================= */

.blog-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    text-align: center;
}

.blog-cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.blog-cta-title {
    font-family: 'Cinzel', serif;
    font-size: 38px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.blog-cta-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin: 0 0 40px;
}

.blog-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0e8b23;
    color: #ffffff;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.blog-cta-button:hover {
    background: #0a6b1c;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 139, 35, 0.4);
}

.blog-cta-button svg {
    transition: transform 0.3s ease;
}

.blog-cta-button:hover svg {
    transform: translateX(4px);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1200px) {
    .blog-article-container {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .blog-body .wp-block-image.alignwide {
        margin-left: -50px;
        margin-right: -50px;
        max-width: calc(100% + 100px);
    }
}

@media (max-width: 992px) {
    .blog-article-container {
        grid-template-columns: 1fr;
        padding: 40px 20px 0;
    }
    
    .blog-sidebar {
        position: static;
        max-width: 600px;
        margin: 60px auto 0;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .blog-body .wp-block-image.alignwide {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        height: 350px;
    }
    
    .blog-title {
        font-size: 32px;
    }
    
    .blog-excerpt {
        font-size: 16px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .blog-body .wp-block-image.alignleft,
    .blog-body .wp-block-image.alignright {
        float: none;
        margin: 24px 0;
        max-width: 100%;
    }
    
    .blog-body .wp-block-gallery.columns-2,
    .blog-body .wp-block-gallery.columns-3,
    .blog-body .wp-block-gallery.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .blog-cta-title {
        font-size: 28px;
    }
}
