/* Resources — List, News, Show pages (Mobile App View) */

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

/* ── Breadcrumb Navigation ── */
.breadcrumb {
    padding: 0.75rem 0 0;
    margin-bottom: 1rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition);
    font-size: 0.78rem;
}

.breadcrumb-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 8px var(--primary-glow);
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
    font-size: 0.78rem;
}

/* ── Page / Article Titles ── */
.page-title,
.landing-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.25;
    font-weight: 800;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    text-align: left;
    color: #FFFFFF;
    line-height: 1.25;
    font-weight: 800;
    word-break: break-word;
}

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

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.list-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    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: 2.5px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.list-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transform: translateY(-4px);
}

.list-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.55s ease;
    background: var(--bg-deep);
}

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

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

.card-body .date {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
}

.card-body h2, .card-body h3 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    color: #FFFFFF;
    font-weight: 800;
}

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

.card-body p {
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

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

.page-btn {
    padding: 0.65rem 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ── Article (news.html) ── */
.article-detail {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.article-header {
    padding-bottom: 1.5rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-light);
}

.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    background: rgba(255, 184, 0, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 184, 0, 0.3);
    font-family: var(--font-heading);
}

.article-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: block;
    margin-bottom: 2rem;
}

.article-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    line-height: 1.85;
    color: var(--text);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-content p { 
    margin-bottom: 1.5rem; 
    color: #CBD5E1; 
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-heading);
    margin: 2rem 0 0.85rem;
    color: #FFFFFF;
    line-height: 1.25;
    font-weight: 800;
}

.article-content h2 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.article-content h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--primary); }

.article-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    display: block;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    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: 4px;
}

/* ── Related section ── */
.related-section { 
    padding: 1.5rem 0 4rem; 
}

.related-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Show page (show.html) ── */
.show-hero { 
    padding: 2.5rem 0 3.5rem; 
}

.show-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    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(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.35);
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.show-hero-text .landing-title { 
    text-align: left; 
    margin-bottom: 1.25rem; 
}

.show-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.show-landing { 
    padding: 0 0 3.5rem; 
}

.landing-content {
    background: var(--bg-card);
    padding: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    line-height: 1.85;
    color: var(--text);
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    word-break: break-word;
    overflow-wrap: break-word;
}

.landing-content p { 
    margin-bottom: 1.5rem; 
    color: #CBD5E1; 
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-container { padding-top: 80px; }
    .article-detail { padding: 2rem 0 3rem; }
    .article-content, .landing-content { padding: 1.5rem; }
    .list-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .related-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .show-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .show-hero-img img { height: 220px; }
    .show-hero-text .landing-title { text-align: center; }
    .show-badge { display: block; text-align: center; margin: 0 auto 1rem; }
    .show-desc { text-align: center; }
    .show-hero-text { text-align: center; }
}
