/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #81B29A;
  --secondary-color:              #3D405B;
  --section-bg-color:             #F4F1DE;
  --custom-btn-bg-color:          #F2CC8F;
  --custom-btn-bg-hover-color:    #E07A5F;
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --link-hover-color:             #F2CC8F;

  --body-font-family:             'DM Sans', sans-serif;

  --h1-font-size:                 42px;
  --h2-font-size:                 36px;
  --h3-font-size:                 28px;
  --h4-font-size:                 24px;
  --h5-font-size:                 22px;
  --h6-font-size:                 20px;
  --p-font-size:                  18px;
  --menu-font-size:               16px;
  --btn-font-size:                14px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-bold:             700;
/*  --bs-border-color:              #3D405B;
  --bs-btn-border-color:          #3D405B;
*/}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-medium);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li, ol li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

abbr {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-bg {
  background-color: var(--section-bg-color);
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-overlay {
  content: "";
  background: rgba(0, 0, 0, 0) linear-gradient(rgba(39, 48, 83, 0.01) 0%, rgb(39, 48, 83) 100%) repeat scroll 0% 0%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

::selection {
  background-color: var(--primary-color);
  color: var(--white-color);
}


/*---------------------------------------
  ANIMATED HEADLINE               
-----------------------------------------*/
.cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
}

.cd-words-wrapper b {
  color: var(--link-hover-color);
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 0;
}

.cd-words-wrapper b.is-visible {
  position: relative;
}

.no-js .cd-words-wrapper b {
  opacity: 0;
}

.no-js .cd-words-wrapper b.is-visible {
  opacity: 1;
}

.cd-headline {text-shadow: 0 1px 3px #000;}

.cd-headline.rotate-1 .cd-words-wrapper {
  -webkit-perspective: 300px;
  -moz-perspective: 300px;
  perspective: 300px;
}
.cd-headline.rotate-1 b {
  opacity: 0;
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
}
.cd-headline.rotate-1 b.is-visible {
  opacity: 1;
  -webkit-transform: rotateX(0deg);
  -moz-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  -o-transform: rotateX(0deg);
  transform: rotateX(0deg);
  -webkit-animation: cd-rotate-1-in 1.2s;
  -moz-animation: cd-rotate-1-in 1.2s;
  animation: cd-rotate-1-in 1.2s;
}
.cd-headline.rotate-1 b.is-hidden {
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
  -webkit-animation: cd-rotate-1-out 1.2s;
  -moz-animation: cd-rotate-1-out 1.2s;
  animation: cd-rotate-1-out 1.2s;
}

@-webkit-keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    opacity: 1;
  }
}
@-moz-keyframes cd-rotate-1-in {
  0% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -moz-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(360deg);
    opacity: 1;
  }
}
@keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    -moz-transform: rotateX(120deg);
    -ms-transform: rotateX(120deg);
    -o-transform: rotateX(120deg);
    transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    -moz-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    -o-transform: rotateX(360deg);
    transform: rotateX(360deg);
    opacity: 1;
  }
}
@-webkit-keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
}
@-moz-keyframes cd-rotate-1-out {
  0% {
    -moz-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -moz-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
}
@keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -o-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    -moz-transform: rotateX(-40deg);
    -ms-transform: rotateX(-40deg);
    -o-transform: rotateX(-40deg);
    transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn, .custom-btn-lg{
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.custom-btn-lg{
  font-size: 1.2rem;
}

.custom-btn:hover, .custom-btn-lg:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}

.custom-border-btn:hover {
  background: var(--custom-btn-bg-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}

.custom-btn-group .link {
  color: var(--white-color);
  font-weight: var(--font-weight-medium);
}

.custom-btn-group .link:hover {
  color: var(--link-hover-color);
}


/*---------------------------------------
  NAVIGATION BAR & OFFCANVAS              
-----------------------------------------*/
.offcanvas {
  background-color: var(--primary-color);
  padding: 30px;
}

.offcanvas.offcanvas-end {
  border-left: 0;
}

.offcanvas-header .btn-close {
  transition: all 0.3s;
}

.offcanvas-header .btn-close:hover {
  transform: rotate(180deg);
}

.offcanvas svg {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
}

.sticky-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.sticky-wrapper.is-sticky .navbar {
  background-color: rgb(61 64 91);
}

.navbar {
  z-index: 1199;
  padding-top: 15px;
  padding-bottom: 15px;
  background: #3D405B;
  box-shadow: 0 0 20px #3D405B;
}

.navbar-brand,
.navbar-brand:hover {
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-bold);
  display: block;
  color: var(--dark-color);
  max-width: 68px;
  padding: 0;
  margin-top: -10px;
  margin-bottom: 10px;
}


.navbar .navbar-brand,
.navbar .navbar-brand:hover {
  color: var(--white-color);
}

.navbar .navbar-brand-image {
  filter: brightness(0) invert(1);
}

.navbar-brand-image {
  width: 68px;
  height: 68px;
}

.navbar-brand-text {
  line-height: normal;
/*  margin-left: 10px;*/
  position: relative;
  bottom: -20px;
  left: -11px;
}

.navbar-brand-text small {
  display: block;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.navbar-brand-text .bigger {
  font-size: 11px;
  letter-spacing: .6px;
}


.navbar-expand-lg .navbar-nav .nav-link {
  border-radius: var(--border-radius-large);
  margin: 10px;
  padding: 10px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--white-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--link-hover-color);
}

.navbar .dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  display: inherit;
  opacity: 0;
  min-width: 9rem;
  margin-top: 20px;
  padding: 13px 0 10px 0;
  transition: all 0.3s;
  pointer-events: none;
}

.navbar .dropdown-menu::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid var(--white-color);
  position: absolute;
  top: -10px;
  left: 10px;
}

.navbar .dropdown-item {
  display: inline-block;
  color: var(--p-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
}

.navbar .dropdown-item.active, 
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus, 
.navbar .dropdown-item:hover {
  background: transparent;
  color: var(--link-hover-color);
}

.navbar .dropdown-toggle::after {
  display: inline-block;
  line-height: 1;
  vertical-align: 3px;
  position: relative;
  left: 1px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: .20em;
  transform:rotate(45deg);
  border-bottom-right-radius: 3px;
  font-size: 18px;
}

@media screen and (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
  }
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}


/*---------------------------------------
  HERO        
-----------------------------------------*/
.hero-section {
  background-image: url('../img/korenova-cistiaren-odpadovych-vod.avif');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  height: 100vh;
  min-height: 670px;
  margin-bottom: -90px;
  margin-top: -50px;
}

.hero-50 {
  height: auto;
  min-height: 540px;
  margin-bottom: -50px;
}

.hero-50 .container + svg {
  transform: rotate(180deg);
}

.hero-section .ratio {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}

.hero-section svg {
  position: absolute;
  right: 0;
  left: 0;
}

.hero-section > svg {
  top: 0;
}

.hero-section .container + svg {
  top: auto;
  bottom: -1px;
}

.hero-section .row {
  position: relative;
  z-index: 22;
}


/*---------------------------------------
  BACKGROUND IMAGE SECTION        
-----------------------------------------*/
.section-bg-image {
  background-image: url('../img/rozostavana-kcov.avif');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}

.section-bg-image .container + svg {
  transform: rotate(180deg);
  position: relative;
  bottom: -1px;
}

.section-bg-image-block {
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(209, 213, 219, 0.3);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.section-bg-image-block .input-group {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  padding: 10px 15px;
}

.section-bg-image-block .input-group-text {
  background-color: transparent;
  border: 0;
}

.section-bg-image-block input[type="email"] {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding-left: 0;
}

.section-bg-image-block button[type="submit"] {
  background-color: var(--primary-color);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--white-color);
  max-width: 150px;
}


/*---------------------------------------
  ABOUT SECTOIN              
-----------------------------------------*/
.about-section {
  padding-bottom: 70px;
}

.member-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px!important;
}

.member-block-image-wrap:hover .member-block-image {
  transform: scale(1.1);
}

.member-block-image-wrap:hover .social-icon {
  opacity: 1;
}

.member-block-image-wrap .social-icon {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
  padding: 15px 20px;
  width: auto;
}

.member-block-image {
  transition: all 0.5s;
}

.member-block-info {
  padding: 10px;
}

.member-block-info h4,
.member-block-info p {
  margin-bottom: 0;
}


/*---------------------------------------
  CUSTOM BLOCK              
-----------------------------------------*/
.custom-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
}

.custom-block-bg {
/*  background: var(--white-color);*/
  background-color: var(--section-bg-color);
}

.custom-block-date-wrap {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-medium);
  text-align: center;
  padding: 20px 30px;
}

.custom-block-date {
  font-size: var(--h1-font-size);
}

.custom-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.custom-block-image-wrap:hover .custom-block-image {
  transform: scale(1.2);
}

.custom-block-image-wrap:hover .custom-block-icon {
  opacity: 1;
}

.custom-block-image {
  transition: all 0.3s;
}

.custom-block-image-wrap .custom-block-date-wrap,
.custom-block-image-wrap .custom-btn-wrap {
  position: absolute;
  bottom: 0;
}

.custom-block-image-wrap .custom-block-date-wrap {
  border-radius: 0;
  left: 0;
  width: 50%;
  padding: 12.30px 20px;
}

.custom-block-image-wrap .custom-btn-wrap {
  right: 0;
  width: 50%;
}

.custom-block-image-wrap .custom-btn  {
  border-radius: 0;
  display: block;
  padding: 15px 20px;
}

.custom-block-info {
  padding-top: 10px;
}

.custom-block-image-wrap + .custom-block-info {
  padding-top: 20px;
}

.custom-block-span {
  color: var(--secondary-color);
  font-weight: var(--font-weight-bold);
  min-width: 110px;
  margin-right: 10px;
}

.custom-block-icon {
  background: var(--custom-btn-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: var(--h3-font-size);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
}

.custom-block-icon:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}


/*---------------------------------------
  EVENTS SECTION            
-----------------------------------------*/
.events-section.section-bg .container > .row {
  margin-right: 5px;
  margin-left: 5px;
}

.events-section.section-bg .container > .row .row {
  margin: auto;
}

.events-listing-section {
  margin-bottom: 100px;
}

.events-detail-section .custom-block-info {
  padding: 40px 60px;
}

.events-detail-info {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-medium);
  padding: 50px 25px;
}

.events-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-medium);
}


/*---------------------------------------
  MEMBERSHIP SECTION            
-----------------------------------------*/
.membership-section .container {
  position: relative;
  z-index: 2;
}

.table-responsive {
  border-radius: var(--border-radius-medium);
}

.table-responsive tbody, 
.table-responsive td, 
.table-responsive tfoot, 
.table-responsive th, 
.table-responsive thead, 
.table-responsive tr {
  border: 0;
}

.table-responsive thead tr {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.table-responsive thead th {
  padding: 22px 16px !important;
}

.table-responsive tbody tr:nth-child(even) {
  background-color: var(--section-bg-color);
}

.table>:not(caption)>*>* {
  padding: 18px 16px;
}

.table-responsive .bi-check-circle-fill {
  color: var(--primary-color);
}

.table-responsive .bi-x-circle-fill {
  color: var(--custom-btn-bg-hover-color);
}

.membership-form {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  padding: 35px;
}

.membership-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 100px;
}


/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.contact-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 120px;
}

.contact-info {
  position: relative;
}

.contact-info-item {
/*  background: var(--secondary-color);*/
  background: rgba(61, 64, 91, 0.9);
  border-radius: var(--border-radius-medium);
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.contact-info-body {
  padding: 20px 30px;
}

.contact-info-body strong,
.contact-info-item a {
  color: var(--white-color);
  text-shadow: 1px 1px 0 #000;
}

.contact-info-footer {
  background-color: var(--custom-btn-bg-hover-color);
  padding: 10px 20px;
  transition: all 0.3s;
}

.contact-info-footer:hover {
  background-color: var(--custom-btn-bg-color);
}

.contact-info-footer a {
  display: block;
  font-weight: var(--font-weight-bold);
}


/*---------------------------------------
  SITE FOOTER            
-----------------------------------------*/
.site-footer {
  position: relative;
  padding-bottom: 200px;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.site-footer svg {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}

.site-footer-title {
  color: var(--secondary-color);
}

.site-footer p span {
  font-weight: var(--font-weight-medium);
  margin-right: auto;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  border-radius: var(--border-radius-large);
  border-width: 2px;
  box-shadow: none;
  color: var(--p-color);
  margin-bottom: 20px;
  padding: 10px;
  padding-left: 20px;
  outline: none;
}

.custom-form .form-control:focus,
.custom-form .form-control:hover {
  border-color: var(--dark-color);
}

.form-floating>label {
  padding-left: 20px;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s;
  margin-bottom: 0;
  padding-left: 10px;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

.header-form {
  position: relative;
}

.header-form .form-control {
  padding-left: 42px;
}

.header-form-icon {
  width: 24px;
  position: absolute;
  top: 0;
  margin: 12px;
  margin-left: 15px;
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

html, body {scroll-behavior: smooth;}

.sidebar-toc{top:150px;background: #3D405B;border-radius: 25px;box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);}
.sidebar-toc .active {color:red;}
.sidebar-toc div.h4, .sidebar-toc h4 {background: #3D405B;border-radius: 25px 25px 0 55px;}
.sidebar-toc .toc-header-wrap {background: #fff; border-radius: 25px 25px 0 0;}
#toc {
  background: #fff;border-radius:0 55px 25px 25px;list-style-type: none;
}
#toc li {white-space: nowrap; transition: all 250ms linear;
border: 0;
border-width: 0 0 1px 0;
border-style: solid;
border-image: linear-gradient(to left, transparent, rgba(48,49,51,.15), transparent);
border-image-slice: 1;

}
#toc li:hover {background: #F2CC8F;box-shadow: 0 1px 5px #F2CC8F;border-image: linear-gradient(to left, transparent, transparent);border-radius: 5px;}
#toc li:hover circle {fill: #FFF;}
#toc li:hover a {color: #FFF;text-shadow: 1px 1px 0 #DDB471;}
#toc li:hover .order {color: #FFF;text-shadow: 1px 1px 0 #DDB471;}


#toc a {vertical-align: text-top;white-space: normal;display: block;width: 100%;padding-left: .5rem;padding-top: .85rem!important;}
#toc a svg {vertical-align: middle;}

.toc-list, .toc-list ol {
  list-style-type: none;
}

.toc-list {
  padding: 0;
}

.toc-list ol {
  padding-inline-start: 1ch;
}

.toc-list li > a {
    text-decoration: none;
    display: grid;
    grid-template-columns: auto max-content;
    align-items: end;
}

.toc-list li > a > .page {
    text-align: right;
/*    font-variant-numeric: tabular-nums;*/
    font-family: monospace, monospace;
    color: #F2CC8F;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.toc-list li > a > .title {
    position: relative;
    overflow: hidden;
}
.toc-list li > a .leaders {overflow: hidden;}
.toc-list li > a .leaders::after {
    position: absolute;
    padding-inline-start: .25ch;
    content: " . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . . . . ";
    text-align: right;
}

.toc-list > li > a {
  font-weight: bold;
  margin-block-start: 1em;
}

.toc-list > li > ol > li > a {
  margin-block-start: .5em;
}


.toc-list li > a > .page {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
  text-align: left;
  text-indent: 10px;
}

.toc-list > li > a > .page {min-width: 1ch;}
.toc-list > li > ol > li >a > .page{min-width: 2ch;}


.anchor {
    padding-top: 100px!important;
    margin-top: -100px!important;
}
.divider {
  background-image: linear-gradient(to right, transparent, rgba(48,49,51,.5), transparent);
  height: 1px;
  color: transparent;
  margin-top: 50px;
  box-shadow: 0 5px 10px #ccc;
}
.text-secondary {color: var(--secondary-color)!important;}

.tooltip-inner {
    background-color: var(--secondary-color);
}
.tooltip.show {
    opacity:.96;
}
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before, .bs-tooltip-top .tooltip-arrow::before {
    border-top-color:var(--secondary-color);
}

.contact-form form {border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);}
.iconbg {width: 60px; height:60px; border-radius: 50%; background-color: var(--secondary-color);color:#fff;border:1px solid #000;box-shadow: 0 0 5px #000;}

.flex-fill ul a {font-size: 1rem;}

h1,h2,h3,h4,h5,h6{clear:both;position: relative; scroll-margin-top: 110px;}

.permalink {opacity: 0;position: absolute;right:100%;top: calc(50% - 12px);transition: opacity 2s, transform 2s;height: 24px;padding: 0 15px;transform: rotate(45deg);border:0;background-color: transparent;}



.book h2:hover .permalink,
.book h3:hover .permalink,
.book h4:hover .permalink,
.book h5:hover .permalink,
.book h6:hover .permalink
{opacity: 1;transition: all 1s; transform: rotate(0deg);}

.permalink svg{vertical-align: top;}

.book p {text-indent: 1em; hyphens: auto;}
.book p a{text-indent:0; font-weight: bold;}
.book span.order {font-weight: bold; color: #F2CC8F; margin-right: .5rem;letter-spacing: 1px;font-size: 1.2em;}
.w-33 {width:33.3333%!important;}

a.lightbox img {cursor:zoom-in;}
.figure-caption{font-style: italic; background-color:rgba(61, 64, 91, 1); color: #fff; padding: 4px 15px 10px 15px;border-radius: 0 0 .5em .5em;/*position: absolute;bottom: 0;left: 0;right: 0;z-index: 5;*/text-shadow: 0 1px 0 #000;position: relative;}
/*.figure-caption:after {content:''; background-image: url("data:image/svg+xml,%3Csvg xmlns:xlink='http://www.w3.org/1999/xlink' id='wave' style='transform:rotate(0deg); transition: 0.3s' viewBox='0 0 1440 100' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='sw-gradient-0' x1='0' x2='0' y1='1' y2='0'%3E%3Cstop stop-color='rgba(243, 106, 62, 1)' offset='0%25'/%3E%3Cstop stop-color='rgba(255, 179, 11, 1)' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath style='transform:translate(0, 0px); opacity:1' fill='url(%23sw-gradient-0)' d='M0,40L12,40C24,40,48,40,72,41.7C96,43,120,47,144,45C168,43,192,37,216,41.7C240,47,264,63,288,58.3C312,53,336,27,360,18.3C384,10,408,20,432,26.7C456,33,480,37,504,33.3C528,30,552,20,576,16.7C600,13,624,17,648,21.7C672,27,696,33,720,35C744,37,768,33,792,36.7C816,40,840,50,864,51.7C888,53,912,47,936,43.3C960,40,984,40,1008,41.7C1032,43,1056,47,1080,53.3C1104,60,1128,70,1152,71.7C1176,73,1200,67,1224,55C1248,43,1272,27,1296,18.3C1320,10,1344,10,1368,15C1392,20,1416,30,1440,31.7C1464,33,1488,27,1512,23.3C1536,20,1560,20,1584,16.7C1608,13,1632,7,1656,16.7C1680,27,1704,53,1716,66.7L1728,80L1728,100L1716,100C1704,100,1680,100,1656,100C1632,100,1608,100,1584,100C1560,100,1536,100,1512,100C1488,100,1464,100,1440,100C1416,100,1392,100,1368,100C1344,100,1320,100,1296,100C1272,100,1248,100,1224,100C1200,100,1176,100,1152,100C1128,100,1104,100,1080,100C1056,100,1032,100,1008,100C984,100,960,100,936,100C912,100,888,100,864,100C840,100,816,100,792,100C768,100,744,100,720,100C696,100,672,100,648,100C624,100,600,100,576,100C552,100,528,100,504,100C480,100,456,100,432,100C408,100,384,100,360,100C336,100,312,100,288,100C264,100,240,100,216,100C192,100,168,100,144,100C120,100,96,100,72,100C48,100,24,100,12,100L0,100Z'/%3E%3C/svg%3E");position: absolute;top:-19px; left:0;width: 100%; height:50px;display: block;}*/
.figure {/*box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;*/border-radius: .5em;position: relative;}
.figure a {position: relative; overflow: hidden!important;display: block;border-radius: .5em .5em 0 0;}
.figure img {margin:0;transition: all .25s;position: relative;}
.figure a.lightbox:after {content:'';position: absolute;bottom: 0;left:0;width: 100%;height: 10px;z-index: 10;filter:drop-shadow(0px 0px 3px #3D405B);background-image: url("data:image/svg+xml,%3Csvg xmlns:xlink='http://www.w3.org/1999/xlink' id='wave' viewBox='0 0 1440 100' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%233D405B' d='M0,40L12,40C24,40,48,40,72,41.7C96,43,120,47,144,45C168,43,192,37,216,41.7C240,47,264,63,288,58.3C312,53,336,27,360,18.3C384,10,408,20,432,26.7C456,33,480,37,504,33.3C528,30,552,20,576,16.7C600,13,624,17,648,21.7C672,27,696,33,720,35C744,37,768,33,792,36.7C816,40,840,50,864,51.7C888,53,912,47,936,43.3C960,40,984,40,1008,41.7C1032,43,1056,47,1080,53.3C1104,60,1128,70,1152,71.7C1176,73,1200,67,1224,55C1248,43,1272,27,1296,18.3C1320,10,1344,10,1368,15C1392,20,1416,30,1440,31.7C1464,33,1488,27,1512,23.3C1536,20,1560,20,1584,16.7C1608,13,1632,7,1656,16.7C1680,27,1704,53,1716,66.7L1728,80L1728,100L1716,100C1704,100,1680,100,1656,100C1632,100,1608,100,1584,100C1560,100,1536,100,1512,100C1488,100,1464,100,1440,100C1416,100,1392,100,1368,100C1344,100,1320,100,1296,100C1272,100,1248,100,1224,100C1200,100,1176,100,1152,100C1128,100,1104,100,1080,100C1056,100,1032,100,1008,100C984,100,960,100,936,100C912,100,888,100,864,100C840,100,816,100,792,100C768,100,744,100,720,100C696,100,672,100,648,100C624,100,600,100,576,100C552,100,528,100,504,100C480,100,456,100,432,100C408,100,384,100,360,100C336,100,312,100,288,100C264,100,240,100,216,100C192,100,168,100,144,100C120,100,96,100,72,100C48,100,24,100,12,100L0,100Z'/%3E%3C/svg%3E");}
.figure:hover img {transform: scale(1.05); transition: all 10s}
figure.shadow {box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px!important;border-radius: .5em;}
/*.book h3 {position: sticky; top: 98px; background: #fff;padding: .5rem 0;}
.book h4 {position: sticky; top: 144px; background: #fff;padding: .5rem 0;}
*/
.red {border: 2px solid red!important;}

.vbox-title {background-color: rgba(61, 64, 91, 0.95); font-size:15px; text-shadow: 0 1px 0 #000}
.ico {height: 50px;
width: 50px;
background-color: #eee;
border-radius: 15px;
text-align: center;
/*line-height: 50px;*/
z-index: 2;
}
.modal.show{z-index: 1333;}
.modal-backdrop.show{z-index: 1332; background-color: rgba(255, 255, 255, 0.75)!important;opacity: 1;backdrop-filter: blur(5px) saturate(180%);-webkit-backdrop-filter:blur(5px) saturate(180%);}
.modal-body {padding-bottom: 0;text-shadow: 0 1px 0  #000;}
.modal-body svg {margin: 1rem 50%;
color:#638B5F;
background-color: #fff;
border-radius: 50%;
filter: drop-shadow(0 0 1px #ddd);
padding: 5px;
border: 2px solid #ddd;
transform: translateX(-50%);}

.modal-body .btn {margin:0 -1rem;border:0; border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);background-color: #638B5F;transition: background .25s}
.modal-body .btn:hover {background-color: #2B5127;transition: background .25s}
.modal-body .btn:active {background-color: #2B5127;transition: background .25s}
.modal-content {border-radius: var(--border-radius-medium);background-color: rgba(61, 64, 91, 0.9);}

.top-100 {top: 60px!important;z-index: 1333;}
.top-100 .btn-close {color:#fff;opacity:1;filter:invert(1);}

.toast.show .progress-bar {
    animation-name: animWidth;
    animation-duration: 10s;
    animation-timing-function: linear;
}
@keyframes animWidth {
    from {
        width:0;
    }

    to {
        width:100%;
    }
}



.accordion-item {border-radius: 10px!important;}
.accordion-header {background-color: #fcad26;border-radius: 20px;}
.accordion-button {box-shadow: none!important;background-color: var(--custom-btn-bg-color)!important;border-radius: 0 20px 20px 0!important;}
.d-icon {background-color: #000; width: 90px;color:var(--custom-btn-bg-color);border-radius: 20px 0 0 20px;position: relative;}
.d-icon:after {
content:'';
position: absolute;
width: 20px;
height: 20px;
background: #000;
z-index: 5;
left: 77px;
top: 50%;
margin: -10px 0 0 -10px;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);}

/*---------------------------------------
  GALLERY
-----------------------------------------*/

.grid-wrapper > div {
  display: flex;
  justify-content: center;
  align-items: center;
}
.grid-wrapper a, .grid-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
/*  box-shadow: 0px 0px 4px rgba(61,64,91,.20);*/
/*  border: double solid transparent;*/
/*  padding: 1px;*/
  
/*  background-image: linear-gradient(45deg, var(--secondary-color) 0%, transparent 40%, transparent 60%, var(--secondary-color) 100%);*/
  border-radius: 10px!important;
  
/*  background-origin: border-box;*/
/*  background-clip: content-box, border-box;*/
}

.grid-wrapper a {position: relative;overflow: hidden;cursor:zoom-in;}
.grid-wrapper a img {    animation: 30000ms kenBurns alternate infinite;
    animation-play-state: paused;
    animation-timing-function: ease-in;}
.grid-wrapper a:hover img {animation-play-state: running;}



.grid-wrapper {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(33%, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
.grid-wrapper .wide {
  grid-column: span 2;
}
.grid-wrapper .tall {
  grid-row: span 2;
}
.grid-wrapper .big {
  grid-column: span 2;
  grid-row: span 2;
}


/* SM */
@media (min-width: 100px) { 
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(40%, 1fr)); /*repeat(auto-fit, minmax(250px, 1fr));*/
  }
  figure.float-end {
    float: none!important;
    margin-left: 0!important;
  }
  .book .d-flex {flex-direction: column;align-items: center;}
/*  .book .d-flex .figure {margin-left:0!important; margin-right:0!important;}*/
  .book .d-flex .me-2 {margin-right: 0!important;}
  .book .d-flex .ms-2 {margin-left: 0!important;}
  .book .d-flex .mx-2 {margin-left: 0!important; margin-right: 0!important;}
  .book > figure {display: block; margin-left:auto!important; margin-right:auto!important;}
  figure.w-25 {width:fit-content!important}
  figure.w-33 {width:fit-content!important}
  figure.w-50 {width:fit-content!important}
}

/* MD */
@media (min-width: 768px) { 
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr)); /*repeat(auto-fit, minmax(250px, 1fr));*/
  }
  figure.float-end {
    float: right!important;
    margin-left: 1.5rem!important;
  }
  figure.w-25 {width:25%!important}
  figure.w-33 {width:33.3333%!important}
  figure.w-50 {width:50%!important}
  .book .d-flex {flex-direction: row;}
  .book .d-flex .me-2 {margin-right: .5em!important;}
  .book .d-flex .ms-2 {margin-left: .5em!important;}
  .book .d-flex .mx-2 {margin-left: .5em!important; margin-right: .5em!important;}

}

/* LG */
@media (min-width: 992px) { 
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(16%, 1fr)); /*repeat(auto-fit, minmax(250px, 1fr));*/
  }
}

/* XL */
@media (min-width: 1200px) { 
  .grid-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(18%, 1fr)); /*repeat(auto-fit, minmax(250px, 1fr));*/
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}



/*---------------------------------------
  CUSTOM CARD
-----------------------------------------*/

.customcard {border-top-right-radius: 25px; border-top-left-radius: 25px;box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);transition: all .5s;}
.customcard:hover {box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);}
.customcard .card-img {position: relative;overflow: hidden;border-radius: 25px 25px 0 0;}
.customcard .card-img svg {position: absolute;bottom: -1px;left: 0;filter: drop-shadow(2px -9px 4px rgba(61, 64, 91, 0.4));}
.customcard .card-img img {border-top-right-radius: 25px; border-top-left-radius: 25px;transition: all .5s;}
.customcard:hover .card-img img {transform: scale(1.1);transition: all .5s;}

/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .navbar {
    background-color: var(--secondary-color);
    position: fixed!important;top:0;left: 0;right: 0;
  }

  .navbar-nav .dropdown-menu {
    position: relative;
    left: 10px;
    opacity: 1;
    pointer-events: auto;
    max-width: 155px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-top: 15px;
    padding-bottom: 10px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    margin: 5px;
    padding: 0;
  }

  .hero-section {
/*    position: relative;*/
    top: 110px;
    margin-bottom: 82px;

  }

  .events-listing-section {
    margin-bottom: 50px;
  }

  .events-detail-section .custom-block-info {
    padding: 40px;
  }

  .events-detail-info {
    padding: 35px 25px;
  }

  .contact-info-item {
    width: 60%;
  }

  .events-detail-section .contact-info-item {
    width: 70%;
  }

  .section-bg-image {
    margin-bottom: 0;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 100px;
  }
}

@media screen and (max-width: 768px) {
  .mapa a{
    border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium)!important;
    border-image: fill 0 linear-gradient(180deg, rgba(61,64,91,1) 0%, rgba(0,212,255,0) 55%)!important;
  }
  .contact-form form{border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0!important;}

}


@media screen and (max-width: 480px) {
  .navbar-brand {
    font-size: var(--p-font-size);
  }

  .navbar-brand-icon {
    width: 30px;
    height: 30px;
  }

  .navbar-brand-icon::after {
    top: 5px;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .contact-info-item {
    width: 72%;
  }
}

@media screen and (max-width: 360px) {
  .custom-btn {
    font-size: 12px;
    padding: 4px 12px;
  }
}
