.top_sidebar_widget {
    margin-bottom: 1cqw;
}

.top_sidebar_widget_title {
    font-size: var(--font-m);
    font-weight: bold;
    margin-bottom: 1.5cqw;
    position: relative;
    padding-bottom: 0.8cqw;
}

.widget_category .top_sidebar_widget_title {
    text-align: left;
    border-bottom: 2px solid #000;
}

.widget_topic {
    background-color: #fff;
    width: 100%;
    padding: 1cqw 1.5cqw;
    border-radius: 20px;
}

.widget_topic .top_sidebar_widget_title {
    text-align: center;
    border-bottom: 2px solid #333;
    margin: 0 auto 1cqw;
    margin-left: auto;
    margin-right: auto;
}

.sidebar_recruitment_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 1cqw;
    border-radius: 50px;
    font-weight: 400;
    font-size: var(--font-s);
    margin-bottom: 1.5cqw;
    transition: opacity 0.3s;
}

.sidebar_search {
    margin-bottom: 1.5cqw;
}

.sidebar_search form {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar_search input {
    width: 100%;
    padding: 0.8cqw 1.5cqw 0.8cqw 1.5cqw;
    text-align: center;
    border: 1px solid #000;
    border-radius: 10px;
    font-size: var(--font-s);
    font-weight: 700;
    color: #333;
    background: #fff;
}

.sidebar_search button {
    position: absolute;
    right: 1.5cqw;
    background: none;
    border: none;
    cursor: pointer;
    width: 1.8cqw;
    height: 1.8cqw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sidebar_search button img {
    width: 100%;
    max-width: 100%;
    max-height: auto;
    height: auto;
    object-fit: contain;
}

.top_category_list {
    list-style: none;
    padding: 0;
}

.top_category_list li {
    margin-bottom: 1cqw;
    padding-bottom: 0;
}

.top_category_list a {
    text-decoration: none;
    color: inherit;
    font-size: var(--font-s);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.top_category_list a::before {
    content: "-";
    margin-right: 0.5em;
}

.sidebar_topic_item {
    display: flex;
    gap: 1cqw;
    margin-bottom: 1.5cqw;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.topic_img {
    border-radius: 8px;
    width: 45%;
    overflow: hidden;
    flex-shrink: 0;
}

.topic_img img {
    width: 100%;
    max-width: 100%;
    max-height: auto;
    height: auto;
    object-fit: contain;
}

.topic_text_info {
    display: flex;
    flex-direction: column;
}

.topic_date {
    font-size: var(--font-xs);
    color: #000;
    font-weight: 500;
    margin: 0;
}

.topic_title {
    font-size: var(--font-xs);
    font-weight: bold;
    line-height: 1.3;
    margin: 0.2cqw 0 0.5cqw;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic_tags {
    display: flex;
    gap: 0.5cqw;
    flex-wrap: wrap;
}

.topic_tag {
    font-size: 0.6srem;
}

.sidebar_banner_wrapper {
    margin-bottom: 2cqw;
}

.sidebar_banner_title {
    font-size: var(--font-s);
    font-weight: bold;
    margin-bottom: 0.8cqw;
    margin-top: 0.8cqw;
}

.sidebar_banner {
    width: 100%;
}

.sidebar_banner img {
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .top_sidebar {
        margin-top: 8cqw;
    }

    .sidebar_recruitment_btn {
        padding: 3cqw;
        font-size: var(--font-l);
        margin-bottom: 4cqw;
        width: 80%;
        margin: 4cqw auto;
    }

    .sidebar_search {
        margin-bottom: 4cqw;
    }

    .sidebar_search input {
        padding: 4cqw 3cqw;
        font-size: var(--font-l);
        border-radius: 10px;
        width: 85%;
        margin: 2cqw auto;
    }

    .sidebar_search button {
        width: 7cqw;
        height: 7cqw;
        right: 13cqw;
    }

    .top_sidebar_widget {
        width: 88%;
        margin: auto;
    }

    .top_sidebar_widget_title {
        font-size: var(--font-xl);
        margin-bottom: 3cqw;
        padding: 3cqw 0;
    }

    .top_category_list a {
        font-size: var(--font-l);
        padding: 3cqw 0;
    }

    .widget_topic {
        padding: 3cqw 0cqw;
        width: 90%;
        margin: 10cqw auto 10cqw;
    }

    .widget_topic .top_sidebar_widget_title {
        margin-bottom: 4cqw;
        padding-bottom: 2cqw;
        width: 80%;
    }

    .sidebar_topic_item {
        display: flex;
        gap: 2.5cqw;
        margin-bottom: 1.5cqw;
        text-decoration: none;
        color: inherit;
        align-items: flex-start;
        width: 90%;
        margin: 0 auto 3.5cqw;
    }

    .topic_date {
        font-size: var(--font-s);
    }

    .topic_title {
        font-size: var(--font-s);
        margin-top: 1cqw;
    }

    .sidebar_banner_wrapper {
        width: 100%;
        padding: 4cqw 0 4cqw;
        margin-bottom: 0cqw;
    }

    .sidebar_banner_title {
        width: 90%;
        margin: 2cqw auto 2cqw !important;
        font-size: var(--font-xl);
    }

    .sidebar_banner {
        width: 90%;
        margin: 0 auto;
    }
}

.sidebar_recruit_wrapper {
    display: flex;
    gap: 1cqw;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1cqw;
}

.sidebar_recruit_btn {
    display: inline-flex;
    align-items: center;
    gap: 1cqw;
    background-color: #000;
    color: #fff;
    padding: 1cqw 2cqw;
    border-radius: 50px;
    text-decoration: none;
    font-size: var(--font-s);
    font-weight: bold;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .sidebar_recruit_btn {
        padding: 3cqw 3cqw;
        width: 85%;
        margin: 2cqw auto;
        font-size: var(--font-l);
    }
}

.sidebar_recruit_btn.fresh {
    background-color: #ff0000;
}

.sidebar_recruit_btn.mid {
    background-color: #000;
}

.sidebar_recruit_btn:hover {
    opacity: 0.8;
}

.sidebar_recruit_btn.fresh:hover {
    opacity: 0.8;
}

.sidebar_recruit_btn.mid:hover {
    opacity: 0.8;
}

.sidebar_recruit_btn .recruit_btn_icon {
    width: 0.7vw;
    height: auto;
}

@media screen and (max-width: 768px) {
    .sidebar_recruit_btn .recruit_btn_icon {
        width: 2vw;
    }
}
