@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=Inter:wght@300;400;600;700&family=JetBrains+Mono&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: #2d3748;
    background-color: #fcfcfc;
}

h1,
h2,
h3,
h4 {
    font-family: 'Crimson Pro', serif;
    color: #1a202c;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.logic-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.formula-box {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border-left: 5px solid #3b82f6;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    /* Ensure formulas don't overflow on small screens */
}

.image-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    margin: 20px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Make tables scrollable on mobile */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

th,
td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: center;
    min-width: 100px;
    /* Prevent too squashed columns */
}

th {
    background-color: #f8fafc;
    color: #1a202c;
    font-weight: 700;
}

.sidebar-link {
    display: block;
    padding: 8px 0;
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: #2563eb;
}

/* Progress Bar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;

}
