/* ========================================
   NEWS PAGE + SINGLE ARTICLE
   ======================================== */

/* ---------- Breadcrumb (compact, below fixed header) ---------- */
.news-breadcrumb {
    padding: 16px 0;
    padding-top: 122px; /* 80px header + 16px spacing */
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.news-breadcrumb a {
    color: #888;
    transition: var(--transition);
}

.news-breadcrumb a:hover {
    color: var(--primary);
}

.news-breadcrumb span {
    color: #555;
}

.news-breadcrumb span:last-child {
    color: #ccc;
}

/* ---------- News Header ---------- */
.news-header {
    padding: 60px 0 20px;
    background: var(--dark);
}

.news-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.news-header__sub {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 550px;
}

/* ---------- News Grid ---------- */
.news-page {
    padding: 40px 0 100px;
    background: var(--dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Featured (first post) spans 2 cols */
.news-card--featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* ---------- News Card ---------- */
.news-card {
    background: var(--dark-2, #111);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    border-color: rgba(255,215,0,0.15);
    transform: translateY(-4px);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.news-card--featured .news-card__image {
    aspect-ratio: 16/9;
    flex: 1;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

.news-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card--featured .news-card__body {
    padding: 32px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.news-card__meta time {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.news-card__cat {
    font-size: 0.7rem;
    color: #888;
    background: rgba(255,255,255,0.05);
    padding: 3px 10px;
    border-radius: 20px;
}

.news-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card--featured .news-card__title {
    font-size: 1.6rem;
}

.news-card__excerpt {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.news-card__read {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 1px;
    transition: var(--transition);
}

.news-card:hover .news-card__read {
    color: #fff;
}

/* ---------- Pagination ---------- */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    font-size: 0.9rem;
    transition: var(--transition);
}

.news-pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.news-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    font-weight: 700;
}

/* ---------- Empty State ---------- */
.news-empty {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* ========================================
   SINGLE ARTICLE
   ======================================== */

.single-article__hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    max-height: 550px;
    overflow: hidden;
}

.single-article__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-article__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--dark) 0%, transparent 60%);
}

.single-article {
    background: var(--dark);
    padding-bottom: 80px;
}

.single-article__wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 40px;
}

.single-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.single-article__meta time {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.single-article__cat {
    font-size: 0.7rem;
    color: #888;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 20px;
}

.single-article__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.15;
    margin-bottom: 40px;
}

/* Article content */
.single-article__content {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.85;
}

.single-article__content p {
    margin-bottom: 1.5em;
}

.single-article__content h2,
.single-article__content h3 {
    font-family: var(--font-heading);
    color: #fff;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.single-article__content h2 {
    font-size: 1.6rem;
}

.single-article__content h3 {
    font-size: 1.3rem;
}

.single-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.single-article__content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 2em 0;
    background: rgba(255,215,0,0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #aaa;
}

.single-article__content a {
    color: var(--primary);
    text-decoration: underline;
}

.single-article__content ul,
.single-article__content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.single-article__content li {
    margin-bottom: 0.5em;
}

/* Share */
.single-article__share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.single-article__share span {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.single-article__share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    transition: var(--transition);
}

.single-article__share a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

/* Back link */
.single-article__back {
    display: inline-block;
    margin-top: 30px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--primary);
    letter-spacing: 1px;
    transition: var(--transition);
}

.single-article__back:hover {
    color: #fff;
}

/* ---------- Related Posts ---------- */
.related-posts {
    padding: 80px 0;
    background: var(--dark-2, #111);
}

.related-posts__heading {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card--featured {
        grid-column: span 2;
        grid-row: span 1;
    }

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

@media (max-width: 768px) {
    .news-grid,
    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .news-card--featured {
        grid-column: span 1;
    }

    .news-header {
        padding: 40px 0 10px;
    }

    .single-article__hero {
        height: 35vh;
        min-height: 250px;
    }
}
