/* ==========================================================================
   968Forums.com - Sidebar Layout & IPB-Style Theme Overrides for MyBB
   
   INSTALLATION:
   Upload as "968forums_custom.css" to your MyBB root directory
   and reference via headerinclude:
   <link rel="stylesheet" type="text/css" href="{$mybb->asset_url}/968forums_custom.css" />
   ========================================================================== */

/* --------------------------------------------------------------------------
   LAYOUT: Container width
   -------------------------------------------------------------------------- */
#container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
/* #content {
	max-width: 1400px;
	margin: 0 auto;
}
 */
/* --------------------------------------------------------------------------
   TWO-COLUMN: Flex wrapper for index page
   -------------------------------------------------------------------------- */
#index-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
}

#index-main {
    flex: 1;
    min-width: 0;
}fo

#index-sidebar {
    width: 260px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    #index-wrapper {
        flex-direction: column;
    }
    #index-sidebar {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   FORUM TABLES
   -------------------------------------------------------------------------- */
.tborder {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border: 1px solid #c0c8d0;
}

.thead {
    background: #3a5a7c !important;
    background: linear-gradient(to bottom, #4a6a8c, #2a4a6c) !important;
    color: #fff !important;
    border-bottom: 1px solid #1e3a56 !important;
    font-size: 14px;
    padding: 8px 12px;
}

.thead a {
    color: #fff !important;
    text-decoration: none;
}

.tcat {
    background: #dce4ec !important;
    background: linear-gradient(to bottom, #e8eef4, #d0d8e2) !important;
    color: #444 !important;
    border-bottom: 1px solid #b8c4d0 !important;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 5px 8px;
}

.tcat a {
    color: #444 !important;
    text-decoration: none;
}

.trow1 {
    background: #f7f8fa !important;
    border-bottom: 1px solid #eaedf0;
}

.trow2 {
    background: #fff !important;
    border-bottom: 1px solid #eaedf0;
}

.trow1:hover,
.trow2:hover {
    background: #eef3f8 !important;
}

/* --------------------------------------------------------------------------
   FORUM NAMES & DESCRIPTIONS
   -------------------------------------------------------------------------- */
.forum_name a,
.forumlist_text a.forum_link {
    color: #234b6e;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
}

.forum_name a:hover,
.forumlist_text a.forum_link:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

.forum_description,
.forumdisplay_regular .smalltext {
    color: #666;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
}

.subforumlist a {
    color: #557799;
    font-size: 11px;
    text-decoration: none;
}

.subforumlist a:hover {
    text-decoration: underline;
}

.lastpost {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

.lastpost a {
    color: #234b6e;
}

td.trow1,
td.trow2 {
    font-size: 15px;
    color: #555;
}

/* --------------------------------------------------------------------------
   NAVIGATION / BREADCRUMBS
   -------------------------------------------------------------------------- */


.navigation a {
    color: #234b6e;
    text-decoration: none;
}

.navigation a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   BOARD STATS & FORUM LEGEND
   -------------------------------------------------------------------------- */
#boardstats {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.forum_legend {
    padding: 8px 0;
    color: #777;
}

/* --------------------------------------------------------------------------
   SIDEBAR: Block styling
   -------------------------------------------------------------------------- */
.sidebar-block {
    margin-bottom: 15px;
    border: 1px solid #c0c8d0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-block h3 {
    background: #3a5a7c;
    background: linear-gradient(to bottom, #4a6a8c, #2a4a6c);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #1e3a56;
}

.sidebar-content {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

.sidebar-content a {
    color: #234b6e;
    text-decoration: none;
}

.sidebar-content a:hover {
    text-decoration: underline;
    color: #1a3a5c;
}

.sidebar-donate-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #3a5a7c;
    background: linear-gradient(to bottom, #4a6a8c, #3a5a7c);
    color: #fff !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none !important;
    border: 1px solid #2a4a6c;
}

.sidebar-donate-btn:hover {
    background: #2a4a6c;
    background: linear-gradient(to bottom, #3a5a7c, #2a4a6c);
}

.garage-thumb {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 6px;
}

.garage-info h4 {
    margin: 4px 0 2px;
    font-size: 12px;
    color: #234b6e;
}

/* --------------------------------------------------------------------------
   RECENT TOPICS: Avatar + thread layout
   -------------------------------------------------------------------------- */
.recent-topics-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-topics-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #eaedf0;
}

.recent-topics-list li:last-child {
    border-bottom: none;
}

.rt-avatar {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
}

.rt-content {
    flex: 1;
    min-width: 0;
}

.rt-content a {
    color: #234b6e;
    font-weight: bold;
    font-size: 11px;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rt-meta {
    color: #888;
    font-size: 10px;
    margin-top: 2px;
}

.rt-meta a {
    color: #557799;
    font-weight: normal;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.bottomlinks {
    background: #e8ecf0;
    border-top: 1px solid #c8d0d8;
    padding: 10px 16px;
    font-size: 11px;
    color: #666;
}

.bottomlinks a {
    color: #234b6e;
}

/* --------------------------------------------------------------------------
   GENERAL
   -------------------------------------------------------------------------- */
a {
    color: #234b6e;
}

a:hover {
    color: #1a3a5c;
}

.thead .expcolimage img {
    opacity: 0.6;
}

.thead .expcolimage img:hover {
    opacity: 1;
}

.red_alert {
	font-size: 14px !important;
	max-width: 900px;
	margin: 0 auto;
}
/* --------------------------------------------------------------------------
   FORUM STATUS ICONS: Porsche 968 silhouette (48x35 images)
   -------------------------------------------------------------------------- */
.forum_status {
    width: 48px !important;
    height: 35px !important;
    background-size: 48px 35px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
}

.forum_status.forum_on {
    background-image: url(../images/968forums/forum_on.png) !important;
}

.forum_status.forum_off {
    background-image: url(../images/968forums/forum_off.png) !important;
    opacity: 0.4;
}

.forum_status.forum_offclose {
    background-image: url(../images/968forums/forum_off.png) !important;
    opacity: 0.3;
}

.forum_status.forum_offlink {
    background-image: url(../images/968forums/forum_off.png) !important;
    opacity: 0.5;
}