/* ==========================================================================
   LatinosPC - Controllers & System Logic Guide Stylesheet
   Preserves the high-tech microchip texture, circuit pins, and glowing green traces.
   ========================================================================== */

/* Main Container & Base Typography */
.article.fullbar,
article.article.fullbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3.5rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

/* Page Heading & Navigation Link */
article a:has(h1),
article a:first-of-type {
    text-decoration: none;
    display: block;
}

article h1 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.5rem 0 1.5rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

article a:hover h1 {
    color: #2563eb;
    transform: translateY(-1px);
}

article h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.85rem 0;
}

/* Intro Orchestra Card */
.spacer_shape {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
    clear: both;
}

.spacer_shape p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin: 0.5rem 0;
}

/* Floating Imagery */
.carousel-group.fl {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.thumbnail-container img {
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

/* High-Tech Circuit Board Section (.modern_list) */
.modern_list {
    background-color: #0f172a;
    background-image: linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.94)), url("../images/hardware/hw/controllers/texture.webp");
    background-size: cover;
    border: 1.5px solid #1e293b;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.colms2 {
    columns: 2;
    column-gap: 1.5rem;
    column-fill: balance;
}

/* Microchip IC Fieldset Modules */
.modern_list fieldset {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1.5px solid #22c55e; /* Glowing PCB Trace Accent */
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern_list fieldset:hover {
    transform: translateY(-2px);
    border-color: #4ade80;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.modern_list legend {
    background: #022c22;
    color: #86efac;
    border: 1.5px solid #22c55e;
    border-radius: 9999px;
    padding: 4px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.modern_list p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin: 0.5rem 0;
}

/* Microchip Pins */
.modern_list p::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background-color: #94a3b8;
    border-radius: 50%;
    box-shadow: 0 0 6px #86efac;
}

/* Three-Column Section (.colms) */
.colms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.colms li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Responsive */
@media (max-width: 768px) {
    article h1 {
        font-size: 1.85rem;
    }
    .colms2 {
        columns: 1;
    }
    .carousel-group.fl {
        float: none;
        margin: 1rem auto;
        text-align: center;
    }
}
