/* Final layout overrides — win against GeneratePress conflicts */

:root {
  --site-bg: #222222;
  --site-header: #2b2626;
  --site-surface: #222222;
  --site-text: #ffffff;
  --site-accent: #ff5733;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
}

body,
body.right-sidebar,
body.no-sidebar,
body.separate-containers {
  margin: 0 !important;
  min-width: 320px;
  overflow-x: hidden !important;
  background: var(--site-bg) !important;
  color: var(--site-text) !important;
  font-size: 16px;
  line-height: 1.65;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ===== HEADER / NAV ===== */
body .site-header {
  width: 100% !important;
  background: var(--site-header) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body .site-header .inside-header,
body .site-header .inside-header.grid-container,
body.has-inline-mobile-toggle .inside-header,
body .has-inline-mobile-toggle .inside-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px;
  width: 100% !important;
  max-width: 1200px !important;
  min-height: 84px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 14px 20px !important;
  text-align: left !important;
}

body .site-logo {
  flex: 0 0 auto !important;
  max-width: min(220px, 55vw);
  margin: 0 !important;
  line-height: 0;
}

body .site-header .header-image {
  display: block !important;
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
}

body .header-widget,
body .site-header .header-widget {
  display: none !important;
}

/* Desktop: hide hamburger wrappers, show horizontal menu */
body #mobile-menu-control-wrapper,
body .mobile-menu-control-wrapper {
  display: none !important;
}

body #site-navigation,
body #site-navigation.main-navigation {
  display: block !important;
  flex: 1 1 auto !important;
  flex-basis: auto !important;
  width: auto !important;
  order: 0 !important;
  margin: 0 0 0 auto !important;
  background: transparent !important;
}

body #site-navigation .inside-navigation,
body #site-navigation .inside-navigation.grid-container {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

body #site-navigation > .menu-toggle,
body #site-navigation .menu-toggle {
  display: none !important;
}

body #site-navigation .main-nav,
body #site-navigation:not(.toggled) .main-nav,
body #site-navigation .main-nav > ul,
body #site-navigation:not(.toggled) .main-nav > ul,
body #site-navigation .main-nav ul.menu {
  display: flex !important;
  flex-wrap: wrap !important;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 2px;
}

body #site-navigation .main-nav li {
  width: auto !important;
  float: none !important;
}

body #site-navigation .main-nav ul li a {
  display: block !important;
  padding: 0 10px !important;
  color: #fff !important;
  line-height: 42px !important;
  white-space: nowrap;
  border-radius: 8px;
  text-decoration: none !important;
}

body #site-navigation .main-nav ul li a:hover,
body #site-navigation .main-nav ul li a:focus,
body #site-navigation .main-nav ul li.current-menu-item > a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* ===== CONTENT SHELL ===== */
body #page.site,
body #page.site.grid-container,
body .site.grid-container {
  display: block !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body .site-content,
body.right-sidebar .site-content,
body.no-sidebar .site-content {
  display: block !important;
  width: 100% !important;
  flex-direction: initial !important;
}

body #primary,
body .site-content .content-area,
body.right-sidebar .site-content .content-area,
body.no-sidebar .site-content .content-area {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

body .is-right-sidebar,
body .is-left-sidebar,
body .widget-area,
body #right-sidebar,
body #left-sidebar,
body.right-sidebar .is-right-sidebar,
body.right-sidebar .widget-area {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.separate-containers .site-main,
body .separate-containers .site-main {
  margin: 20px !important;
}

body.separate-containers .inside-article,
body .separate-containers .inside-article {
  width: 100% !important;
  max-width: 100% !important;
  padding: clamp(20px, 4vw, 40px) !important;
  color: var(--site-text) !important;
  background: var(--site-surface) !important;
  border-radius: 12px;
}

body .entry-header:empty {
  display: none !important;
}

body .inside-article > .entry-content:not(:first-child) {
  margin-top: 0 !important;
}

body .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: clip;
  color: var(--site-text) !important;
  font-size: 17px;
  overflow-wrap: break-word;
}

body .entry-content h1,
body .entry-content h2,
body .entry-content h3,
body .entry-content h4 {
  color: #fff !important;
}

body .entry-content h1 {
  margin-top: 0.4em;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

body .entry-content h2 {
  margin-top: 1.2em;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
}

body .entry-content h3 {
  margin-top: 1.1em;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
}

body .entry-content p,
body .entry-content li {
  color: var(--site-text) !important;
}

body .entry-content ol,
body .entry-content ul {
  margin-left: 1.4em;
  padding-left: 0.4em;
}

body .entry-content a {
  color: #7eb7ff;
}

body .entry-content .alignwide,
body .entry-content .alignfull,
body:not(.no-sidebar) .entry-content .alignwide,
body:not(.no-sidebar) .entry-content .alignfull {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== HERO ===== */
body .entry-content .hero-banner,
body .hero-banner,
.hero-banner {
  display: block !important;
  width: 100% !important;
  height: clamp(140px, 22vw, 220px) !important;
  min-height: 140px !important;
  background-color: #1d2b63 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 10px !important;
}

/* ===== CTA / CARDS ===== */
body .winnita-cta-large-btn {
  text-align: center;
  margin: 24px 0;
  padding: 0 !important;
}

body .entry-content .cta-btn-large,
body .cta-btn-large {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body .winnita-cta-bonus-card {
  width: 100% !important;
  max-width: 360px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* ===== SWIPER ===== */
body .entry-content .swiper,
body .swiper,
.swiper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 28px 8px 40px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body .swiper-slide {
  min-width: 0 !important;
  height: auto !important;
  text-align: center;
}

body .swiper-slide img {
  display: block;
  width: min(100%, 180px);
  margin: 0 auto;
  border-radius: 10px;
}

body .swiper-button-next,
body .swiper-button-prev {
  color: #fff;
}

body .swiper-button-next::after,
body .swiper-button-prev::after {
  font-size: 22px !important;
}

body .review-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
  min-height: 260px;
  height: auto !important;
  box-sizing: border-box !important;
}

body .review-card img,
body .myReviews img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover;
  border-radius: 50%;
}

body .entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

body .entry-content figure,
body .entry-content .wp-block-image {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== FOOTER ===== */
body .site-info,
body .footer-widgets {
  color: #fff !important;
}

body .footer-widgets-container.grid-container,
body .inside-site-info.grid-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body .footer-widgets a,
body .site-info a {
  color: #fff !important;
}

/* ===== TABLET / MOBILE NAV ===== */
@media (max-width: 1100px) {
  body .site-header .inside-header,
  body .site-header .inside-header.grid-container,
  body .has-inline-mobile-toggle .inside-header {
    flex-wrap: wrap !important;
  }

  body #mobile-menu-control-wrapper,
  body .mobile-menu-control-wrapper,
  body.has-inline-mobile-toggle .mobile-menu-control-wrapper {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    order: 10 !important;
    flex-basis: auto !important;
  }

  body #mobile-menu-control-wrapper .menu-toggle,
  body .mobile-menu-control-wrapper .menu-toggle {
    display: flex !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0 !important;
    border-radius: 9px;
    line-height: 1 !important;
  }

  body #mobile-menu-control-wrapper .menu-toggle .mobile-menu,
  body #mobile-menu-control-wrapper .menu-toggle .screen-reader-text {
    display: none !important;
  }

  body #site-navigation,
  body #site-navigation.main-navigation,
  body.has-inline-mobile-toggle #site-navigation {
    flex-basis: 100% !important;
    width: 100% !important;
    order: 20 !important;
    margin: 0 !important;
  }

  body #site-navigation:not(.toggled),
  body.has-inline-mobile-toggle #site-navigation:not(.toggled) {
    display: none !important;
  }

  body #site-navigation.toggled,
  body.has-inline-mobile-toggle #site-navigation.toggled {
    display: block !important;
    margin-top: 8px !important;
    padding: 8px !important;
    border-radius: 10px;
    background: #352f2f !important;
  }

  body #site-navigation.toggled .menu-toggle {
    display: none !important;
  }

  body #site-navigation.toggled .inside-navigation,
  body #site-navigation.toggled .inside-navigation > * {
    display: block !important;
  }

  body #site-navigation.toggled .main-nav,
  body #site-navigation.toggled .main-nav > ul,
  body #site-navigation.toggled ul.menu {
    display: block !important;
    width: 100% !important;
  }

  body #site-navigation.toggled .main-nav li {
    width: 100% !important;
  }

  body #site-navigation.toggled .main-nav ul li a {
    width: 100% !important;
    padding: 0 14px !important;
    line-height: 46px !important;
    white-space: normal !important;
  }
}

@media (max-width: 768px) {
  /* Kill GP column header / centering conflicts */
  body .site-header .inside-header,
  body .site-header .inside-header.grid-container,
  body .has-inline-mobile-toggle .inside-header,
  body.has-inline-mobile-toggle .inside-header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    text-align: left !important;
    min-height: 72px;
    padding: 12px 16px !important;
  }

  body .site-logo {
    max-width: calc(100% - 56px) !important;
  }

  body .site-header .header-image {
    max-width: 180px !important;
  }

  body .site-content,
  body.right-sidebar .site-content {
    display: block !important;
    flex-direction: initial !important;
  }

  body.separate-containers .site-main,
  body .separate-containers .site-main {
    margin: 12px 0 !important;
  }

  body.separate-containers .inside-article,
  body .separate-containers .inside-article {
    padding: 18px 16px !important;
    border-radius: 0 !important;
  }

  body .entry-content {
    font-size: 16px;
  }

  body .entry-content .hero-banner,
  body .hero-banner,
  .hero-banner {
    height: 150px !important;
    min-height: 130px !important;
    background-image: url("/wp-content/uploads/2025/05/Winnita-9-1-scaled.webp") !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  body .entry-content .cta-btn-large,
  body .cta-btn-large {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }

  body .winnita-cta-bonus-card {
    max-width: 100% !important;
    padding: 22px 16px !important;
  }

  body .entry-content .swiper,
  body .swiper {
    padding: 24px 4px 36px !important;
  }

  body .swiper-button-next,
  body .swiper-button-prev {
    transform: scale(0.75);
  }

  body .swiper-button-next {
    right: 0 !important;
  }

  body .swiper-button-prev {
    left: 0 !important;
  }

  body .swiper-slide img {
    width: min(100%, 140px);
  }

  body .footer-widgets-container.grid-container,
  body .inside-site-info.grid-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body .inside-site-info {
    flex-direction: column !important;
    gap: 12px;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  body .site-header .header-image {
    max-width: 150px !important;
  }

  body .entry-content h1 {
    font-size: 26px !important;
  }

  body .entry-content h2 {
    font-size: 22px !important;
  }

  body .entry-content .hero-banner,
  body .hero-banner,
  .hero-banner {
    height: 120px !important;
  }
}
