/* Berlin Film Central – layout & UX fixes after archive restore */

html { scroll-behavior: smooth; }

body {
  background: #f3f1ee !important;
  color: #222;
}

.container {
  max-width: 1024px !important;
  width: 96% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

#header {
  background: linear-gradient(180deg, #1a1212 0%, #2b1818 55%, #3a1f1f 100%);
  border-bottom: 3px solid #890000;
}

#header-top {
  display: none !important;
}

#header-middle {
  padding: 14px 0 8px;
  min-height: 70px;
}

#logo {
  max-width: 320px !important;
  float: left;
  display: block !important;
}

#site-title,
#logo img {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  display: block !important;
}

.advertismnet,
#top-advertismnet,
.wd-advertismnet {
  display: none !important;
}

#search-block,
#social,
.tabs-block,
ul.tabs { display: none !important; }

#social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: #f5f5f5 !important;
  text-decoration: none;
}

#social a:hover { background: #890000; }

.phone-menu-block,
#top-nav {
  background: #890000 !important;
}

.top-nav-list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.top-nav-list > li {
  position: relative;
  float: none !important;
  margin: 0 !important;
}

.top-nav-list > li > a {
  display: block !important;
  padding: 12px 16px !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.top-nav-list > li:hover > a,
.top-nav-list > li.current-menu-item > a,
.top-nav-list > li.current-menu-ancestor > a {
  background: #6d0000 !important;
}

.top-nav-list > li > ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  z-index: 1000;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #2b1818;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.top-nav-list > li:hover > ul,
.top-nav-list > li:focus-within > ul {
  display: block;
}

.top-nav-list > li > ul > li > a {
  display: block;
  padding: 10px 14px;
  color: #f5f5f5 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-nav-list > li > ul > li > a:hover {
  background: #890000;
}

.bfc-main-heading,
.styledHeading {
  font-size: 28px !important;
  line-height: 1.3 !important;
  margin: 18px 0 14px !important;
  font-weight: 600 !important;
  color: #1a1212 !important;
}

.bfc-editorial-addition,
.bfc-guide-box {
  margin: 18px 0;
  padding: 16px 18px;
  background: #fff;
  border-left: 4px solid #890000;
  box-sizing: border-box;
  clear: both;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.bfc-editorial-addition h2,
.bfc-guide-box h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #1a1212;
}

.bfc-editorial-addition p,
.bfc-archive-intro,
.bfc-guide-box p,
.bfc-guide-box li {
  font-size: 15px;
  line-height: 1.75;
  color: #343434;
}

.bfc-archive-intro { margin: 0 0 22px; }

.bfc-guide-box ul {
  margin: 0 0 12px 1.1em;
  padding: 0;
}

.bfc-guide-box li { margin: 0 0 8px; }

.bfc-related {
  margin: 28px 0 10px;
  padding: 16px 18px;
  background: #fffaf7;
  border: 1px solid #e7d7d0;
}

.bfc-related h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.bfc-related ul {
  margin: 0;
  padding-left: 1.1em;
}

.bfc-related li { margin: 0 0 8px; line-height: 1.5; }

.bfc-related a { color: #890000; font-weight: 600; }

aside .sidebar-container {
  background: #fff !important;
  padding: 14px !important;
  box-sizing: border-box;
  border: 1px solid #e6e0da;
}

.bfc-side-nav h3,
.bfc-side-card h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #890000;
  font-size: 16px;
  color: #1a1212;
}

.bfc-side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bfc-side-nav li {
  margin: 0;
  border-bottom: 1px solid #eee;
}

.bfc-side-nav a {
  display: block;
  padding: 8px 2px;
  color: #333;
  text-decoration: none;
}

.bfc-side-nav a:hover { color: #890000; }

.bfc-side-card {
  margin-top: 16px;
  padding-top: 4px;
}

.bfc-side-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

#content,
.blog {
  background: #fff;
  padding: 8px 16px 24px;
  box-sizing: border-box;
  border: 1px solid #e6e0da;
}

.archive-page .post,
.archive-page .entry-meta-cat {
  margin-bottom: 8px;
}

.archive-header {
  margin: 18px 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.page-navigation { display: none !important; }

#footer,
#footer-bottom,
.footer-sidbar {
  background: #1a1212 !important;
  background-color: #1a1212 !important;
  color: #e8e8e8 !important;
  border-top-color: #890000 !important;
}

#footer {
  margin-top: 28px;
  clear: both;
  border-top: 3px solid #890000 !important;
  padding: 0 !important;
}

#footer > .container {
  max-width: 1024px !important;
  width: 96% !important;
  margin: 0 auto !important;
}

#footer-bottom {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 22px 0 20px !important;
  text-align: center !important;
  overflow: visible !important;
  box-sizing: border-box;
}

#footer a,
#footer-bottom a,
.bfc-footer-nav a {
  color: #f3d6d6 !important;
}

#footer a:hover,
#footer-bottom a:hover,
.bfc-footer-nav a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

#copyright {
  display: block;
  color: #cfcfcf !important;
  font-size: 13px !important;
  line-height: 1.5;
  margin-top: 8px;
}

.bfc-footer-nav {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  list-style: none !important;
}

.bfc-footer-nav li {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
}

.bfc-footer-nav a {
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

img#wpstats,
#wpstats {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#mc_embed_signup,
#text-5,
div[style*="float:left"] > script[src*="f27b4ec0"],
.widget_text:empty {
  display: none !important;
}

@media (max-width: 860px) {
  .blog, #content, #sidebar1 {
    width: 100% !important;
    float: none !important;
    display: block !important;
  }

  #sidebar1 { margin-top: 18px; }

  .top-nav-list {
    flex-direction: column;
  }

  .top-nav-list > li > ul {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
  }

  .top-nav-list > li:hover > ul,
  .top-nav-list > li:focus-within > ul,
  .top-nav-list > li.open > ul {
    display: block;
  }

  .bfc-main-heading, .styledHeading { font-size: 24px !important; }
}

@media (max-width: 720px) {
  .bfc-editorial-addition,
  .bfc-guide-box { padding: 13px; margin: 14px 0; }

  #site-title { max-height: 56px; }
}
