/* news.css — scoped styles for the GTG News page on The Canvass */

.news-hero {
    background: var(--dark-bg, #111827);
    color: white;
    padding: 9rem 2rem 5rem;
}

.news-hero.hero-with-bg {
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.news-hero.hero-with-bg .news-hero-inner {
    position: relative;
    z-index: 2;
}

.news-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.news-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.news-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.news-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 600px;
}

/* Subscribe section */
.news-subscribe {
    background: #f0f4ff;
    padding: 4rem 2rem;
    border-bottom: 1px solid #dde5ff;
}

.news-subscribe-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.news-subscribe h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.news-subscribe p {
    color: #555;
    margin-bottom: 1.5rem;
}

.news-subscribe-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.news-subscribe-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.news-subscribe-form button {
    padding: 0.8rem 1.75rem;
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.news-subscribe-form button:hover {
    background: var(--primary-dark, #1e40af);
}

.news-subscribe-alt {
    font-size: 0.85rem;
    color: #666;
}

.news-subscribe-alt a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}

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

/* Posts section */
.news-posts {
    padding: 4rem 2rem;
    background: white;
}

.news-posts-inner {
    max-width: 860px;
    margin: 0 auto;
}

.news-posts h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color, #2563eb);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.news-post-list {
    display: grid;
    gap: 1.5rem;
}

.news-post-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.news-post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--primary-color, #2563eb);
}

.news-post-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.news-post-card .news-post-date {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0.6rem;
}

.news-post-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.news-post-card .news-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--primary-color, #2563eb);
    font-weight: 500;
}

/* Loading / empty state */
.news-loading {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1rem;
}

/* Substack CTA */
.news-substack-cta {
    padding: 3rem 2rem;
    background: #f9fafb;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.news-substack-cta p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.news-substack-cta a {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: #ff6719;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.news-substack-cta a:hover {
    background: #e55c14;
}

/* Resources page — tools section */
.resources-tools-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    padding: 5rem 2rem;
}

.resources-tools-section h2 {
    text-align: left;
    color: white;
}

.resources-tools-section > .container > p {
    text-align: left;
    max-width: 700px;
    color: rgba(255,255,255,0.75);
}

.resources-kicker-light {
    color: rgba(255,255,255,0.5);
}

/* Kicker reuse outside hero (dark text for light bg sections) */
.page-section .news-kicker {
    color: var(--primary-color, #2563eb);
}

@media (max-width: 768px) {
    .news-hero {
        padding: 7rem 1.5rem 4rem;
    }
    .news-posts {
        padding: 3rem 1.5rem;
    }
    .news-subscribe {
        padding: 3rem 1.5rem;
    }
}
