body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

/* Header */
.header {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    border-bottom: 1px solid #e5e7eb;
}

.header h1 {
    margin: 0;
    font-size: 38px;
    color: #0f172a;
}

.header p {
    margin-top: 10px;
    color: #475569;
    font-size: 16px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav a {
    color: #334155;
    margin: 5px 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

.nav a:hover {
    color: #0284c7;
}

.nav i {
    margin-right: 6px;
}

/* Sections */
.section {
    padding: 70px 20px;
    max-width: 1050px;
    margin: auto;
}

.section.alt {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

h2 {
    margin-bottom: 20px;
    font-size: 26px;
    color: #0f172a;
}

/* Text */
p {
    color: #475569;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: #ffffff;
    padding: 22px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0284c7;
}

/* Document Cards */
.doc-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    text-decoration: none;
    color: #1f2937;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: 0.2s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.doc-card i {
    font-size: 30px;
    margin-bottom: 10px;
    color: #0284c7;
}

/* Icon Lists */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    margin: 10px 0;
    font-size: 15px;
    color: #334155;
}

.icon-list i {
    margin-right: 10px;
    color: #0284c7;
}

/* Contact */
.contact-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 520px;
    margin: auto;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.contact-card p {
    margin: 10px 0;
}

.contact-card i {
    margin-right: 8px;
    color: #0284c7;
}

.contact-card a {
    color: #0284c7;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Diagrams (IMPORTANT FIX FOR CLARITY) */
.diagram-block {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.diagram-block h3 {
    margin-bottom: 15px;
    color: #0f172a;
    font-size: 18px;
}

.diagram-block img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
}