/* Resources CSS — List, News, Show pages - NEW STYLE */

.page-container {
    padding-top: 120px;
    min-height: 80vh;
    background: var(--bg-main);
}

/* ── Page / Landing Titles ── */
.page-title,
.landing-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-main);
    line-height: 1.1;
    word-wrap: break-word;
    word-break: break-word;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.page-title::before,
.landing-title::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.page-title span,
.landing-title span {
    color: var(--primary-light);
    font-style: normal;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text-main);
    line-height: 1.1;
    word-wrap: break-word;
    word-break: break-word;
}

/* ── List Section ── */
.list-section {
    padding: 4rem 0 6rem;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4.5rem;
}

.list-card {
    background: linear-gradient(145deg, var(--bg-card), #0f172a);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.list-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.list-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.list-card:hover img { transform: scale(1.1); }

.card-body {
    padding: 2.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body .date {
    font-size: 0.8rem;
    color: var(--accent-light);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-body h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main);
}

.card-body h2 a:hover { color: var(--primary-light); }

.card-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    flex-grow: 1;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 3.5rem;
}

.page-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(145deg, var(--bg-card), #0f172a);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transition);
}

.page-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* ── Article / Show Detail ── */
.article-detail,
.show-landing {
    max-width: 920px;
    margin: 0 auto;
    width: 92%;
    padding: 0;
}

.article-header {
    text-align: left;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--border);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.article-meta .date {
    color: var(--accent-light);
    font-weight: 800;
}

/* ── Article Content ── */
.article-content,
.landing-content {
    background: linear-gradient(145deg, var(--bg-card), #0f172a);
    padding: 4rem;
    border-radius: 24px;
    border: 2px solid var(--border);
    line-height: 1.9;
    color: var(--text-main);
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.article-content p,
.landing-content p {
    margin-bottom: 1.8rem;
    color: #cbd5e1;
}

.article-content h2,
.article-content h3 {
    margin: 2.8rem 0 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.article-content h2 { font-size: 1.9rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content img {
    border-radius: 16px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

/* Blockquote styling inside content */
.article-content blockquote,
.landing-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0 12px 12px 0;
    font-style: normal;
    color: var(--text-muted);
}

/* ── Related / Suggested section ── */
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

@media (max-width: 768px) {
    .article-content,
    .landing-content {
        padding: 2rem;
        font-size: 1.05rem;
    }

    .page-title { font-size: 2.4rem; }

    .list-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .list-card img { height: 220px; }
    .card-body { padding: 1.8rem; }
}
