body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
}

nav {
    background: #003366;
    padding: 15px 25px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 25px;
    font-weight: 600;
}

nav a:hover {
    color: #80c0ff;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

.card,
.section-card {
    background: white;
    margin: 20px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

h1,
h2 {
    color: #003366;
}

/* Architecture Flow */

.architecture-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flow-box {
    width: 300px;
    background: #0b3b78;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.flow-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.arrow {
    font-size: 28px;
    color: #0b3b78;
}

/* Documentation Cards */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.doc-card {
    background: #0b3b78;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*min-height: 550px;*/
}

.doc-card:hover {
    transform: translateY(-5px);
    transition: .2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.doc-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: white;
}

.doc-card h3 {
    margin: 20px 20px 10px;
    color: white;
}

.doc-card p {
    padding: 0 20px;
    line-height: 1.5;
}

.doc-card ul {
    /*padding: 0 40px;*/
    flex-grow: 1;
}

.doc-card li {
    margin-bottom: 8px;
}

.btn {
    display: block;
    margin: 20px;
    text-align: center;
    padding: 12px;
    background: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn:hover {
    background: #005ea6;
}

/* Gallery */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.9);
}

.modal img {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: 2% auto;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .flow-box {
        width: 90%;
    }
}
.zoomable {
    cursor: zoom-in;
}

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#lightboxImage {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 8px;
}