body,
html {
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sidebar {
    width: 220px;
    background-color: var(--primary-blue-light);
    color: white;
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar-nav ul {
    list-style: none;
    margin-top: 20px;
}

.sidebar-nav li {
    margin: 10px 0;
}

.sidebar-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-nav *:hover,.mobile-menu *:hover {
    color: var(--accent-gold);
}

.sidebar-brand {
    text-align: center;
}

.content {
    flex: 1;
    padding: 40px 20px;
    background-color: var(--light-gray);
}

.sidebar-nav ul li {
    background-color: var(--primary-blue);
    border-radius: 10px;
    margin: 8px 0;
    padding: 12px 16px;
    list-style: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease;
}

.sidebar-nav ul li:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sidebar-nav ul li:hover a {
    color: #002b5c;
}

.sidebar-nav ul li.active {
    background-color: dodgerblue;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-nav ul li.active a {
    color: #fff;
}

.sidebar-nav hr,
#mobile-menu hr {
    margin: 25px 0;
}

#site-navbar {
    display: none;
    z-index: 1000;
    position: fixed;
    width: 100%;
    background: var(--primary-blue);
}

@media (max-width: 980px) {
    #site-navbar {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .nav-container {
        flex-direction: row;
        padding: 10px;
    }

    .nav-left {
        width: 100%;
        justify-content: left;
        flex: 1;
    }

    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-left .logo {
        height: 64px;
        transition: height 0.3s ease;
    }

    body {
        display: block;
    }

    .page-wrapper {
        display: block;
    }

    .content {
        padding-top: 108px;
    }

    .mobile-menu {
        padding-top: 96px;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-left,
    .profile-right {
        width: 100%;
    }

    .profile-img {
        margin: auto;
        display: block;
    }

    .profile-name,
    .profile-date,
    .profile-about,
    .profile-details {
        text-align: center;
    }

    .materials-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
    }

    .tags {
        justify-content: center;
    }
}











.forum-table a:-webkit-any-link {
    cursor: pointer;
    text-decoration: none;
}

.forum-container {
    max-width: 1000px;
    margin: auto;
}

.forum-container h1 {
    margin-bottom: 32px;
}

.forum-category {
    margin-bottom: 40px;
}

.forum-category h2 {
    background-color: #002b5c;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1.2rem;
}

.forum-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.forum-table th {
    background-color: #e0e0e0;
    color: #333;
    font-weight: bold;
    padding: 12px;
    text-align: left;
}

.forum-table td {
    background-color: #fff;
    padding: 16px;
    vertical-align: top;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.forum-table tbody tr td:last-child {
    max-width: 256px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.forum-table h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #002b5c;
}

.forum-table p {
    font-size: 0.9rem;
    color: #555;
}

.post-title {
    font-weight: bold;
    color: #002b5c;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    font-size: 0.85rem;
    color: #555;
}

.forum-table tbody tr:hover td {
    background-color: #d4af37;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.forum-table tbody tr:hover h3,
.forum-table tbody tr:hover p,
.forum-table tbody tr:hover .post-title,
.forum-table tbody tr:hover .post-meta {
    color: #002b5c;
}

hr {
    margin: 25px 0;
}

.breadcrumbs {}

.breadcrumb:after {
    content: ">";
}

.current-crumb {
    font-weight: bold;
}








.thread-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.post-author {
    font-weight: bold;
    color: #002b5c;
}

.post-date {
    font-style: italic;
}

.post-card.reply {
    max-width: 386px;
    margin: auto;
}

.post-body p {
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
}

.form-group textarea,
.reply-input {
    font-family: inherit;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}




.settings-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
}

.settings-container h1 {
    margin-bottom: 20px;
    color: #002b5c;
}








.profile-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: auto;
}

.profile-left {
    flex: 1;
    min-width: 280px;
}

.profile-inner {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-img {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 16px;
    display: block;
    margin: auto;
}

.profile-name {
    margin-bottom: 6px;
    color: #002b5c;
    text-align: center;
}

.profile-type {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.profile-date,
.profile-about {
    margin-bottom: 10px;
    color: #555;
}

.profile-details {
    list-style: none;
    padding: 0;
    color: #333;
}

.profile-right {
    flex: 1;
    min-width: 280px;
}

.accordion-item {
    margin-bottom: 12px;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 12px;
    background-color: var(--primary-blue);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FFF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--primary-blue-light);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-top: 6px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-body.show {
    max-height: 500px;
    padding: 12px;
}


.file-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.file-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: bold;
    color: #002b5c;
}

.file-desc {
    font-size: 0.9rem;
    color: #555;
}

.file-meta {
    font-size: 0.85rem;
    color: #777;
}

.file-reputation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;

    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.file-reputation .thumb-up,
.file-reputation .thumb-down {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.file-reputation .thumb-up:hover {
    color: green;
}

.file-reputation:has(.thumb-up:hover) {
    background-color: lightgreen;
}

.file-reputation .thumb-down:hover {
    color: red;
}

.file-reputation:has(.thumb-down:hover) {
    background-color: #faa;
}

.file-reputation .thumb-up:hover,
.file-reputation .thumb-down:hover {
    transform: scale(1.2);
}

.file-reputation .rep-count {
    font-weight: bold;
    color: #333;
}

.file-info hr {
    margin: 10px 0;
}

.file-download {
    float: right;
    background: lightgray;
    border: 2px solid gray;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.file-download:hover {
    background: gray;
    color: white;
}















.materials-container {
    max-width: 1200px;
    margin: auto;
}

.materials-description {
    margin-bottom: 20px;
    color: #555;
}

.materials-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.search-bar {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #002b5c;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.material-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.material-card:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
}

.material-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

.material-info {
    flex: 1;
}

.material-name {
    font-weight: bold;
    color: #002b5c;
}

.material-desc {
    font-size: 0.9rem;
    color: #555;
}

.material-meta {
    font-size: 0.85rem;
    color: #777;
}

.material-created {
    font-size: 0.85rem;
    color: #444;
    display: block;
    margin-top: 4px;
}

.material-info hr {
    margin: 10px 0;
}

.material-download {
    float: right;
    background: lightgray;
    border: 2px solid gray;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.material-download:hover {
    background: gray;
    color: white;
}

.material-reputation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2),
        inset -2px -2px 4px rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.material-reputation .thumb-up,
.material-reputation .thumb-down {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.material-reputation .thumb-up:hover {
    color: green;
}

.material-reputation:has(.thumb-up:hover) {
    background-color: lightgreen;
}

.material-reputation .thumb-down:hover {
    color: red;
}

.material-reputation:has(.thumb-down:hover) {
    background-color: #faa;
}

.material-reputation .thumb-up:hover,
.material-reputation .thumb-down:hover {
    transform: scale(1.2);
}

.material-reputation .rep-count {
    font-weight: bold;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #002b5c;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-btn:hover {
    background-color: #d4af37;
    color: #002b5c;
}

.page-btn.active {
    background-color: #d4af37;
    color: #002b5c;
}