html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
    /* Ensure full width */
}

.roadmap-hero {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    padding: 10rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roadmap-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1516116216624-53e697fedbea?ixlib=rb-1.2.1&auto=format&fit=crop&w=2850&q=80') center/cover;
    opacity: 0.1;
}

.roadmap-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.github-search-container {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

.github-search-bar {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.github-search-bar:hover,
.github-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.github-search-bar i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-right: 12px;
}

.github-search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: white;
    padding: 0;
}

.github-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#roadmap-search {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #1f2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto 0;
    display: block;
}

#roadmap-search::placeholder {
    color: #6b7280;
}

#roadmap-search:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    background: white;
}

.roadmap-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #e0f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roadmap-filters {
    margin: 2rem 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.roadmap-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.roadmap-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 70, 229, 0.1);
}

.roadmap-card:hover::before {
    opacity: 1;
}

.roadmap-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.roadmap-card h3 i {
    font-size: 1.25rem;
    color: #4f46e5;
    opacity: 0.9;
}

.roadmap-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.roadmap-card:hover::before {
    opacity: 1;
}

.roadmap-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.roadmap-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tag.beginner {
    background: #dcfce7;
    color: #166534;
}

.tag.intermediate {
    background: #f1f5f9;
    color: #475569;
}

.tag.advanced {
    background: #fee2e2;
    color: #991b1b;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 60px 20px;
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: auto;
    padding: 20px;
}

.modal img {
    max-width: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-origin: 0 0;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #000;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.zoom-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1001;
}

.zoom-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-effect.image-error {
    opacity: 1;
    background-color: rgba(255, 0, 0, 0.7);
}

.ad-placement {
    text-align: center;
    margin: 1rem 0;
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    object-fit: contain;
    display: inline-block;
    cursor: pointer;
    box-sizing: border-box;
}

/* Article Section Styles */
.challenge-article {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.challenge-article h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.challenge-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4f46e5;
    border-radius: 2px;
}

.challenge-article section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.challenge-article h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-article h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #4f46e5;
    border-radius: 2px;
}

.challenge-article p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.challenge-article ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.challenge-article li {
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.challenge-article li::before {
    content: '→';
    color: #4f46e5;
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* Responsive Ad Styling */
@media (max-width: 768px) {

    .roadmap-article {
        padding: 2rem 0;
    }

    .roadmap-article h2 {
        font-size: 2rem;
    }

    .roadmap-article h3 {
        font-size: 1.5rem;
    }

    .roadmap-article h4 {
        font-size: 1.2rem;
    }

    .article-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {

    .roadmap-article h2 {
        font-size: 1.8rem;
    }

    .roadmap-article h3 {
        font-size: 1.3rem;
    }

    .roadmap-article h4 {
        font-size: 1.1rem;
    }

    .article-section {
        padding: 1rem;
    }
}