/* Resources CSS — List, News, Show pages */

.page-container {
    padding-top: 110px;
    min-height: 80vh;
    background: var(--bg-main);
}

/* ── Page / Landing Titles ── */
.page-title,
.landing-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-word;
}

.page-title span,
.landing-title span {
    color: var(--primary);
    font-style: italic;
}

.article-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
    text-align: left;
    color: var(--text-main);
    line-height: 1.2;
    word-wrap: break-word;
    word-break: break-word;
}

/* ── List Section ── */
.list-section {
    padding: 3rem 0 5rem;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.list-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.list-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.list-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.list-card:hover img { transform: scale(1.04); }

.card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--accent);
}

.card-body .date {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.card-body h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-main);
}

.card-body h2 a:hover { color: var(--primary); }

.card-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.7rem 2rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Article / Show Detail ── */
.article-detail,
.show-landing {
    max-width: 860px;
    margin: 0 auto;
    width: 90%;
    padding: 0;
}

.article-header {
    text-align: left;
    padding: 2rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.article-meta .date {
    color: var(--accent);
    font-weight: 600;
}

/* ── Article Content ── */
.article-content,
.landing-content {
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    line-height: 1.85;
    color: var(--text-main);
    font-size: 1.08rem;
    box-shadow: var(--shadow-sm);
}

.article-content p,
.landing-content p {
    margin-bottom: 1.6rem;
    color: #3a3a32;
}

.article-content h2,
.article-content h3 {
    margin: 2.5rem 0 1.2rem;
    color: var(--text-main);
}

.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.35rem; }

.article-content img {
    border-radius: 8px;
    margin: 2.5rem 0;
    box-shadow: var(--shadow-md);
    width: 100%;
}

/* Blockquote styling inside content */
.article-content blockquote,
.landing-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f0ece4;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ── Related / Suggested section ── */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

@media (max-width: 768px) {
    .article-content,
    .landing-content {
        padding: 1.8rem;
        font-size: 1rem;
    }

    .page-title { font-size: 2rem; }

    .list-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .list-card img { height: 180px; }
    .card-body { padding: 1.4rem; }
}
