/* ============================================================
   NEWSLETTER ARCHIVE — Brand Sauce
   ============================================================ */

/* ─── Hub Hero ─── */
.newsletter-hub {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.hub-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hub-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -1px;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hub-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 1.15rem;
    color: #666;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Controls: Search + Filters ─── */
.hub-controls {
    margin-bottom: 40px;
}

.search-bar {
    position: relative;
    max-width: 480px;
    margin: 0 auto 24px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    border: 1px solid #e0dcd6;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    border-color: #0C4A6E;
    box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.1);
}

.search-bar input::placeholder {
    color: #aaa;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid #e0dcd6;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #0C4A6E;
    color: #0C4A6E;
}

.filter-btn.active {
    background: #0C4A6E;
    color: #fff;
    border-color: #0C4A6E;
}

/* ─── Post Cards Grid ─── */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .hub-grid { grid-template-columns: 1fr; }
    .newsletter-hub { padding: 20px 16px 60px; }
    .hub-hero { padding: 40px 10px 30px; }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.card-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e4de 0%, #d5d0c8 100%);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 8px;
    font-family: 'Archivo', sans-serif;
}

.card-episode {
    font-weight: 600;
    color: #0C4A6E;
}

.card-episode small {
    font-weight: 400;
    color: #999;
}

.card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: #f0ede8;
    color: #777;
}

/* ─── Load More ─── */
.load-more-container {
    text-align: center;
    padding: 40px 0;
}

.load-more-btn {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 12px;
    border: 2px solid #0C4A6E;
    background: transparent;
    color: #0C4A6E;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #0C4A6E;
    color: #fff;
}

/* ============================================================
   INDIVIDUAL POST PAGE
   ============================================================ */

.newsletter-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.back-link {
    display: inline-block;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    color: #0C4A6E;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.post-header {
    margin-bottom: 32px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    color: #888;
}

.episode-number {
    font-weight: 600;
    color: #0C4A6E;
}

.series-badge {
    font-weight: 400;
    font-size: 0.8rem;
    color: #999;
    padding: 2px 10px;
    background: #f0ede8;
    border-radius: 100px;
    margin-left: 6px;
}

.post-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 8px;
}

.post-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-pill {
    font-family: 'Archivo', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    background: #f0ede8;
    color: #666;
}

/* ─── Post Hero Image ─── */
.post-hero {
    margin-bottom: 36px;
    border-radius: 16px;
    overflow: hidden;
}

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

/* ─── Article Content Typography ─── */
.post-content {
    font-family: 'Archivo', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2a2a2a;
    max-width: 720px;
    margin: 0 auto;
}

.post-content h1 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-content h2 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 36px 0 14px;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-content h3 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 28px 0 12px;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-content h4, .post-content h5, .post-content h6 {
    font-family: 'Archivo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #1a1a1a;
}

.post-content p {
    margin: 0 0 18px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

.post-content a {
    color: #0C4A6E;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.post-content a:hover {
    opacity: 0.7;
}

.post-content ul, .post-content ol {
    margin: 0 0 18px 24px;
    padding: 0;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content blockquote {
    border-left: 3px solid #0C4A6E;
    margin: 24px 0;
    padding: 16px 24px;
    background: #f5f3ef;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.post-content hr {
    border: none;
    border-top: 1px solid #e0dcd6;
    margin: 32px 0;
}

/* ─── Previous / Next Nav ─── */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid #e0dcd6;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e0dcd6;
    transition: border-color 0.2s, box-shadow 0.2s;
    max-width: 48%;
}

.post-nav-link:hover {
    border-color: #0C4A6E;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.post-nav-link.next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 0.8rem;
    color: #0C4A6E;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-title {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .newsletter-post { padding: 20px 16px 60px; }
    .post-nav { flex-direction: column; }
    .post-nav-link { max-width: 100%; }
    .post-nav-link.next { text-align: left; }
}
