/* Chain Pages - Dedicated Styles */
body:has(.roadmaps-page) {
    padding-top: 40px !important;
}

.roadmaps-page {
    min-height: calc(100vh - 80px);
    padding-top: 0;
    margin-top: -40px;
}

/* Hero Section */
.roadmap-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
}

.roadmap-hero-content {
    max-width: 750px;
}

.roadmap-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0a0a0a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.roadmap-hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 0;
    text-align: center;
}

/* Hero Image with Glow Effect */
.hero-image-roadmap {
    position: relative;
}

.image-wrapper-roadmap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-wrapper-roadmap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.image-glow-roadmap {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 159, 88, 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .roadmap-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .roadmap-hero-content {
        max-width: 100%;
    }

    .roadmap-hero-content h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .roadmap-hero {
        padding: 3rem 1.25rem;
        gap: 2rem;
    }

    /* Logo + Title container */
    .roadmap-hero-content>div:first-child {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .roadmap-hero-content h1 {
        font-size: 1.75rem !important;
        text-align: center;
    }

    .roadmap-hero-content p {
        font-size: 1rem !important;
    }

    /* Endpoint card mobile fixes */
    .roadmap-hero-content>div[style*="background: #f8fafc"] {
        padding: 1rem !important;
        position: relative !important;
    }

    /* Endpoint URL */
    .roadmap-hero-content code {
        font-size: 0.75rem !important;
        padding-right: 0 !important;
        margin-bottom: 1rem !important;
        word-break: break-all !important;
        white-space: normal !important;
    }

    /* Buttons container - move below URL */
    .roadmap-hero-content>div[style*="background: #f8fafc"]>div:last-child {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
        margin-top: 1rem !important;
    }

    /* Individual buttons */
    .roadmap-hero-content a[href*="docs.grove.city"],
    .roadmap-hero-content button[onclick*="clipboard"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Logo size on mobile */
    .roadmap-hero-content img[alt*="logo"] {
        width: 48px !important;
        height: 48px !important;
    }

    .image-wrapper-roadmap img {
        height: 250px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .roadmap-hero {
        padding: 2rem 1rem;
    }

    .roadmap-hero-content h1 {
        font-size: 1.5rem !important;
    }

    .roadmap-hero-content p {
        font-size: 0.9375rem !important;
    }

    .roadmap-hero-content code {
        font-size: 0.7rem !important;
    }

    /* Logo size on small mobile */
    .roadmap-hero-content img[alt*="logo"] {
        width: 40px !important;
        height: 40px !important;
    }

    .image-wrapper-roadmap img {
        height: 200px;
    }
}