/* Performance and display optimizations for Royalchem site */

body {
  /* Ensure that the body is visible even if a preloader attempts to hide it */
  visibility: visible !important;
}

.sitewidget-logo-20210919130837 .picture-resize-wrap {
  top: 50px;
}

/* Center language dropdown */
.sitewidget-langBar .lang-bar.style17 .lang-dropdown .lang-menu {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Adjust column widths and backgrounds on the home page */
#outerContainer_1632028989057 #column_1633683557661 {
  width: 8.666667% !important;
  background-size: cover !important;
}

/* News module spacing */
#siteblocks-setting-wrap-lLpgjOQntKZE .QX-11229324 .top {
  margin: 0 15px 40px 10px !important;
}

#siteblocks-setting-wrap-lLpgjOQntKZE .QX-11229324 .blockTitle {
  margin-left: 0 !important;
}

/* Desktop layout adjustments */
@media (min-width: 990px) {
  #outerContainer_1632028989057 #column_1632029063177 {
    width: 51.333333333333332%;
  }
  #outerContainer_1632028989057 #column_1632028605596 {
    width: 40%;
  }
}

/* Ensure auto height for content columns */
#column_1632029063177 {
  height: auto !important;
}

/* Use min-height so content can expand but won't cut off */
#column_1632028605596 {
  min-height: 600px !important;
  height: auto !important;
}

/* Mobile layout tweaks */
@media (max-width: 990px) {
  #outerContainer_1632028989057 .sitewidget-graphicNew-20210919132306 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #outerContainer_1632028989057 .sitewidget-graphicNew-20210919132306 h2,
  .sitewidget-graphicNew-20210919142246 h2,
  #siteblocks-setting-wrap-lLpgjOQntKZE .QX-11229324 .blockTitle *:not(a) {
    font-size: 24px !important;
  }
}

@media (max-width: 600px) {
  /* Center text in specific component on small screens */
  #component_fqfLjtErFPUZ > div > div {
    text-align: center !important;
  }
  /* Adjust line height for language selector on mobile */
  #backstage-headArea-mobile .header-style04 .lang-box .lang-show-word {
    line-height: 50px;
  }
}

/* End of optimized CSS */