/*peidab registreerimisvälja profiili pildi*/
#member-registration > fieldset:nth-child(2) > div:nth-child(3) {display: none;}
#sp-component > div > div.logout > form > div > div {margin-left: unset;margin-top: 20px;}

#sp-main-body {
  padding: 20px 0 100px 0;
}

.search-form-hidden {
    display: none; /* Initially hidden */
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sp-megamenu-wrapper {
  justify-content: right !important;
  margin-right: 1rem;
  text-transform: uppercase;
}

.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
   font-weight: bold;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a, .sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) {
  font-weight: bold;
}

 .sp-menu-heading {color: #440484}

.logo > a {color: #fff; }
.logo > a:hover {color: #4A7ABB }



.fa-search {color: #fff;}
.fa-search:hover {color: #4A7ABB;}

.btn-primary, .sppb-btn-primary {
  border-color: #2B4C7E;
  background-color: #2B4C7E;
}

.btn-primary:hover, .sppb-btn-primary:hover {
  border-color: #4A7AB8;
  background-color: #4A7AB8;
}

.article-details .article-info {
  margin-bottom: 2rem;
}

.article-details .article-header h1 {
  color: #440484;
  border-bottom: 1px solid;
  margin-bottom: 40px;
  font-size: 3rem;
}

.autor {float: right;}
select.form-control:not([multiple]), select.inputbox:not([multiple]), select:not([multiple]) {height: 48px;}

div.sppb-articles-carousel-column > div > a > img {
    width: 100%; /* Makes all images fill their containers */
    height: 250px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures images are cropped instead of stretched */
  }

.sppb-articles-carousel-img {width: inherit;}

  /* Make all news blocks the same height */
  .sppb-articles-carousel-column {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch; /* Ensures all items are of equal height */
  }

  /* Ensure title has a fixed height to align blocks */
  .sppb-articles-carousel-link {
      min-height: 3em; /* Adjust based on your design */
      overflow: hidden; /* Hide excess text if needed */
  }

div#sp-footer1 {padding:0 !important;}
#search-form-container > div {margin-left: 0 !important;}
.scroll-fade {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.scroll-fade.show {
    opacity: 1;
    transform: translateY(0);
}

.btn-secondary {
  --bs-btn-color: #2b4c7e;
  --bs-btn-bg: transparent;
}

.btn-secondary:hover {
  --bs-btn-hover-color: #fff; /* Blue text on hover */
}

.btn-secondary:active {
  --bs-btn-active-color: #00ff00; /* Green text when active */
}

.btn-secondary:visited {
  --bs-btn-color: #ff00ff; /* Magenta text when visited (only applies to <a> tags) */
}
/*E-Docman*/
#edocman-documents > div > div > div.edocman-box-heading.clearfix > h3 > a {color: #2b4c7e;}
/*.edocman-container h1, .edocman-container h2, .edocman-container h3 {padding: 10px;}*/
#edocman-category .edocman-page-sub-heading {height: auto;}
#massDownloadDiv {margin: auto;padding: unset;}
.edocmansearch {padding: 30px;}
.copy-link-dropdown {position: unset;margin-left: 10px;padding: 2px;}

/*Sidemenu*/
.sidebar-menu .sppb-addon-content .menu {
  overflow: hidden;
  margin-bottom: 50px;
  padding: 0px
}

.sidebar-menu .sppb-addon-content .menu li.current a {
  color: #fff;
  border-color: #1f1f1f;
  background: #00aeef
}

.sidebar-menu .sppb-addon-content .menu li.current a::before {
  transform: translate3d(0px, 0px, 0px);
  opacity: 1
}

.sidebar-menu .sppb-addon-content .menu li {
  margin-top: 5px
}

.sidebar-menu .sppb-addon-content .menu li:last-child {
  margin-bottom: 0px
}

.sidebar-menu .sppb-addon-content .menu li:last-child a {
  border-bottom: none
}

.sidebar-menu .sppb-addon-content .menu li a {
  border-bottom: 2px solid #fff;
  background: #f7f7f7 none repeat scroll 0 0;
  color: #222222;
  display: block;
  font-size: 16px;
  border-radius: 5px;
  border-left: 5px solid #f7f7f7;
  border-bottom: 0px;
  font-weight: 600;
  padding: 17px 20px 15px;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: all 500ms ease;
  transition-delay: 0.15s
}

.sidebar-menu .sppb-addon-content .menu li a:before {
  position: absolute;
  top: 0;
  right: 0;
  width: 37px;
  height: 56px;
  content: "";
  font-family: "Font Awesome 6 Free";
  color: #ffffff;
  line-height: 58px;
  font-size: 18px;
  transform: translate3d(-30px, 0px, 0px);
  transition-delay: 0.5s;
  transition: all 500ms ease;
  opacity: 0
}

.sidebar-menu .sppb-addon-content .menu li a:hover {
  color: #fff;
  border-color: #00aeef;
  background: #2b4c7e;
}

.sidebar-menu .sppb-addon-content .menu li a:hover::before {
  transform: translate3d(0px, 0px, 0px);
  opacity: 1
}

.sidebar-menu .sppb-addon-content .menu li a:hover:before,
.sidebar-menu .sppb-addon-content .menu li a.active:before {
  transform: translate3d(0px, 0px, 0px);
  opacity: 1
}

#sp-right .sp-module, #sp-left .sp-module {border: unset;padding: unset;box-shadow: unset;}
#sp-left .sp-module ul>li, #sp-right .sp-module ul>li {border-bottom: unset;}
#sp-left .sp-module ul>li>a, #sp-right .sp-module ul>li>a {line-height: unset;}
#sp-left > div > div > div > ul > li > a  {
    background: #f7f7f7 none repeat scroll 0 0;
    color: #222222;
    display: block;
    font-size: 16px;
    border-radius: 5px;
    border-left: 5px solid #f7f7f7;
    border-bottom: 0px;
    font-weight: 600;
    padding: 17px 20px 15px !important;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: all 500ms ease;
    transition-delay: 0.15s;
}

#sp-left > div > div > div > ul > li > a::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 37px;
    height: 56px;
    content: "";
    font-family: "Font Awesome 6 Free";
    color: #ffffff;
    line-height: 58px;
    font-size: 18px;
    transform: translate3d(-30px, 0px, 0px);
    transition-delay: 0.5s;
    transition: all 500ms ease;
    opacity: 0;
}
#sp-left > div > div > div > ul > li > a:hover {color: #fff;border-color: #00aeef;background: #2b4c7e;}
#sp-left > div > div > div > ul > li > a:hover::before, #sp-left > div > div > div > ul > li > a.active::before {transform: translate3d(0px, 0px, 0px);opacity: 1;}
#sp-left .sp-module ul > li {margin-top: 5px;}
#sp-left > div > div > div > ul > li.current a {color: #fff;border-color: #1f1f1f;background: #2b4c7e;}
#sp-left > div > div > div > ul > li.current a::before {transform: translate3d(0px, 0px, 0px);opacity: 1;}
.menu-child {margin-top: 5px;}

/*Sidemenu lõpp*/

.edocmanxtdlink:before {
    content: "\f019";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    padding-right: 6px;
    vertical-align: middle;
}
/*Jevents*/
a.ev_link_row {font-size: larger !important;}
#jevents_body td, #jevents_body tr, #jevents_body p, #jevents_body div {font-size: 16px;}
#jevents_body .tableh1 {background-image: unset;}
td.buttontext {line-height: 0.7rem;}
#jevents_body .buttontext a {font-size: 13px;}
#jevents_body .event_legend_container {display: none;}
#cal_title {display: none;}

.sp-sign-in {line-height: 80px;font-size: 14px;text-transform: uppercase;}
a.sp-sign-in:hover {color: #fff;}

.breadcrumb {background-color: transparent;font-size: smaller;}
.form-control[readonly] {background-color: #f0f1f3;}

/*Pädevushindamise komponent*/
body.site[data-title="Avakuva"] .replenishment-points__add-point {
    color: #440484 !important;
}
#member-registration > fieldset:nth-child(2) > legend {display: none;}
#filter-search.form-control {width: unset;}
.article-full-image > img {object-fit: cover; width: 100%;}
.sppb-addon.sppb-addon-video > h3.sppb-addon-title {min-height: 70px;}
.sppb-addon.sppb-addon-video {margin-bottom: 100px;}

/*Kunena power*/
#sp-component > div:nth-child(1) > div:nth-child(3) {display: none !important;}
.shadow-lg {box-shadow: none !important;}

@media (max-width: 575px) {
  #sp-header .logo {height: 50px;}
  #sp-menu > .sp-column {height: 50px;}
}

/* target iPad landscape specifically */
@media (min-width: 992px) and (max-width: 1024px) {
  .logo-image {height: 45px !important;}
  .sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {font-size: 13px;}
  .btn {--bs-btn-font-size: 0.8rem !important;}
}

/* Kui ekraan on kitsam kui 1290px */
@media (max-width: 1289.98px) {

}

/* 1280px and up */
@media (min-width: 1280px) and (max-width: 1366px) {
  .logo-image {height: 55px !important;}
}