/* Base container */
.bme-roadmap-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
    padding: 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

.roadmap-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

/* Page header & logo */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}
.bme-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

/* Header text */
.roadmap-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}
.roadmap-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}
.roadmap-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

/* Journey flow container (card style) */
.journey-flow {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 2rem 3rem;
    margin-bottom: 3rem;
}

/* Wave line refined for mockup alignment */
.wave-line {
    position: absolute;
    bottom: 28px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    opacity: 0.4;
}
@media (max-width: 768px) {
    .wave-line {
        display: none;
    }
}

/* Stage items */
.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Stage buttons */
.stage-button {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.stage-button img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}
.stage-button:hover {
    transform: scale(1.1);
}
.stage-button.active {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.stage-button.orange {
    border-color: #fb923c;
    background-color: #fed7aa;
}
.stage-button.orange:hover,
.stage-button.orange.active {
    background-color: #fb923c;
    color: white;
}
.stage-button.blue {
    border-color: #60a5fa;
    background-color: #bfdbfe;
}
.stage-button.blue:hover,
.stage-button.blue.active {
    background-color: #60a5fa;
    color: white;
}
.stage-title {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    max-width: 4rem;
}

/* Desktop layout */
.stage-buttons.desktop-layout {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
    gap: 20px;
}
.stage-buttons.desktop-layout.padded {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 2.5rem;
}

/* Mobile layout */
.stage-buttons.mobile-layout {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}
.stage-buttons.mobile-layout .row {
    display: grid;
    gap: 1rem;
}
.stage-buttons.mobile-layout .row-3 {
    grid-template-columns: repeat(3, 1fr);
}
.stage-buttons.mobile-layout .row-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
    .stage-buttons.desktop-layout {
        display: none;
    }
    .stage-buttons.mobile-layout {
        display: flex;
    }
}

/* Stage details card */
.stage-details {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
    margin-top: 2rem;
}
.stage-details-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .stage-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stage detail header */
.stage-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.stage-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    margin-right: 1rem;
    flex-shrink: 0;
}
.stage-icon.orange {
    background: #fb923c;
}
.stage-icon.blue {
    background: #60a5fa;
}
.stage-title-heading {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}
.stage-subheading {
    font-size: 1rem;
    color: #6b7280;
}

/* Stage principle and sections */
.stage-principle-box {
    background: linear-gradient(90deg, #eff6ff, #fff7ed);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}
.stage-principle-box h3,
.section-heading {
    font-weight: 700 !important;
}
.section-subheading {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.styled-list {
    list-style: none;
    padding-left: 0;
}
.styled-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}
.styled-list li::before {
    content: '';
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    top: 0.5rem;
    left: 0;
    border-radius: 9999px;
    background-color: #3b82f6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix stage button overflow on mobile */
@media (max-width: 768px) {
    .journey-flow {
        padding: 1.5rem 1rem 2rem;
    }
    .stage-buttons.mobile-layout {
        gap: 1rem;
    }
    .stage-item {
        opacity: 1;
    }
    .stage-button {
        width: 4rem;
        height: 4rem;
    }
    .stage-title {
        max-width: 3.5rem;
        font-size: 0.75rem;
    }
}

/* Roadmap CTA Section (stack text + button) */
.roadmap-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}
.roadmap-cta .cta-text {
    font-size: 1.125rem;
    color: #1f2937;
    margin: 0 auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* space between text and button */
}
.roadmap-cta .cta-button {
    display: inline-block;
    background: #3b82f6;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.roadmap-cta .cta-button:hover {
    background: #2563eb;
}

/* Footer links */
.roadmap-footer-links {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    padding-bottom: 2rem; /* space under link */
}
.roadmap-footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}
.roadmap-footer-links a:hover {
    color: #1f2937;
}
