/* ── Resources & Article Stylesheet ── */
/* Modern Royal Indigo, Cyan & Gold Theme */

.page-container {
    padding-top: 24px;
    min-height: 80vh;
}

.page-title,
.landing-title,
.article-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .page-title,
    .landing-title,
    .article-title {
        font-size: 36px;
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── List & Recommendations ── */
.list-section {
    padding: 20px 0 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.list-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.list-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-hover);
}

.list-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

.card-body .date {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-body h2,
.card-body h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

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

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

.card-body p {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.page-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--color-primary);
    color: #06091c;
    border-color: var(--color-primary);
    box-shadow: 0 4px 18px var(--color-primary-glow);
    transform: translateY(-2px);
}

/* ── Breadcrumb / Back Navigation ── */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 25, 68, 0.92) 0%, rgba(12, 19, 52, 0.96) 100%);
    border: 1px solid rgba(0, 210, 255, 0.35);
    padding: 9px 20px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 210, 255, 0.12);
    margin-bottom: 20px;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.3px;
}

.btn-back-home svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.btn-back-home:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(26, 37, 102, 0.95) 0%, rgba(17, 25, 68, 1) 100%);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 210, 255, 0.35);
}

.btn-back-home:hover svg {
    transform: translateX(-3px) scale(1.1);
}

/* ── Article / Show Landing ── */
.show-landing {
    background: linear-gradient(180deg, #101844 0%, #0c1236 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

@media (min-width: 768px) {
    .show-landing {
        padding: 40px;
    }
}

.article-hero {
    margin: -24px -24px 32px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .article-hero {
        margin: -40px -40px 36px;
    }
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #101844 0%, transparent 100%);
    pointer-events: none;
}

.article-hero .hero-img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.article-header {
    position: relative;
    z-index: 2;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.article-meta .tag {
    background: linear-gradient(135deg, var(--color-primary), var(--color-indigo));
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rich-text {
    line-height: 1.85;
    color: var(--color-text-sub);
    font-size: 15.5px;
}

.rich-text p {
    margin-bottom: 20px;
}

.rich-text h2,
.rich-text h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin: 32px 0 16px;
    font-weight: 800;
}

.rich-text img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--color-border);
}

/* ── Action Buttons ── */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed var(--color-border);
}

.btn-primary {
    background: linear-gradient(135deg, #00d2ff 0%, #2563eb 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
    transform: translateY(-2px);
}

.btn-back-home-bottom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

.btn-back-home-bottom svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    transition: transform 0.25s ease;
}

.btn-back-home-bottom:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.btn-back-home-bottom:hover svg {
    transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES FOR ARTICLE (SHOW.HTML)
   ═══════════════════════════════════════════════════════════════ */
[data-theme="light"] .article-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .article-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .article-title {
    color: #0f172a;
}

[data-theme="light"] .article-lead {
    background: #f1f5f9;
    border-left-color: #0284c7;
    color: #1e293b;
}

[data-theme="light"] .article-body {
    color: #334155;
}

[data-theme="light"] .rich-text h2,
[data-theme="light"] .rich-text h3,
[data-theme="light"] .rich-text h4 {
    color: #0f172a;
}

[data-theme="light"] .btn-back-home {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.3);
    color: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .btn-back-home:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .btn-back-home-bottom {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.3);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .btn-back-home-bottom:hover {
    background: rgba(2, 132, 199, 0.08);
    border-color: #0284c7;
    color: #0284c7;
}

[data-theme="light"] .recom-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-card);
}

[data-theme="light"] .recom-title {
    color: #0f172a;
}

[data-theme="light"] .recom-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 100%);
}

[data-theme="light"] .btn-secondary {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: #0284c7;
    color: #0284c7;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE ENHANCEMENTS FOR RESOURCES & SHOW PAGES
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .page-container {
        padding-top: 16px;
    }

    .page-title,
    .landing-title,
    .article-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .show-landing {
        padding: 18px 16px;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }

    .article-hero {
        margin: -18px -16px 20px;
    }

    .article-hero .hero-img {
        max-height: 220px;
    }

    .article-header {
        padding-bottom: 16px;
        margin-bottom: 18px;
    }

    .rich-text {
        font-size: 14.5px;
        line-height: 1.75;
        word-break: break-word;
    }

    .rich-text h2 {
        font-size: 19px;
        margin: 24px 0 12px;
    }

    .rich-text h3 {
        font-size: 17px;
        margin: 20px 0 10px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 28px;
        padding-top: 20px;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13.5px;
    }

    .list-card .card-body {
        padding: 16px;
    }

    .pagination {
        gap: 8px;
        margin-top: 24px;
    }

    .page-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}


