/*
Theme Name: Aptpes Cell Com Child
Theme URI: https://www.aptpes-cell.com
Author: Auto Generated
Author URI: https://www.aptpes-cell.com
Description: WordPress child theme of Hello Elementor generated from https://www.aptpes-cell.com
Version: 1.0.1
Template: hello-elementor
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aptpes-cell-com
*/

/* ===== FIX 35: Eliminate double scrollbar ===== */
/* CSS SPEC: overflow-x:hidden + overflow-y:visible -> browser FORCES overflow-y to "auto", */
/* making body a 2nd scroll container. Use overflow-x:clip (same group as visible) so body */
/* stays non-scrolling. Only <html> (viewport) scrolls. JS in functions.php enforces this too. */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body,
body.inner-page,
body.frontend-body-canvas {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
#backstage-bodyArea {
  overflow-x: visible !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}
/* Contain inner elements that slightly overflow viewport */
/* CRITICAL: navBar must use clip NOT hidden to avoid unwanted vertical scrollbar */
.blockNavBar.fix.navBox {
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}
.sitewidget-atlasList,
.sitewidget-bd,
[id^="location_"],
[class*="sitewidget-"][class*="settingwrap"] {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* ===== FIX 37: Fix title clipping & unwanted scrollbar in text widgets ===== */
/* Root cause: FIX 35's broad rule sets overflow-x:hidden on ALL .sitewidget-bd + [id^=location_], */
/* but text-widget containers also have overflow-y:auto from original styles, causing */
/* (a) H1/title text to clip when content > container height, and */
/* (b) vertical scrollbar to appear on the clipped container. */
/* Fix: Text widgets need overflow-visible so headings display fully. */
.sitewidget-text .sitewidget-bd {
  overflow: visible !important;
  height: auto !important;
  min-height: unset !important;
}
/* Location wrappers containing text widgets must not clip content */
/* Higher specificity than FIX 35's [id^="location_"] rule */
[id^="location_"]:has(.sitewidget-text),
[id^="location_"] .sitewidget-text {
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
}
/* Known problematic locations - explicit overrides */
#location_1764552391282 { /* Home page title section */
  overflow: visible !important;
  height: auto !important;
}
#location_1764752255294 { /* About page "About APTPES" heading */
  overflow: visible !important;
  max-width: none !important;
  width: 100% !important;
}

/* ===== FIX 36: Hide Download/Media tabs & sections on /download/ page ===== */
/* Only FAQ tab + content should remain visible */
.sitewidget-buttonGroup-20231127175802 .btnGroup-item-0,
.sitewidget-buttonGroup-20231127175802 .btnGroup-item-2 {
  display: none !important;
}
#outerContainer_1701075527542,
#outerContainer_1764597068958 {
  display: none !important;
}
