/*
 Theme Name:   Trellis Child
 Theme URI:    https://marketplace.mediavine.com/trellis
 Description:  Child theme cho Mediavine Trellis
 Author:       Mediavine
 Author URI:   https://marketplace.mediavine.com/trellis
 Template:     mediavine-trellis
 Version:      1.0.0
*/

/* Áp dụng CSS chỉ cho trang tác giả */
body.author {

    /* Author Page */
    .author-box-full {
        background: #fdf6f6;
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .author-box {
        max-width: 800px;
        margin: 0 auto;
        background: #fff;
        border: 2px solid #e60000;
        border-radius: 12px;
        padding: 30px;
        text-align: center;
        box-shadow: 4px 4px 0 #ff9999;
    }

    .author-avatar img {
        border-radius: 50%;
        margin-bottom: 15px;
    }

    .author-info h1 {
        font-size: 26px;
        margin-bottom: 10px;
        color: #000000;
    }

    .author-bio {
        font-size: 16px;
        color: #000000;
        margin-bottom: 10px;
        text-align: center;
    }

    .author-about a {
        color: #e60000;
        font-weight: bold;
        text-decoration: none;
    }

    .author-about a:hover {
        text-decoration: underline;
    }

    /* Social Links */
    .author-socials a {
        margin: 0 8px;
        color: #e60000;
        text-decoration: none;
    }

    .author-socials a:hover {
        color: #e60000;
    }

    /* Main layout */
    .author-main {
        display: flex;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .author-content {
        flex: 3;
    }

    .author-sidebar {
        flex: 1;
    }

    /* Posts */
    .author-posts .author-post {
        background: #fff;
        border: 2px solid #e60000;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 25px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        transition: transform 0.2s;
    }

    .author-posts .author-post:hover {
        transform: translateY(-4px);
    }

    .author-posts .author-post img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .author-posts .author-post h3 {
        margin: 0 0 10px;
        font-size: 20px;
        color: #222;
    }

    .author-posts .author-post h3 a {
        color: #222;
        text-decoration: none;
    }

    .author-posts .author-post h3 a:hover {
        color: #e60000;
    }

    .author-posts .author-post p {
        font-size: 15px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    /* Read More Button */
    .author-posts .read-more {
        display: inline-block;
        background: #e60000;
        color: #fff;
        padding: 8px 18px;
        border-radius: 20px;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.3s;
    }

    .author-posts .read-more:hover {
        background: #cc0000;
    }

    /* Load More Button */
    #load-more {
        display: block;
        margin: 20px auto 20px;
        padding: 10px 25px;
        background: #e60000;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s;
    }

    #load-more:hover {
        background: #cc0000;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .author-main {
            flex-direction: column;
        }
        .author-sidebar {
            display: none; /* Ẩn sidebar trên mobile */
        }
    }
}



.coloring-post-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
			margin-bottom: 20px;
        }

        .coloring-post-container.columns-1 .coloring-post {
            width: 100%;
        }

        .coloring-post-container.columns-2 .coloring-post {
            width: calc(50% - 30px);
        }

        .coloring-post-container.columns-3 .coloring-post {
            width: calc(33.33% - 30px);
        }

        .coloring-post {
            text-align: center;
            padding: 0;
        }

        .coloring-post-image img {
            width: 100%;
            height: auto;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .coloring-post-title {
            display: block;
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
            text-decoration: none;
            color: #333;
        }

        .coloring-post-title:hover {
            text-decoration: underline;
        }

        .coloring-post-meta {
            font-size: 20px;
            color: #777;
            margin-bottom: 15px;
        }

        .coloring-post-meta a {
            color: red;
            text-decoration: none;
        }

        .coloring-post-meta a:hover {
            text-decoration: underline;
        }

        .coloring-post-button {
            display: inline-block;
            padding: 0;
            background-color: transparent;
            color:#ff0000;
            text-decoration: none;
            font-size: 18px;
            border: none;
        }

        .coloring-post-button:hover {
            color: #0056b3;
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .coloring-post-container.columns-2 .coloring-post,
            .coloring-post-container.columns-3 .coloring-post {
                width: 100%;
            }

            .coloring-post-container {
                gap: 15px;
            }
        }