/*
 * Forum styles — ports the legacy iBase frontend.css verbatim and adds the
 * inline reply-form styling on top. Loaded after main.css so it overrides
 * theme defaults where needed (notably `.content { padding: 0 }`).
 *
 * Sources:
 *   /kegrob-forum/Kegrob - Forum_files/frontend.css
 *   /kegrob-forum/Kegrob - Forum_files/form_styling.css
 */

/* ================================================================
 * Reset theme padding inside the forum content panel.
 * Without this, .content keeps `padding: 38px 35px` from main.css
 * AND post-list-* add their own — doubled spacing.
 * ================================================================ */

.kegrob-forum-wrap .content { padding: 0; }

/* ================================================================
 * Generic helpers used throughout the legacy markup.
 * ================================================================ */

.kegrob-forum-wrap hr               { margin: 12px 0; }
.kegrob-forum-wrap .green           { color: #3d927b; }
.kegrob-forum-wrap .red             { color: #c62e1a; }
.kegrob-forum-wrap .icon-paper-clip { transform: rotate(135deg); }

.kegrob-forum-wrap .red-button {
    background: #c62e1a !important;
    color: #fff !important;
    box-shadow: 0 1px 1px rgba(225,225,225,0.2);
}
.kegrob-forum-wrap .red-button:hover,
.kegrob-forum-wrap .red-button:focus {
    background: #b92815 !important;
    box-shadow: 0 1px 3px rgba(225,225,225,0.5);
}

.kegrob-forum-wrap .btn.read-more {
    background: #485b67;
    color: #fff;
    font-size: 13px;
    text-shadow: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 9px 38px;
}
.kegrob-forum-wrap .btn:hover { background: #3d927b; color: #fff; border: none; }

.kegrob-forum-wrap .bordered {
    color: #aaa;
    line-height: 20px;
    border: 1px solid #ddd;
    padding: 9px 16px;
    display: inline-block;
    text-decoration: none;
}
.kegrob-forum-wrap .bordered:hover { background: #fff; }
.kegrob-forum-wrap .bordered i {
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    vertical-align: middle;
    display: inline-block;
}
.kegrob-forum-wrap .counter-box {
    margin-left: 16px;
    position: relative;
}
.kegrob-forum-wrap .pointy {
    background: #fff;
    width: 8px;
    height: 8px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    transform: rotate(45deg);
    position: absolute;
    left: -5px;
    top: 50%;
    margin-top: -4px;
}

/* ================================================================
 * Topic-list overview: header / container / footer.
 * ================================================================ */

.kegrob-forum-wrap .container-fluid { padding: 0; }

.kegrob-forum-wrap .post-list-header,
.kegrob-forum-wrap .post-list-container,
.kegrob-forum-wrap .post-list-footer {
    padding: 38px 5%;
}
.kegrob-forum-wrap .post-list-header {
    background: #f9f9f9;
    border-bottom: 1px solid #dddddd;
    padding-top: 33px;
    padding-bottom: 20px;
}
.kegrob-forum-wrap .post-list-footer {
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    margin-top: -10px;
    padding: 32px 38px;
}

.kegrob-forum-wrap .category-name h1 {
    color: #485b67;
    line-height: 39px;
    margin-bottom: 0;
}

/* ================================================================
 * Bekijk dropdown (month filter).
 * ================================================================ */

.kegrob-forum-wrap .blog_select_text {
    width: 35%;
    color: #aaaaaa;
    font-size: 13px;
    text-align: right;
    line-height: 39px;
    padding-right: 5%;
    float: left;
}
.kegrob-forum-wrap div.styled {
    width: 60%;
    height: 39px;
    margin: 0;
    padding: 0;
    float: right;
    position: relative;
}
.kegrob-forum-wrap div.styled select {
    width: 100%;
    height: 39px;
    background-color: #fff;
    background-image: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ccc;
    box-shadow: none;
    color: #aaa;
    padding: 0 30px 0 10px;
    font-size: 13px;
    line-height: 36px;
    margin: 0;
    cursor: pointer;
}
.kegrob-forum-wrap div.styled .add-on {
    background: none;
    color: #aaaaaa;
    font-size: 18px;
    line-height: 37px;
    border: none;
    position: absolute;
    top: 1px;
    right: 1px;
    z-index: 4;
    padding: 0 13px;
    pointer-events: none;
}

/* ================================================================
 * Single post card on overview.
 * ================================================================ */

.kegrob-forum-wrap .post-header           { color: #aaaaaa; }
.kegrob-forum-wrap .post-header h1        { margin-bottom: 5px; font-size: 20px; line-height: 1.25; }
.kegrob-forum-wrap .post-header h1 a      { color: #485b67; text-decoration: none; }
.kegrob-forum-wrap .post-header h1 a:hover{ color: #3d927b; }
.kegrob-forum-wrap .post-info             { color: #888; font-size: 13px; }
.kegrob-forum-wrap .post-short            { padding: 5px 0 10px; color: #555; }
.kegrob-forum-wrap .post-short p          { margin: 0 0 8px; }

.kegrob-forum-wrap .post-footer           { padding: 10px 0 25px 0; }
.kegrob-forum-wrap .post-footer a         { float: left; }
.kegrob-forum-wrap .post-footer .bordered { color: #485b67; float: left; }
.kegrob-forum-wrap .comments-box,
.kegrob-forum-wrap .files-box             { margin-left: 25px; float: left; }

.kegrob-forum-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 22px 0 0;
}

/* ================================================================
 * Sidebar (gray-box has dark slate bg from theme; only override layout).
 * Theme already sets `.gray-box h1 { color: #fff }`.
 * ================================================================ */

.kegrob-forum-wrap .gray-box   { padding: 38px 35px; }
.kegrob-forum-wrap .gray-box h1{ margin-bottom: 20px; font-size: 18px; }

.kegrob-forum-wrap .nav-list                    { padding: 0; margin-bottom: 5px; }
.kegrob-forum-wrap .nav-list > li               { margin-bottom: 1px; }
.kegrob-forum-wrap .nav-list > li > a           {
    background: #6f7e88;
    color: #fff;
    line-height: 23px;
    text-shadow: none;
    padding: 6px 20px;
    display: block;
    text-decoration: none;
}
.kegrob-forum-wrap .nav-list > li > a.active    { background: #5c6d78; }
.kegrob-forum-wrap .nav-list > li > a:hover     { background: #99a6ae; color: #fff; }
.kegrob-forum-wrap .nav-list [class^="icon-"],
.kegrob-forum-wrap .nav-list [class*=" icon-"]  { font-size: 10px; margin-right: 17px; vertical-align: top; }

.kegrob-forum-wrap .counter {
    background: #282e33;
    min-width: 35px;
    height: 23px;
    text-align: center;
    border-radius: 7px;
    float: right;
    display: inline-block;
    color: #fff;
    padding: 0 6px;
    line-height: 23px;
    font-size: 12px;
}

/* ================================================================
 * Search box (matches OLD `.search-field.italic` + `.search-trigger`).
 * ================================================================ */

.kegrob-forum-wrap .search-box                     { position: relative; }
.kegrob-forum-wrap input.search-field {
    background: #5c6d78;
    width: 100%;
    height: 39px;
    color: #fff;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0 50px 0 12px;
    box-shadow: none;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 39px;
    vertical-align: middle;
}
.kegrob-forum-wrap input.search-field::placeholder { color: #c8d2d8; }
.kegrob-forum-wrap input.search-field.italic       { font-style: italic; }
.kegrob-forum-wrap .search-trigger {
    background: #282e33;
    color: #fff;
    font-size: 16px;
    text-align: center;
    border: none;
    border-radius: 0;
    padding: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    cursor: pointer;
    line-height: 39px;
    text-decoration: none;
    box-sizing: border-box;
}
.kegrob-forum-wrap .search-trigger:hover { background: #3d927b; color: #fff; }

/* ================================================================
 * CTA box ("Start een onderwerp"). The theme's `.green-box a`
 * already sets display:block / line-height / color. `.red-button`
 * just overrides the green bg. We only add icon spacing.
 * ================================================================ */

.kegrob-forum-wrap .green-box.cta-box .post-link i { margin-left: 8px; }

/* ================================================================
 * Pagination.
 * ================================================================ */

.kegrob-forum-wrap .pagination               { margin: 0; }
.kegrob-forum-wrap .pagination ul            { margin: 0; display: flex; gap: 5px; justify-content: flex-end; }
.kegrob-forum-wrap .pagination ul > li       { list-style: none; }
.kegrob-forum-wrap .pagination ul > li > a,
.kegrob-forum-wrap .pagination ul > li > span {
    color: #485b67;
    border: 1px solid #ddd;
    padding: 6px 12px;
    background: #fff;
    text-decoration: none;
}
.kegrob-forum-wrap .pagination ul > li > a:hover,
.kegrob-forum-wrap .pagination ul .current { background: #d9d9d9; }

/* ================================================================
 * Topic detail view (.post-detail-* matches OLD markup).
 * ================================================================ */

.kegrob-forum-wrap .post-detail-header,
.kegrob-forum-wrap .post-detail-container,
.kegrob-forum-wrap .post-detail-footer {
    padding: 28px 5%;
}
.kegrob-forum-wrap .post-detail-header {
    background: #f9f9f9;
    border-bottom: 1px solid #dddddd;
}
.kegrob-forum-wrap .post-detail-container .post-header h1 { color: #485b67; line-height: 1.25; }
.kegrob-forum-wrap .post-detail-container .post-long      { color: #444; line-height: 1.6; }
.kegrob-forum-wrap .post-detail-container .post-long p    { margin: 0 0 14px; }
.kegrob-forum-wrap .post-detail-container .post-long img  { max-width: 100%; height: auto; }
.kegrob-forum-wrap .post-detail-container .post-long a    { color: #3d927b; }

/* ================================================================
 * Comments / replies (uses OLD .comment > .comment-container
 * markup with .comment-info + .comment-post + .comment-footer).
 * ================================================================ */

.kegrob-forum-wrap .comments-container {
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    padding: 30px 5%;
}
.kegrob-forum-wrap .comments-header   { padding-bottom: 30px; }
.kegrob-forum-wrap .comments-header h1{ line-height: 38px; margin-bottom: 0; color: #485b67; }
.kegrob-forum-wrap .comment           { margin-bottom: 7px; }
.kegrob-forum-wrap .comment-info      { border-top: 1px solid #ddd; color: #aaa; }
.kegrob-forum-wrap .author-info       { padding: 8px 0; }
.kegrob-forum-wrap .author-img        {
    background: #fff;
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-top: none;
    margin-right: 13px;
    overflow: hidden;
}
.kegrob-forum-wrap .author-img img    { width: 100%; height: 100%; object-fit: cover; }
.kegrob-forum-wrap .comment-post      { padding-top: 10px; color: #444; line-height: 1.55; }
.kegrob-forum-wrap .comment-post p    { margin: 0 0 10px; }
.kegrob-forum-wrap .comment-footer    { margin-bottom: 10px; color: #aaa; }
.kegrob-forum-wrap .comment .comment  { padding-left: 30px; position: relative; }
.kegrob-forum-wrap .comment-link      { text-decoration: none; }
.kegrob-forum-wrap .comment-link:hover .green { color: #2f7965; }

/* ================================================================
 * Attachments (in topic / reply body).
 * ================================================================ */

.kegrob-forum-attachments               { margin: 14px 0 4px; }
.kegrob-forum-attachments h3            { font-size: 14px; color: #485b67; margin: 0 0 10px; }
.kegrob-forum-attachment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e4e7;
    color: #485b67;
    padding: 6px 12px;
    margin: 0 8px 8px 0;
    text-decoration: none;
    font-size: 13px;
}
.kegrob-forum-attachment:hover { background: #f4f6f7; color: #3d927b; text-decoration: none; }
.kegrob-forum-attachment i     { color: #63a391; font-size: 16px; }

/* ================================================================
 * Inline reply / new-topic form (we don't use a modal).
 * ================================================================ */

.kegrob-forum-reply-form { padding: 24px 5%; background: #fff; border-top: 1px solid #ddd; }
.kegrob-forum-reply-form h3 { color: #485b67; font-size: 18px; margin-bottom: 12px; }

.kegrob-forum-replying-to {
    display: inline-block;
    background: #f0f4f3;
    color: #485b67;
    padding: 6px 10px;
    border-left: 3px solid #3d927b;
    font-size: 13px;
    margin-bottom: 8px;
}
.kegrob-forum-replying-to a { color: #c62e1a; margin-left: 8px; text-decoration: none; }

.kegrob-forum-wrap .rowElem        { margin-bottom: 14px; }
.kegrob-forum-wrap .form_title     { color: #485b67; font-weight: bold; margin-bottom: 4px; }
.kegrob-forum-wrap .form_text {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 8px 10px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
}
.kegrob-forum-wrap textarea.form_text { resize: vertical; min-height: 120px; }

.kegrob-forum-attach-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #485b67;
    cursor: pointer;
}
.kegrob-forum-attach-label input[type="file"] { font-size: 13px; }

/* Specificity boost — `.kegrob-forum-wrap .content { padding: 0 }`
 * higher up otherwise overrides a bare `.kegrob-forum-new-topic` rule. */
.kegrob-forum-wrap .kegrob-forum-new-topic         { padding: 28px 5%; }
.kegrob-forum-wrap .kegrob-forum-new-topic .post-header h1 { color: #485b67; }

/* ================================================================
 * /forum/ login form (logged-out — rendered directly inside
 * .span8 > .shadow > .content, matching the legacy iBase markup).
 * ================================================================ */

.kegrob-forum-wrap .login-form           { margin: 0; }
.kegrob-forum-wrap .login-form .modal-header {
    border-bottom: 1px solid #cccccc;
    padding: 28px 6.5% 22px;
    margin: 0;
}
.kegrob-forum-wrap .login-form .modal-header h1.modal-title {
    color: #3d927b;
    font-size: 24px;
    font-family: 'Titillium25L400wt', Arial, sans-serif;
    line-height: 32px;
    text-shadow: 0 1px 0 #fff;
    margin-bottom: 20px;
    margin-top: 0;
}
.kegrob-forum-wrap .login-form .modal-body {
    padding: 24px 6.5% 28px;
}
.kegrob-forum-wrap .login-form .form_title {
    color: #485b67;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 13px;
}
.kegrob-forum-wrap .login-form .form_field { min-height: 39px; position: relative; }
.kegrob-forum-wrap .login-form .form_text {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 10px 12px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    height: 39px;
    line-height: 1;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}
.kegrob-forum-wrap .login-form .form_text:focus {
    border-color: #3d927b;
    outline: none;
}
.kegrob-forum-wrap .login-form input[type="submit"].btn {
    background: #282e33;
    color: #fff;
    font-size: 13px;
    text-shadow: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 9px 30px;
    cursor: pointer;
    line-height: 1;
    margin-top: 6px;
}
.kegrob-forum-wrap .login-form input[type="submit"].btn:hover,
.kegrob-forum-wrap .login-form input[type="submit"].btn:focus {
    background: #3d927b;
    color: #fff;
}

/* ================================================================
 * Login error message (inside login block).
 * ================================================================ */

.kegrob-forum-login-error {
    background: #fff3f1;
    border: 1px solid #f5c4bc;
    color: #b92815;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* ================================================================
 * Mobile.
 * ================================================================ */

@media screen and (max-width: 767px) {
    .kegrob-forum-wrap .post-list-header,
    .kegrob-forum-wrap .post-list-container,
    .kegrob-forum-wrap .post-detail-header,
    .kegrob-forum-wrap .post-detail-container,
    .kegrob-forum-wrap .comments-container,
    .kegrob-forum-wrap .kegrob-forum-reply-form,
    .kegrob-forum-wrap .kegrob-forum-new-topic { padding: 22px 5%; }
    .kegrob-forum-wrap .post-footer .btn.read-more {
        width: 86%;
        padding: 9px 7%;
        margin-bottom: 10px;
    }
    .kegrob-forum-wrap .comments-box { margin-left: 0; }
    .kegrob-forum-wrap .files-box    { margin-left: 0; float: right; }
    .kegrob-forum-wrap .blog_select_text { display: none; }
    .kegrob-forum-wrap div.styled    { width: 100%; float: none; }
}
