/* =============================================
   BLOG — CLEAN LIGHT STYLES
   News listing + single post
   ============================================= */

/* ---- Reading Progress Bar ---- */
.single-post-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.06);
}

.admin-bar .single-post-progress {
    top: 32px;
}

.single-post-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--eg-green), #4db87e);
    box-shadow: 0 0 8px rgba(61, 155, 107, 0.4);
    transition: width 0.15s ease-out;
}

/* ================================================
   NEWS LISTING PAGE
   ================================================ */

/* ---- Hero (full-bleed image) ---- */
.news-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 560px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.news-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.news-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(12, 10, 9, 0.7) 0%,
            rgba(12, 10, 9, 0.5) 15%,
            rgba(12, 10, 9, 0.35) 35%,
            rgba(12, 10, 9, 0.25) 55%
        ),
        linear-gradient(
            to top,
            rgba(12, 10, 9, 0.8) 0%,
            rgba(12, 10, 9, 0.55) 35%,
            rgba(12, 10, 9, 0.3) 70%
        );
}

.news-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5% 3.5rem;
    max-width: 700px;
}

.news-hero-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.news-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.news-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    line-height: 1.6;
}

/* ---- Featured Post ---- */
.news-featured {
    padding: 4rem 5% 2rem;
    background: var(--stone-50);
}

.news-featured-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.news-featured-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-400);
    margin-bottom: 1.25rem;
}

.news-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.news-featured-image {
    min-height: 320px;
    overflow: hidden;
}

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

.news-featured-card:hover .news-featured-image img {
    transform: scale(1.03);
}

.news-featured-image-placeholder {
    background: linear-gradient(135deg, var(--stone-100), var(--stone-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder-icon {
    color: var(--stone-400);
    opacity: 0.5;
}

.news-featured-body {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-body h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--stone-800);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.news-featured-excerpt {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.news-read-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eg-green);
    margin-top: auto;
    padding-top: 0.5rem;
    transition: color 0.2s ease;
}

.news-featured-card:hover .news-read-link {
    color: var(--stone-800);
}

/* ---- Shared: Category Badge ---- */
.news-category-badge,
.single-post-category-badge {
    display: inline-block;
    align-self: flex-start;
    width: auto;
    background: var(--eg-green-light);
    color: var(--eg-green);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.single-post-category-badge {
    align-self: center;
}

/* ---- Shared: Meta ---- */
.news-meta,
.single-post-meta {
    font-size: 0.85rem;
    color: var(--stone-400);
    font-weight: 400;
}

.news-meta-sep,
.single-post-meta-sep {
    margin: 0 0.4rem;
}

/* ---- Post Grid ---- */
.news-grid-section {
    padding: 3rem 5% 6rem;
    background: var(--stone-50);
}

.news-grid-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.news-card {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
}

.news-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-card-image-placeholder {
    background: linear-gradient(135deg, var(--stone-100), var(--stone-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-body {
    padding: 1.75rem 1.75rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-body h3 {
    font-size: 1.25rem;
    color: var(--stone-800);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.news-card-body p {
    font-size: 0.95rem;
    color: var(--stone-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ---- Pagination ---- */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 3.5rem;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--stone-600);
    border: 1px solid var(--stone-200);
    background: white;
    transition: all 0.2s ease;
}

.news-pagination a:hover {
    border-color: var(--eg-green);
    color: var(--eg-green);
}

.news-pagination .current {
    background: var(--eg-green);
    color: white;
    border-color: var(--eg-green);
}

/* ================================================
   SINGLE POST
   ================================================ */

.single-post-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 10rem 1.5rem 4rem;
}

/* ---- Single post page background ---- */
body.page-single-post {
    background: white;
}

/* Force nav to scrolled appearance on single posts (no dark hero) */
body.page-single-post nav {
    background: rgba(250, 250, 249, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--stone-200) !important;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 1rem 4% !important;
}

body.page-single-post nav .nav-links-list a {
    color: var(--stone-600) !important;
}

body.page-single-post nav .nav-links-list a:hover {
    color: var(--eg-green) !important;
}

body.page-single-post nav .nav-cta {
    background: var(--stone-950) !important;
    color: var(--stone-50) !important;
    border: none !important;
}

body.page-single-post nav .nav-logo .logo-hero {
    display: none !important;
}

body.page-single-post nav .nav-logo .logo-scrolled {
    display: block !important;
}

/* ---- Post Header ---- */
.single-post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.single-post-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--stone-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.single-post-meta {
    justify-content: center;
    display: flex;
    align-items: center;
}

/* ---- Hero Image ---- */
.single-post-hero-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.single-post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Article Body ---- */
.single-post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--stone-600);
}

.single-post-content h2 {
    font-size: 1.6rem;
    color: var(--stone-800);
    margin: 2.5rem 0 1rem;
}

.single-post-content h3 {
    font-size: 1.3rem;
    color: var(--stone-800);
    margin: 2rem 0 0.75rem;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content a {
    color: var(--eg-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-post-content a:hover {
    color: var(--stone-800);
}

.single-post-content blockquote {
    border-left: 3px solid var(--eg-green);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--stone-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--stone-800);
}

.single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 1.25rem 0 1.5rem 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post-content figure {
    margin: 2rem 0;
}

.single-post-content figcaption {
    font-size: 0.85rem;
    color: var(--stone-400);
    text-align: center;
    margin-top: 0.5rem;
}

/* ---- Post Footer ---- */
.single-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--stone-200);
}

.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--eg-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.single-post-back:hover {
    color: var(--stone-800);
}

/* ---- Related Posts ---- */
.single-post-related {
    padding: 4rem 5% 6rem;
    background: var(--stone-50);
}

.single-post-related-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.single-post-related-heading {
    font-size: 1.8rem;
    color: var(--stone-800);
    margin-bottom: 2rem;
    text-align: center;
}

.single-post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.single-post-related-card {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.single-post-related-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.single-post-related-body {
    padding: 1.5rem;
}

.single-post-related-body h3 {
    font-size: 1.05rem;
    color: var(--stone-800);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

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

@media (max-width: 768px) {
    .news-hero {
        height: 40vh;
        min-height: 300px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .news-featured {
        padding: 3rem 4% 1.5rem;
    }

    .news-featured-card {
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        min-height: 200px;
    }

    .news-featured-body {
        padding: 1.75rem;
    }

    .news-grid-section {
        padding: 2rem 4% 4rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .single-post-article {
        padding: 8rem 1.25rem 3rem;
    }

    .single-post-related-grid {
        grid-template-columns: 1fr;
    }

    .single-post-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .news-hero {
        min-height: 260px;
    }

    .news-hero-content {
        padding-bottom: 2rem;
    }

    .news-featured-body h2 {
        font-size: 1.3rem;
    }
}
