.feed-header {
    margin-bottom: 20px;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.feed-header-text {
    font-size: 1.2em;
    color: #013052;
}
.feed-content-select {
    font-size: 1.0em;
    padding: 5px;
    text-align: center;
    border-radius: 6px;
}
.create-post-console {
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.create-post-console-text {
    padding: 10px;
    border-radius:18px;
    background-color: #f2f4f8;
    color: #4d4d4d;
    text-align:center;
}
.create-post-type-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    color: #4d4d4d;
    cursor: pointer;
}
.create-post-type-btn:hover {
    background-color: #f2f4f8;
    color: #000000;
}
#createPostSection_media {
    min-height: 200px;
    border: 2px solid grey;
    padding: 10px;
    background-color: #e0e0e0;
}
.post-card {
    position: relative;
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}
.new-post-indicator {
    border-top: 4px solid #009900;
}
.post-card-pin {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 1.4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: #ff1a1a;
    transform: rotate(-20deg);
}
.post-card_author {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-card_author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.post-card_author-info {
    flex: 1 1 auto;
    line-height: 25px;
    min-width: 0;
}
.post-card_author-name-holder {
    display: flex;
    flex: 1 1 auto; 
    align-items: center;
    width: 100%;
    min-width: 0;
}
.post-card_author-name-link {
    flex: 0 1 auto;
    min-width: 0;
    text-decoration: none;
    font-weight: bold;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-card_date-link {
    text-decoration: none;
    color: black;
}
.post-card_author-name-link:hover,
.post-card_date-link:hover {
    text-decoration: underline;
}
.post-card_follow-link-wrapper {
    flex:0 0 auto;
    white-space: nowrap;
}
.post-card_follow-link {
    text-decoration: none;
    font-weight: bold;
    color: #0a66c2;
    cursor: pointer;
}
.post-card_author-control,
.post-card_admin-control {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}
.post-card_author-control:hover,
.post-card_admin-control:hover {
    background-color: #f2f4f8;
}
.post-card_author-control_menu,
.post-card_admin-control_menu {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 120px;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    background-color: white;
    z-index: 200;
    display: none;
}
.post-card_admin-control_menu {
    width: 160px !important;
    right: -40px !important;
}
.post-card_author-control_menu-btn,
.post-card_admin-control_menu-btn {
    text-align: left;
    padding: 0px 5px;
}
.post-card_author-control_menu-btn:hover,
.post-card_admin-control_menu-btn:hover {
    background-color: #f2f4f8;
}
.post-card_share-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
}
.post-card_share-btn:hover {
    background-color: #f2f4f8;
}
.post-card_share-btn_tooltip {
    position: absolute;
    top: -35px;
    right: 0px;
    background-color: #0056b3;
    color: white;
    border-radius: 10px;
    width: 140px;
    display:none;
}
.post-card_text {
    padding: 10px;
}
.post-card_quiz {
    padding: 10px;
}
.post-card_quiz .option {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #999;
    cursor: pointer;
    border-radius: 5px;
}
.post-card_quiz .option:hover {
    background-color: #f2f4f8;
}
.post-card_quiz .disabled {
    pointer-events: none;
}
.post-card_quiz .correct {
    color: green;
    border-color: green;
    border-width: 2px;
}
.post-card_quiz .wrong {
    color: red;
    border-color: red;
    border-width: 2px;
}
.post-card_event-title {
    text-align: center;
    font-size:1.3em;
    line-height:160%;
    font-weight:bold;
    color:#013052;
}
.post-card_event-participants-list {
    list-style-type: none;
    padding-left: 0px;
    max-height: 290px;
    overflow-y: auto;
}
.post-card_event-participant {
    border: 1px solid gray;
    margin-top: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}
.post-card_event-participant-msg-btn {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: #e0e0e0;
    display:flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.post-card_footer {
    padding: 10px;
}
.post-card_footer-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #4d4d4d;
}
.post-card_interaction {
    display: flex;
}
.post-card_interaction-btn {
    flex: 1 1 auto;
    padding: 10px;
    border-radius: 8px;
    color: #4d4d4d;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}
.post-card_interaction-btn:hover {
    background-color: #f2f4f8;
}
.active-interaction {
    color: #0066ff;
}

/* For Comments */
.post-card_comments {
    margin-top: 1rem;
    padding: 0.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f0f2f5;
    border-radius: .5rem;
}

.post-card_comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.post-card_comment {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: .5rem;
    padding: 0.6rem 0.8rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.comment-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.comment-header {
    display: flex;
    justify-content:space-between;
    font-size: 13px;
    color: #65676b;
    margin-bottom: 4px;
    width: 100%;
}

.comment-header b {
    color: #050505;
    font-weight: 600;
}

.comment-text {
    font-size: 14px;
    color: #050505;
    word-wrap: break-word;
}

.comment-time {
    font-size: 12px;
    color: #65676b;
    margin-left: 8px;
    white-space: nowrap;
}

.mention {
    color: #0056b3;
    font-weight: 500;
    background-color: #e6f0ff;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin: 0 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mention:hover {
    background-color: #d0e3ff;
}

.loading-comments {
    font-style: italic;
    color: #9ca3af;
    padding: 0.5rem;
    text-align: center;
}

.post-card_comment-box {
    display: flex;
    flex-direction: column;
    margin-top: .5rem;
}

.post-card_comment-box textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    font-size: 0.95rem;
    resize: none;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    outline: none;
}

.post-card_comment-box button {
    align-self: center;
    background-color: #2374e1;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0.8rem auto 0.3rem;
    transition: background-color 0.2s ease;
}

.post-card_comment-box button:hover {
    background-color: #1b63c1;
}

.expandable-text {
    max-height: calc(1.2em * 4); /* show only 4 lines initially */
    overflow: hidden;
    position: relative;
}
.expandable-text-show-btn {
    cursor: pointer;
    color: #595959;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 0px;
    bottom: 0px;
    padding: 0px 20px 0px 30px;
    background-color: white;
    /* fade out only first 30px */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0px,
        black 30px
    );
    mask-image: linear-gradient(to right,
        transparent 0px,
        black 30px
    );
}
