/* Resources — List, News, Show pages */

.page-container {
    padding-top: 80px;
    min-height: 80vh;
    background: var(--bg);
}

/* ── Page / Article Titles ── */
.page-title,
.landing-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    -webkit-text-fill-color: unset;
    background: none;
}

.article-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--text);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
    hyphens: auto;
    -webkit-text-fill-color: unset;
    background: none;
}

/* ── List Section ── */
.list-section { padding: 3rem 0 4rem; }

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.list-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.list-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.list-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 20px rgba(0,255,135,0.07);
    transform: translateY(-4px);
}

.list-card:hover::after { transform: scaleX(1); }

.list-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.85);
}

.list-card:hover img { transform: scale(1.04); filter: brightness(1); }

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body .date {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body h2, .card-body h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-body h2 a:hover,
.card-body h3 a:hover { color: var(--primary); }

.card-body p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    flex: 1;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.page-btn {
    padding: 0.6rem 1.75rem;
    background: transparent;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 14px var(--primary-glow);
}

/* ── Article (news.html) ── */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.article-header {
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(0,255,135,0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--border-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    margin-bottom: 1.75rem;
}

.article-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    line-height: 1.85;
    color: var(--text);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-content p { margin-bottom: 1.4rem; color: #b0b0c0; }

.article-content h2,
.article-content h3 {
    font-family: 'Rajdhani', sans-serif;
    margin: 2rem 0 0.9rem;
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.article-content h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.article-content h3 { font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--primary); }

.article-content img {
    border-radius: var(--radius);
    margin: 1.75rem 0;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    display: block;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.4rem 1.25rem;
    color: var(--text-muted);
}

.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Related section ── */
.related-section { padding: 1rem 0 3rem; }

.related-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── Show page (show.html) ── */
.show-hero { padding: 2rem 0 3rem; }

.show-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.show-hero-img {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.show-hero-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.show-badge {
    display: inline-block;
    background: rgba(0,255,135,0.08);
    border: 1px solid var(--border-bright);
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.show-hero-text .landing-title { text-align: left; margin-bottom: 1rem; }

.show-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.show-landing { padding: 0 0 3rem; }

.landing-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    line-height: 1.85;
    color: var(--text);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

.landing-content p { margin-bottom: 1.4rem; color: #b0b0c0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-container { padding-top: 65px; }
    .article-detail { padding: 1.5rem 0 2rem; }
    .article-content, .landing-content { padding: 1.25rem; }
    .article-thumb { border-radius: 8px; margin-bottom: 1.25rem; }
    .list-grid { grid-template-columns: 1fr; gap: 1rem; }
    .related-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card-body { padding: 1rem; }
    .show-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .show-hero-img img { height: 220px; }
    .show-hero-text .landing-title { text-align: center; }
    .show-badge { display: block; text-align: center; }
    .show-desc { text-align: center; }
    .show-hero-text { text-align: center; }
}

@media (max-width: 480px) {
    .article-content, .landing-content { padding: 1rem; }
    .article-content ul, .article-content ol { margin-left: 1rem; }
    .list-card img { height: 170px; }
    .pagination { flex-direction: column; align-items: center; }
    .page-btn { width: 100%; text-align: center; }
}
