/* ==========================================
   TERMINAL THEME OVER BOOTSTRAP
   Clean terminal aesthetic with Bootstrap grid
   ========================================== */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Terminal color palette */
    --terminal-bg: #0f1419;
    --terminal-dark: #0a0e14;
    --primary-blue: #5B9BD5;
    --primary-blue-dim: #4A8BC2;
    --accent-teal: #67A2C9;
    --accent-slate: #8E9AAF;
    --accent-red: #E06C75;
    --terminal-text: #D4D4D4;
    --terminal-gray: #808080;
    --glow-color: rgba(91, 155, 213, 0.15);
    --border-color: #1f2937;
    --code-bg: #1a1f2c;

    /* Fonts */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Monaco', 'Consolas', 'Courier New', monospace;

    /* Bootstrap overrides */
    --bs-body-bg: var(--terminal-bg);
    --bs-body-color: var(--terminal-text);
    --bs-body-font-family: var(--font-body);
    --bs-link-color: var(--accent-teal);
    --bs-link-hover-color: var(--primary-blue);
}

/* ==========================================
   NAVBAR LOGO & BRAND
   ========================================== */

.navbar-logo {
    height: 40px;
    width: auto;
    /* Multi-layer glow for radial effect */
    filter: drop-shadow(0 0 4px rgba(103, 162, 201, 0.8))
            drop-shadow(0 0 8px rgba(103, 162, 201, 0.6))
            drop-shadow(0 0 12px rgba(103, 162, 201, 0.4))
            drop-shadow(0 0 16px rgba(103, 162, 201, 0.2));
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--accent-teal) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-blue) !important;
}

.navbar-brand-text {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* Make logo slightly smaller on mobile */
@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
    .navbar-brand-text {
        font-size: 1.1rem;
    }
}

/* ==========================================
   BASE STYLES
   ========================================== */

* {
    box-sizing: border-box !important;
}

html {
    overflow-x: hidden !important;
    width: 100%;
}

body {
    background: var(--terminal-bg) !important;
    color: var(--terminal-text) !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
}

header, main, footer, nav, section, article, aside {
    overflow-x: hidden !important;
}

main {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Terminal scanline effect - DISABLED to test overflow */
/* body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05) 0px,
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
} */

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue) !important;
    font-family: var(--font-body) !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-teal);
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}

h2::before {
    content: ">> ";
    color: var(--accent-slate);
    font-family: var(--font-mono);
}

h3 {
    font-size: 1rem;
    color: var(--accent-teal) !important;
}

h3::before {
    content: "# ";
    color: var(--primary-blue-dim);
    font-family: var(--font-mono);
}

p {
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--terminal-text) !important;
}

/* ==========================================
   LINKS
   ========================================== */

a {
    color: var(--accent-teal) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-blue) !important;
    border-bottom: 1px solid var(--primary-blue);
}

/* ==========================================
   CODE BLOCKS
   ========================================== */

pre, code {
    background: var(--code-bg) !important;
    font-family: var(--font-mono) !important;
    color: var(--primary-blue) !important;
}

pre {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--primary-blue-dim);
}

code {
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

pre code {
    padding: 0;
    border: none;
    background: transparent !important;
}

p code, li code {
    background: var(--code-bg) !important;
    color: var(--accent-slate) !important;
    padding: 2px 6px;
    border: 1px solid var(--border-color);
}

/* ==========================================
   LISTS
   ========================================== */

ul, ol {
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.35rem;
    color: var(--terminal-text) !important;
}

li::marker {
    color: var(--primary-blue);
}

/* ==========================================
   TABLES
   ========================================== */

table {
    background: var(--code-bg);
    border: 1px solid var(--primary-blue);
}

th, td {
    color: var(--terminal-text) !important;
    border: 1px solid var(--border-color);
}

th {
    background: var(--terminal-dark);
    color: var(--primary-blue) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background: var(--terminal-dark) !important;
    padding: 1rem 0 !important;
    margin: 0 !important;
}

.navbar-brand {
    color: var(--primary-blue) !important;
    font-family: var(--font-mono) !important;
    font-size: 1rem;
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    border-bottom: none !important;
}

.navbar-brand:hover {
    color: var(--accent-teal) !important;
    border-bottom: none !important;
}

.navbar-logo {
    max-height: 32px;
    width: auto;
    border: none !important;
    box-shadow: none !important;
}

.navbar-toggler {
    border-color: var(--primary-blue) !important;
    padding: 0.25rem 0.5rem !important;
    display: inline-block !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235B9BD5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: inline-block !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(91, 155, 213, 0.25) !important;
}

/* Ensure navbar toggler is visible on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
    }

    /* Hide navbar by default on mobile, only show when .show class is added by Bootstrap */
    .navbar-collapse:not(.show) {
        display: none !important;
    }

    .navbar-collapse.show {
        display: block !important;
    }
}

/* Desktop navigation - centered horizontal layout */
@media (min-width: 992px) {
    /* Always show navbar on desktop */
    .navbar-collapse {
        display: flex !important;
    }

    .navbar-expand-lg .navbar-collapse {
        justify-content: center !important;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .navbar-expand-lg .nav-item {
        display: inline-block !important;
    }
}

.nav-link {
    color: var(--accent-teal) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-decoration: none !important;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue) !important;
    border-bottom-color: var(--primary-blue) !important;
}

/* Mobile navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--terminal-dark);
        padding: 1rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid var(--primary-blue-dim);
    }

    .navbar-nav {
        flex-direction: column !important;
        gap: 0;
        align-items: stretch;
    }

    .nav-link {
        border-bottom: none !important;
        border-left: 2px solid transparent;
        padding: 0.75rem 1rem !important;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--primary-blue) !important;
        background: rgba(91, 155, 213, 0.1);
    }
}

/* ==========================================
   FOOTER
   ========================================== */

footer, .footer {
    background: var(--terminal-dark) !important;
    color: var(--terminal-gray) !important;
    padding: 2rem 0 !important;
    margin: 0 !important;
    margin-top: 3rem !important;
}

/* To Top Button */
.to_top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--code-bg) !important;
    border: 2px solid var(--primary-blue) !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    z-index: 1000;
}

.to_top:hover {
    background: var(--primary-blue) !important;
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-3px);
    border-bottom: 2px solid var(--primary-blue) !important;
}

.to_top svg {
    fill: var(--primary-blue);
    width: 24px;
    height: 24px;
}

.to_top:hover svg {
    fill: var(--terminal-dark);
}

.footer-heading {
    color: var(--primary-blue) !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--primary-blue) !important;
    border-left: none !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0 !important;
}

.footer-heading::before {
    content: ">> ";
    color: var(--accent-teal);
    font-family: var(--font-mono);
}

.footer-links-list {
    padding-left: 0 !important;
    list-style: none !important;
}

.footer-links-list li {
    margin: 0.5rem 0 !important;
    padding-left: 0 !important;
}

.footer-links-list li::before {
    content: "▸ ";
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.footer-links-list a {
    color: var(--accent-teal) !important;
    font-size: 0.85rem;
    text-decoration: none !important;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--primary-blue) !important;
    border-bottom-color: var(--primary-blue) !important;
    padding-left: 0.5rem;
}

.footer-about {
    color: var(--terminal-text) !important;
    line-height: 1.6;
    font-size: 0.85rem;
}

.footer-logo {
    max-width: 50px;
    height: auto;
    border: none !important;
    display: block;
    /* Multi-layer glow for radial effect */
    filter: drop-shadow(0 0 4px rgba(103, 162, 201, 0.8))
            drop-shadow(0 0 8px rgba(103, 162, 201, 0.6))
            drop-shadow(0 0 12px rgba(103, 162, 201, 0.4))
            drop-shadow(0 0 16px rgba(103, 162, 201, 0.2));
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    background: var(--code-bg);
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-social-link:hover {
    background: var(--primary-blue) !important;
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px);
    border-bottom: 1px solid var(--primary-blue) !important;
}

.footer-social-link i {
    font-size: 1.25rem;
    color: var(--accent-teal);
    display: inline-block;
    line-height: 1;
}

.footer-social-link:hover i {
    color: var(--terminal-dark) !important;
}

/* Ensure Font Awesome icons load */
.fa-brands,
.fa-solid {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
    font-weight: 400;
}

.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn, button, .button {
    background: var(--code-bg) !important;
    color: var(--primary-blue) !important;
    border: 1px solid var(--primary-blue) !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn:hover, button:hover, .button:hover {
    background: var(--primary-blue) !important;
    color: var(--terminal-dark) !important;
    box-shadow: 0 0 20px var(--glow-color);
    border-bottom: 1px solid var(--primary-blue) !important;
}

/* ==========================================
   FORMS
   ========================================== */

input, textarea, select, .form-control {
    background: var(--code-bg) !important;
    color: var(--primary-blue) !important;
    border: 1px solid var(--primary-blue) !important;
    font-family: var(--font-mono) !important;
}

input:focus, textarea:focus, .form-control:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 10px rgba(103, 162, 201, 0.3) !important;
    background: var(--code-bg) !important;
    color: var(--primary-blue) !important;
}

/* ==========================================
   IMAGES
   ========================================== */

img {
    border: 2px solid var(--accent-teal);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(103, 162, 201, 0.2);
    max-width: 100%;
    height: auto;
}

/* Badges stay inline */
img[alt*="Rating"],
img[alt*="Headers"],
img[alt*="Privacy"],
img[alt*="Badge"] {
    display: inline-block;
    margin: 0.5rem 0;
    border: 1px solid var(--primary-blue);
}

/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: var(--primary-blue);
    color: var(--terminal-dark);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    padding: 0;
}

.sidebar-card {
    background: var(--code-bg) !important;
    border: 2px solid var(--primary-blue) !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(91, 155, 213, 0.1);
    margin-bottom: 2rem !important;
}

.sidebar-card .card-body {
    padding: 0.75rem 1.5rem;
}

.sidebar-title {
    color: var(--primary-blue) !important;
    font-family: var(--font-mono) !important;
    font-size: 1rem;
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.sidebar-title::before {
    content: "$ whoami ";
    color: var(--accent-teal);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.author-photo {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-blue) !important;
    box-shadow: 0 0 15px rgba(91, 155, 213, 0.2);
}

.author-bio {
    color: var(--terminal-text) !important;
    line-height: 1.6;
}

.author-bio p {
    color: var(--terminal-text) !important;
    margin-bottom: 0.5rem;
}

.sidebar-section-title {
    color: var(--primary-blue) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono) !important;
}

.sidebar-section-title::before {
    content: ">> ";
    color: var(--accent-teal);
}

.sidebar-badge {
    background: var(--terminal-dark) !important;
    color: var(--accent-teal) !important;
    border: 1px solid var(--primary-blue-dim) !important;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-badge:hover {
    background: var(--primary-blue) !important;
    color: var(--terminal-dark) !important;
    border-color: var(--primary-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--glow-color);
}

.sidebar-badge .tag-count {
    color: var(--terminal-gray);
    font-size: 0.75rem;
}

.sidebar-badge:hover .tag-count {
    color: var(--terminal-dark);
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.btn-outline-primary:hover {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--terminal-dark) !important;
    box-shadow: 0 0 15px var(--glow-color);
}

/* ==========================================
   BLOCKQUOTES
   ========================================== */

blockquote {
    border-left: 4px solid var(--accent-slate);
    background: var(--code-bg);
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--terminal-gray) !important;
    border-radius: 4px;
}

blockquote::before {
    content: ">";
    color: var(--accent-slate);
    font-weight: bold;
    margin-right: 0.5em;
}

/* ==========================================
   HORIZONTAL RULES
   ========================================== */

hr {
    margin: 2rem 0;
    border: none;
    border-top: 2px solid var(--primary-blue);
}

/* ==========================================
   MAIN CONTENT & ARTICLES
   ========================================== */

/* Ensure containers don't cause overflow */
.container, .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force Bootstrap grid display properties - remove negative margins */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Additional override to ensure no negative margins anywhere */
.container .row,
.container-fluid .row,
div.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.row > * {
    flex-shrink: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Mobile - all columns full width */
.col-12,
.col-md-6,
.col-md-12,
.col-lg-4,
.col-lg-8 {
    width: 100% !important;
    max-width: 100% !important;
}

/* Tablet breakpoint (768px+) */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 auto !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .col-md-12 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Desktop layout (992px+) - ensure 2 column layout works */
@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 auto !important;
        width: 66.66666667% !important;
        max-width: 66.66666667% !important;
    }

    .col-lg-4 {
        flex: 0 0 auto !important;
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
}

.content-article {
    background: var(--code-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(91, 155, 213, 0.1);
}

.page-title {
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
}

.page-content {
    margin-top: 1.5rem;
}

/* Post Meta Information */
.post_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--terminal-gray) !important;
}

.post_date, .post_time {
    color: var(--terminal-gray) !important;
}

.post_share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--terminal-gray) !important;
}

.post_share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post_tag {
    background: var(--terminal-dark) !important;
    color: var(--accent-teal) !important;
    border: 1px solid var(--primary-blue-dim) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post_tag:hover {
    background: var(--primary-blue) !important;
    color: var(--terminal-dark) !important;
    transform: translateY(-2px);
}

/* SVG Icons */
.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
}

svg.hidden {
    display: none;
}

/* Posts List & Excerpts */
.posts-list {
    background: var(--code-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(91, 155, 213, 0.1);
}

.posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.posts > li {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.posts > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Excerpt Styles */
.post_item {
    list-style: none;
}

.excerpt {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.excerpt_header h3.post_link {
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.excerpt_header h3.post_link::before {
    display: none;
}

.excerpt_header h3.post_link a {
    color: var(--primary-blue) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.excerpt_header h3.post_link a:hover {
    color: var(--accent-teal) !important;
    border-bottom-color: var(--accent-teal);
}

.excerpt_footer {
    display: flex;
    gap: 1.5rem;
}

.excerpt_footer.partition {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
}

.excerpt_thumbnail {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-blue-dim);
}

.excerpt_thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.pale {
    color: var(--terminal-text) !important;
}

.pale p {
    color: var(--terminal-text) !important;
    margin-bottom: 1rem;
}

.excerpt_more {
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .excerpt_footer.partition {
        grid-template-columns: 1fr;
    }
}

/* Page List Items */
.page-list-item {
    border-bottom-color: var(--border-color) !important;
}

.page-list-item h3 a {
    color: var(--primary-blue) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-list-item h3 a:hover {
    color: var(--accent-teal) !important;
    border-bottom-color: var(--accent-teal);
}

.page-list-item .text-muted {
    color: var(--terminal-gray) !important;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-blue);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    margin: 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--terminal-dark);
    color: var(--accent-teal) !important;
    border: 1px solid var(--primary-blue-dim);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: var(--terminal-dark) !important;
    border-color: var(--primary-blue);
}

.pagination .active span {
    background: var(--primary-blue);
    color: var(--terminal-dark) !important;
    border-color: var(--primary-blue);
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.featured-image {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-blue-dim);
}

.featured-image img {
    width: 100%;
    height: auto;
}

.table-of-contents {
    background: var(--terminal-dark) !important;
    border: 1px solid var(--primary-blue-dim) !important;
}

.table-of-contents h2 {
    font-size: 0.9rem;
    margin-top: 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    padding: 0.25rem 0;
}

.table-of-contents li::before {
    content: "▸ ";
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.terminal-prompt {
    color: var(--primary-blue);
    font-family: var(--font-mono);
}

.status-ok {
    color: var(--primary-blue);
}

.status-warning {
    color: #ffaa00;
}

.status-error {
    color: var(--accent-red);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    body {
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    pre {
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .content-article {
        padding: 1.25rem;
    }

    /* Footer mobile adjustments */
    footer, .footer {
        padding: 1.5rem 0 !important;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem !important;
    }

    .footer-heading {
        text-align: center;
        margin-top: 1.5rem !important;
    }

    .footer-heading::before {
        display: none;
    }

    .footer-links-list {
        text-align: center;
    }

    .footer-links-list li::before {
        display: none;
    }

    .footer-about {
        text-align: center;
    }

    .footer-social {
        justify-content: center !important;
    }
}

/* ==========================================
   OVERFLOW FIX
   ========================================== */

html {
    width: 100% !important;
    overflow-x: hidden !important;
}

body {
    width: 100% !important;
    overflow-x: hidden !important;
}

.container,
.container-fluid,
.row {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure logos maintain their specified size */
.navbar-logo {
    max-width: 32px !important;
}

.footer-logo {
    max-width: 50px !important;
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 25, 35, 0.98);
    border-top: 1px solid var(--accent-teal);
    padding: 0.75rem 1rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    margin: 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    font-family: var(--font-mono);
}

.cookie-consent-link {
    color: var(--accent-teal);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-consent-link:hover {
    color: var(--primary-blue);
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--accent-teal);
    background: transparent;
    color: var(--accent-teal);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.cookie-btn:hover {
    background: var(--accent-teal);
    color: #0a0e17;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(103, 162, 201, 0.3);
}

.cookie-accept {
    background: var(--accent-teal);
    color: #0a0e17;
}

.cookie-accept:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.cookie-decline {
    border-color: #666;
    color: #aaa;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-consent-buttons {
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
    }
}
