/* Wrapper & Layout */
.npl-d7d178b9-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    color: #1f2937;
    background: #ffffff;
    width: 100%;
}

/* Fix for Elementor default widget padding/margin that causes white space */
.elementor-widget-news_post_layout_d7d178b9 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.npl-d7d178b9-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.npl-d7d178b9-header {
    background-color: #2c2f33; /* Dark background matching design */
    color: #ffffff;
    padding: 60px 0 120px 0; /* Extra bottom padding for image overlap, controllable via Elementor */
    text-align: left;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    /* Ensure no margin above the header */
    margin-top: calc(-1 * var(--e-column-padding-top, 0px) - var(--e-column-margin-top, 0px));
}

.npl-d7d178b9-breadcrumbs {
    display: inline-block;
    background: #ffffff;
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.npl-d7d178b9-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 30px 0;
    color: #ffffff;
}

.npl-d7d178b9-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Author Info */
.npl-d7d178b9-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.npl-d7d178b9-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.npl-d7d178b9-author-info {
    display: flex;
    flex-direction: column;
}

.npl-d7d178b9-author-name {
    font-weight: 600;
    font-size: 14px;
}

.npl-d7d178b9-post-date {
    font-size: 13px;
    opacity: 0.8;
}

/* Share Buttons */
.npl-d7d178b9-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.npl-d7d178b9-btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #1f2937;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.npl-d7d178b9-btn-copy:hover {
    background: #f3f4f6;
}

.npl-d7d178b9-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #1f2937;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.npl-d7d178b9-btn-icon:hover {
    background: #f3f4f6;
}

/* Header vs Footer Share differences */
.npl-d7d178b9-footer-meta .npl-d7d178b9-btn-copy,
.npl-d7d178b9-footer-meta .npl-d7d178b9-btn-icon {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.npl-d7d178b9-footer-meta .npl-d7d178b9-author-name,
.npl-d7d178b9-footer-meta .npl-d7d178b9-post-date {
    color: #1f2937;
}

/* Featured Image */
.npl-d7d178b9-featured-image {
    margin-top: -80px; /* Pull up over the dark background */
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.npl-d7d178b9-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

/* Content Area */
.npl-d7d178b9-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 40px;
}

.npl-d7d178b9-content p {
    margin-bottom: 1.5rem;
}

.npl-d7d178b9-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.npl-d7d178b9-content blockquote {
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid #b4853a;
    background: #f9fafb;
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    font-style: italic;
}

.npl-d7d178b9-content blockquote cite {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 1rem;
    font-style: normal;
}

/* Footer Meta */
.npl-d7d178b9-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 60px;
}

/* Related Posts */
.npl-d7d178b9-related {
    margin-top: 60px;
    margin-bottom: 60px;
}

.npl-d7d178b9-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-top: 2px solid #1f2937;
    padding-top: 20px;
}

.npl-d7d178b9-related-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.npl-d7d178b9-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    color: #b4853a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.npl-d7d178b9-btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.npl-d7d178b9-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

.npl-d7d178b9-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.npl-d7d178b9-card:hover {
    transform: translateY(-4px);
}

.npl-d7d178b9-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #e5e7eb;
}

.npl-d7d178b9-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.npl-d7d178b9-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

.npl-d7d178b9-card-cat {
    font-size: 12px;
    font-weight: 600;
    color: #b4853a;
    margin-bottom: 8px;
}

.npl-d7d178b9-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.npl-d7d178b9-card-excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.npl-d7d178b9-card-date {
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .npl-d7d178b9-title {
        font-size: 28px;
    }
    .npl-d7d178b9-meta-row, .npl-d7d178b9-footer-meta {
        justify-content: flex-start;
    }
    .npl-d7d178b9-featured-image {
        margin-top: -40px;
    }
    .npl-d7d178b9-related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
