﻿:root {
    --royal-blue: #0039A6;
    --brand-yellow: #FFD700;
}

/* ---------- Base typography ---------- */
.engineer-legacy {
    font-family: 'Georgia',serif;
    line-height: 1.6;
    color: #333;
}

    .engineer-legacy h1 {
        color: #2c3e50;
        text-align: center;
        margin-bottom: 10px;
        font-size: 2.2em;
    }

    .engineer-legacy .subtitle {
        text-align: center;
        font-style: italic;
        color: #7f8c8d;
        margin-bottom: 30px;
    }

    .engineer-legacy h2 {
        color: #34495e;
        border-bottom: 2px solid #ecf0f1;
        padding-bottom: 10px;
        margin-top: 40px;
    }

/* ---------- Accent blocks ---------- */
.brand-connection,
.aviation-context {
    background: #f0f8ff;
    border-left: 4px solid var(--royal-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-weight: 500;
}

    .aviation-context h4 {
        margin-top: 0;
        color: var(--royal-blue);
    }

.engineering-note {
    background: #e8f5e8;
    border: 1px solid #27ae60;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: .95em;
}

    .engineering-note::before {
        content: "⚙️ ";
        font-weight: bold;
    }

.it-parallel {
    background: #e3f2fd;
    border-left: 4px solid var(--royal-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
}

    .it-parallel::before {
        content: "💻 ";
        font-weight: bold;
    }

.safety-highlight {
    background: #e3f2fd;
    border-left: 4px solid var(--royal-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

    .safety-highlight::before {
        content: "⚠️ ";
        font-weight: bold;
    }

.final-insight {
    background: #fffde7;
    border-left: 4px solid var(--brand-yellow);
    padding: 15px;
    margin: 25px 0 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    font-style: italic;
    transition: transform .3s ease;
}

    .final-insight:hover {
        transform: translateY(-3px);
    }

/* Quotes / HR -------------------------------------------------------- */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--royal-blue);
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right,transparent,#bdc3c7,transparent);
    margin: 30px 0;
}

/* Story-final container --------------------------------------------- */
.story-final {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #dee2e6;
}

/* Images ------------------------------------------------------------- */
.img-center {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.img-constrained {
    max-width: 600px;
}

.img-constrained-30 {
    max-width: 400px;
}

.img-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
    font-size: .9em;
}

/* CTA button --------------------------------------------------------- */
.cta-button {
    display: inline-block;
    background: var(--royal-blue);
    color: var(--brand-yellow);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: all .3s ease;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .cta-button:hover {
        background: #002B7F;
        color: var(--brand-yellow);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,57,166,.3);
    }

    .cta-button:active {
        transform: translateY(0);
    }

/* Estimation callout ------------------------------------------------- */
.estimation-callout {
    background: linear-gradient(135deg,#f8f9fa 0%,#ebf1ff 100%);
    border: 2px solid var(--royal-blue);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}

    .estimation-callout:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,var(--royal-blue),#002B7F,var(--royal-blue));
    }

    .estimation-callout h3 {
        margin-top: 0;
        color: #2c3e50;
        font-size: 1.6em;
        margin-bottom: 20px;
    }

.engineering-badge {
    display: inline-block;
    background: var(--royal-blue);
    color: var(--brand-yellow);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: .8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Grid cards --------------------------------------------------------- */
.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
    margin: 25px 0;
    text-align: left;
}

.responsibility-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--royal-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: transform .2s ease;
}

    .responsibility-item:hover {
        transform: translateY(-3px);
    }

    .responsibility-item h4 {
        margin: 0 0 10px 0;
        color: #2c3e50;
        display: flex;
        align-items: center;
    }

        .responsibility-item h4::before {
            content: "⚙️";
            margin-right: 10px;
            font-size: 1.2em;
        }

    .responsibility-item p {
        margin: 0;
        color: #666;
        line-height: 1.5;
    }

/* Yellow legacy highlight ------------------------------------------- */
.legacy-connection {
    background: #fffde7;
    border-left: 4px solid var(--brand-yellow);
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    font-style: italic;
    position: relative;
}

    .legacy-connection::before {
        content: "👨‍👦 ";
        font-size: 1.2em;
        margin-right: 10px;
    }

/*------------------------------------------------------------------------------*/
.logbook-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.document-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .document-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0,57,166,0.2);
        border-color: var(--royal-blue);
    }

    .document-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.card-label {
    padding: 12px 15px;
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* ================== LIGHTBOX STYLES ================== */
.logbook-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow-y: auto;
}

.lightbox-content {
    position: relative;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    background: rgba(0,0,0,0.7);
    border: none;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .lightbox-close:hover {
        background: rgba(0,0,0,0.9);
    }

.logbook-image {
    width: 100%;
    height: auto;
    display: block;
}

.translation-section {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 3px solid var(--royal-blue);
}

    .translation-section h4 {
        margin: 0 0 20px 0;
        color: var(--royal-blue);
        font-size: 1.3em;
        border-bottom: 2px solid #dee2e6;
        padding-bottom: 10px;
    }

.translation-content {
    line-height: 1.6;
}

    .translation-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }

        .translation-content table th,
        .translation-content table td {
            border: 1px solid #dee2e6;
            padding: 10px;
            text-align: left;
        }

        .translation-content table th {
            background: var(--royal-blue);
            color: white;
            font-weight: 600;
        }

.key-finding {
    background: #e3f2fd;
    border-left: 4px solid var(--royal-blue);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-style: italic;
}

.engineer-legacy h2,
.engineer-legacy h3 {
    text-align: center;
}

/* ================== RESPONSIVE DESIGN ================== */
@media (max-width: 1024px) {
    .logbook-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .logbook-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lightbox-content {
        width: 98%;
        margin: 1% auto;
    }

    .translation-section {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .logbook-grid {
        grid-template-columns: 1fr;
    }
}

