﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #333;
}

main {
    max-width: 1200px;
    margin: 0px auto;
    padding: 0rem;
    background: white;
    text-align: justify;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 16px;
}

h5 {
    font-size: 12px;
}

h6 {
    font-size: 10px;
}

p {
    font-size: 16px;
}

/* Post Content */
.main-article {
    /*overflow-x: hidden;
    word-break: break-word;*/
    word-break: normal;
    hyphens: auto;
}


    .post-content p {
        margin-bottom: 0.1rem;
        color: #444;
    }

    .post-content strong {
        color: #222;
        font-weight: 600;
    }

.post-content h3 {
    margin: 1rem 0 0.5rem;
    color: #222;
}

    .post-content ul,
    .post-content ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }

    .post-content li {
        margin-bottom: 0.5rem;
    }

    .post-content img {
        height: auto !important;
        width: 100% !important;
    }

/* Common table styles */
.post-content table {
    width: 100%;
    border: 1px solid;
    border-collapse: collapse;
    background-color: #fff;
    border-color: #000;
}

    .post-content table th,
    .post-content table td {
        border: 1px solid;
        padding: 6px;
        color: #000;
    }

    /* Striped rows */
    .post-content table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

/* ✅ Dark mode */
.dark-mode .post-content table {
    background-color: #111;
    border-color: #444;
}

    .dark-mode .post-content table th,
    .dark-mode .post-content table td {
        color: #ddd;
        border-color: #444;
    }

    /* Dark mode striped rows */
    .dark-mode .post-content table tr:nth-child(even) {
        background-color: #222;
    }


/*.post-content table css End*/

.author-card {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 1rem 1.5rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: justify;
}

    .author-card .content {
        display: flex;
        gap: 20px;
    }

.author-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    max-width: 90px;
    max-height: 90px;
}

.author-info h3 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}


.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 80px;
}

.author-info h3 {
    font-weight: 600;
    color: var(--dark-color);
}

.author-info p {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

@media (max-width: 1024px) {
    main {
        padding-inline: 15%;
    }

    .author-card {
        width: 70%;
    }
}


    /* Responsive Design */
    @media (max-width: 768px) {

        h1 {
            font-size: 26px;
        }

        h2 {
            font-size: 22px;
        }

        h3 {
            font-size: 18px;
        }

        h4 {
            font-size: 14px;
        }

        h5 {
            font-size: 10px;
        }

        h6 {
            font-size: 8px;
        }

        main {
            padding-inline: 10%;
        }

        .author-card {
            width: 80%;
        }
    }

    @media (max-width: 480px) {

        h1 {
            font-size: 20px;
        }

        h2 {
            font-size: 18px;
        }

        h3 {
            font-size: 16px;
        }

        h4 {
            font-size: 12px;
        }

        h5 {
            font-size: 8px;
        }

        h6 {
            font-size: 6px;
        }


        main {
            padding-inline: 10px;
        }

        .post-content a {
            color: #0040ff;
        }

        .author-card .content {
            gap: 15px;
        }

        .author-image {
            width: 75px;
            height: 75px;
            max-width: 75px;
            max-height: 75px;
        }

        .author-info {
            gap: 0px;
            height: 75px;
        }

        .author-card {
            width: 98%;
            padding: 1rem 1rem;
            margin: 0.5rem 0 0.5rem 0;
        }

    }

    /*darkmode*/

.dark-mode .content {
    background-color: rgb(28, 25, 25);
}

.dark-mode .post-content strong,
.dark-mode .post-content h3 {
    color: #f8f9fa;
}

.dark-mode .post-content p {
    color: #b0b0b0;
}


/* SVG Icons in Dark Mode */
.dark-mode .theme-toggle svg,
.dark-mode .search svg {
    stroke: #e0e0e0;
}

.dark-mode .author-card {
    background-color: rgb(28, 25, 25);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 1.02);
}

.dark-mode .post-content a {
    color: #9ecaf7;
}


