/* R-Cycle / Rubik layout restoration (original theme CSS was lost) */
:root {
  --rc-accent: #e93e3e;
  --rc-text: #333333;
  --rc-muted: #888888;
  --rc-title: #222222;
  --rc-border: #eeeeee;
  --rc-max: 1170px;
}

#page-wrap,
#page-inner-wrap {
  width: 100%;
  min-height: 100%;
}

.bkwrapper.container,
.bkwrapper.container,
.article-wrap.bkwrapper.container,
.bk-breadcrumbs-wrap.bkwrapper.container {
  max-width: var(--rc-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.rubik-page-content-wrapper {
  padding-bottom: 40px;
}

/* ---- Module / page title ---- */
.page-title-wrapper,
.module-title {
  margin: 28px 0 22px;
  clear: both;
}
.module-title h2,
.page-title-wrapper h2,
.module-title .heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rc-title);
  border-bottom: 3px solid var(--rc-accent);
  display: inline-block;
  padding-bottom: 8px;
  line-height: 1.3;
}

/* ---- Homepage masonry cards ---- */
#main-content,
.content-wrap.bk-masonry,
.bk-masonry {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  clear: both;
}
.bk-masonry,
.content-wrap.bk-masonry {
  margin: 0 -10px 30px;
  width: auto;
}
ul.bk-masonry-content {
  list-style: none !important;
  margin: 0 -10px !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  width: auto;
  position: static !important;
  height: auto !important;
}
ul.bk-masonry-content > li {
  list-style: none !important;
  padding: 10px !important;
  margin: 0 0 10px !important;
  float: none !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  box-sizing: border-box;
}
ul.bk-masonry-content > li.col-md-4 {
  width: 33.333% !important;
}
ul.bk-masonry-content > li .post-c-wrap,
ul.bk-masonry-content > li .excerpt,
ul.bk-masonry-content > li .meta,
ul.bk-masonry-content > li .title {
  opacity: 1 !important;
  visibility: visible !important;
  color: #333333;
}

.row-type.content_out,
.content_out.row-type {
  background: #fff;
  border: 1px solid var(--rc-border);
  border-radius: 2px;
  overflow: visible;
  height: auto;
  min-height: 120px;
  color: #333333;
  transition: box-shadow 0.2s ease;
}
.row-type.content_out:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.bk-mask {
  position: relative;
}
.thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f0f0f0 !important; /* override inline red accent on empty thumbs */
  min-height: 0;
}
.thumb a {
  display: block;
  min-height: 140px;
  background: linear-gradient(135deg, #f4f4f4 0%, #e8e8e8 100%);
}
.thumb.hide-thumb a,
.thumb.hide-thumb {
  min-height: 0;
}
.thumb.hide-thumb a {
  min-height: 8px;
  background: #f5f5f5;
}
.thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.rubik-post-icon-wrap {
  display: none;
}

.post-c-wrap {
  padding: 16px 18px 20px;
}
.post-c-wrap .title,
.post-c-wrap h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--rc-title);
  font-family: Roboto, "Open Sans", sans-serif;
}
.post-c-wrap .title a,
.post-c-wrap h4 a {
  color: inherit;
  text-decoration: none;
}
.post-c-wrap .title a:hover,
.post-c-wrap h4 a:hover {
  color: var(--rc-accent);
  text-decoration: none;
}
.post-c-wrap .excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}
.post-c-wrap .excerpt p {
  margin: 0 0 0.5em;
}
.post-c-wrap .excerpt p:last-child {
  margin-bottom: 0;
}

.meta-wrap,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--rc-muted);
  font-family: Lato, "Open Sans", sans-serif;
  margin-bottom: 8px;
}
.meta > div {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.meta .fa {
  margin-right: 3px;
}
.post-author {
  font-weight: 600;
  color: #666;
}
.post-category a,
.s-post-header .post-category {
  display: inline-block;
  background: var(--rc-accent);
  color: #fff !important;
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: 8px;
}
.post-category a:hover {
  background: #c73232;
  text-decoration: none;
}

/* ---- Single article ---- */
.single-page {
  padding-top: 10px;
}
.article-wrap.bkwrapper.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 25px 15px 40px;
}
.bk-in-single-page {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.bk-in-single-page .main.col-md-8 {
  flex: 1;
  min-width: 0;
  width: auto;
  float: none;
}
.bk-in-single-page .sidebar.col-md-4 {
  flex: 0 0 280px;
  max-width: 280px;
  width: auto;
  float: none;
  padding-left: 0;
  padding-right: 0;
}

.s-post-header {
  margin-bottom: 20px;
}
.s-post-header h1 {
  margin: 8px 0 14px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--rc-title);
  font-family: Roboto, "Open Sans", sans-serif;
}
.s-post-header .meta {
  margin-top: 8px;
}

.article-content {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--rc-text);
}
.article-content p {
  margin: 0 0 1.2em;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content a {
  color: var(--rc-accent);
}
.article-content blockquote {
  background: var(--rc-accent);
  color: #fff;
  padding: 18px 22px;
  margin: 1.2em 0;
  font-size: 20px;
  line-height: 1.4;
  border: none;
}

/* Share */
.share-box ul.social-share,
ul.social-share {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-box ul.social-share li {
  list-style: none;
}
.share-item__icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  color: #555;
  padding: 8px 12px;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
}
.share-item__icon:hover {
  background: var(--rc-accent);
  color: #fff;
}
.share-item__icon span {
  font-size: 12px;
}
.hide,
.item-hide {
  display: none !important;
}

/* Prev / next */
.s-static-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--rc-border);
  border-bottom: 1px solid var(--rc-border);
}
.s-static-post-nav .nav-btn {
  flex: 1;
}
.s-static-post-nav .nav-next {
  text-align: right;
}
.s-static-post-nav .nav-title span {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--rc-accent);
  margin-bottom: 6px;
}
.s-static-post-nav h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.s-static-post-nav h3 a {
  color: var(--rc-title);
  text-decoration: none;
}
.s-static-post-nav h3 a:hover {
  color: var(--rc-accent);
}

/* Author */
.bk-author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  margin: 24px 0;
  background: #fafafa;
  border: 1px solid var(--rc-border);
}
.bk-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e0e0e0;
  flex-shrink: 0;
}
.author-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--rc-title);
}

/* Related */
.related-box {
  margin: 30px 0;
}
.related-box-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--rc-border);
}
.related-box-tabs a {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.related-box-tabs a.active,
.related-box-tabs a:hover {
  color: var(--rc-accent);
  border-bottom-color: var(--rc-accent);
  text-decoration: none;
}
ul.related-posts {
  list-style: none;
  margin: 0 -10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
ul.related-posts > li {
  list-style: none;
  padding: 10px;
  margin: 0;
}
ul.related-posts > li.col-md-4 {
  width: 33.333%;
}
.bk-related-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.related-pagination-btn {
  font-size: 13px;
  color: var(--rc-accent);
  text-decoration: none;
}
.disable-click {
  pointer-events: none;
  opacity: 0.4;
}

/* Sidebar */
.sidebar-wrap .widget-title,
.sidebar .widget-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--rc-title);
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
}
.sidebar-wrap .widget,
.sidebar .widget {
  margin-bottom: 28px;
}
.list-small-post {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-small-post > li,
.small-post {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rc-border);
}
.small-thumbnail-wrapper {
  flex: 0 0 70px;
}
.small-thumbnail-wrapper .thumb a {
  min-height: 55px;
}
.small-post .post-c-wrap {
  padding: 0;
  flex: 1;
}
.small-post .title {
  font-size: 14px;
  margin: 0 0 4px;
}
.recommend-box {
  display: none; /* floating "More News" overlay — hide without theme JS */
}

/* Breadcrumbs */
.bk-breadcrumbs-container {
  background: #fafafa;
  border-bottom: 1px solid var(--rc-border);
  font-size: 12px;
  color: #888;
}
.breadcrumbs {
  padding: 10px 0;
}
.breadcrumbs a {
  color: #666;
  text-decoration: none;
}
.breadcrumbs .delim {
  margin: 0 6px;
  color: #bbb;
}
.breadcrumbs .current {
  color: #444;
}
.bk-breadcrumbs-wrap {
  /* kept visible; original theme hid via .bk-breadcrumbs-wrap{display:none} in some configs */
}

/* Comments */
.comment-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--rc-border);
}
.nocomments {
  color: #888;
  font-size: 14px;
}

/* Back to top */
#back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  background: var(--rc-accent);
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0.85;
}
#back-top:hover {
  opacity: 1;
}

/* Footer polish — force contrast (theme options set white text + broken bg image) */
.footer.bk-footer-light,
.footer {
  background: #222222 !important;
  background-image: none !important;
  color: #eeeeee !important;
  padding: 32px 0 22px !important;
  position: relative;
}
.footer:before {
  display: none !important;
}
.footer .bk-copyright,
.footer-lower-left .bk-copyright {
  color: #dddddd !important;
  font-size: 13px;
  margin-top: 10px;
}
.footer a {
  color: #ffffff !important;
  text-decoration: underline;
}
.footer .romlifooter,
.footer .romlifooter p,
.footer .romlifooter div {
  color: #eeeeee !important;
}
.footer .romlifooter img {
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
  display: block;
}

/* Blog content column */
.bk-blog-content,
.bkpage-content {
  float: none;
  width: 100%;
}
#body-wrapper.wp-page {
  padding-top: 10px;
}
#main-content {
  width: 100%;
}

/* Pagination */
#pagination,
.page-nav {
  clear: both;
  text-align: center;
  margin: 30px 0;
}
#pagination .page-numbers,
.page-nav .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 3px;
  border: 1px solid var(--rc-accent);
  color: var(--rc-accent);
  text-decoration: none;
}
#pagination .page-numbers.current,
.page-nav .current {
  background: var(--rc-accent);
  color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  ul.bk-masonry-content > li.col-md-4 {
    width: 50%;
  }
  ul.related-posts > li.col-md-4 {
    width: 50%;
  }
}
@media (max-width: 900px) {
  .bk-in-single-page {
    display: block;
  }
  .bk-in-single-page .sidebar.col-md-4 {
    max-width: none;
    margin-top: 36px;
  }
  .s-post-header h1 {
    font-size: 26px;
  }
}
@media (max-width: 575px) {
  ul.bk-masonry-content > li.col-md-4,
  ul.bk-masonry-content > li.col-sm-6,
  ul.related-posts > li.col-md-4 {
    width: 100%;
  }
  .s-static-post-nav {
    flex-direction: column;
  }
  .s-static-post-nav .nav-next {
    text-align: left;
  }
}
