
.guide-content {
    margin: 0;
    padding: 40px;
}

.guide-content h1 {
    margin: 0 0 30px 0;
    line-height: 1.6em;
    font-size: 1.5em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    font-weight: 400;
    text-size-adjust: 100%;
}

.guide-content h2 {
    margin: 2rem 0 1rem;
    line-height: 1.4em;
    font-size: 1.2em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    font-weight: 300;
    text-size-adjust: 100%;
}

.guide-content h3 {
    margin: 1.5rem 0 1rem;
    line-height: 1.4em;
    font-size: 0.9em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    font-weight: 400;
    text-size-adjust: 100%;
}

.guide-content p {
    margin: 10px 0;
    padding: 0;
    line-height: 1.6em;
    font-size: 0.8em;
    font-weight: 200;
}

.guide-content ul {
    margin: 10px 0 10px 5px;
    padding: 0;
    list-style-position: inside;
}

.guide-content li {
    padding: 5px 0;
    font-size: 0.8em;
    font-weight: 200;
}

.guide-content a {
    text-decoration: none;
    color: #1b70a2;
}

.guide-content a:hover span {
    border-bottom: #DEF7FF 1px dotted;
}

.guide-bottom {
    margin-top: 3rem;
    padding: 1rem 0 2rem;
    border-top: #36A0D9 1px solid;
}

/* Diagram styling */
.diagram-container {
    text-align: center;
    margin: 1.5rem 0;
    padding: 2rem 0 1rem;
    background-color: #F7FDFF;
}

.diagram-image {
    max-width: 600px;  /* Display size in guide */
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.diagram-image.clickable {
    cursor: pointer;
}

.diagram-image.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 50, 68, 0.9);
    animation: fadeIn 0.3s;
}

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

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .lightbox {
        padding: 20px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .diagram-image {
        max-width: 100%;
    }
}