:root {
    --primary-color: #ffbd59;
    --text-color: #5d525f;
    --bg-color: #f4f4f4;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color)
}

header {
    margin: 0;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

header h1 {
    font-size: 48px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px 10px 20px;
    border-radius: 10px 10px 0px 0px;
    transition: 0.2s;
    font-weight: bold;
}

nav a:hover {
    background-color: #ffffff30;
    transition: 0.2s;
}

nav a.highlighted {
    background-color: var(--bg-color);
    color: var(--text-color);
}

#container {
    display: flex;
    justify-content: center;
}

#content {
    padding: 50px;
    max-width: 1000px;
    font-size: 18px;
}

footer {
    text-align: center;
    padding: 10px;
}

footer a {
    color: #5d525f;
}

section {
    margin-bottom: 40px;
}

section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

section h4 {
    color: var(--text-color);
    margin-top: 20px;
}

.hero {
    text-align: center;
    padding: 30px;
    background-color: #e8e8e8;
    border-radius: 10px;
    margin-bottom: 30px;
}

.tagline {
    font-size: 24px;
    font-style: italic;
    color: var(--primary-color);
}

.cta {
    text-align: center;
    margin-top: 40px;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    transition: 0.3s;
}

.button:hover {
    background-color: #6c3baa;
}

.elevator-pitch {
    font-size: 20px;
    font-style: italic;
    padding: 20px;
    background-color: #e8e8e8;
    border-left: 4px solid var(--primary-color);
}

.problem-statement {
    font-size: 20px;
    padding: 20px;
    background-color: #e8e8e8;
    border-left: 4px solid var(--primary-color);
}

.problem-characteristics, .solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.process-flow {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.process-flows-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

.process-flow-panel {
    min-width: 0;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: center;
}

.risk-grid > div {
    min-width: 0;
    text-align: center;
}

.risk-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
}

.risk-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-grid > div:nth-child(3) {
        width: 100%;
    }
}

.diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 2fr));
    gap: 28px;
    align-items: start;
}

.diagram-grid figure {
    margin: 0;
    text-align: center;
}

.diagram-grid img {
    display: block;
    margin: 0 auto;
    max-width: 95%;
    height: auto;
}

.diagram-grid figcaption {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .diagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .diagram-grid {
        grid-template-columns: 1fr;
    }
}

.process-flow-panel .process-flow img {
    display: block;
    max-width: 100%;
    height: auto;
}

.zoomable, .zoomable-150, .zoomable-300 {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-origin: center center;
}

.zoomable:hover {
    transform: scale(2.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.zoomable-150:hover {
    transform: scale(1.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.zoomable-300:hover {
    transform: scale(3.0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

.process-flow p {
    margin: 10px 0;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

@media (max-width: 900px) {
    .process-flows-grid {
        grid-template-columns: 1fr;
    }
}

.mfcd, .wbs{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.component {
    padding: 20px;
    background-color: #e8e8e8;
    border-radius: 10px;
    text-align: center;
}

.component h4 {
    color: var(--primary-color);
}

.component h5 {
    color: var(--primary-color);
    margin: 4px 0;
    padding: 0;
    text-align: left;
}

.competition-table, .risk-table, .feature-table, .dependency-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.competition-table th, .competition-table td,
.risk-table th, .risk-table td,
.feature-table th, .feature-table td,
.dependency-table th, .dependency-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.competition-table th, .risk-table th, .feature-table th, .dependency-table th {
    background-color: var(--primary-color);
    color: white;
}

.competition-table tr:nth-child(even), .risk-table tr:nth-child(even), .feature-table tr:nth-child(even), .dependency-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.references li {
    margin: 15px 0;
}

.references a {
    color: var(--primary-color);
}

dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
}

dt {
    font-weight: bold;
    color: var(--primary-color);
}

dd {
    margin: 0;
    padding: 5px 0;
}

/* Stories page */
.stories-hero h2 {
    font-size: 72px;
    line-height: 0.95;
    margin: 8px 0 30px 0;
    color: #2b2730;
    font-weight: 800;
}

.stories-hero h2 span {
    display: block;
    font-size: 48px;
    color: var(--primary-color);
    font-weight: 700;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
    align-items: start;
}

.story-card {
    background-color: transparent;
    padding: 8px 12px 20px 12px;
}

.story-card h4 {
    font-size: 20px;
    color: #2b2730;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.story-card h5 {
    color: var(--primary-color);
    margin: 6px 0;
    font-size: 15px;
}

.story-card ul {
    margin: 6px 0 0 18px;
    padding: 0;
    color: var(--text-color);
}

@media (max-width: 1200px) {
    .stories-hero h2 { font-size: 56px; }
    .stories-hero h2 span { font-size: 36px; }
    .stories-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 700px) {
    .stories-hero h2 { font-size: 36px; }
    .stories-hero h2 span { font-size: 22px; }
    .stories-grid { grid-template-columns: 1fr; }
}

.centered-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}