/* ==========================================================================
   Single News Post – Content left, Featured Image right (actual size)
   ========================================================================== */

.news-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-single-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.back-to-list {
    padding: 20px 48px 0;
    font-size: 1rem;
}

.back-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.single-news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    
}

.single-news-left {
    flex: 1;
    min-width: 0; /* prevents overflow */
}

.single-news-right {
    flex: 0 0 42%;
    max-width: 460px;
}

.news-featured-image {
    border-radius: 18px;
    overflow: hidden;
    background: #f9fafb; /* subtle fallback if needed */
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    /* No fixed height → actual size preserved */
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.news-category {
    background: #02977e;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.news-title {
    font-size: 1.8rem;
    line-height: 1.15;
    margin: 0 0 24px;
    color: #666;
    font-weight: 600;
}

.news-author {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 32px;
    font-style: italic;
}

.news-content {
    font-size: 1.15rem;
    line-height: 1.78;
    color: #1e293b;
}

.news-content p {
    margin-bottom: 1.6em;
}

.news-footer {
    padding: 32px 48px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

.news-share a {
    margin: 0 12px;
    color: #3b82f6;
    text-decoration: none;
}

.news-share a:hover {
    text-decoration: underline;
}

@media only screen and (min-width: 450px) {
  .dpt-list1 .dpt-featured-content {
    margin: var(--dpt-thumbnail-margin, 0 20px 0 0);
    flex-basis: 25% !important;
    border-radius:12px;
  }
}

/* Mobile – stack image below content */
@media (max-width: 900px) {
    .single-news-grid {
        flex-direction: column;
        gap: 32px;
        padding: 24px;
    }

    .single-news-right {
        max-width: 100%;
        order: 2;
    }

    .single-news-left {
        order: 1;
    }

    .news-title {
        font-size: 2.2rem;
    }
}
/* Ensure featured image is always first on mobile */
@media only screen and (max-width: 767px) {  /* Adjust breakpoint if your mobile is different, e.g. 768px or 1024px */

    .single-news .news-featured-image {
        order: -1;           /* Pulls it to the very top if using flex */
        margin-bottom: 20px; /* Space below image before title */
    }

    /* If your single post container uses flexbox (common in many themes) */
    .single .site-main,
    .single-news .entry-header,
    .single .hentry {
        display: flex;
        flex-direction: column;
    }

    /* Force image above everything in header/content flow */
    .single-news .news-featured-image {
        width: 100%;
        margin: 0 0 1.5rem 0 !important;
    }

    /* Optional: make image full-width and nicely cropped on mobile */
    .single-news-img {
        width: 100% !important;
        height: auto !important;
        max-height: 45vh;          /* Prevents it from being too tall on phones */
        object-fit: cover;
        object-position: center;
        border-radius: 0;          /* Remove radius if you want edge-to-edge */
    }
}