:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --primary-accent: #58a6ff;
    --text-main: #c9d1d9;
    --text-dim: #8b949e;
    --border-color: #30363d;
    --code-bg: #1b1f2c;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- THE SHARED ALIGNMENT CONTAINERS --- */
.header-container, 
.content-section,
.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}
.footer-badges {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Container for the label + the logos */
.badge-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The "Official Associate" or "Certification" top text */
.group-header {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    padding-bottom: 2px;
    display: block;
}

/* Horizontal layout for items within a group */
.group-items {
    display: flex;
    gap: 25px;
}

.footer-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.footer-badge-item img {
    height: 35px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s ease;
}

.footer-badge-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.badge-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile: Stack groups and items */
@media (max-width: 600px) {
    .footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .group-header {
        text-align: center;
    }

    .group-items {
        justify-content: center;
    }
}

/* --- HEADER --- */
.site-header {
    width: 100%;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.brand-box {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1rem;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.site-nav {
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-nav a:hover {
    color: var(--primary-accent);
}

/* --- HERO & HEADINGS (The "mini-hero" logic) --- */
.content-section {
    flex: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-mini {
    margin-bottom: 3rem;
}

.main-heading {
    font-size: 3rem; 
    color: var(--text-dim); 
    border: none !important; /* Overrides default h2 border */
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.accent-subtitle {
    color: var(--primary-accent);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* --- GRID & CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.btn-grid {
    grid-template-columns: repeat(auto-fit, min-content);
    justify-content: start;
    gap: 1.5rem;
}

.btn-grid .cta-container {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.feature-card, .blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-accent);
}

/* --- BLOG & PRODUCT SPECIFICS --- */
.blog-card {
    border-left: 4px solid var(--primary-accent);
    margin-bottom: 2rem;
}

.step-box {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-accent);
    margin: 1.5rem 0;
}

pre {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 1rem 0 2rem 0;
}

.filename {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: monospace;
    display: block;
    margin-bottom: -0.5rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-accent);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* --- HERO CONTENT (Home page) --- */
.hero-content {
    margin-bottom: 3rem;
}

.hero-container {
    display: flex;
    align-items: center; /* Centers logo vertically with the text */
    gap: 40px;           /* Space between logo and text */
    margin-bottom: 3rem;
    max-width: 1100px;
}

.hero-logo img {
    width: 200px;
    height: auto;
}

.hero-text {
    flex: 1;             /* Allows text to take up remaining space */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-logo img {
        width: 150px;    /* Smaller logo on mobile */
    }
}

.main-subtext {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 720px;
}

/* --- BLOG FEED --- */
.blog-feed {
    margin-top: 1rem;
}

.post-count {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.blog-card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-accent);
}

.blog-card-excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.read-more {
    color: var(--primary-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* --- PRODUCT PAGE --- */
.product-info h2 {
    color: var(--text-main);
    margin-top: 2.5rem;
}

.lead-text {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 720px;
}

.text-accent {
    color: var(--primary-accent);
}

/* --- GALLERY (Product page) --- */
/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.caption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--card-bg);
}


/* Blog Layout Wrapper */
.blog-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Left column: heading + feed */
.blog-main {
    flex: 3;
    min-width: 0;
}

.blog-feed { flex: 3; }

.blog-sidebar { 
    flex: 1; 
    min-width: 260px;
    position: sticky;
    top: 2rem;
}

/* Sidebar Specifics */
.sidebar-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-accent); /* Matches your blog-card style */
}

.sidebar-header {
    color: var(--primary-accent);
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar search input */
.sidebar-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
}

.sidebar-search::placeholder {
    color: var(--text-dim);
}

.sidebar-search:focus {
    border-color: var(--primary-accent);
}

/* Scrollable area inside sidebar boxes */
.sidebar-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-color);
}

.tag-item:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Post Meta Row (date left, categories/tags right) */
.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.post-meta-date {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.post-meta-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-meta-taxonomy .tag-item {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-color);
}

.post-meta-taxonomy .tag-item:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .blog-main {
        width: 100%;
    }
    .blog-sidebar {
        min-width: 0;
        width: 100%;
        position: static;
    }
}

/* --- SYNTAX HIGHLIGHTING (Rouge - Dark Theme) --- */
span.highlight {
    color: var(--primary-accent);
    font-weight: 600;
}

/* Rouge wrapper generated by Jekyll */
div.highlight,
figure.highlight {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1rem 0 2rem 0;
    color: var(--text-main);
    font-weight: normal;
}

div.highlight pre,
figure.highlight pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: inherit;
}

div.highlight code,
figure.highlight code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* --- Token Colors (Dark+ / Monokai inspired) --- */
.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cs    { color: #6a9955; font-style: italic; } /* Comments */
.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr    { color: #569cd6; }                     /* Keywords */
.highlight .kt     { color: #4ec9b0; }                     /* Keyword Type */
.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sb,
.highlight .sc,
.highlight .sh     { color: #ce9178; }                     /* Strings */
.highlight .si     { color: #d7ba7d; }                     /* String Interpolation */
.highlight .sr     { color: #d16969; }                     /* Regex */
.highlight .na     { color: #9cdcfe; }                     /* Name Attribute (YAML keys) */
.highlight .nb     { color: #dcdcaa; }                     /* Builtin Name */
.highlight .nc     { color: #4ec9b0; }                     /* Class Name */
.highlight .nf,
.highlight .fm     { color: #dcdcaa; }                     /* Function Name */
.highlight .ni     { color: #d4d4d4; }                     /* Entity */
.highlight .nn     { color: #4ec9b0; }                     /* Namespace */
.highlight .no     { color: #4fc1ff; }                     /* Constant */
.highlight .nv,
.highlight .vi,
.highlight .vc,
.highlight .vg,
.highlight .vm     { color: #9cdcfe; }                     /* Variables */
.highlight .o,
.highlight .ow     { color: #d4d4d4; }                     /* Operator */
.highlight .p      { color: #d4d4d4; }                     /* Punctuation */
.highlight .m,
.highlight .mi,
.highlight .mf,
.highlight .mh,
.highlight .mo     { color: #b5cea8; }                     /* Numbers */
.highlight .err    { color: #f44747; }                     /* Error */
.highlight .ge     { font-style: italic; }                 /* Generic Emph */
.highlight .gs     { font-weight: bold; }                  /* Generic Strong */
.highlight .l,
.highlight .ld     { color: #ce9178; }                     /* Literal */
.highlight .se     { color: #d7ba7d; }                     /* String Escape */
.highlight .dl     { color: #ce9178; }                     /* String Delimiter */
.highlight .ss     { color: #ce9178; }                     /* Symbol */
.highlight .bp     { color: #569cd6; }                     /* Builtin Pseudo */
.highlight .gd     { color: #f44747; }                     /* Diff Deleted */
.highlight .gi     { color: #4ade80; }                     /* Diff Inserted */
.highlight .gh     { color: #569cd6; font-weight: bold; }  /* Diff Heading */
.highlight .nt     { color: #569cd6; }                     /* Tag Name */
.highlight .w      { color: var(--text-main); }            /* Whitespace */

/* Inline <code> styling */
code {
    background: var(--code-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: monospace;
}

/* --- COVERAGE COLORS (Blog post) --- */
.coverage-green {
    color: #4ade80;
    font-weight: bold;
}

.coverage-red {
    color: #f87171;
    font-weight: bold;
}

.coverage-blue {
    color: #60a5fa;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--text-dim);
    font-size: 0.85rem;
}