/* Article Template Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.article-template {
    width: 100%;
    background: #FBF7F5;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.article-hero {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 60px;
    width: 100%;
}

.elementor-location-header {
    background: none;
    z-index: 3;
}

.article-title {
    font-family: 'Besley', Georgia, serif;
    font-size: 70px;
    font-weight: 400;
    color: #FBF7F5;
    margin: 0;
    line-height: 1.1;
    max-width: 800px;
}

/* Article Meta */
.article-meta.is-stuck {
    padding-top: 80px;
    transition: all 0.2s linear;
}

.article-meta {
    background: #FBF7F5;
    padding: 60px 0px 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 3;
}

.meta-container {
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-category {
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2B2B2B;
    color: #fff;
    padding: 4px 10px;
    display: inline-block;
    margin-right: 20px;
}

.article-template .title {
    font-weight: 700;
}

.article-author,
.article-date {
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #1b1917;
    font-weight: 400;
    text-transform: capitalize;
}

.bolder {
    font-weight: 500;
}

/* Main Container */
.article-container {
    margin: 0 auto;
    padding: 60px 24px;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    position: relative;
    justify-content: space-between;
    column-gap: 100px;
}

/* Sidebar */
.article-sidebar {
    flex: 0 0 200px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Social Share */
.social-share {
    margin-bottom: 40px;
    gap: 8px;
    display: flex;
    align-items: center;
}

.social-share h4 {
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    margin: 0px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1b1917;
}

.share-buttons {
    display: flex;
    gap: 4px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #1b1917;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: #1b1917;
    color: #FBF7F5;
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Article Navigation */
.article-nav h4 {
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1b1917;
}

#article-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#article-nav-list li {
    margin-bottom: 12px;
}

#article-nav-list a {
    display: block;
    padding: 0;
    color: #666;
    text-decoration: none;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: all 0.2s ease;
    line-height: 1.5;
}

#article-nav-list a:hover {
    color: #1b1917;
    padding-left: 10px;
    border-left-color: #1b1917;
}

#article-nav-list a.active {
    color: #1b1917;
    font-weight: 500;
    padding-left: 10px;
    border-left-color: #1b1917;
}

/* Article Content */
.article-content {
    flex: 1;
    min-width: 0;
    max-width: 1000px;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #1b1917;
        margin: 0px auto;
}

.article-content h2 {
    font-family: 'Besley', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    margin: 50px 0 25px;
    color: #1b1917;
}

.article-content h3 {
    font-family: 'Besley', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    margin: 40px 0 20px;
    color: #1b1917;
    scroll-margin-top: 80px;
}

.article-content h4 {
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin: 30px 0 15px;
    color: #1b1917;
}

.article-content p {
    margin-bottom: 24px;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 30px;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.article-content blockquote {
    margin: 40px 0;
    padding: 25px 30px;
    background: #f8f8f8;
    border-left: 3px solid #1b1917;
    font-style: italic;
    font-size: 18px;
    color: #1b1917;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

/* Related Posts Section */
.related-posts-section {
    background: #FBF7F5;
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
}

.related-posts-container {
    margin: 0 auto;
    padding: 0 24px;
}

.related-posts-title {
       font-family: 'Besley';
    font-size: 40px;
    font-weight: 400;
    font-weight: 400;
    margin: 0 0 50px 0;
    color: #1b1917;
}

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

.related-post-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 590px; /* Set explicit height for the link container */
    background: #2d5a7c; /* Default fallback color */
    overflow: hidden;
}

.related-post-card:nth-child(1) a {
        background-color: #DFD5D0;
}

.related-post-card:nth-child(2) a {
    background-color: #776F67;
}

.related-post-card:nth-child(3) a {
    background-color: #2B2B2B;
}


.related-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* Fallback dark background when no image */
}

/* Add overlay gradient for better text readability */
.related-post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

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

.related-post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: #545351;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    color: #fff;
    z-index: 2;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.related-post-image .related-post-content,
.related-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    z-index: 2;
}

.related-post-content.no-img h3, .related-post-content.no-img span {
    color: #1b1917 !important
}

.related-post-title {
    font-size: 30px;
    font-weight: 400;
    line-height: 114%;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-family: 'Besley', Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    cursor: pointer;
    overflow: hidden;
}

.related-post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Fallback backgrounds for related posts */
.related-post-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* .related-post-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
} */

.related-post-fallback-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1)),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1));
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
}

/* Remove any default spacing */
.site-main,
.site-content,
.content-area {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

/* Mobile Styles */
@media (max-width: 1200px) {
    .article-container {
        padding: 60px 24px;
    }
    
    .related-posts-container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 400px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .article-title {
        font-size: 40px;
    }
    
    .meta-container {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-container {
        padding: 40px 20px;
    }
    
    .article-wrapper {
        flex-direction: column;
        gap: 40px;
                grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .article-nav {
        display: none;
    }
    
    .social-share {
        margin-bottom: 0;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    .article-content h2 {
        font-size: 28px;
    }
    
    .article-content h3 {
        font-size: 22px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts-container {
        padding: 0 15px;
    }
    
    .related-posts-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 32px;
    }
    
    .article-content {
        font-size: 16px;
    }
}

figure {
    margin: 0px;
}

.stk-highlight a {
    border: solid 1px #1b1917;
    border-radius: 20px;
    text-decoration: none !important;
    font-family: 'PP Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 6px 20px;
}

.alignfull, .alignfull img {
    width: auto !important;
    max-width: 800px;
        margin: 0em !important;
}


.alignwide {
    margin: 0em auto !important;
}