/* Paraguay AG Invest — local layout fixes */

/* Menu must stay visible even if theme JS never removes .loading */
@media only screen and (min-width: 1240px) {
  #Top_bar.loading { display: block !important; }
}

/* Hide leftover broken-nav strip if any page still includes it */
body > nav[style*="border-bottom:2px solid #88be4c"] {
  display: none !important;
}

/* Logo always visible (don't depend on sticky/lazy JS) */
#Top_bar #logo img.logo-main {
  display: inline-block !important;
  max-height: 60px;
  width: auto;
  height: auto;
}
#Top_bar:not(.is-sticky) #logo img.logo-sticky,
#Top_bar:not(.is-sticky) #logo img.logo-mobile,
#Top_bar:not(.is-sticky) #logo img.logo-mobile-sticky {
  display: none !important;
}

/* Compact header: logo + menu + CTA on one row */
#Top_bar .top_bar_left,
#Top_bar .top_bar_right,
.header-plain #Top_bar .top_bar_right {
  height: auto !important;
  min-height: 0 !important;
}
#Top_bar .top_bar_right_wrapper {
  top: 50% !important;
  transform: translateY(-50%);
}
#Top_bar #logo,
.header-fixed #Top_bar #logo,
.header-plain #Top_bar #logo,
.header-transparent #Top_bar #logo {
  height: 60px !important;
  line-height: 60px !important;
  padding: 8px 0 !important;
}
#Top_bar .menu > li > a {
  padding: 18px 0 !important;
}
#Top_bar .action_button {
  background: #ff7713 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 16px !important;
  line-height: 1.2 !important;
}
#Top_bar .action_button:hover {
  background: #cb5600 !important;
  color: #fff !important;
}

/* Submenus without theme JS (.hover class) */
@media only screen and (min-width: 1240px) {
  #Top_bar #menu {
    display: block !important;
  }
  #Top_bar .menu > li:hover > ul,
  #Top_bar .menu > li.hover > ul,
  #Top_bar .menu > li:focus-within > ul {
    display: block !important;
  }
  #Top_bar .menu li ul li:hover > ul,
  #Top_bar .menu li ul li.hover > ul,
  #Top_bar .menu li ul li:focus-within > ul {
    display: block !important;
  }
}

/* Subheader contrast on notice pages */
#Subheader {
  background-color: #ff7713 !important;
}
#Subheader .title {
  color: #fff !important;
}

/* Disable footer-sliding void (huge brown empty area on short pages) */
.footer-sliding #Footer,
body.footer-sliding #Footer {
  position: static !important;
  z-index: auto !important;
}
.footer-sliding #Wrapper,
.footer-sliding #Content {
  margin-bottom: 0 !important;
}

.pagi-gallery-fallback {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 16px 20px;
  margin: 16px 0;
  background: #f7f7f7;
  border-left: 3px solid #ff7713;
  color: #626262;
}

/* Related posts: keep cards readable without theme extras */
.section-related-ul .post-related {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
}
.section-related-ul .post-related .image_wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}
.section-related-ul .post-related .button {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 16px;
  background: #ff7713;
  color: #fff !important;
  text-decoration: none;
  line-height: 1.2;
}
.section-related-ul .post-related .button .button_icon {
  display: none;
}

/* Article / Insights pages: Betheme aside layout */
.with_aside #Content .content_wrapper {
  display: block;
}
.with_aside #Content .sections_group {
  float: left;
  width: 77%;
}
.with_aside #Content .sidebar.columns {
  float: right;
  width: 23%;
  padding-top: 20px;
}
.with_aside #Content .sidebar .widget {
  margin-bottom: 24px;
}
.with_aside #Content .sidebar .widget h3 {
  font-family: "Courgette", Helvetica, Arial, sans-serif;
  font-size: 21px;
  margin-bottom: 12px;
}
.with_aside #Content .sidebar .widget p {
  margin: 0 0 8px;
  line-height: 1.35;
}
.s9eh9xvj {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  color: #626262;
  font-size: 16px;
  line-height: 28px;
}
#Subheader {
  padding: 30px 0;
}
#Subheader .title {
  margin: 0;
}

/* Client Notification block */
.pagi-notice {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 20px 50px;
  text-align: left;
}
.pagi-notice-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 48px;
  margin: 10px 0 36px;
}
.pagi-notice-logos img {
  max-width: 220px;
  height: auto;
  display: block;
}
.pagi-notice-body {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 28px;
  color: #626262;
}
.pagi-notice-body p {
  margin: 0 0 1em;
}
.pagi-notice-body a {
  color: #ff7713;
}

@media only screen and (max-width: 767px) {
  .with_aside #Content .sections_group,
  .with_aside #Content .sidebar.columns {
    float: none;
    width: 100% !important;
  }
}

/* Footer: prevent stretched / broken media */
#Footer .footer_copy {
  overflow: hidden;
}
#Footer .romlifooter {
  float: left;
  clear: both;
  width: 100%;
  max-width: 720px;
}
#Footer .widgets_wrapper .Recent_posts ul li .photo {
  max-width: 100%;
  overflow: hidden;
}
#Footer .widgets_wrapper .Recent_posts ul li .photo img {
  width: 100%;
  height: auto;
}
