/* Viewport compatibility layer.
   Keep this file loaded after style.css and mobile.css so exported Elementor CSS can stay unchanged. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.wrap,
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap {
  min-width: 0;
}

.mainmenu {
  display: grid;
  grid-template-columns: minmax(220px, 370px) minmax(0, 1fr) minmax(0, 370px);
  align-items: center;
}

.menu-logo {
  width: auto;
  max-width: 370px;
}

.mainmenu > ul {
  min-width: 0;
  padding-right: 0;
  justify-content: center;
  gap: clamp(18px, 2vw, 42px);
}

.inewslist,
.inewslist ul,
.inewslist li,
.inewslist li a {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .headerbg .wrap {
    width: calc(100% - clamp(24px, 3vw, 80px));
    max-width: 1840px;
  }
}

@media (max-width: 1360px) and (min-width: 1200px) {
  .mainmenu {
    grid-template-columns: minmax(250px, 32%) minmax(0, 1fr) minmax(140px, 22%);
  }

  .mainmenu > ul {
    gap: clamp(16px, 1.8vw, 28px);
  }

  .mainmenu > ul > li > a {
    font-size: 16px;
  }

  .headeright .topbtnitem {
    margin-right: 6px;
    padding-right: 6px;
  }

  .headeright a,
  .langbtn span {
    font-size: 11px;
  }

  .loginbtn a:before {
    margin-right: 5px;
  }
}

@media (max-width: 1199px) {
  .wrap {
    width: 100%;
    padding: 0 15px;
  }

  .headerbg .wrap,
  .mainmenubg .wrap {
    width: 100%;
    max-width: none;
  }

  .headerbg {
    position: relative;
    background: #fff;
    pointer-events: auto;
  }

  .header {
    height: auto;
    padding: 10px 0;
    pointer-events: auto;
  }

  .headerleft {
    width: 100%;
    justify-content: center;
  }

  .headerleft-mobile {
    display: flex;
  }

  .headeright,
  .menu-logo,
  .header_searchpc {
    display: none;
  }

  .logo img {
    height: 24px;
    margin: 0 auto;
  }

  .site-brand-lockup a {
    gap: 9px;
  }

  .site-brand-lockup .site-brand-primary img {
    height: 31px;
  }

  .site-brand-lockup .site-brand-divider {
    height: 27px;
  }

  .site-brand-lockup .site-brand-poweruc img {
    height: 20px;
  }

  .mainmmenubg {
    display: flex;
    padding: 0 15px;
    position: relative;
    z-index: 7;
  }

  .mainmenubg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
  }

  .mainmenubg.active {
    visibility: visible;
    opacity: 1;
  }

  .mainmenu {
    width: 89.333%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 56px 20px 0;
    position: absolute;
    top: 0;
    left: -100%;
    background: #fff;
    display: block;
    transition: all 0.3s;
  }

  .mainmenubg.active .mainmenu {
    left: 0;
  }

  .mainmenu > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin-top: 40px;
    padding-right: 0;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
  }

  .mainmenu ul li {
    margin-bottom: 30px;
  }

  .mainmenu ul li a {
    width: 100%;
    color: #000;
    font-size: 16px;
    line-height: 22px;
    text-align: left;
    background: url(../images/mnavliicon.png) no-repeat right center;
  }

  .mainmenu > ul > li > a:after {
    display: none;
  }

  .inewslist {
    width: 100%;
  }

  .inewslist ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .inewslist li {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .inewslist li a {
    display: grid;
    grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .inewslist li a .inewsimg {
    width: 100%;
    height: 160px;
  }

  .inewslist li a .inewstext {
    width: auto;
    height: auto;
    min-width: 0;
    margin-left: 0;
    padding: 0;
  }

  .inewslist li a .inewstext .inewslitit {
    font-size: 20px;
    line-height: 1.35;
  }
}

@media (max-width: 767px) {
  .inewslist li a {
    max-width: 100%;
  }

  .inewslist li a .inewstext {
    min-width: 0;
  }
}
