﻿/* Main content container */
.learn-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Section card */
.learn-section {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    /* Subtle hover (desktop only feel) */
    .learn-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    }

    /* Section headings */
    .learn-section h2 {
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: #111827;
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 8px;
    }

    /* Paragraph readability */
    .learn-section p {
        font-size: 1rem;
        color: #374151;
        line-height: 1.75;
        margin-bottom: 14px;
    }

    /* Lists */
    .learn-section ul {
        padding-left: 20px;
        margin-top: 10px;
    }

    .learn-section li {
        margin-bottom: 8px;
        color: #475569;
    }

/* Info blocks (like your learn-info-list) */
.learn-info-list {
    background: #f8fafc;
    border-left: 4px solid #c45c26;
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 16px;
}

/* Labels inside info blocks */
.learn-info-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

/* Links inside content */
.learn-section a {
    color: #c45c26;
    text-decoration: none;
    font-weight: 500;
}

    .learn-section a:hover {
        text-decoration: underline;
    }

/* Images (if you add later) */
.learn-section img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 12px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .learn-content {
        gap: 20px;
    }

    .learn-section {
        padding: 20px 16px;
    }

        .learn-section h2 {
            font-size: 1.3rem;
        }
}


/******side bar nav*/

/* Sidebar container */
.learn-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Label */
.learn-toc-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* Navigation container */
.learn-toc {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    /* Links */
    .learn-toc .cat-link {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: #111827;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        /* Hover state */
        .learn-toc .cat-link:hover {
            background-color: #f3f4f6;
            color: #2563eb;
            transform: translateX(2px);
        }

        /* Active / selected state */
        .learn-toc .cat-link.active {
            background-color: #e0ecff;
            color: #1d4ed8;
            font-weight: 600;
        }

        /* Optional: add subtle divider between items */
        .learn-toc .cat-link + .cat-link {
            border-top: 1px solid #f1f5f9;
        }