/* =========================================
   CELELAND OLD-STYLE FORUM
   ========================================= */

body {
    margin: 0;
    padding: 6px 0;
    background: #f5f5ed;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.forum-container {
    width: 1024px;
    max-width: 96%;
    margin: 0 auto;
}


/* =========================================
   MAIN HEADER
   ========================================= */

.site-header {
    background: #f7f7ef;
    border: 1px solid #d4d8c9;
    border-radius: 16px;
    text-align: center;
    padding: 8px 10px;
}

.site-name {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-name a {
    color: #075b24;
    text-decoration: none;
}

.site-name a:hover {
    text-decoration: underline;
}

.top-navigation {
    margin-bottom: 10px;
}

.top-navigation a,
.section-links a,
.bottom-navigation a {
    color: #000080;
    text-decoration: none;
}

.top-navigation a:hover,
.section-links a:hover,
.bottom-navigation a:hover {
    text-decoration: underline;
}

.forum-stats {
    margin-bottom: 10px;
}

.search-area {
    margin-top: 4px;
}

.search-area form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.search-input {
    width: 500px;
    max-width: 70%;
    height: 32px;
    border: 1px solid #d3d3d3;
    border-radius: 18px;
    background: #fff;
}

.search-button {
    height: 32px;
    padding: 2px 12px;
    border: 1px solid #c7c7c7;
    border-radius: 16px;
    background: #fff;
    color: #000;
}

.search-button:hover {
    background: #eeeeee;
}


/* =========================================
   FORUM SECTIONS
   ========================================= */

.forum-section {
    border-left: 1px solid #d4d8c9;
    border-right: 1px solid #d4d8c9;
    border-bottom: 1px solid #d4d8c9;
    background: #f7f7ef;
}

.section-title {
    background: #e6eadf;
    border-bottom: 1px solid #d4d8c9;
    text-align: center;
    font-weight: bold;
    padding: 7px;
}

.section-links {
    padding: 8px;
    line-height: 24px;
}


/* =========================================
   ADVERTISEMENT AREA
   ========================================= */

.advertisement-area {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
}

.advertisement {
    flex: 1;
    text-align: center;
}

.advertisement img {
    width: 100%;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #d0d0d0;
}


/* =========================================
   BOTTOM NAVIGATION
   ========================================= */

.bottom-navigation {
    background: #e6eadf;
    border: 1px solid #d4d8c9;
    padding: 9px;
    text-align: center;
}

.bottom-navigation a {
    font-weight: normal;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .forum-container {
        max-width: 98%;
    }

    .site-name {
        font-size: 26px;
    }

    .advertisement-area {
        display: block;
        padding: 6px;
    }

    .advertisement {
        margin-bottom: 7px;
    }

    .advertisement img {
        height: auto;
        max-height: 110px;
    }

    .search-input {
        max-width: 70%;
    }
}


/* =========================================
   LATEST NEWS
   ========================================= */

.news-list {
    background: #f7f7ef;
    padding: 5px 8px;
}

.news-item {
    padding: 7px 4px;
    margin-bottom: 6px;
    line-height: 20px;
}

.news-item a {
    color: #000080;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-meta {
    color: #555;
    font-size: 13px;
}

.news-empty {
    padding: 8px 0;
    color: #555;
}





/* =========================================
   TOPIC PAGE
   ========================================= */

.topic-content {
    background: #f7f7ef;
    padding: 10px;
}

.topic-meta {
    padding-bottom: 8px;
    border-bottom: 1px dotted #cccccc;
    color: #555;
    font-size: 13px;
}

.topic-meta a {
    color: #000080;
    text-decoration: none;
}

.topic-meta a:hover {
    text-decoration: underline;
}

.topic-body {
    padding-top: 12px;
    line-height: 1.6;
    white-space: normal;
}

/* =========================================
   MEMBERS ONLINE
   ========================================= */

.members-online {
    margin-top: 8px;
    padding: 10px;
    text-align: center;
    background: #f7f7ef;
    border: 1px solid #d4d8c9;
    border-radius: 16px;
}

.members-online strong {
    display: block;
    margin-bottom: 5px;
}



/* =========================================
   LOWER ADVERTISEMENTS
   ========================================= */

.lower-advertisement-area {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 8px 5px;
}

.lower-advertisement {
    flex: 1;
    text-align: center;
}

.lower-advertisement img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 1px solid #cccccc;
}

.empty-lower-ad {
    height: 88px;
    border: 1px solid #cccccc;
    background: #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555555;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    margin-top: 8px;
    padding: 10px;
    text-align: center;
    background: #f7f7ef;
    border: 1px solid #d4d8c9;
    font-size: 13px;
}

.footer-links {
    margin-bottom: 8px;
}

.footer-links a {
    color: #000080;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-search {
    margin-bottom: 10px;
}

.footer-search input {
    width: 280px;
    max-width: 60%;
    height: 26px;
    border: 1px solid #aaaaaa;
    padding: 2px 5px;
}

.footer-search button {
    height: 30px;
    padding: 2px 10px;
    border: 1px solid #999999;
    background: #eeeeee;
}

.footer-copyright {
    margin-bottom: 6px;
    font-weight: bold;
}

.footer-disclaimer {
    color: #555555;
    line-height: 18px;
}

/* =========================================
   FORUM TOPICS
   ========================================= */

.forum-description {
    padding: 7px 8px;
    color: #555555;
    border-bottom: 1px dotted #cccccc;
}

.forum-topics {
    padding: 5px 8px;
}

.forum-topic {
    padding: 7px 4px;
    margin-bottom: 5px;
}

.forum-topic a {
    color: #000080;
    text-decoration: none;
}

.forum-topic a:hover {
    text-decoration: underline;
}

.forum-empty {
    padding: 8px 4px;
    color: #555555;
}


/* =========================================
   REGISTRATION
   ========================================= */

.register-form {
    padding: 10px;
}

.register-form label {
    font-weight: bold;
}

.register-form input {
    width: 300px;
    max-width: 95%;
    height: 28px;
    border: 1px solid #999999;
    padding: 3px 5px;
}

.register-form button {
    padding: 4px 12px;
    border: 1px solid #888888;
    background: #eeeeee;
    cursor: pointer;
}

.register-form button:hover {
    background: #dddddd;
}

/* ==============================
   INDIVIDUAL COMMENTS
============================== */

.topic-comment {
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #f7f7f7;
    padding: 10px;
    margin-bottom: 10px;
}

.comment-meta {
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 5px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #555;
}

.comment-meta strong {
    color: #000080;
}

.comment-body {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 9px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}


/* ==============================
   COMMENT FORM
============================== */

.comment-form {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #f7f7f7;
}

.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
}

.comment-button {
    margin-top: 5px;
    padding: 5px 12px;
    border: 1px solid #777;
    border-radius: 4px;
    background: #eeeeee;
    cursor: pointer;
}

.comment-button:hover {
    background: #e0e0e0;
}

.comment-error {
    border: 1px solid #cc9999;
    border-radius: 5px;
    background: #fff0f0;
    padding: 8px;
    margin-bottom: 10px;
}

.comment-login {
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
}


/* ==============================
   HORIZONTAL TOP ADS
============================== */

.advertisement-area {
    display: flex;
    width: 100%;
    gap: 6px;
    margin: 8px 0;
}

.advertisement {
    flex: 1;
    width: 33.333%;
    overflow: hidden;
}

.advertisement img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 1px solid #aaa;
}

.empty-ad {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #aaa;
    background: #eeeeee;
    font-size: 13px;
}

.forum-navigation {
    border: 1px solid #aaa;
    background: #f5f5f5;
    margin: 6px 0;
    padding: 5px;
    font-size: 13px;
}

.nav-category {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
}

.nav-category:last-child {
    border-bottom: none;
}

.nav-category strong {
    color: #006600;
    margin-right: 10px;
}

.nav-category a {
    color: #0000cc;
    text-decoration: underline;
    margin-right: 12px;
}

.nav-category a:hover {
    color: #cc0000;
}

.comment-actions {
    margin-top: 5px;
    font-size: 12px;
}

.comment-action {
    color: #0000cc;
    text-decoration: underline;
}

.comment-action:hover {
    color: #cc0000;
}