@media (min-width: 769px) {
    #main-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    #blog-title {
        width: 100%;
        color: darkslateblue;
        font-size: 25px;
        text-align: center;
        padding-top: 10%;
        padding-bottom: 10%;
        box-sizing: border-box;
        margin: 0;
        flex-shrink: 0;
    }

    #blog-list {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #blog-list::-webkit-scrollbar {
        width: 8px;
    }

    #blog-list::-webkit-scrollbar-track {
        background: rgba(107, 91, 154, 0.05);
        border-radius: 4px;
    }

    #blog-list::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #6b5b9a, #8470b3);
        border-radius: 4px;
    }

    #blog-list::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a4a89, #7360a2);
    }

    .blog-detail {
        width: 100%;
        height: 180px;
        max-height: 180px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 3fr 5fr;
        align-items: center;
        justify-items: start;
        border-bottom: 1px solid darkslateblue;
        padding: 5px;
        cursor: pointer;
        text-decoration: none;  /* 밑줄 제거 */
        color: inherit;
        margin-bottom: 1em;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .blog-detail:hover {
        transform: scale(1.02);
    }

    .blog-detail-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding: 10px 10px 10px 20px;
        box-sizing: border-box;
        display: grid;
        grid-template-rows: 1fr 3fr;
        margin: 0;

    }

    .blog-detail-title {
        width: 100%;
        height: 100%;
        font-size: 20px;
        margin: 0;
    }

    .blog-detail-description {
        font-size: 12px;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .thumb-nail {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .click {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    #main-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        overflow: hidden;
        width: 100%;
        height: 100%;
        max-height: 100%;
        box-sizing: border-box;
    }

    #blog-title {
        width: 100%;
        color: darkslateblue;
        font-size: 15px;
        padding-top: 5%;
        padding-bottom: 5%;
        text-align: center;
        box-sizing: border-box;
        margin: 0;
        flex-shrink: 0;
    }

    #blog-list {
        width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #blog-list::-webkit-scrollbar {
        width: 6px;
    }

    #blog-list::-webkit-scrollbar-track {
        background: rgba(107, 91, 154, 0.05);
        border-radius: 3px;
    }

    #blog-list::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #6b5b9a, #8470b3);
        border-radius: 3px;
    }

    #blog-list::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #5a4a89, #7360a2);
    }

    .blog-detail {
        width: 100%;
        height: 120px;
        max-height: 120px;
        display: grid;
        grid-template-columns: 3fr 5fr;
        align-items: center;
        justify-items: start;
        border-bottom: 1px solid darkslateblue;
        padding: 5px;
        box-sizing: border-box;
        cursor: pointer;
        text-decoration: none;  /* 밑줄 제거 */
        color: inherit;
        margin-bottom: 0.5em;
        flex-shrink: 0;
    }


    .thumb-nail {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-detail-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        padding: 10px 10px 10px 20px;
        box-sizing: border-box;
        display: grid;
        grid-template-rows: 1fr 3fr;
        margin: 0;

    }

    .blog-detail-title {
        width: 100%;
        height: 100%;
        font-size: 12px;
        margin: 0;
    }

    .blog-detail-description {
        font-size: 10px;
        width: 100%;
        height: 100%;
        margin: 0;
    }
}