.home__container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    width: 100%;
}

.home__container--card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.home__container--first__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.home__container--first__item--title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.home__container--first__item--main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.home__container--first__item--main .topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.home__container--first__item--main .topic:hover {
    background: #f1f3f4;
}

.home__container--first__item--main .topic .topic__specs {
    flex: 1;
    min-width: 0;
    /* Allows text truncation */
}

.home__container--first__item--main .topic .topic__specs p {
    /* width: 100%; */
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home__container--first__item--main .topic .topic__specs div {
    font-size: 0.75rem;
    color: #666;
}

.home__container--first__item--main .topic .topic__follow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: 4px;
    color: #999;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.home__container--first__item--main .topic .topic__follow:hover {
    background: #e9ecef;
    color: #666;
}

.home__container--first__item--main .topic .topic__follow.in {
    color: #dc3545;
}

.home__container--first__item--main .topic .topic__follow.in:hover {
    background: #f8d7da;
    color: #721c24;
}

/* .home__container--first__item--main .topic .topic__follow:hover {
    border: 2px solid var(--black);
} */

.home__container--first__item--main .topic:hover .topic__follow {
    visibility: visible;
}

.home__container--first__item--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.home__container--first__item--content__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* border: 1px solid var(--border); */
    margin-bottom: 10px;
}

.home__container--first__item--content__item--title {
    font-size: 13px;
    font-weight: 600;
    /* background: var(--light-top-bg); */
    width: 100%;
    text-align: left;
    padding: 5px 8px;
}

.home__container--first__item--content__item--main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.home__container--first__item--content__item--main .empty {
    font-size: 13px;
}

.favorite-topic-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--high-light-2);
    margin-right: 2px;
    padding: 2px 5px;
    border-radius: 88px;
}

.favorite-topic-box .topic-name {
    font-size: 12px;
    padding: 2px 3px;
}

.favorite-topic-box .favorite-topic-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    width: 14px;
}

.favorite-topic-box .favorite-topic-remove:hover {
    background: lightgray;
}

/***********************************************************************************************/
/**************************************** RIGHT SIDE *******************************************/
/***********************************************************************************************/

.home__container--second__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.home__container--second__item--title {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.home__container--second__item--main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: left;
}

.home__container--second__item--main .recent {
    border: 1px solid #e0e0e0;
    padding: 24px;
    margin-bottom: 20px;
    background: #ffffff;
    transition: box-shadow 0.2s ease;
    width: 100%;
}

.home__container--second__item--main .recent small {
    color: #999999;
    font-size: 13px;
}

.home__container--second__item--main .recent .recent__specs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.home__container--second__item--main .recent .recent__specs .recent__specs--theme {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1;
}

.home__container--second__item--main .recent .recent__specs .recent__specs--theme:hover {
    text-decoration: underline;
}

.home__container--second__item--main .recent .recent__specs .recent__specs--pdf {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.home__container--second__item--main .recent .recent__specs .recent__specs--pdf:hover {
    text-decoration: underline;
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.home__container--second__item--main .recent .recent__authors {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home__container--second__item--main .recent .recent__authors .recent__authors--author {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.home__container--second__item--main .recent .recent__authors .recent__authors--author:hover {
    color: #000000;
    text-decoration: underline;
}

.recent__authors--author:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #cccccc;
}

.home__container--second__item--main .recent .recent__description {
    color: #333333;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}


.recent__topic {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 8px;
}

.recent__topic:hover {
    background-color: #e0e0e0;
    color: #000000;
}

.recent__tags {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.recent__tag {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #666666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
}

.recent__tag:hover {
    background-color: #f5f5f5;
    color: #000000;
}