/*
 Theme Name: Newspaper Child
 Template: Newspaper
 Description: Restored child styles for header, article content and footer boxes.
*/

body {
  line-height: 1.5;
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   Header / Superfish menu
   ------------------------------------------------------------------------- */
.td-header-style-6 .td-header-menu-wrap-full {
  background-color: #151515;
}

.td-header-style-6 #td-header-menu {
  overflow: visible;
}

.td-header-style-6 .sf-menu {
  float: right;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-header-style-6 .sf-menu > li {
  float: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.td-header-style-6 .sf-menu > li > a {
  color: #fff;
  line-height: 80px;
  white-space: nowrap;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.td-header-style-6 .sf-menu > li > ul.sub-menu {
  position: absolute;
  z-index: 9999;
  background: #fff;
  min-width: 240px;
  width: auto;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.td-header-style-6 .sf-menu > li:hover > ul.sub-menu,
.td-header-style-6 .sf-menu > li.sfHover > ul.sub-menu {
  top: 100%;
  left: 0;
}

.td-header-style-6 .sf-menu > li > ul.sub-menu li {
  float: none;
  width: 100%;
}

.td-header-style-6 .sf-menu > li > ul.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #222;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  text-transform: none;
  font-weight: 500;
}

.td-header-style-6 .sf-menu ul ul {
  top: 0;
  left: 100%;
}

@media (min-width: 768px) and (max-width: 1140px) {
  .td-header-style-6 .sf-menu > li > a {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .td-header-style-6 .sf-menu {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Article content — readable width, lists, tables, images
   ------------------------------------------------------------------------- */
.td-post-content,
.h61d1s,
.toc_right_col {
  max-width: 100%;
}

/* -------------------------------------------------------------------------
   TOC + article: keep sidebar in its column (Newspaper smart sidebar
   otherwise position:fixed's it over the comparison table on scroll).
   ------------------------------------------------------------------------- */
.td-pb-span12.td-main-content.td-sidebar-left-content {
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.toc.td-main-sidebar {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.td-ss-main-sidebar {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  transform: none !important;
}

.td-ss-main-content {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.widget.toc_widget .block-title {
  margin: 0 0 8px;
}

.toc_widget_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc_widget_list li {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.toc_widget_list li a {
  color: #222;
  font-size: 14px;
}

@media (max-width: 767px) {
  .td-pb-span12.td-main-content.td-sidebar-left-content {
    display: block;
  }
  .toc.td-main-sidebar {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin-bottom: 20px;
  }
}

/* Comparison grid stays in the article column; do not pin offer boxes */
#myComparision.myComparision {
  float: none !important;
  display: flex;
  flex-wrap: nowrap;
  width: 100% !important;
  clear: both;
  box-sizing: border-box;
}

#myComparision .myCompCol {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

#myComparision .myCompCol.first {
  flex: 0 0 36px;
  max-width: 40px;
  overflow: visible;
}

.hello .offerColTableInner,
.hello1 .offerColTableInner {
  position: static !important;
  bottom: auto !important;
  width: auto !important;
}

@media screen and (max-width: 1230px) {
  #myComparision.myComparision {
    display: block;
    width: 100% !important;
  }
  #myComparision .myCompCol {
    display: block;
    width: 100%;
    flex: none;
    max-width: none;
  }
}

.td-post-header .entry-title,
h1.entry-title {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #111;
  margin: 12px 0 16px;
}

.td-post-content p,
.h61d1s p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 1em;
  color: #222;
}

.td-post-content h2,
.h61d1s h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  margin: 1.4em 0 0.6em;
}

.td-post-content h3,
.h61d1s h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 1.2em 0 0.5em;
}

.td-post-content ul,
.td-post-content ol,
.h61d1s ul,
.h61d1s ol {
  list-style: revert;
  margin: 0 0 1em 1.4em;
  padding: 0;
}

.td-post-content li,
.h61d1s li {
  list-style: inherit;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0.35em;
}

.td-post-content img,
.h61d1s img {
  max-width: 100%;
  height: auto;
}

.td-post-content table,
.h61d1s table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}

.td-post-content th,
.td-post-content td,
.h61d1s th,
.h61d1s td {
  border: 1px solid #dcdcdc;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.td-post-content th,
.h61d1s th {
  background: #f6f6f6;
  font-weight: 600;
}

.td-article-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 10px 0 30px;
}

.td-article-layout > .td-article-main {
  flex: 1;
  min-width: 0;
}

.td-article-layout > .td-article-aside {
  flex: 0 0 240px;
  max-width: 240px;
  position: sticky;
  top: 78px;
}

@media (max-width: 900px) {
  .td-article-layout {
    flex-direction: column;
  }
.td-article-layout > .td-article-aside {
  flex: none;
  max-width: 100%;
  width: 100%;
  position: static;
}
}

/* -------------------------------------------------------------------------
   Footer category boxes
   ------------------------------------------------------------------------- */
.footer-new,
footer.footer-row {
  background: #fff;
}

.footer-new {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 15px 20px;
}

.footer-new > h2 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 28px;
  color: #111;
}

footer.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 15px 40px;
}

.footer-box {
  flex: 1 1 180px;
  max-width: 210px;
  min-width: 160px;
  background: #fff;
}

.footer-box-img {
  height: 140px;
  width: 100%;
  overflow: hidden;
}

.footer-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box-head {
  text-align: center;
  font-size: 18px;
  color: #141414;
  font-weight: 700;
  margin: 8px 0;
  padding-bottom: 8px;
  position: relative;
}

.box-head:before {
  content: "";
  position: absolute;
  width: 80px;
  height: 2px;
  background: #4db2ec;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.moreBtnHoverCol {
  height: 96px;
  overflow: hidden;
  background: #fff;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.moreBtnHoverCol.active {
  overflow: visible;
  height: auto;
}

.footer-box-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-box-list li {
  padding: 7px 6px;
  font-size: 13px;
  text-align: center;
  list-style: none;
  margin: 0;
  line-height: 1.3;
  background: #fff;
}

.footer-box-list li:nth-child(2n+1) {
  background: #eaeaea;
}

.footer-box-list li a {
  color: #141414;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-weight: 500;
}

span.moreBtnOuter {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #4db2ec;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  text-transform: uppercase;
  width: 100%;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.active ul.footer-box-list {
  max-height: 430px;
  overflow-y: auto;
}

.footer_links {
  background: #151515;
  padding: 16px 0;
  text-align: center;
}

.footer_links a {
  color: #fff;
}
