/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --body-bg: #2D2D2D;
    --body-color: #CCCCCC;
    --sidebar-bg: #161616;
    --sidebar-color: #FFFFFF;
    --accent-color: #0E78E3;
    --accent-color-hover: rgba(14, 120, 227, 0.8);
    --border-color: #3A3A3A;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --gray-text: #999999;
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
    --font-family-heading: 'Roboto Slab', Helvetica, Arial, sans-serif;
    --font-weight: 400;
    --font-weight-bold: 700;
    --font-weight-heading: 900;
    --sidebar-width: 345px;
    --content-max-width: 900px;
    --border-radius: 0.5rem;
    --transition-speed: 0.3s;
}

html {
    font-size: 15px;
    line-height: 1.75;
    scrollbar-gutter: stable;
    background: var(--body-bg);
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    color: var(--body-color);
    background-color: var(--body-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #cccccc;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.08rem; }
h5 { font-size: 1.04rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 0.35rem;
    text-decoration-thickness: 2px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.15rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    transition: background var(--transition-speed), transform var(--transition-speed);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    appearance: none;
}

.btn-link:hover {
    background: var(--accent-color-hover);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1250px;
    padding: 0 4rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease, width var(--transition-speed) ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #161616 0%, #2D2D2D 100%);
    opacity: 0.3;
    pointer-events: none;
}

.sidebar-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

.sidebar-content > * {
    pointer-events: auto;
    cursor: default;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: border-color var(--transition-speed);
}

.avatar:hover {
    border-color: var(--accent-color);
}

.site-title {
    color: var(--sidebar-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.site-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
}

.sidebar-nav {
    width: 100%;
    max-width: 280px;
    margin: 2rem auto;
    text-align: center;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-weight-bold);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
    text-decoration: none;
    transform: translateX(0);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(4px);
    text-decoration: none;
}

.sidebar-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    z-index: 9999;
    background: transparent;
}

.sidebar:hover .sidebar-resize-handle {
    opacity: 1;
}

.sidebar-social {
    margin-top: auto;
    padding-bottom: 1rem;
    position: sticky;
    bottom: 1rem;
    overflow: visible;
}

.sidebar-social ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;

    margin: 0;
    padding: 0;

    flex-wrap: wrap;
}

.sidebar-social li {
    flex: 0 0 3rem;
}

.sidebar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed);
    text-decoration: none;
}

.sidebar-social a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.detail-page .content-section {
    padding-top: 0.5rem;
    width: 100%;
}

.detail-page .container {
    max-width: none;
}

.image-detail {
    width: 100%;
    max-width: 1080px;
}

.detail-page .breadcrumbs-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 0 0.25rem;
}

.detail-nav {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    gap: 0.5rem;
    align-items: center;

    min-width: 6rem;
}

.detail-page .section-header h1 {
    margin-bottom: 0.9rem;
}

.detail-page .breadcrumbs-container {
    margin-bottom: 0.15rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.detail-page .breadcrumbs-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-page .lead {
    display: none;
}

.detail-page .image-detail {
    margin-top: 0.5rem;
}
.detail-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0;
    align-items: center;
    align-self: flex-start;
}

.breadcrumbs-container {
    align-items: flex-start;
    min-height: 2.6rem;
}

.detail-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform var(--transition-speed), background var(--transition-speed);
}

.detail-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.detail-nav a.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.top-nav {
    position: relative;
    height: 64px;
    background: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    z-index: 900;
    width: 100%;
}

.breadcrumbs-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--gray-text);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.breadcrumbs a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

.breadcrumbs .breadcrumb-sep {
    color: var(--gray-text);
}

.detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-text);
    align-items: center;
}

.detail-meta-bar a.meta-gallery {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.detail-meta-bar a.meta-gallery:hover {
    text-decoration: underline;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.meta-item svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

.sidebar-toggle {
    position: relative;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 22px;
    height: 16px;

    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;

    z-index: 3000;
}

.sidebar-toggle span {
    width: 100%;
    height: 2px;
    background: #cccccc;
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.sidebar-toggle:hover span {
    background: var(--accent-color);
}

body {
    visibility: hidden;
}

body.ready {
    visibility: visible;
}

.page-title {
    font-size: 1.5rem;
    color: var(--body-color);
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-heading);
}

.content-section {
    display: none;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.detail-page .content-section {
    padding-top: 0.75rem;
}

.detail-page .section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.detail-page .section-header h1 {
    margin-bottom: 0.75rem;
}

.detail-page .section-header .lead {
    margin: 0 0 1.5rem;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-header h1 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: var(--body-color);
    letter-spacing: -0.02em;
}

.section-header .lead {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.section-header.centered h1 {
    text-align: center;
}



.tags {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(120, 120, 120, 0.1);
    color: var(--body-color);
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    cursor: pointer;
}

.tag:hover,
.tag.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.gallery-grid {
    display: grid;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    position: relative;
}

.gallery-grid.is-filtering .gallery-item,
.gallery-grid.is-filtering .gallery-image {
    transition: none !important;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    height: 100%;

    transition: transform 0.25s ease, border-color var(--transition-speed);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-decoration: none;
}

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

.gallery-item.hidden {
    display: none;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--card-bg);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-image.loaded {
    opacity: 1;
}

.gallery-info {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-align: center;

    flex-grow: 1;
}

.gallery-info h3 {
    margin-bottom: 0.5rem;
    color: var(--body-color);
    line-height: 1.3;
}

.gallery-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.guides-list {
    display: contents;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    align-items: stretch;
}

@media (min-width: 1700px) {
    body {
        padding-right: calc(var(--sidebar-width) / 2);
    }
}

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

.home-view-all {
    text-align: center;
    margin: 1.5rem 0 0;
}

.home-section-gap {
    margin-top: 3rem;
}


.guide-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    height: 100%;

    transition: transform 0.25s ease, border-color var(--transition-speed);
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-decoration: none;
}

.guide-card.hidden {
    display: none;
}

.guide-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--card-bg);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.guide-image.loaded {
    opacity: 1;
}

.guide-card:hover .guide-image {
    transform: scale(1.03);
}

.detail-image:not(.portrait) {
    width: 100%;
    object-fit: cover;
}

.detail-image.portrait {
    max-height: 90vh;
    width: auto;
    display: block;
    margin: 0 auto;
}

.guide-content {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1;
}

.guide-content h3 {
    color: var(--body-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.guide-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.guide-card:hover h3,
.guide-card:hover p,
.gallery-item:hover h3,
.gallery-item:hover p {
    text-decoration: none;
}

.gallery-image {
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.software-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    text-align: center;
}

.software-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.software-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.software-card p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.flatpanel-page .about-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flatpanel-page .about-text {
    max-width: 860px;
    margin: 0 auto;
}

.flatpanel-page .about-text h2 {
    color: var(--accent-color);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.flatpanel-page .about-text ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.flatpanel-page .about-text li {
    border: none;
    padding: 0.75rem 0;
    color: var(--body-color);
}

.flatpanel-page hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.flatpanel-page .btn-link {
    display: block;
    margin: 2.25rem auto 0;
    width: fit-content;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--body-color);
}

.about-text figure {
    margin-top: 2rem;
}

.box-subtitle {
    color: var(--gray-text);
    margin: 0 0 1rem;
    font-weight: 600;
}

.about-text figure figcaption {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.6;
}

.about-text h3 {
    color: var(--accent-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-text);
}

.about-text li:last-child {
    border-bottom: none;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--body-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--body-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 10rem;
}

.contact-form button {
    width: fit-content;
    justify-self: center;
}

.contact-note {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.contact-feedback {
    color: var(--accent-color);
    margin-top: 0.5rem;
    font-weight: 600;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--body-color);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.contact-link:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    text-decoration: none;
    transform: translateY(-2px);
}

@media (min-width: 1200px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }

    .sidebar-overlay {
        display: none;
    }
}


@media (max-width: 1200px) {
    .gallery-grid,
    .guides-list,
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-right: 0;
    }

    .gallery-grid,
    .guides-list,
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .guide-card {
        width: 100%;
        max-width: 100%;
        margin-right: 0;
    }

    .software-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 1rem;
    }
    
    .sidebar-content {
        padding: 1.5rem;
    }
    
    .software-card {
        padding: 1.5rem;
    }
    
    .guide-content {
        padding: 1rem;
    }
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 5000;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.96);
    color: var(--body-color);
    align-items: center;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--body-color);
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.cookie-banner button {
    color: inherit;
    padding: 0.65rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    font-weight: 700;
    transition: background var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.cookie-banner button:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.cookie-banner .cookie-accept {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.cookie-banner .cookie-decline {
    background: transparent;
}

@media (max-width: 720px) {
    .cookie-banner {
        grid-template-columns: 1fr;
        left: 0.75rem;
        right: 0.75rem;
    }
    .cookie-actions {
        justify-content: flex-start;
    }
    .cookie-banner button {
        width: 100%;
    }
}

.content-section {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

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

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

.detail-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.image-detail {
    max-width: 1080px;
}

.detail-actions {
    text-align: center;
    margin: 2rem 0 2.5rem 0;
}

.detail-image.portrait {
    width: auto;
    max-width: 70%;
    margin: 0 auto 2rem auto;
    display: block;
}

.image-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.acquisition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.acquisition-table th,
.acquisition-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.acquisition-table th {
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.acquisition-table td {
    color: var(--gray-text);
}

.acquisition-table .total-row td {
    color: var(--body-color);
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.equipment-list {
    list-style: none;
    padding-left: 0;
}

.equipment-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-text);
}

.equipment-list li:last-child {
    border-bottom: none;
}

.info-section p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-section p:last-child {
    margin-bottom: 0;
}

.back-button {
    text-align: center;
    margin-top: 2rem;
}

.guide-detail {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-detail-image-container {
    margin-bottom: 3rem;
}

.guide-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.guide-detail-content {
    color: var(--body-color);
    font-size: 1.05rem;
    line-height: 1.8;
    width: 100%;
}

.guide-detail-content h2 {
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
}

.guide-detail-content p {
    margin-bottom: 1.5rem;
    color: var(--body-color);
}

.guide-detail-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.guide-detail-content li {
    padding: 0.35rem 0;
    color: var(--body-color);
    line-height: 1.7;
}

.guide-card:hover h3,
.guide-card:hover p {
    text-decoration: none;
}

.guide-card:hover .guide-image {
    transform: scale(1.03);
}

@media (max-width: 1200px) {

    body {
        padding-right: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

}

@media (max-width: 768px) {
    .guide-detail-content {
        font-size: 1rem;
    }
    
    .guide-detail-content h2 {
        font-size: 1.4rem;
    }
}

.guide-detail-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.guide-detail-content ol li {
    padding: 0.35rem 0;
    line-height: 1.7;
    color: var(--body-color);
}

.guide-detail-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    color: var(--accent-color);
}

.guide-detail-image {
    width: 100%;
    max-width: 850px;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}
.guide-detail-content pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.guide-detail-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--body-color);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.sequence-structure {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.sequence-structure h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
}

.sequence-structure ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.sequence-structure ul:last-child {
    margin-bottom: 0;
}

.sequence-structure li {
    padding: 0.4rem 0;
    color: var(--body-color);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.sequence-structure .indent-1 {
    padding-left: 1.5rem;
}

.sequence-structure .indent-2 {
    padding-left: 3rem;
}