/*
Theme Name: biograde
Theme URI: https://www.dmaxos.com
Author: Dmaxos
Author URI: https://www.dmaxos.com
Description: Blog Template designed by dmaxos
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: biograde
Tags: it-website, biograde, dmaxos
*/
@import "assets/css/style.min.css";

body {
   /* background: #90c24ba1; */
   /*background: #b1db76a1;*/
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #ade251 !important;
  font-weight: 700;
  background: #ade251;
  font-size: 1.2rem;
  margin: 0em 0em 1em;
  color: #111;
}


.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    padding: 1.5rem 0;
}

.client-logo img {
    max-height: 75px;
    object-fit: contain;
    max-width: 100%;
}

 .desktop-menu .bottom-menu > li, .desktop-menu li.menu-item-has-children  {
    position: relative;
  }

 .desktop-menu .bottom-menu > li > a {
    display: block;
    padding: 0;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
  }

  .desktop-menu .bottom-menu > li > a:hover {
    color: #111;
  }

  /* Submenu base (hidden by default with opacity/visibility) */
  .desktop-menu .bottom-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    /* min-width: max-content; */
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    /* padding: 0.25rem 1rem; */ /* no padding */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.25s ease;
  }

 .desktop-menu .bottom-menu .sub-menu li {
   display:block;
   min-width: 220px;
  }
  
  /* Show submenu on hover */
  .desktop-menu .bottom-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Submenu links (tight, no padding) */
  .bottom-menu .sub-menu li a {
    display: block;
    padding: 0.5rem 1rem 0.5rem 0.7rem;
    font-size: 0.875rem;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
  }

  .bottom-menu .sub-menu li a:hover {
    background-color: #f8f9fa;
    color: #111;
  }

  /* Nested submenus (fly out) */
  .bottom-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
    border-radius: 0.25rem;
    opacity: 0;
    visibility: hidden;
    /* transform: translateX(5px); */
    transition: all 0.25s ease;
  }

  .bottom-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  /* Caret indicators */
  .bottom-menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.35rem;
    vertical-align: middle;

    background-color: currentColor; /* inherits text color */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M143 352l-136-136c-9-9-9-25 0-34l23-23c9-9 25-9 34 0l96 96 96-96c9-9 25-9 34 0l23 23c9 9 9 25 0 34L177 352c-9 9-25 9-34 0z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='currentColor' d='M143 352l-136-136c-9-9-9-25 0-34l23-23c9-9 25-9 34 0l96 96 96-96c9-9 25-9 34 0l23 23c9 9 9 25 0 34L177 352c-9 9-25 9-34 0z'/%3E%3C/svg%3E") no-repeat center / contain;
  }

  .bottom-menu .sub-menu li.menu-item-has-children > a::after {
     content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    float: right;
    margin-top: 0.3rem;

    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='currentColor' d='M64 448c-8 0-16-3-22-9-12-12-12-32 0-44l154-154L42 87c-12-12-12-32 0-44s32-12 44 0l176 176c12 12 12 32 0 44L86 439c-6 6-14 9-22 9z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='currentColor' d='M64 448c-8 0-16-3-22-9-12-12-12-32 0-44l154-154L42 87c-12-12-12-32 0-44s32-12 44 0l176 176c12 12 12 32 0 44L86 439c-6 6-14 9-22 9z'/%3E%3C/svg%3E") no-repeat center / contain;
  
  }

  /* Optional: subtle shadow */
  .bottom-menu .sub-menu {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }


/****************/
/* Submenu hidden by default */
.mobile-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-left: 1rem;
  /*border-left: 2px solid #f1f1f1;*/
  padding-left: 0;
}

/* Open submenu */
.mobile-menu .sub-menu.open {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}

/* Toggle box */
.mobile-menu .submenu-toggle {
  position: absolute;
  right: 0.5rem;
  top: 0;
  /*transform: translateY(-50%);*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #222;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.2s;
}

/* Arrow inside toggle */
.mobile-menu .submenu-toggle svg {
  width: 12px;
  height: 12px;
  fill: #222;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.mobile-menu li.open > .submenu-toggle svg {
  transform: rotate(90deg);
}

/********************/
.breadcrumb-container .breadcrumb-item.active {
    color: #222;
}

.sidebar-wrapper .search-wrapper .recent-posts ul li a {
    transition: all 0.5s ease;
}
.sidebar-wrapper .search-wrapper .recent-posts ul li a:hover {
    color: #000000;
    font-weight: bold;
}

/********/

/* Category menu container */

.product-category-menu li {
  position: relative;
  border-bottom: 1px solid #eee;
  list-style-type: none;
}

.product-category-menu li a {
  display: block;
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* space for toggle */
  color: #222;
  text-decoration: none;
  font-weight: 500;
}

.product-category-menu li a:hover {
  background-color: #f9f9f9;
}

/* Submenu hidden */
.product-category-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 2px solid #f1f1f1;
}
.product-category-menu .sub-menu li {
     border-left: 3px solid #ade251;
 }
 
/* Submenu open */
.product-category-menu .sub-menu.open {
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
}

/* Toggle button */
.product-category-menu .submenu-toggle {
  position: absolute;
  right: 5px;
  top: 6px;
  /*transform: translateY(-50%);*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #ade251;
  border-radius: 4px;
  background: #ade251;
  cursor: pointer;
}

.product-category-menu .submenu-toggle svg {
  width: 16px;
  height: 16px;
  fill: #222;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.product-category-menu li.open > .submenu-toggle svg {
  transform: rotate(90deg);
}

.swiper-button-prev, .swiper-button-next {
    color: #fff !important;
        font-size: 16px;
    font-weight: bold;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
        background: #ade251;
    padding: 10px;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 17px !important;
}
