:root {
    --dark: #020617;
    --mid: #090909;
    --light: #f6f7f9;
    --border: #e5e7eb;
    --blue: #2563eb;
    --green: #16a34a;
    --text: #111;
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ================= HEADER ================= */

header {
    background: var(--mid);
    color: #fff;
    padding: 18px 5%;
    text-align: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

/* ================= SCROLL MENU ================= */

.scroll-menu {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    text-align: center;
    border-top: 1px solid #1f2933;
    border-bottom: 1px solid #1f2933;
    padding: 8px 0;
    background: #000;
}

.scroll-menu::-webkit-scrollbar {
    display: none;
}

.scroll-menu .inner {
    display: inline-flex;
    width: max-content;
}

.scroll-menu a {
    padding: 8px 18px;
    flex-shrink: 0;
    color: #fff;
    opacity: 0.85;
}

.scroll-menu a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================= PAGE HERO ================= */

.page-hero {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #fff;
    text-align: center;
    padding: 70px 5%;
}

.page-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 14px;
    opacity: 0.9;
}

/* ================= PAGE CONTENT ================= */

.page-content {
    padding: 80px 5%;
    background: #ffffff;
}

.content-wrap {
    max-width: 900px;
    margin: auto;
}

.page-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    margin-top: 30px;
}

.page-content p {
    font-size: 14px;
    color: #444;
    margin-bottom: 16px;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 18px;
}

.page-content li {
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
}

/* ================= PAGE STATS ================= */

.page-stats {
    background: var(--light);
    padding: 60px 5%;
}

.stats-grid {
    max-width: 900px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 26px 14px;
    border-radius: 10px;
}

.stat-box h3 {
    font-size: 24px;
    color: var(--green);
}

.stat-box p {
    font-size: 13px;
    color: #444;
}

/* ================= FOOTER ================= */

footer {
    background: #000;
    color: #bbb;
    padding: 32px 5%;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer h4 {
    color: #fff;
}

footer a {
    display: block;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    margin-top: 22px;
    border-top: 1px solid #222;
    padding-top: 16px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 26px;
    }

    .page-content {
        padding: 60px 5%;
    }
}

/* ================= UX ================= */

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* ==================================================
   ✅ CONTENT TAG SUPPORT (ADDED SAFELY)
================================================== */

/* EXTRA IMAGE SUPPORT INSIDE PAGE CONTENT */
.page-content img {
    margin: 18px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* HR */
.page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

/* BLOCKQUOTE */
.page-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--blue);
    padding: 14px 18px;
    margin: 22px 0;
    font-size: 14px;
    color: #444;
    border-radius: 6px;
}

/* INLINE CODE */
.page-content code {
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
}

/* CODE BLOCK */
.page-content pre {
    background: #020617;
    color: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13px;
    margin: 20px 0;
}

.page-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* STRONG & ITALIC */
.page-content strong {
    color: #000;
}

.page-content em {
    font-style: italic;
}

/* MARK */
.page-content mark {
    background: #fde68a;
    padding: 2px 6px;
    border-radius: 4px;
}

/* SMALL */
.page-content small {
    font-size: 12px;
    color: #666;
}

/* KBD */
.page-content kbd {
    background: #020617;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* DEFINITION LIST */
.page-content dl {
    margin: 20px 0;
}

.page-content dt {
    font-weight: bold;
    margin-bottom: 6px;
}

.page-content dd {
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
}

/* ============================
   ✅ RESPONSIVE TABLE SUPPORT
============================ */

.page-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.page-content th,
.page-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.page-content thead {
    background: var(--mid);
    color: #fff;
}

/* RESPONSIVE WRAPPER */
.page-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.page-content .table-responsive::-webkit-scrollbar {
    display: none;
}

.page-content .table-responsive {
    scrollbar-width: none;
    -ms-overflow-style: none;
}