/* CSS Reset & Variables */
:root {
    --bg-color: #fcfbf9;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --nav-border: #eaeaea;
    --primary-btn: #111111;
    --primary-btn-hover: #333333;
    
    --font-sans: 'Inter', sans-serif;
    --font-hand: 'Caveat', cursive;
}

body.landing-page, body.roadmap-page {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ========================================================================= */
/* LANDING PAGE STYLES                                                       */
/* ========================================================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--nav-border);
}

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-btn);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-btn-hover);
}

.hero {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.3;
    font-weight: 800;
    flex: 1.6;
    margin: 0;
    white-space: nowrap;
}

.hero-title u {
    text-decoration: underline;
    text-decoration-thickness: 5px;
    text-underline-offset: 8px;
    text-decoration-color: var(--text-primary);
}

.hero-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.roadmaps-section {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 40px;
}

.roadmaps-header {
    margin-bottom: 40px;
}

.roadmaps-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.roadmaps-header p {
    color: var(--text-secondary);
    margin: 0;
}

.roadmaps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.roadmap-card {
    background: #fff;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.year-badge {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    align-self: flex-start;
}

.roadmap-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.roadmap-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 30px 0;
    flex: 1;
}

.view-link {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer {
    border-top: 1px solid var(--nav-border);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
}

/* ========================================================================= */
/* ROADMAP COMIC STYLE PAGE                                                  */
/* ========================================================================= */

body.roadmap-page {
    /* Graph paper background */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: -1px -1px;
}

.roadmap-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.back-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
}

.roadmap-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

.roadmap-header {
    background: #fff;
    border: 4px solid #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 6px 6px 0px #1a1a1a;
    margin-bottom: 60px;
}

.curriculum-tag {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #ffe082;
    border: 2px solid #1a1a1a;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 2px 2px 0px #1a1a1a;
}

.roadmap-header h1 {
    font-family: var(--font-hand);
    font-size: 3rem;
    margin: 0 0 10px 0;
}

.roadmap-header p {
    color: var(--text-secondary);
    margin: 0;
}

.roadmap-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.roadmap-subjects {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subject-banner {
    border: 3px solid #1a1a1a;
    border-radius: 12px;
    padding: 15px 25px;
    font-family: var(--font-hand);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px #1a1a1a;
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.subject-banner:hover, .subject-banner.active {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1a1a1a;
}

.subject-banner.active {
    border-width: 4px;
}

.subject-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #fff;
}

.roadmap-arrow {
    flex: 0 0 100px;
    display: flex;
    justify-content: center;
}

.roadmap-details {
    flex: 1.2;
}

.post-it-note {
    background: #fdfbf7;
    border: 4px solid #1a1a1a;
    border-radius: 8px;
    box-shadow: 8px 8px 0px #1a1a1a;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.post-it-binders {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.binder {
    width: 12px;
    height: 30px;
    background: #a0c4ff;
    border: 2px solid #1a1a1a;
    border-radius: 6px;
}

.post-it-content {
    padding: 40px 30px 20px;
    flex: 1;
}

.post-it-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.post-it-content h2 {
    font-family: var(--font-hand);
    font-size: 2rem;
    margin: 0 0 20px 0;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 15px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.5;
}

.checklist-icon {
    margin-top: 3px;
    color: #4caf50;
}

.post-it-footer {
    border-top: 1px solid #eaeaea;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .roadmap-content {
        flex-direction: column;
    }
    .roadmap-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    .hero-title {
        white-space: normal;
        font-size: 3rem;
    }
}
