.page {
    padding: 20px;
    margin: 0 auto;
    max-width: 600px;
}

.page h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.page h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.page h3 {
    font-size: 1rem;
    font-weight: 500;
}

.page h4 {
    font-size: 0.9rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.2;
}

.article-description {
    font-size: 1.1rem;
    color: var(--menu-text);
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-published {
    font-size: 0.9rem;
    color: var(--menu-text);
    margin-bottom: 20px;
    font-style: italic;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 12px;
}

.article-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--menu-text) !important;
    margin-bottom: 35px;
}

.article-content span {
    color: var(--menu-text) !important;
}

.article-content h1 {
    color: var(--text-color) !important;
}

.article-content h1 span {
    color: var(--text-color) !important;
}

.article-content h2 {
    color: var(--text-color) !important;
}

.article-content h2 span {
    color: var(--text-color) !important;
}

.article-content h3 {
    color: var(--text-color) !important;
}

.article-content h3 span {
    color: var(--text-color) !important;
}

.article-content h4 {
    color: var(--text-color) !important;
}

.article-content h4 span {
    color: var(--text-color) !important;
}

.article-content h5 {
    color: var(--text-color) !important;
}

.article-content h5 span {
    color: var(--text-color) !important;
}

.article-content h6 {
    color: var(--text-color) !important;
}

.article-content h6 span {
    color: var(--text-color) !important;
}

.article-content p {
    color: var(--menu-text) !important;
}

.article-content ul li {
    color: var(--menu-text) !important;
}

.article-content ol li {
    color: var(--menu-text) !important;
}

/* VS Code Style Code Block */
.article-content pre {
    background: var(--code-bg);
    color: var(--code-text);
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    /* horizontal scroll if needed */
    white-space: pre;
    /* preserve indentation */
    margin: 1rem 0;
}

.article-content pre code {
    background: none;
    /* prevent double background */
    color: inherit;
    /* inherit fixed color */
}

.article-content h2 {
    /* font-size: 1.8rem; */
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul {
    list-style-type: disc;
    margin-left: -15px;
    margin-bottom: 15px;
}

.article-content ol {
    margin-left: -15px;
    margin-bottom: 15px;
}

.article-content figure {
    margin: 0px !important;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.article-content figure img {
    width: 100% !important;
}

.article-content img {
    width: 100% !important;
}

.article-content figcaption {
    margin-top: 3px;
    font-size: 13px;
    color: var(--menu-text);
}

/* Styling for the link tool container */
.link-tool {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-color);
    text-decoration: none;
    color: var(--text-color);
    padding: 10px;
    max-width: 600px;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* Image styling */
.link-tool img {
    width: 150px !important;
    height: 100px !important;
    object-fit: cover !important;
}

/* Link details container */
.link-details {
    width: 100%;
    padding: 0px;
    padding-left: 12px;
    flex: 1;
}

/* Link title styling */
.link-title {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
    padding: 0px;
    line-height: 20px;
    color: var(--text-color);
}

/* Link description styling */
.link-description {
    font-size: 13px;
    font-weight: 400;
    color: var(--menu-text);
    line-height: 1.4;
}

/* Responsive design for desktop */
@media (min-width: 768px) {
    .link-tool {
        flex-direction: row;
    }

    .link-tool img {
        width: 200px !important;
        height: 120px !important;
    }
}

/* Responsive design for mobile */
@media (max-width: 767px) {
    .link-tool {
        flex-direction: column;
    }

    .link-tool img {
        width: 100% !important;
        height: auto !important;
    }

    .link-details {
        padding: 0px;
        padding-top: 10px;
    }

    .link-title {
        font-size: 14px;
    }

    .link-description {
        font-size: 12px;
    }
}

.author-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.author-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.author-about {
    font-size: 1rem;
    color: var(--menu-text);
    margin: 5px 0 12px;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    color: var(--menu-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article Content Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    background: var(--code-bg, #f9f9f9);
    border-radius: 8px;
    overflow: hidden;
    /* keeps border-radius clean */
}

/* Table Header */
.article-content table th {
    background: var(--text-color);
    color: #fff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}

/* Table Body */
.article-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--menu-text);
}

/* Row Hover Effect */
.article-content table tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Zebra Striping */
.article-content table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Responsive Table */
@media (max-width: 600px) {

    .article-content table,
    .article-content table thead,
    .article-content table tbody,
    .article-content table th,
    .article-content table td,
    .article-content table tr {
        display: block;
        width: 100%;
    }

    .article-content table thead {
        display: none;
        /* hide header */
    }

    .article-content table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 6px;
        padding: 10px;
        background: #fff;
    }

    .article-content table td {
        border: none;
        padding: 8px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .article-content table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-color);
        margin-right: 10px;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .article-title {
        font-size: 2.2rem;
    }

    .article-description {
        font-size: 1rem;
    }

    .article-published {
        font-size: 0.85rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 15px;
        border-radius: 8px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-description {
        font-size: 0.95rem;
    }

    .article-published {
        font-size: 0.8rem;
    }

    .article-image {
        max-height: 300px;
    }

    .author-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .author-profile-image {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 1.3rem;
    }

    .author-about {
        font-size: 0.9rem;
    }
}

/* Smaller mobile screens */
@media (max-width: 400px) {
    .article-title {
        font-size: 1.6rem;
    }

    .article-description {
        font-size: 0.9rem;
    }

    .article-content {
        font-size: 0.95rem;
    }
}