/**
 * Theme Name:     Ribs Divi Child
 * Author:         dkrivokapic
 * Template:       Divi
 * Text Domain:	   ribs-divi-child
 * Description:    Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
 * Author URI:     http://dkrivokapic.com
 * Version:        1.0
 * License:        MIT
 * License URI:    https://mit-license.org/
 */

:root {
  --icon-size: 32px;
  --color-gray: #7c8690;
  --color-dark-green: #024d5b;
  --color-green: #00bbd0;
}
.entry-content #top-bar,
.entry-content .et_pb_section--with-menu {
  display: none !important;
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++ */

@media screen and (min-width: 981px) {
  .et_pb_menu .et_pb_menu__wrap {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
  }
  .et_pb_menu .et_pb_menu__menu {
    -ms-flex: 2 auto;
    flex: 2 auto;
  }
  #top-bar .et-menu-nav,
  #top-bar .menu-social-meni {
    padding-left: 10px !important;
  }
  #top-bar .et-menu-nav,
  #top-bar .menu-social-meni,
  #top-bar .menu-social-meni li {
    display: flex;
    align-items: center;
    min-height: 26px;
  }
  #top-bar ul li.top-button {
    margin: 0 !important;
    padding-top: 6px;
    display: flex;
    align-items: center;
  }
  #top-bar .et-menu-nav a {
    margin: 0 !important;
    padding: 0 !important;
  }
  .et_pb_menu--without-logo .et_pb_menu__menu > nav > ul {
    padding: 0 !important;
    min-height: 26px;
  }
  .et-menu .social {
    display: inline-block;
    margin-right: calc(var(--icon-size) - 12px);
  }
  .et-menu .social a {
    font-size: 0 !important;
  }
  .et-menu .social a {
    display: block;
    width: calc(var(--icon-size) - 12px);
    height: calc(var(--icon-size) - 12px);
  }
  .et-menu .social a::before {
    display: block;
    width: calc(var(--icon-size) - 12px);
    height: calc(var(--icon-size) - 12px);
    font-size: 24px;
    content: "";
    background-size: contain;
  }
  .et-menu-nav {
    margin-left: auto !important;
  }
  .et-menu-nav ul li a {
    text-transform: uppercase;
    font-weight: 600;
  }
  #menu-glavni-meni li:not(:first-child) a::before {
    content: "●";
    display: block;
    position: absolute;
    left: -16px;
    top: 40%;
    color: #4dabbd;
  }
  #page-container {
    margin-top: 140px;
  }
  #header-slider .et_pb_slide_description {
    width: 64%;
    margin-right: 50%;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section .et_pb_menu__logo img {
    opacity: 1;
    max-height: 96px !important;
    translate: all 0.6s ease-in-out;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section .et_pb_menu__logo img {
    opacity: 0;
    max-height: 26px !important;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section .et_pb_menu__logo {
    background-image: url(images/logo-tiny.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
  }
  .et_builder_inner_content .et_pb_section {
    transition: height 0.6s ease !important;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section .et_pb_menu--with-logo .et_pb_menu__menu > nav > ul > li > a {
    padding: 10px 0;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_section #menu-glavni-meni li:not(:first-child) a::before {
    top: 25%;
  }
  header .has_et_pb_sticky .et_pb_section_1_tb_header {
    padding-bottom: 6px !important;
  }
  .et_builder_inner_content.has_et_pb_sticky .has_et_pb_sticky .et_pb_sticky--top {
    top: 6px !important;
    position: relative !important;
  }
  .et_builder_inner_content.has_et_pb_sticky .et_pb_row--with-menu {
    padding: 0 !important;
  }
  .et_builder_inner_content.has_et_pb_sticky #top-bar .has_et_pb_sticky .et_pb_sticky--top {
    top: 0 !important;
  }
  .et_builder_inner_content.has_et_pb_sticky #top-bar li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  @keyframes anim-right-to-left {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    100% {
      transform: translateX(20%);
      opacity: 1;
    }
  }
  @keyframes anim-right-to-left2 {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }
    100% {
      transform: translateX(0%);
      opacity: 1;
    }
  }
  .active .pos-abs.anim-left-right {
    animation: anim-right-to-left 1s cubic-bezier(0, 0, 0.1, 1) forwards;
  }
  .active .pos-abs.anim-right-left {
    animation: anim-right-to-left2 1s cubic-bezier(0, 0, 0.1, 1) forwards;
  }
  .et_pb_text.reason,
  .reason {
    display: none !important;
    position: absolute;
    backdrop-filter: blur(12px);
    pointer-events: all;
    margin-top: -3vh !important;
    height: 80vh !important;
  }
  .reason .et_pb_text_inner {
    width: 80%;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 6rem;
    background: rgba(255, 255, 255, 0.85) !important;
    overflow: hidden;
  }
  .reason .et_pb_text_inner .close::after {
    content: "+";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: rotate(45deg) translate(-75%);
    color: #2699ae;
    font-size: 4rem;
    font-weight: 100;
  }
  .reason .et_pb_text_inner .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
  }
  .reason h3 {
    margin-bottom: 1.5rem;
    position: relative;
    font-size: 1.8rem;
  }
  .reason h3::before {
    content: "";
    display: block;
    position: absolute;
    top: 1rem;
    background-color: #2699ae;
    width: 9rem;
    height: 0.4rem;
    left: -10rem;
  }
  .reason .hanger-content {
    display: flex;
  }
  .reason .hanger-content .hangar-text {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    text-align: justify;
  }

  .reason .hanger-content .hangar-image img {
    min-width: 350px;
    min-height: 100%;
    object-fit: contain;
    margin-left: 50px;
  }
  #content-for-hangar,
  #content-for-hangar .et_pb_column,
  .reason {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #content-for-hangar {
    margin-top: -3vh !important;
    position: relative;
  }

  #content-for-hangar,
  #content-for-hangar .et_pb_column {
    pointer-events: none;
  }
  #razlozi .post-content,
  #razlozi .post-content .et_pb_section {
    background: transparent !important;
  }
  #razlozi .post-content .et_pb_section .et_pb_row {
    width: 80% !important;
    max-width: 1200px !important;
  }
  #dots-for-hangar {
    display: flex !important;
  }
}

/* +++++++++++++++++++++++++++++++++++++++++++++++++++++ */

@media screen and (max-width: 980px) {
  #reasons-mobile-menu > div > ul {
    padding: 0;
  }
  p {
    hyphens: auto !important;
  }
  .et_mobile_menu {
    background-color: #ffffff;
  }
  .et-pb-active-slide .et_pb_slide_image,
  .et-pb-active-slide .et_pb_slide_image img {
    display: block !important;
  }
  #project-slider article .et_pb_row_4col .et_pb_column {
    max-width: 45% !important;
    margin-right: 0%;
  }
  #project-slider article .et_pb_row_4col .et_pb_column:nth-child(odd) {
    margin-right: 9%;
  }
  #reasons-mobile-menu > div > ul > li {
    display: block;
    min-width: 100%;
    text-align: center;
    text-transform: uppercase;
    background-color: #024d5b;
    color: #ffffff;
    position: relative;
    cursor: pointer;
    padding: 1rem;
    border-radius: 6px;
    margin-top: -4rem;
    margin-bottom: -4rem;
    transition: all 0.6s ease;
  }
  #reasons-mobile-menu > div > ul > li a {
    color: inherit !important;
  }
  #reasons-mobile-menu > div > ul > li #mobile-reasons-submenu {
    display: none;
    background-color: #024d5b;
  }
  /* #reasons-mobile-menu > div > ul > li:hover #mobile-reasons-submenu {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 0;
    padding: 0;
  } */
  #dots-for-hangar {
    display: none !important;
  }
  #reasons-mobile-menu > div > ul > li #mobile-reasons-submenu li {
    display: block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .et_pb_menu_0_tb_header .et_pb_menu_inner_container > .et_pb_menu__logo-wrap .et_pb_menu__logo img {
    max-height: 27px !important;
    width: auto;
    object-fit: contain;
    height: 27px !important;
  }
  #reasons-mobile-menu > div > ul > li.active {
    margin-bottom: 26rem;
    color: #024d5b;
  }
  #reasons-mobile-menu > div > ul > li #mobile-reasons-submenu {
    display: none;
    top: 3rem;
    position: absolute;
    background-color: #024d5b;
    padding: 2rem;
    padding-top: 0 !important;
    margin: 0;
    left: 0;
    z-index: 9999;
    color: #ffffff;
  }
  #reasons-mobile-menu > div > ul > li.active #mobile-reasons-submenu {
    display: block;
  }
  #content-for-hangar,
  #content-for-hangar .et_pb_column,
  #content-for-hangar .et_pb_column .et_pb_module {
    min-height: 0;
    height: auto;
    max-height: 10000px !important;
    position: relative !important;
  }
  #content-for-hangar .et_pb_column .et_pb_module .hangar-image {
    width: 100%;
  }
  #content-for-hangar .et_pb_column .et_pb_module .hangar-text {
    width: 90vw !important;
  }
  #content-for-hangar .et_pb_column .et_pb_module .hangar-image img {
    width: 90vw !important;
    height: auto !important;
    object-fit: contain;
  }
  .gallery-style .et_pb_slide,
  .gallery-style .et_pb_slide .et_pb_slider_container_inner,
  .gallery-style .et_pb_slide .et_pb_slide_image {
    min-height: 30vh !important;
  }
  .gallery-style .et_pb_slide .et_pb_slide_image {
    display: block;
  }
  .gallery_tab_button.button.btn {
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

.gallery_tab_button.button.btn {
  display: inline-flex;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 6px 6px 0px 0px;
}
.tab_holder {
  margin-bottom: 2rem;
  display: flex;
}
.gallery_tab_button {
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.gallery_tab_button:not(.extra) {
  border: 1px solid rgba(0, 0, 0, 0.25);
}
.gallery_tab_button.active {
  border-bottom: none;
  color: #ffffff;
}
.gallery_tab_button.extra {
  flex-grow: 1;
}
.et_pb_gallery_item.et_pb_grid_item.et_pb_bg_layout_light.et_pb_gallery_item_0_5.last_in_row,
.tab-row .et_pb_gallery_grid .et_pb_gallery_items .et_pb_grid_item:nth-child(3n) {
  margin-right: 0 !important;
}

.tab-row .et_pb_gallery_grid .et_pb_gallery_items .et_pb_grid_item {
  margin-bottom: 1rem !important;
}
.et_pb_gallery_item.et_pb_grid_item.et_pb_bg_layout_light.et_pb_gallery_item_0_5.last_in_row {
  margin-right: 0 !important;
}

.et_pb_gallery .et_pb_gallery_pagination {
  border-top: none !important;
}

.et_pb_gallery .et_pb_gallery_pagination ul li a {
  display: block;
  text-align: center;
  padding: 0.5rem;
  width: auto;
  border-radius: 3px;
}

.et_pb_gallery .et_pb_gallery_pagination ul li .active {
  background-color: #ffffff !important;
  color: #24636c !important;
}

.tab-row .et_pb_column .tab-module {
  display: none !important;
}
.tab-row .et_pb_column .tab-module.active {
  display: block !important;
  opacity: 0;
  translate: all 0.6s ease;
}
.tab-row .et_pb_column .tab-module.visible {
  display: block !important;
  opacity: 1;
}
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* ============================================================ */
/* REASONS NON DIVI STYLES                                      */
/* ============================================================ */
.et_pb_text.reason.invisible,
.invisible {
  display: flex !important;
  opacity: 0;
  transition: all 0.4s ease;
}
.et_pb_text.reason.active,
.visible {
  display: flex !important;
  opacity: 1 !important;
}
table tr td,
table .dot-circle {
  transition: all 0.3s ease;
}
.active table .dot-circle {
  background-color: #ff7400 !important;
  opacity: 1;
}
.active table tr td {
  color: #ff7400 !important;
}

/* ============================================================ */
/* ============================================================ */

.top-info-menu {
  display: flex;
  flex-grow: 1;
}

.et_mobile_menu .social {
  display: inline-block;
  margin-right: var(--icon-size);
}
.et_mobile_menu .social a,
.top-button.email a,
.top-button.phone a {
  font-size: 0 !important;
}
.et_mobile_menu .social a,
.top-button.email a,
.top-button.phone a {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
}
.et_mobile_menu .social a::before,
.top-button.email a::before,
.top-button.phone a::before {
  display: block;
  width: var(--icon-size);
  height: var(--icon-size);
  font-size: 24px;
  content: "";
  background-size: contain;
}
.et_mobile_menu .separator {
  border-top: 1px solid #cccccc;
}
.et_mobile_menu {
  border-top: none !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.phone a::before {
  background-image: url(./images/phone.svg);
}
.email a::before {
  background-image: url(./images/email.svg);
}
.facebook a::before {
  background-image: url(./images/facebook.svg);
}
.twitter a::before {
  background-image: url(./images/twitter.svg);
}
.pinterest a::before {
  background-image: url(./images/pinterest.svg);
}
#top-bar .et_pb_menu__icon,
#top-bar ul li.top-button {
  border-right: 1px solid var(--color-dark-green) !important;
  color: var(--color-dark-green) !important;
  background-color: rgb(69, 138, 146, 0.25) !important;
}
#top-bar .top-info-menu ul {
  display: flex;
  align-items: center;
}

#top-bar .top-info-menu ul li {
  padding: 10px 10px !important;
}
#top-bar ul li {
  padding: 12px 10px !important;
}
#top-bar .top-info-menu .et_pb_text_inner {
  display: flex;
  flex-grow: 1;
}
#top-bar .top-info-menu ul li:not(:last-child) {
  display: inline-flex;
  border-right: 1px solid var(--color-dark-green) !important;
}
#top-bar .et_pb_menu__icon {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
#top-bar ul li.top-button {
  margin: 0 !important;
  padding-top: 6px;
}
#top-bar ul li,
#top-bar .et_pb_menu__icon,
#top-bar ul li.top-button a {
  color: var(--color-dark-green) !important;
  text-decoration: none !important;
}

/* ------------------------------------------------ */
#project-slider {
  overflow-x: hidden !important;
}
#project-slider .et_pb_ajax_pagination_container {
  display: flex;
  flex-direction: row;
}
#project-slider .et_pb_ajax_pagination_container article {
  min-width: 100% !important;
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
}
#project-slider .et_pb_ajax_pagination_container article.no-display {
  display: none;
}
#project-slider .et_pb_ajax_pagination_container article.active {
  opacity: 1;
}
#project-slider-dots .dot {
  background-color: var(--color-gray);
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 30px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#project-slider-dots .dot.active {
  background-color: var(--color-green);
  pointer-events: none;
}
#project-slider-heading-wrapper > * {
  display: inline-block;
}
#project-slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 36px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 400;
}
#project-slider-arrows .arrow {
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  pointer-events: all;
  cursor: pointer;
  border-radius: 36px;
  background-color: #ffffff;
  overflow: hidden;
  opacity: 0.1;
  transform: scale(1);
  transition: all 0.3s ease;
}
#project-slider:hover #project-slider-arrows .arrow {
  opacity: 1;
}
#project-slider-arrows .arrow:hover {
  transform: scale(1.2);
}
#project-slider-arrows .arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-size: contain;
}
#project-slider-arrows .arrow.prev {
  left: 0;
}
#project-slider-arrows .arrow.next {
  right: 0;
}
#project-slider-arrows .arrow.prev::before {
  background-image: url(images/chevron-left.svg);
}
#project-slider-arrows .arrow.next::before {
  background-image: url(images/chevron-right.svg);
}
.dot-circle {
  width: 3em;
  height: 3em;
  border-radius: 1.5em;
  background-color: #2b727c;
  opacity: 0.5;
}

#dots-for-hangar td {
  padding: 0 !important;
}
#dots-for-hangar tr > * {
  pointer-events: none;
  background-color: transparent;
}
#dots-for-hangar td:nth-child(2) {
  padding-left: 1em !important;
}
#dots-for-hangar td:nth-child(2) {
  text-transform: uppercase !important;
  line-height: 1.2em !important;
}
#dots-for-hangar .et_pb_text_inner {
  transform: scale(1);
  transition: all 0.3s ease;
  cursor: pointer;
}
#dots-for-hangar .et_pb_text_inner:hover {
  transform: scale(1.1);
}
#mobile-reasons-menu li {
  cursor: pointer;
}
#reasons-content-section .et_pb_row {
  opacity: 0;
  display: none;
  transition: all 0.3s ease;
}
#reasons-content-section .et_pb_row.visible {
  display: block;
}
#reasons-content-section .et_pb_row.visible.active {
  opacity: 1;
}
#project-slider .no-home {
  display: none !important;
}
#project-slider table,
#project-slider td {
  border: none !important;
}
#project-slider p {
  line-height: 1.4rem !important;
}
#project-slider td {
  font-size: 0.9rem !important;
  line-height: 1rem !important;
  vertical-align: top;
  color: #000000 !important;
  border: none !important;
  padding: 5px 0 !important;
  padding-left: 5px !important;
}
