/* Inside That Ad — custom overrides to match original dark-header design */


/* ── Header: black background with banner image ── */
.header {
  background-color: #000;
  padding: 0;
  border-bottom: 3px solid #c0392b;
}

.header__inner {
  padding: 0;
  max-width: 100%;
}

/* ── Banner + social icons ── */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  margin: 0;
}

.logo__link {
  display: block;
  width: 100%;
  text-align: center;
}

.logo__img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: 200px;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
}

.logo__text {
  display: none;
}

.logo__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 0 12px;
  background-color: #000;
  width: 100%;
}

.logo__social-link {
  color: #aaa;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s;
}

.logo__social-link:hover {
  color: #c0392b;
}

.header__inner {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ── Navigation bar ── */
.nav {
  background-color: #111;
  border-top: 1px solid #333;
}

.nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li a {
  display: block;
  padding: 12px 20px;
  color: #ccc;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav__list li a:hover,
.nav__list li a.active {
  color: #fff;
  background-color: #c0392b;
}

/* ── Nav search bar ── */
.menu__item--search {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.nav-search {
  display: flex;
  align-items: center;
  background: #222;
  border: 1px solid #444;
  overflow: hidden;
}

.nav-search__input {
  background: transparent;
  border: none;
  color: #ccc;
  padding: 6px 10px;
  font-size: 0.85rem;
  width: 180px;
  outline: none;
  font-family: inherit;
}

.nav-search__input::placeholder {
  color: #777;
}

.nav-search__btn {
  background: none;
  border: none;
  color: #aaa;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-search__btn:hover {
  color: #c0392b;
}

@media screen and (max-width: 767px) {
  .nav-search__input { width: 120px; }
  .menu__item--toggle,
  .menu__item--search { padding: 4px 6px; }
}

/* ── Body & typography ── */
body {
  font-family: Georgia, "Times New Roman", serif;
  color: #222;
  background: #f5f5f5;
}

.post__title {
  font-size: 1.6rem;
}

/* Drop cap on first paragraph of posts */
.post__content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.8;
  margin: 0.05em 0.1em 0 0;
  color: #c0392b;
  font-weight: bold;
  font-family: Georgia, serif;
}

/* ── Sidebar ── */
.widget__title {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  border-bottom: 2px solid #c0392b;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* ── Footer ── */
.footer {
  background-color: #111;
  color: #888;
  font-size: 0.85rem;
  border-top: 3px solid #c0392b;
  margin-top: 2rem;
}

.footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer__logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: brightness(1.2);
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav-link {
  color: #aaa;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: #c0392b;
}

.footer__social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #444;
  color: #aaa;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__social-link:hover {
  color: #fff;
  border-color: #c0392b;
  background-color: #c0392b;
}

.footer__bottom {
  text-align: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid #222;
  color: #555;
  font-size: 0.8rem;
}

/* ── Links ── */
a {
  color: #c0392b;
}

a:hover {
  color: #922b21;
}

/* ── Post images: full width inside content ── */
.post__content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

/* ── Page wrapper with left skyscraper ── */
.page-with-ads {
  display: flex;
  align-items: flex-start;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Left skyscraper ad ── */
.ad-skyscraper {
  display: none; /* hidden on small screens */
  flex-shrink: 0;
  width: 180px;
  padding: 16px 8px 0 0;
  position: sticky;
  top: 20px;
}

@media (min-width: 1100px) {
  .ad-skyscraper {
    display: block;
  }
}

/* ── Ad placeholders (visible until real ads load) ── */
.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 1px dashed #bbb;
  color: #999;
  font-size: 0.75rem;
  text-align: center;
  gap: 6px;
}

.ad-placeholder--skyscraper {
  width: 160px;
  height: 600px;
}

.ad-placeholder--square {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.ad-placeholder__label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

.ad-placeholder__size {
  font-size: 0.7rem;
}

/* ── Square ad widget in sidebar ── */
.widget-ad-square {
  margin-top: 1rem;
}

/* ── You May Also Like ── */
.related {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-top: 3px solid #c0392b;
}

.related__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: #111;
}

.related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.related__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related__thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.related__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  line-height: 1.3;
}

.related__link:hover {
  color: #c0392b;
}

.related__date {
  font-size: 0.75rem;
  color: #999;
}

/* ── Sidebar Categories Dropdown ── */
.sidebar-dropdown-toggle {
  width: 100%;
  background-color: #222;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  border-left: 3px solid #c0392b;
}

.sidebar-dropdown-toggle:hover {
  background-color: #c0392b;
}

.sidebar-dropdown-arrow {
  font-size: 0.7em;
}

.sidebar-dropdown-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-top: none;
}

.sidebar-dropdown-list--open {
  display: block;
}

.sidebar-dropdown-list li a {
  display: block;
  padding: 9px 14px;
  color: #222;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.sidebar-dropdown-list li:last-child a {
  border-bottom: none;
}

.sidebar-dropdown-list li a:hover {
  background-color: #c0392b;
  color: #fff;
}

/* ── Tag cloud: compact and capped ── */
.widget-taglist .widget__content {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-taglist__link {
  font-size: 0.75rem !important;
  padding: 3px 8px !important;
  white-space: nowrap;
}

.taglist-more {
  width: 100%;
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.taglist-more a {
  color: #c0392b;
}

/* ── Responsive video embeds ── */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1.5em 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Giscus comments spacing ── */
.giscus {
  margin-top: 2rem;
}

/* ════════════════════════════════════════
   MOBILE RESPONSIVE  (≤ 767px)
   ════════════════════════════════════════ */
@media screen and (max-width: 767px) {

  /* Banner */
  .logo__img {
    height: 120px;
  }

  .logo__social {
    gap: 12px;
    padding: 8px 0 10px;
  }

  .logo__social-link {
    font-size: 1rem;
  }

  /* Nav: let Mainroad's hamburger menu take over */
  .nav__list {
    flex-direction: column;
  }

  .nav__list li a {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Post title */
  .post__title {
    font-size: 1.3rem;
  }

  /* Drop cap — disable on mobile (too large) */
  .post__content > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    margin: 0;
  }

  /* Page wrapper — stack vertically, no side ad */
  .page-with-ads {
    flex-direction: column;
  }

  .ad-skyscraper {
    display: none !important;
  }

  /* Sidebar square ad: constrain width */
  .ad-placeholder--square {
    width: 100%;
    height: 200px;
  }

  /* You May Also Like — single column */
  .related__list {
    grid-template-columns: 1fr;
  }

  .related {
    padding: 1rem;
  }

  /* Footer: stack vertically and center */
  .footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.2rem 1rem;
  }

  .footer__nav {
    gap: 16px;
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  /* Sidebar categories dropdown full width */
  .sidebar-dropdown-toggle {
    font-size: 0.9rem;
  }
}

/* ════════════════════════════════════════
   TABLET  (768px – 900px)
   ════════════════════════════════════════ */
@media screen and (min-width: 768px) and (max-width: 900px) {

  .logo__img {
    height: 160px;
  }

  .related__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__main {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
