/* IPB-Style Unified Dark Theme */
body {
    background-image: url(../../../images/backgroundblack1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

/* Universal Links */
a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #72aee6;
}

#container {
    width: 90%;
    max-width: 1400px;
    margin: 30px auto;
}

#header {
    background: transparent;
    padding: 25px 5% 0 5%;
    color: #ffffff;
    border: none;
    margin-bottom: 0;
}

#logo {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

#logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.tborder {
    background: #1E1E1E;
    border: 1px solid #283445;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: visible;
    width: 100%;
}

/* --- UPDATED: Header Background Banner for Forum Sections --- */
.thead {
    background: #151c25 url(../../../images/fmdivider.png) no-repeat center;
    background-size: cover; 
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 20px;
    border-bottom: 2px solid #2161b5;
    border-radius: 7px 7px 0 0;
}

.tcat {
    background: #283445;
    color: #8b9eb3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 20px;
    border-bottom: 1px solid #151c25;
}

.trow1, .trow2 {
    background: #1E1E1E;
    padding: 18px 20px;
    border-bottom: 1px solid #283445;
    color: #c4d1de;
}

.tborder tr:last-child td {
    border-bottom: none;
}

.post {
    border-bottom: 7px solid #283445;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.post_author {
    border: 1px solid #3B3B3B !important;
    background: #3B3B3B !important;
    border-radius: 6px !important;
    padding: 12px 15px !important;
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100% !important;
}

div.post_author {
    margin: 5px 15px 15px 0 !important;
}

.post_body, .post_content {
    color: #c4d1de !important;
    margin-top: 20px !important;
    display: block;
}

.signature {
    margin-top: 30px !important;
    border-top: none !important;
    padding-top: 0 !important;
}

.postbit_group_image,
.post_author img[src*="star"] {
    display: none !important;
}

.inline_rating,
.star_rating,
form[action*="ratethread"] {
    display: none !important;
}

.button, a.button {
    background-color: #2161b5;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 500;
    border: none;
    transition: background 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.button:hover, a.button:hover {
    background-color: #1a4d90;
}

.navigation {
    background: transparent;
    padding: 0;
    font-size: 13px;
    color: #8b9eb3;
    margin-bottom: 0;
}

.navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.navigation a:hover {
    color: #4a90e2;
}

#panel {
    text-align: center;
    margin-bottom: 0;
    border: none !important;
    background: transparent !important;
}

#header a,
#panel a,
.menu a {
    color: #c4d1de !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease-in-out;
}

#header a:hover,
#panel a:hover,
.menu a:hover {
    color: #ffffff !important;
}

.menu ul,
#header ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 10px 0 !important;
    padding: 5px 0 !important;
    gap: 25px !important;
    background: transparent !important;
}

.menu ul li,
#header ul li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header form {
    display: none !important;
}

.clan-header-wrapper {
    display: flex;
    justify-content: space-around;
    background-color: #1E1E1E;
    padding: 30px 20px;
    margin-top: 10px;
    margin-bottom: 25px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    border: 1px solid #283445;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.clan-col {
    width: 45%;
}

.clan-title {
    color: #3b82a0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.clan-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.rank-title {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.rank-title.founder { color: #C71B00; }
.rank-title.leader { color: #ff3333; }
.rank-title.highcouncil { color: #0F8700; }
.rank-title.officer { color: #F09005; }

.rank-name, .info-desc {
    color: #cccccc;
    font-size: 14px;
    margin-top: 5px;
}

.info-title {
    color: #5599bb;
    font-size: 18px;
    font-weight: bold;
}

blockquote .mycode_quote {
    background: #151c25;
    border: 1px solid #283445;
    border-left: 4px solid #2161b5;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: #c4d1de;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 100%;
}

blockquote .mycode_quote cite {
    font-weight: 600;
    color: #ffffff;
    display: block;
    border-bottom: 1px solid #283445;
    margin-bottom: 8px;
    padding-bottom: 5px;
}

.smalltext,
.post_meta,
.edited_post,
.post_date {
    color: #c4d1de !important;
}

.smalltext a,
.post_meta a,
.edited_post a,
.post_date a {
    color: #c4d1de !important;
}

.smalltext a:hover,
.post_meta a:hover,
.edited_post a:hover,
.post_date a:hover {
    color: #ffffff !important;
}