/* =============================================
   BlueObject Mobile Responsive CSS
   - imweb CDN CSS override
   - Breakpoint: 991px (tablet), 767px (mobile), 480px (small)
   ============================================= */

/* === GLOBAL: Heading font-size (match custom.cm / imweb theme) === */
.doz_sys h1 { font-size: 4.286em !important; line-height: 1.2 !important; }
.doz_sys h2 { font-size: 3.214em !important; line-height: 1.2 !important; }
.doz_sys h3 { font-size: 2.571em !important; line-height: 1.2 !important; }
.doz_sys h4 { font-size: 2.143em !important; line-height: 1.2 !important; }
.doz_sys h5 { font-size: 1.571em !important; line-height: 1.2 !important; }
.doz_sys h6 { font-size: 1em !important; line-height: 1.2 !important; }

/* === GLOBAL: col-dz column padding (replaces imweb JS-applied grid gutter) === */
.doz_row {
  margin-left: -15px;
  margin-right: -15px;
}
.doz_row::after {
  content: "";
  display: table;
  clear: both;
}
.col-dz {
  padding-left: 15px;
  padding-right: 15px;
}

/* grid_gutter_0: no gutter */
.grid_gutter_0 .doz_row {
  margin-left: 0;
  margin-right: 0;
}
.grid_gutter_0 .col-dz {
  padding-left: 0;
  padding-right: 0;
}

/* grid_gutter_9: 9px per side */
.grid_gutter_9 .doz_row {
  margin-left: -9px;
  margin-right: -9px;
}
.grid_gutter_9 .col-dz {
  padding-left: 9px;
  padding-right: 9px;
}

/* grid_gutter_10: 10px per side */
.grid_gutter_10 .doz_row {
  margin-left: -10px;
  margin-right: -10px;
}
.grid_gutter_10 .col-dz {
  padding-left: 10px;
  padding-right: 10px;
}

/* grid_v_gutter (vertical gutter between rows) */
.grid_v_gutter_9 .doz_row + .doz_row {
  margin-top: 18px;
}

/* === GLOBAL: fix_height image crop (CSS fallback for IMAGE_RESIZE JS) === */
.widget.image.fix_height .img_wrap,
.widget.image.fix_height ._img_box {
  overflow: hidden !important;
  position: relative;
}

.widget.image.fix_height ._img_box > img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
}

/* Per-widget grid_height settings from IMAGE_RESIZE init data */
/* index.html */
#w20241012c2740282cabb7 .widget.image.fix_height ._img_box { height: 224px; }
#w202410120e8792effbe63 .widget.image.fix_height ._img_box { height: 224px; }
#w202410128026a8da97f47 .widget.image.fix_height ._img_box { height: 224px; }
#w20250417b10dac1cbf315 .widget.image.fix_height ._img_box { height: 240px; }
#w20241012464d82129a1ee .widget.image.fix_height ._img_box { height: 378px; }
#w20241012c495c1e368278 .widget.image.fix_height ._img_box { height: 265px; }
/* Portfolio.html */
#w20250417a7400867c5765 .widget.image.fix_height ._img_box { height: 280px; }
#w2025041718c11a2283d60 .widget.image.fix_height ._img_box { height: 280px; }
#w20250417d0b03a1c4bea1 .widget.image.fix_height ._img_box { height: 280px; }
/* Next.html */
#w20250606209ddbe0916ae .widget.image.fix_height ._img_box { height: 172px; }

/* === GLOBAL: visibility:hidden override === */
img,
img.org_image,
.widget.image img,
.widget.gallery img,
.extend_thumbs img,
.thumb_item img,
.gallery_list img,
img[style*="visibility"],
.widget.image,
.widget.gallery,
.widget.text,
.widget.button,
.widget.video,
._widget_data {
  visibility: visible !important;
}

/* === GLOBAL: animated/wg_animated override (site2.css sets opacity:0, visibility:hidden) === */
.animated,
.wg_animated,
.animated.wg_animated,
._widget_data.animated,
._widget_data.wg_animated,
._widget_data.animated.wg_animated,
._widget_data .wg_animated {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  -webkit-animation: none !important;
}

ul._inline_menu_container,
.nav.navbar-nav._inline_menu_container {
  visibility: visible !important;
}

/* === GLOBAL: section main element visibility === */
.section_wrap.side_basic main,
.section_wrap:not(.side_left):not(.side_right) main {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.section_wrap.side_left main,
.section_wrap.side_right main {
  visibility: visible !important;
  opacity: 1 !important;
}

/* === GALLERY2 grid layout (replaces GALLERY2 JS initialization) === */
.grid_01.gallery2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
}
.grid_01.gallery2 .item_gallary {
  width: calc(25% - 3.75px);
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}
.grid_01.gallery2 .item_gallary .img_wrap {
  width: 100%;
  padding-bottom: 133%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  cursor: pointer;
}
.grid_01.gallery2 .item_gallary .item_container {
  position: relative;
  overflow: hidden;
}
.grid_01.gallery2 .more_btn {
  display: inline-block !important;
  margin-top: 15px;
  padding: 10px 30px;
  border: 1px solid #333;
  background: transparent;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.grid_01.gallery2 .more_btn:hover {
  background: #333;
  color: #fff;
}

/* === GLOBAL: padding widget fix === */
.widget.padding[data-height] {
  margin-top: 0;
  margin-bottom: 0;
}

/* === GLOBAL: .inside centering === */
.section_wrap.side_basic main .inside {
  margin-left: auto;
  margin-right: auto;
}

/* === GLOBAL: side_right / side_left layout (CDN CSS replacement) === */
.section_wrap.side_right main,
.section_wrap.side_left main {
  display: table;
  width: 100%;
}

.section_wrap.side_right .side_gutter,
.section_wrap.side_left .side_gutter {
  display: table-cell;
}

.section_wrap.side_right .doz_aside,
.section_wrap.side_left .doz_aside {
  display: table-cell;
  vertical-align: top;
}

.section_wrap.side_right main > .inside,
.section_wrap.side_left main > .inside {
  display: table-cell;
  vertical-align: top;
}

/* Per-section aside widths (from doz_side_width attributes) */
#s202410127682b181a199a .doz_aside {
  width: 530px;
}
#s202410127682b181a199a .side_gutter {
  width: 10px;
}
#s202410127682b181a199a main > .inside {
  padding-left: 50px;
  padding-right: 50px;
}

#s2024101273d15582acac6 .doz_aside {
  width: 340px;
}

#s20241012a0a4ee0835a5a .doz_aside {
  width: 340px;
}

/* === CONCEPT/MVP/LAUNCH section: image-to-text gap === */
#s202410124448f81b122de .col-dz-4 .widget.image {
  margin-bottom: 15px;
}

/* === GLOBAL: overflow === */
html, body {
  overflow-x: hidden;
}

/* === Override CDN: #inline_header_mobile is display:none by default in site.css === */
/* CDN expects it inside .new_org_header, but it's a sibling in our DOM */
/* On desktop: hidden by not overriding CDN. On mobile: shown by media query + JS */

/* === device_type_m: imweb mobile class (added by JS) === */
body.device_type_m #doz_header .new_fixed_header,
body.device_type_m #doz_header .new_org_header,
body.device_type_m #inline_header_fixed,
body.device_type_m #inline_header_normal,
body.device_type_m .new_fixed_header,
body.device_type_m .new_org_header {
  display: none !important;
}

body.device_type_m #inline_header_mobile {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 48px !important;
  overflow: visible !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.device_type_m #doz_header_wrap {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: #fff !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

body.device_type_m #doz_header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* === 991px media query (fallback) === */
@media (max-width: 991px) {

  /* Heading font-size for tablet (match custom.cm) */
  .doz_sys h1 { font-size: 3.214em !important; }
  .doz_sys h2 { font-size: 2.571em !important; }
  .doz_sys h3 { font-size: 2em !important; }
  .doz_sys h4 { font-size: 1.714em !important; }
  .doz_sys h5 { font-size: 1.371em !important; }
  .doz_sys h6 { font-size: 1em !important; }

  /* Hide desktop headers */
  #doz_header .new_fixed_header,
  #doz_header .new_org_header,
  .new_fixed_header._new_fixed_header,
  .new_org_header._new_org_header,
  #inline_header_fixed,
  #inline_header_normal {
    display: none !important;
  }

  /* Show mobile header - override CDN site.css "#inline_header_mobile { display:none }" */
  #inline_header_mobile,
  #doz_header #inline_header_mobile,
  .new_header_site #inline_header_mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 48px !important;
    overflow: visible !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  /* Ensure all mobile header children are visible */
  #inline_header_mobile .inline-inside,
  #inline_header_mobile .inline-section-wrap,
  #inline_header_mobile .inline-section,
  #inline_header_mobile [data-col-group],
  #inline_header_mobile .inline-col,
  #inline_header_mobile .inline-widget,
  #inline_header_mobile ._widget_data {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #inline_header_mobile .inline-section-wrap {
    display: block !important;
  }

  #inline_header_mobile ._widget_data {
    display: block !important;
  }

  /* Header wrap fixed */
  #doz_header_wrap {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  #doz_header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Mobile header inside layout */
  #inline_header_mobile .inline-inside {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    min-height: 48px;
  }

  #inline_header_mobile .inline-section {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    justify-content: space-between;
  }

  #inline_header_mobile .inline-section-wrap {
    display: block !important;
    visibility: visible !important;
  }

  #inline_header_mobile .inline-col-group,
  #inline_header_mobile [data-col-group] {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
  }

  #inline_header_mobile .inline-col-group-center,
  #inline_header_mobile [data-col-group="center"] {
    flex: 1;
    text-align: center;
  }

  #inline_header_mobile .inline-col-group-left,
  #inline_header_mobile [data-col-group="left"],
  #inline_header_mobile .inline-col-group-right,
  #inline_header_mobile [data-col-group="right"] {
    flex-shrink: 0;
  }

  /* Push body content below fixed header */
  body.device_type_m .section_wrap:first-of-type,
  #doz_header_wrap + .section_wrap,
  #doz_header_wrap ~ .section_wrap:first-of-type {
    margin-top: 50px !important;
  }

  body.device_type_m .mobile_section_first {
    padding-top: 50px;
  }

  /* Hamburger menu icon */
  #inline_header_mobile .icon_type_menu {
    display: block !important;
    visibility: visible !important;
  }

  #inline_header_mobile .icon_type_menu a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
  }

  #inline_header_mobile .icon_type_menu .icon_code,
  #inline_header_mobile .icon_type_menu .holder {
    font-size: 22px;
    display: inline-block !important;
  }

  /* Logo in mobile header */
  #inline_header_mobile .logo_title a {
    display: block !important;
    visibility: visible !important;
    font-size: 14px;
    color: #333;
    text-decoration: none;
  }

  /* Section max width */
  .section_wrap {
    max-width: 100vw !important;
    overflow: hidden;
  }

  .section_wrap .inside {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }

  /* Col-group fixed width release */
  .section_wrap .inline-col-group,
  .section_wrap [data-type="col-group"] {
    max-width: 100% !important;
  }

  /* Aside layout - override table layout for mobile */
  .section_wrap.side_right main,
  .section_wrap.side_left main {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  .section_wrap[doz_aside="Y"] .inside {
    display: block !important;
  }

  .section_wrap[doz_aside="Y"] .aside-left,
  .section_wrap[doz_aside="Y"] .aside-right,
  .section_wrap .aside,
  .section_wrap .doz_aside {
    width: 100% !important;
    float: none !important;
    display: block !important;
    max-width: 100% !important;
  }

  .section_wrap .side_gutter {
    display: none !important;
  }

  /* Mobile slide menu */
  .mobile_slide_menu_container,
  #mobile_slide_menu_wrap {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    z-index: 10001;
    transition: left 0.3s ease;
    overflow: hidden;
  }

  .mobile_slide_menu_container.slide_open,
  #mobile_slide_menu_wrap.slide_open {
    left: 0;
  }

  .mobile_slide_menu {
    width: 280px;
    height: 100%;
    overflow-y: auto;
    background: #fff;
  }

  /* Menu overlay */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Widget responsive */
  .widget.image:not(.fix_height) .img_box,
  .widget.image:not(.fix_height) .img_box img {
    max-width: 100% !important;
    height: auto !important;
  }

  .widget.text .txt_box {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .widget.button .btn_box a {
    max-width: 100%;
    box-sizing: border-box;
  }

  .widget.video .video-container,
  .widget.video iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Footer */
  .footer-section {
    padding: 20px 15px !important;
  }

  .footer-section .foot-foot-nav .policy_menu,
  .footer-section .foot-foot-nav .footer_menu {
    float: none !important;
    text-align: center;
  }

  /* Mobile carousel menu */
  #mobile_carousel_menu {
    display: block !important;
    visibility: visible !important;
  }

  #mobile_carousel_menu .mobile_nav_depth {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  #mobile_carousel_menu .nav-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
  }

  #mobile_carousel_menu .nav-item.active a {
    font-weight: bold;
    color: #000;
  }
}

/* === 767px: mobile === */
@media (max-width: 767px) {

  /* Heading font-size for mobile (match custom.cm) */
  .doz_sys h1 { font-size: 36px !important; }
  .doz_sys h2 { font-size: 28px !important; }
  .doz_sys h3 { font-size: 24px !important; }
  .doz_sys h4 { font-size: 20px !important; line-height: 1.5em !important; }
  .doz_sys h5 { font-size: 18px !important; line-height: 1.5em !important; }
  .doz_sys h6 { font-size: 14px !important; line-height: 1.5em !important; }

  /* Gallery 2-column on mobile */
  .grid_01.gallery2 .item_gallary {
    width: calc(50% - 2.5px) !important;
  }

  .col-dz {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .section_wrap .inside {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Font sizes: custom.cm handles mobile scaling via span[style*="font-size"] selectors */
  /* Do NOT override h1/h2/h3 sizes here - let custom.cm + inline styles control */

  .widget.image {
    max-width: 100%;
  }

  .widget.image:not(.fix_height) .img_box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .widget.image:not(.fix_height) .img_box img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .widget.image.org_size .img_box img {
    width: auto !important;
    max-width: 100% !important;
  }

  .extend_thumbs .thumb_list .thumb_item {
    width: 50% !important;
  }

  .widget.button .btn_box {
    text-align: center;
  }

  .widget.button .btn_box a {
    display: inline-block;
    max-width: 100%;
    min-width: auto !important;
    padding: 10px 20px !important;
    box-sizing: border-box;
  }

  .side_left .inside,
  .side_right .inside {
    display: block !important;
  }

  .side_left main,
  .side_right main {
    display: block !important;
    table-layout: auto !important;
  }

  .side_left .doz_aside,
  .side_right .doz_aside {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .side_left main,
  .side_right main,
  .side_left .aside,
  .side_right .aside {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  .footer-section .foot-main-nav li {
    display: block !important;
    margin: 5px 0;
  }
}

/* === 480px: small mobile === */
@media (max-width: 480px) {

  /* Font sizes: custom.cm handles mobile scaling - do NOT override here */

  .extend_thumbs .thumb_list .thumb_item {
    width: 100% !important;
  }

  .mobile_slide_menu_container,
  #mobile_slide_menu_wrap {
    width: 260px;
    left: -260px;
  }

  .mobile_slide_menu {
    width: 260px;
  }
}
