﻿/* Base Container & Overhaul Context Typography */
.forums-main-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    padding: 95px 15px;
    color: #334155;
}

.forums-hover {
    color: black;
    font-size: 38px;
    font-weight: 700;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 5px;
}

    .forums-hover:hover {
        color: deepskyblue;
    }

.section_title_container {
    margin-bottom: 30px;
    text-align: center;
}

/* Message Alerts panel block */
.msg-display-panel {
    margin-bottom: 20px;
}

/* Filter controls interface design card context styling */
.forum-toolbar-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-filter-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.forums_css_black {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Dropdowns form layout alignment block area */
.filter-dropdowns-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.dropdown-inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-inline-field label {
        font-weight: 600;
        font-size: 14px;
        color: #475569;
        white-space: nowrap;
    }

.actions-filter-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Action components presentation style layers rules sets elements */
.courses_search_buttonnew {
    background-color: #243474;
    color: #ffffff;
    border: none;
    padding: 11px 0px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

    .courses_search_buttonnew:hover {
        background-color: #554c4c;
    }

    .courses_search_buttonnew:active {
        transform: scale(0.98);
    }

/* Clean Modern Cards for Forum Thread Entries instead of layout matrix grids elements */
.forum-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.forum-thread-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .forum-thread-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border-color: #cbd5e1;
    }

/* Student Author Profile column sub-section container definitions context grid style structure block elements */
.author-profile-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 140px;
    flex-shrink: 0;
}

.author-avatar {
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    background-color: #f8fafc;
}

.student-name-align {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    word-break: break-word;
    line-height: 1.4;
}

/* Thread query text summary area layout details setup elements */
.thread-content-block {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thread-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.student-title-align {
    margin: 0;
    padding: 0;
}

    .question-hyperlink, .student-title-align h4 a, .student-title-align a {
        color: #1e3a8a;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        line-height: 1.4;
        transition: color 0.2s;
    }

        .question-hyperlink:hover, .student-title-align a:hover {
            color: #2563eb;
            text-decoration: underline;
        }

/* Comments counter indicators styles rules metrics block setup items */
.reply-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

    .reply-counter-badge i {
        color: #16a34a;
        font-size: 16px;
    }

    .reply-counter-badge a {
        color: #15803d;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
    }

.description-css {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin: 4px 0;
    word-break: break-word;
}

/* Metadata item stamp timeline styling row details info */
.thread-meta-row {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: center;
}

.createdate-css {
    color: #64748b;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Empty feedback presentation states panel context block metrics rule items elements */
.empty-forum-state {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Pagination container design structural definitions elements styling */
.pagination-footer-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.pagination_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

    /* Pager buttons layout elements overrides properties rules */
    .pagination_list a, .pagination_list span {
        display: inline-block;
        padding: 8px 14px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
    }

    .pagination_list a {
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        color: #475569;
    }

        .pagination_list a:hover {
            background-color: #f1f5f9;
            border-color: #94a3b8;
            color: #1e293b;
        }

    .pagination_list .active {
        background-color: #2563eb;
        border: 1px solid #2563eb;
        color: #ffffff;
        font-weight: 600;
    }

@media(max-width: 768px) {
    .forum-thread-card {
        flex-direction: column;
        gap: 16px;
    }

    .author-profile-block {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 15px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 12px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }

    .actions-filter-flex {
        flex-direction: column;
        align-items: stroke;
    }

    .filter-dropdowns-group {
        flex-direction: column;
        align-items: stroke;
    }

    .dropdown-inline-field {
        justify-content: space-between;
    }

    .courses_search_buttonnew {
        width: 100%;
        text-align: center;
    }
}

/* Category Dropdown Only */

.courses_search_select {
    width: 240px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border: 1px solid #cfd8dc !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    outline: none;
}

    .courses_search_select:hover {
        border-color: #0d6efd !important;
    }

    .courses_search_select:focus {
        border-color: #0d6efd !important;
        box-shadow: 0 0 5px rgba(13,110,253,.25) !important;
    }

.forum-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px !important;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5 7l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

@media(max-width: 768px) {
    .courses_search_buttonnew {
        width: 100%;
        text-align: center;
        padding: 10px;
        margin: 10px;
    }

    .forum-dropdown:focus {
        outline: none;
    }



    /* Forums Responsive CSS */
    @media only screen and (max-width:1199px) {
        .forums-main-wrap {
            padding: 90px 15px 40px;
        }

        .forum-thread-card {
            padding: 20px;
        }

        .author-profile-block {
            width: 120px;
        }

        .author-avatar {
            width: 100px !important;
            height: 100px !important;
        }
    }

    @media only screen and (max-width:991px) {
        .forum-thread-card {
            flex-direction: column;
            gap: 18px;
        }

        .author-profile-block {
            width: 100%;
            flex-direction: row;
            text-align: left;
            gap: 15px;
            align-items: center;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 15px;
        }

        .author-avatar {
            width: 80px !important;
            height: 80px !important;
            margin-bottom: 0;
        }
    }

    @media only screen and (max-width:768px) {
        .forums-main-wrap {
            padding: 80px 10px 30px;
        }

        .forums-hover {
            font-size: 26px;
        }

        .courses_search_select, .courses_search_buttonnew, #btnAddQuestion {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
        }

        .thread-header-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }

    @media only screen and (max-width:575px) {
        .forums-hover {
            font-size: 22px;
        }

        .forum-toolbar-card, .forum-thread-card {
            padding: 15px;
        }

        .author-avatar {
            width: 65px !important;
            height: 65px !important;
        }

        .question-hyperlink {
            font-size: 16px !important;
        }

        .description-css {
            font-size: 14px;
        }

        .pagination_list {
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    @media only screen and (max-width:400px) {
        .author-profile-block {
            flex-direction: column;
            text-align: center;
        }

        .reply-counter-badge {
            width: 100%;
            justify-content: center;
        }
    }
    /* ==========================================
   Forum Toolbar Responsive Fix
========================================== */

    @media only screen and (max-width: 768px) {

        /* Radio buttons */
        .radio-filter-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        /* Main filter container */
        .forum-toolbar-card > div[style*="justify-content: space-between"] {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 20px !important;
        }

        /* Dropdown section */
        .forum-toolbar-card > div[style*="gap: 20px"] {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            gap: 15px !important;
        }

            /* Dropdown wrapper */
            .forum-toolbar-card > div[style*="gap: 20px"] > div {
                width: 100%;
            }

        /* Dropdown */
        .courses_search_select {
            width: 100% !important;
            max-width: 100% !important;
        }

        /* Add Question button container */
        .forum-toolbar-card > div[style*="margin-left: 20px"] {
            margin-left: 0 !important;
            width: 100%;
        }

        /* Add Question button */
        #btnAddQuestion,
        .courses_search_buttonnew {
            width: 100% !important;
            height: 42px;
        }
    }
}
