/* Basic styles */

/* Variables */
:root {
  --main-color: rgb(62, 41, 77);
  --secondary-color: rgb(242, 181, 24);

  --link-color:             #1A1120;
  --link-color-hover:       #9259D4;
  --link-color-hover-rgba:  rgba(146, 89, 212, 0.25);
  --link-disabled:          #949494;

  --menu-bgr:               #3e294d;
  --card-bgr:               #fce7b0;

  --master-color:           #000;
  --subtitle-text:          #9c9c9c;

  --btn:                    #F2B518;
  --btn-hover:              #FFCD4C;
  --btn-disabled:           #FBE8B7;
  --btn-text:               #000;
}


@media screen and (max-width: 991px){
  body{
    margin-top: 0;
  }
}
body {
  font-family: 'Sofia Sans';
  font-size: 18px;
  font-weight: normal;
  line-height: 1.5;
}
        body.no-header{
          margin-top: 0 !important;
        }

h1, h2, h3, h4, h5, h6{
  font-family: 'Sofia Sans';
  font-weight: 1000;
}
h1{ font-size: 48px; font-weight: 900; }
h2{ font-size: 42px; font-weight: bold; }
h3{ font-size: 26px; font-weight: 900; }

p.italic,
p.italic strong{
  font-family: 'Sofia Sans';
  font-style: italic;
}

.main-title{
  font-size: 64px;
  font-weight: 1000;
  text-align: left;
}
.main-title span{
  color: var(--secondary-color);
}
.main-subtitle{
  color: var(--master-color);
  font-size: 36px;
}

.zona-info .main-title{
  font-size: 40px;
}
.zona-info .main-subtitle{
  font-size: 22px;
}

/* Tabs */
.nav.nav-tabs{
  display: flex;
  margin-top: 60px;
  justify-content: center;
  border-bottom: none;
  gap: 10px;
}
    .nav-tabs .nav-link{
      background: none;
      border: 1px solid var(--link-color-hover-rgba);
      border-radius: 30px;
      color: var(--main-color);
    }
    .nav-tabs .nav-link:hover{
      background: var(--link-color-hover-rgba);
      border-radius: 30px;
      color: var(--link-color-hover);
    }
    .nav-tabs .nav-link.active{
      background: var(--main-color);
      border: 1px solid #fff;
      border-radius: 30px;
      color: #fff;
    }

/* Tabs on mobile */
@media screen and (max-width: 992px){
  .main-title{
    font-size: 40px;
  }
  .main-subtitle{
    color: var(--master-color);
    font-size: 22px;
  }
}

.zones{
  background: url('../images/sign-bgr.jpg') no-repeat center center;
  background-size: cover;
}

.hover-grow {
  display: inline-block;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.btn-zona{
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px;
  font-size: 22px;
  border-radius: 5px !important;
}
.btn.btn-chervena-zona{
  background: #b71a1a;
  color: #fff;
}
.btn.btn-chervena-zona:hover{
  background: #ef2929;
}
.btn.btn-sinya-zona{
  background: #0071bc;
  color: #fff;
}
.btn.btn-sinya-zona:hover{
  background: #2092d1;
}
.btn.btn-zelena-zona{
  background: #36893e;
  color: #fff;
}
.btn.btn-zelena-zona:hover{
  background: #39b54a;
}
.btn.btn-zhalta-zona{
  background: #e2bd23;
}
.btn.btn-zhalta-zona:hover{
  background: #f9da23;
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* Tabs on mobile */
@media screen and (min-width: 992px){
  .autohide{
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 200;
  }
  .scrolled-down{
    transform:translateY(-100%); transition: all 0.3s ease-in-out;
  }
  .scrolled-up{
    transform:translateY(0); transition: all 0.3s ease-in-out;
  }
  .animate-down{
    transform:translateY(-70px); transition: all 0.3s ease-in-out;
  }
  .animate-up{
    transform:translateY(0); transition: all 0.3s ease-in-out;
  }
}

.bold-heading{
  font-weight: 900;
}

.block-main{
  position: absolute;
  display: block;
  background: var(--main-color);
}
.block-white{
  position: absolute;
  display: block;
  background: #fff;
}
.block-secondary{
  position: absolute;
  display: block;
  background: var(--secondary-color);
}
        .relative{
          position: relative;
          width: 100%;
        }
        .block-h1{
          width: 100px;
          height: 100px;
        }
        .block-h2{
          width: 60px;
          height: 60px;
        }
        .block-h3{
          width: 40px;
          height: 40px;
        }
        .block-h4{
          width: 30px;
          height: 30px;
        }
        .block-h5{
          width: 20px;
          height: 20px;
        }

.section-title-no-border{
  margin: 30px 0;
  font-size: 48px;
  font-weight: 900;
}
.section-title{
  position: relative;
  width: 100%;
  font-size: 48px;
  font-weight: 900;
  margin: 30px 0 60px 0;
  text-align: center;
}
        .section-title:after{
          content: '';
          display: block;
          position: absolute;
          bottom: -20px;
          left: 50%;
          margin-left: -50px;
          width: 100px;
          height: 5px;
          background: var(--secondary-color);
        }

.subtitle{
  font-size: 22px;
  font-weight: normal;
  color: var(--subtitle-text);
}
        .subtitle a{
          color: var(--subtitle-text);
        }

.text-link{
  color: var(--link-color);
  transition: 0.3s all ease-in-out;
}
        .text-link:hover{
          color: var(--link-color-hover);
        }
        .text-link i{
          font-size: 75%;
          margin-left: 10px;
        }
a{
  color: var(--link-color);
  transition: 0.3s all ease-in-out;
}
        a:hover{
          color: var(--link-color-hover);
        }

.breadcrumb{
  color: var(--menu-bgr);
}
        .breadcrumb .breadcrumb-item a{
          text-decoration: none;
          color: var(--link-color-hover);
        }
        .breadcrumb .breadcrumb-item a:hover{
          text-decoration: underline;
          color: var(--secondary-color);
        }

.btn{
  border-radius: 2px;
  transition: 0.3s all ease-in-out;
  padding: 10px 16px;
}
        .btn>i{
          font-size: 80%;
          margin-right: 5px;
        }
        .btn:focus,
        .btn:active,
        .btn:hover{
          box-shadow: none !important;
        }

        /* Primary button */
        .btn.btn-primary{
          background: var(--btn);
          border: 1px solid var(--btn);
          color: var(--btn-text);
        }
        .btn.btn-primary:hover{
          background: var(--btn-hover);
          border: 1px solid var(--btn-hover);
          box-shadow: 0px 8px 16px rgba(141, 93, 14, 0.32) !important;
        }
        .btn.btn-primary.active{
          background: #fff;
          border: 1px solid var(--btn);
          color: var(--btn-text);
        }
        .btn.btn-primary.active:focus{
          box-shadow: none !important;
        }

        /* Secondary button */
        .btn.btn-secondary{
          background: #fff;
          border: 1px solid var(--main-color);
          color: var(--main-color);
        }
        .btn.btn-secondary:hover{
          background: #fff;
          border: 1px solid var(--link-color-hover);
          color: var(--link-color-hover);
          box-shadow: 0px 8px 16px rgba(141, 93, 184, 0.32) !important;
        }

        /* Black button */
        .btn.btn-black{
          background: #000;
          border: 1px solid #000;
          color: #fff;
        }
        .btn.btn-black:hover{
          background: #222;
          border: 1px solid #222;
          color: var(--btn-disabled);
          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.32) !important;
        }

        /* Purple button */
        .btn.btn-purple{
          background: #CB9EFF;
          border: 1px solid #CB9EFF;
          color: #000;
        }
        .btn.btn-purple:hover{
          background: #dabcfd;
          border: 1px solid #dabcfd;
          color: #333;
          box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.1) !important;
        }

/* Card */
.card,
.priority-card{
  width: 100%;
  background: var(--card-bgr);
  margin-bottom: 40px;
}

/* Counter hero */
.counter-container{
  background: radial-gradient(#ddd 1px, transparent 1px) 0 0 / 20px 20px;
}
        .counters{
          margin: 100px 0 0 0;
        }
        .counters .counter-panel{
          position: relative;
          margin-bottom: 30px;
        }
        .counter-panel .counter-prime{
          position: absolute;
          font-weight: 900;
          font-size: 48px;
          color: var(--secondary-color);
          top: -55px;
          left: 0;
          right: 0;
          width: 100%;
          text-align: center;
        }
        .counter-panel .counter-subtitle{
          font-weight: 900;
          font-size: 26px;
          margin-bottom: 0;
        }
        .counter-panel .counter-note{
          font-size: 20px;
        }
        @media screen and (max-width: 992px){
          .counters .counter-panel{
            margin-bottom: 70px;
          }
        }

/* Forms */
.form-group{
  width: 100%;
  margin-bottom: 15px;
}
        .form-group label{
          line-height: 24px;
          margin: 0;
        }
        .form-group label .required-marker{
          color: #F43309;
        }
        .form-group .form-control,
        .form-group .form-select{
          padding: 10px 16px;
          border: 1px solid var(--master-color);
          border-radius: 2px;
        }
        .form-group .form-control:active,
        .form-group .form-control:focus,
        .form-group .form-select:active,
        .form-group .form-select:focus{
          box-shadow: 0 0 0 0.25rem rgba(62, 41, 77, 0.2);
          border-color: var(--link-color-hover);
        }
                .form-group .form-control.is-valid,
                .form-group .form-select.is-valid{
                  border: 1px solid #65BF73 !important;
                  color: #65BF73;
                }
                .form-group .form-control.is-valid:active,
                .form-group .form-control.is-valid:focus,
                .form-group .form-select.is-valid:active,
                .form-group .form-select.is-valid:focus{
                  box-shadow: 0 0 0 0.25rem rgba(101, 191, 115, 0.2);
                }
                .form-group .valid-feedback{
                  color: #65BF73;
                }
                .form-group .form-control.is-invalid,
                .form-group .form-select.is-invalid{
                  border: 1px solid #F43309 !important;
                  color: #F43309;
                }
                .form-group .form-control.is-invalid:active,
                .form-group .form-control.is-invalid:focus,
                .form-group .form-select.is-invalid:active,
                .form-group .form-select.is-invalid:focus{
                  box-shadow: 0 0 0 0.25rem rgba(244, 51, 9, 0.2);
                }
                .form-group .invalid-feedback{
                  color: #F43309;
                }
        .form-group .form-check-input:checked{
          background-color: var(--link-color-hover);
          border-color: var(--link-color-hover);
        }
        .form-group .form-check-input:active,
        .form-group .form-check-input:focus{
          box-shadow: 0 0 0 0.25rem rgba(62, 41, 77, 0.2);
        }

.main-color{
  color: var(--main-color) !important;
}
.secondary-color{
  color: var(--secondary-color) !important;
}
.green{
  color: #65bf73 !important;
}

/* Footer */
.upper-footer{
  margin-bottom: -1px;
  padding: 0 0 60px 0;
  background: url('https://spasisofia.org/wp-content/themes/spasisofia/images/footer-sofia-landmarks-purple-1.png') no-repeat bottom center;
  background-size: 100% auto;
}
footer{
    background: linear-gradient(0deg,rgba(0,0,0,0.2),rgba(0,0,0,0.2)),linear-gradient(0deg,rgba(62,41,77,0.8),rgba(62,41,77,0.8)),url('https://spasisofia.org/wp-content/themes/spasisofia/images/footer-blokove-scaled.jpg'),linear-gradient(0deg,#3E294D,#3E294D);
    background-blend-mode: normal,normal,luminosity,normal;
    background-size: cover;
    background-position: center,center,top 35% right,center;
    background-repeat: no-repeat;
    color: #fff;
    font-size: 14px !important;
}
        footer a{
          transition: 0.3s all ease-in-out;
          color: #fff;
          text-decoration: none;
        }
        footer a:hover{
          color: var(--secondary-color);
          text-decoration: none;
        }
        footer .copyright p{
          margin-top: 3px;
        }

        /* Footer menus */
        footer .footer-nav{
          display: flex;
          justify-content: center;
        }
        footer .menu{
          padding: 0;
          margin: 0;
        }
        footer .menu li{
          list-style: none;
          margin-bottom: 0;
        }
        footer .menu li:before{
          display: none;
        }
        footer .menu li:first-child{
          margin-bottom: 5px;
        }
        footer .menu li a{
          padding: 0;
          font-size: 14px !important;
        }
        footer .menu li:not(:first-child) a:after{
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          font-size: 50%;
          content: '\f08e';
          margin-left: 5px;
        }
        footer .menu li:first-child a{
          font-size: 17px;
          font-weight: 900;
        }

        /* Footer socials */
        footer .footer-socials{
          display: flex;
          justify-content: flex-end;
        }
        footer .footer-socials .footer-soc-item{
          margin-left: 20px;
          font-size: 25px;
        }

        /* Cookies menu */
        footer .cookies-menu{
          margin-bottom: 60px;
        }
        footer .cookies-menu .menu{
          display: flex;
          flex-direction: row;
          justify-content: flex-end;
        }
        footer .cookies-menu .menu:before{
          display: none !important;
        }
        footer .cookies-menu .menu li{
          margin-left: 40px;
          margin-bottom: 0 !important;
        }
        footer .cookies-menu .menu li a{
          font-weight: normal !important;
        }
        footer .cookies-menu .menu li a:after{
          content: '';
        }

        /* Mobile footer */
        @media screen and (max-width: 992px){
          footer{
            text-align: center;
          }
          footer .footer-brand{
            margin-top: 40px;
          }
          footer .footer-nav{
            display: none;
          }

          footer .footer-socials,
          footer .cookies-menu .menu{
            justify-content: center;
          }
          footer .cookies-menu .menu li:first-child{
            margin-left: 0;
          }
          footer .footer-socials .footer-soc-item:first-child{
            margin-left: 0;
          }
        }

        /* Accordion */
        .accordion{
          margin-bottom: 40px;
        }
                .accordion .accordion-item,
                .accordion .accordion-item .accordion-button,
                .accordion .accordion-item:first-of-type .accordion-button{
                  border: none;
                  border-radius: 0;
                  box-shadow: none;
                  background: none;
                }
                .accordion .accordion-header{
                  padding: 10px 0;
                  border-bottom: 2px solid var(--secondary-color);
                }
                .accordion .accordion-button{
                  font-size: 26px;
                  font-weight: 900;
                }
                .accordion-button:not(.collapsed){
                  color: var(--btn-hover);
                }

        .accordion.accordion-donation{
          margin-bottom: 30px;
        }
        		.accordion.accordion-donation .accordion-item{
        			background: white;
        			box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.16);
        			border: 1px solid var(--secondary-color);
        			min-height: 48px;
        		}
        		.accordion.accordion-donation .accordion-item .accordion-header:hover {
        			background-color: var(--btn-disabled);
        			cursor: pointer;
        		}
        		.accordion.accordion-donation .accordion-header{
        			padding: 0;
        			border-bottom: none;
        		}
        		.accordion.accordion-donation .accordion-header button{
        			font-size: 16px !important;
        			font-weight: 400 !important;
        		}
        		.accordion.accordion-donation .accordion-header button i{
        			margin-right: 10px;
        		}
        		.accordion.accordion-donation .accordion-button:not(.collapsed){
        			color: var(--bs-body-color);
        		}

/* Options */

  .sofia-sans-regular,
  body,
  html {
    font-family: "Sofia Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
  .sofia-sans-bold,
  strong {
    font-family: "Sofia Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
  }
  .sofia-sans-black{
    font-family: "Sofia Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 1000;
    font-style: normal;
  }

  .logo{
    width: 120px;
  }

  header{
    background: linear-gradient(89.91deg, rgba(62, 41, 77, 0.8) 0%, rgba(56, 97, 204, 0.8) 100%);
    color: #fff;
  }
  header h1,
  header h3{
    text-transform: uppercase;
  }
  header h1{
    font-size: 80px;
    line-height: 1.2;
  }
  header h3{
    line-height: 1.4;
    font-size: 35px;
  }
  header h1 span{
    padding: 0 10px;
    background: #fff;
    color: #4f375e;
  }
  header h3 a{
    padding: 0 5px;
    background: #f4b42b;
    color: #4f375e;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
  }
  header h3 a:hover{
    color: #4f375e;
    background: #fff;
  }

  /* Mobile header */
  @media screen and (max-width: 992px){
    header h1{
      font-size: 40px;
      line-height: 1.2;
    }
    header h3{
      font-size: 36px;
    }
  }

  .subtitle{
    font-size: 22px;
    font-weight: normal;
    color: var(--subtitle-text);
  }

  .prompts{
    background: radial-gradient(#ddd 1px, transparent 1px) 0 0 / 20px 20px;
  }


  .carousel-item{
    padding: 60px 0;
  }
  .carousel-item img{
    border-radius: 10px;
  }
  ul{
    padding: 0;
    margin: 0 0 40px 0;
  }
  .card ul { margin: 0 !important;}
  ul li{
    list-style: none;
    position: relative;
    font-size: 18px;
    line-height: 1.5;
    padding-left: 15px;
    margin-bottom: 10px;
  }
  ul li:before{
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background: url('../images/bullet.svg') no-repeat center center;
    content: '';
  }
  .carousel-item h3{
    font-weight: 800;
  }

  .carousel-indicators-custom {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
  }
  .carousel-indicators-custom button {
    background: none;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
  }
  .carousel-indicators-custom button.active {
    background-color: #007bff;
    color: white;
  }

  @media screen and ( max-width: 992px ) {
    .carousel-indicators-custom {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    }
    .carousel-indicators-custom button {
      width: calc(50% - 0.5rem);
    }
  }
  @media screen and ( max-width: 1600px ) {
    .carousel-item{
      padding: 20px;
    }
  }
  
  
.img-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.img-wrapper a {
  display: inline-block;
  height: 100%;
}

.img-wrapper img {
  display: block;
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
}
  .card-article{
    background-color: #fff;
  }
  .card-icon-header {
    height: 150px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .card-icon-header .blur-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(30px);
    opacity: 0.5;
    object-fit: cover;
    z-index: 0;
  }

  .card-icon-header .icon-img {
    width: auto;
    height: 100px;
    z-index: 1;
  }

  /* Optional: Make hover effect visible */
  .card-article:hover {
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease;
  }

  .overlay-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1050;
    overflow-y: auto;
    padding: 2rem;
    display: none;
  }

  .overlay-panel.show {
    display: block;
  }

  .overlay-close-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    font-size: 1.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
  }

  .overlay-panel-content {
    max-width: 1400px;
    margin: 5rem auto 2rem auto;
  }

  .overlay-panel-content p strong{
    color: var(--main-color);
  }
  
  body.scroll-locked {
    overflow: hidden;
    height: 100vh;
  }