/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */


/* Posts layout */
.gm-post-archive > article {
    display: grid;
	grid-template-columns: 2fr 3fr;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px !important;
	border-radius: 0.5rem !important;
}

.gm-post-archive > article a.post-thumbnail {
    height: 100% !important;	
	border-bottom-left-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
}


/* Blog page  */
.gm-blog-archive .entry-content-wrap{
    border-radius: 0.5rem;
    margin-top: -5rem;
    background: white;
    scale: 0.95;
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	padding: 1rem !important;
    min-height: 10em;
}

.gm-blog-archive a{
    border-radius: 0.5rem !important;
 }


/* izdelava strani */
@media(min-width:786px) {
  .move-image {
    position: relative;
    top: 1.5rem;
    left: 1.5rem;	
  }

  .move-image-alt {
    position: relative;
    bottom: -1.5rem;
    right: 1.5rem;	
  }
}

.move-image,
.move-image-alt{
box-shadow: rgb(255 255 255 / 35%) 0px 5px 15px;
}

.image-box-shadow,
.image-box-shadow > div> img,
.image-box-shadow > img {
  box-shadow: 0 8px 32px 5px rgba(31, 38, 135, 0.37);
}

/* Kontaktni obrazec */
.kontaktni-obrazec > p {
	margin-bottom: 0 !important;
}

.kontaktni-obrazec > p input {
    border: 1px solid var(--global-palette6);
	border-radius:0.5rem;
	min-width: 100%;
}

.kontaktni-obrazec > p textarea {
    border: 1px solid var(--global-palette6);
	border-radius:0.5rem;
	field-sizing: content;
	min-height: 3lh;
}

.kontaktni-obrazec > p:last-child input.wpcf7-form-control{
  width: 100%;
	margin-top: 1rem;
}



/*Background, matrix rain - hero section*/
.matrix-row .content { position: relative; z-index: 2; }

.matrix-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 46%) 95%, rgb(0 0 0) 100%);
}

.matrix-row{
  --matrix-speed: 10;     /* rows/sec (lower = slower) */
  --matrix-font: 16;
  --matrix-color: #00ff88;
  --matrix-bg: #000000;
  --matrix-minh: 520;
}
#shader-container {
    height: 91vh !important;
    width: 100%;
}

#shader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places it behind the content */
}

.content {
    position: relative;
    z-index: 1; /* Ensures content is on top */
    margin-top: 10%;
    padding: 20px;
    text-align: center;
    color: white; /* Adjust text color to contrast with background */
    
    & h1 {
        font-size: var(--global-kb-font-size-xxl);
        color: var(--global-palette7);
        padding-bottom: 1rem;
    }

}

@media only screen and (max-width: 992px) {
  #shader-container {
    height: 75vh !important;
}
  #shader-background > div > canvas {
        width: 500px !important;
        height: 800px !important;
  }

  .content {
    margin-top: 40%;
  }

  a.hero-btn {
    font-size: var(--global-kb-font-size-md) !important;
  }
}

.hero-top-row > div{
  padding-inline: 0 !important;
}

.typewrite {
    color: #fff;
}

.typewrite > .wrap { 
  border-right: 0.08em solid #fff
}



#post-13 > div > div > div.kb-row-layout-wrap.kb-row-layout-id13_417c9f-6e.alignfull.wp-block-kadence-rowlayout {
    margin-top: -7rem !important;
    padding: 0 !important;
}

/*GM Card*/
.gm-card {
  background: linear-gradient(71deg, #080509, #1a171c, #080509);
  border-radius: 15px;
}

.gm-card::after{
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  right: -1px;
  content: "";
  z-index: -1;
  border-radius: 15px;
}

.gm-card:nth-child(1)::after{
     background: linear-gradient(71deg, #0d1212, #7e8ef1, #0d1212);
}

.gm-card:nth-child(2)::after{
     background: linear-gradient(71deg, #0d1212, var(--global-palette2), #0d1212);
}

.gm-card:nth-child(3)::after{
     background: linear-gradient(71deg, #0d1212, var(--global-palette4), #0d1212);
}

.gm-card:nth-child(4)::after{
     background: linear-gradient(71deg, #0d1212, #ffe31a, #0d1212);
}

.gm-card:nth-child(5)::after{
     background: linear-gradient(71deg, #0d1212, #f09319, #0d1212);
}

/* FOOTER */
.footer-navigation, .footer-menu-container{
  justify-content: center;
}

.footer-navigation .menu {
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
}

.site-bottom-footer-inner-wrap {
  padding: 0 !important;
}


/* 
/*Animated title*/
.naslov {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.5rem; /* Adjust based on your design */
  line-height: 1.2; /* Keeps spacing consistent */
}

.naslov:first-of-type {
  animation: fade-in-out 3s infinite;
}

.naslov:last-of-type {
  width: 0;
  animation: reveal 3s infinite;
}

.naslov:last-of-type span {
  display: inline-block;
  animation: slide-in 3s infinite;
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 1; }
}

@keyframes slide-in {
  0%, 20% { transform: translateX(-100%); }
  35%, 100% { transform: translateX(0); }
}

@keyframes reveal {
  0% { opacity: 0; width: 0; }
  20% { opacity: 1; width: 0; }
  30%, 80% { width: auto; }
  100% { opacity: 0; width: auto; }
} */

/*BUTTON*/

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg; 
}
@property --i {
  syntax: "<number>";
  inherits: false;
  initial-value: 0; 
}

.is-style-gm-button {
   border-radius: 30px;
  border: 3px solid #0000;
  padding: 10px; /* control the gap */
  background: #ccc !important;
  --_s: (90deg - mod(var(--a),.5turn))*9999;
  mask:  
    conic-gradient(#000 0 0) content-box,
    linear-gradient(calc(var(--_a,45deg) + mod(var(--a),90deg)*var(--i) +
       clamp(-90deg*var(--i),(90deg - mod(var(--a),180deg))*9999,0deg)),
      #0000 30%,#000 40% 60%,#0000 70%) subtract,
    conic-gradient(#000 0 0) padding-box;
  transition: --i .3s,--a 0s .3s;
  cursor: pointer;
}

.is-style-gm-button:hover {
    /*background: transparent !important;*/
  --i: 1;
  --a: 15turn;
  transition: --i 0s,--a 30s linear;
}

.is-style-gm-button a {
    background: transparent !important;
    
    &:hover {
        background: transparent !important;
    }
}


a.hero-btn{
  position: absolute;
  margin-top: 5rem !important;
  transform: translate(-50%,-50%);
  padding: 6px 30px !important;
  color: var(--global-palette9) !important;
  text-transform:uppercase;
  text-decoration:none;
  letter-spacing: 5px;
  text-wrap-mode: nowrap;
  font-size: var(--global-kb-font-size-lg);
  font-weight: bold;
  overflow:hidden;
  background: rgba( 0, 143, 17, 0.25 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 15.5px );
  -webkit-backdrop-filter: blur( 15.5px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
}

a.hero-btn:hover {
  scale: 1.02;
  font-weight: bold;
  /* color: var(--global-palette2) !important; */
}

a.hero-btn::before
{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  bottom:2px;
  
}
a.hero-btn span:nth-child(1)
{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:2px;
  background:linear-gradient(to right, #0c002b ,var(--global-palette2));
  animation: animate1 2s linear infinite;
  animation-delay:1s;
}

a.hero-btn:hover span:nth-child(1){
  background:linear-gradient(to right, #0c002b ,var(--global-palette9));
}

a.hero-btn:hover span:nth-child(2){
  background:linear-gradient(to right, #0c002b ,var(--global-palette9));
}

a.hero-btn:hover span:nth-child(3){
  background:linear-gradient(to right, #0c002b ,var(--global-palette9));
}

a.hero-btn:hover span:nth-child(4){
  background:linear-gradient(to right, #0c002b ,var(--global-palette9));
}

@keyframes animate1
{
  0%
  {
    transform:translateX(-100%);
}
  100%
  {
    transform:translateX(100%);
  }
}
a.hero-btn span:nth-child(2)
{
  position:absolute;
  top:0;
  right:0;
  width:2px;
  height:100%;
  background:linear-gradient(to bottom, #0c002b , var(--global-palette2)) !important;
  animation: animate2 2s linear infinite;
  animation-delay:2s;
}
@keyframes animate2
{
  0%
  {
    transform:translateY(-100%);
}
  100%
  {
    transform:translateY(100%);
  }
}
a.hero-btn span:nth-child(3)
{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:2px;
  background:linear-gradient(to left, #0c002b ,var(--global-palette2));
   animation: animate3 2s linear infinite;
  animation-delay:1s;
}

@keyframes animate3
{
  0%
  {
    transform:translateX(100%);
}
  100%
  {
    transform:translateX(-100%);
  }
}
a.hero-btn span:nth-child(4)
{
  position:absolute;
  top:0;
  left:0;
  width:2px;
  height:100%;
  background:linear-gradient(to top, #0c002b , var(--global-palette2));
   animation: animate4 2s linear infinite;
  animation-delay:2s;
}

@keyframes animate4
{
  0%
  {
    transform:translateY(100%);
}
  100%
  {
    transform:translateY(-100%);
  }
}


/* Mobile navigation */
#mobile-drawer > div.drawer-inner > div.drawer-content.mobile-drawer-content.content-align-left.content-valign-top > div:nth-child(2) {
  justify-content: center;
}

/* Faq-accoridion */
.faq-accoridion .kt-accordion-panel-inner {
  border: none !important;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;  
}

.faq-accoridion .kt-blocks-accordion-header.kt-accordion-panel-active {
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

/* Faq triggers */
.kt-accodion-icon-side-left .kt-blocks-accordion-icon-trigger {
  scale: 0.8;
  }

/* Holographic hover effect */
/* .holograph {
  overflow: hidden !important;
  border-radius: 15px;
  transition: all 0.5s ease;
}

.holograph:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    transparent 30%, 
    var(--global-palette1)
  );
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.holograph:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--global-palette1);
  border-radius: 15px;
}

.holograph:hover::after {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}  */


.wpupg-template-overlay.wpupg-item-has-image .wpupg-template-overlay-container {
  overflow: hidden;}
  
  .wpupg-block-text-bold {
  text-align: center;
      font-size: var(--global-font-size-medium);
      display: flex;
      justify-content: center;
      width: 90%;
      place-self: anchor-center;
      border-radius: 5px;
      z-index: 149;
      top: 3rem;
      background: rgba(255, 255, 255, 0.25);
      box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      padding: 1rem 0;
  }
  
  /* Remove ReCaptcha badge */
.grecaptcha-badge {
    display: none;
}

/* Contact us pattern */
.contact-section {
  background: rgba(0, 143, 17, 0.25);
  box-shadow: 0 8px 32px 16px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.shaky-btn {
  animation: shake 2s ease-out infinite !important;
  border: 2px solid green;
}

@keyframes shake {
  0%   { transform: skewX(-10deg); }
  5%   { transform: skewX(10deg); }
  10%  { transform: skewX(-10deg); }
  15%  { transform: skewX(10deg); }
  20%  { transform: skewX(-10deg); }
  100% { transform: skewX(0); }
}

/* Single post sideba - latest posts */


.latest-post-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-block: 1rem;
  border-radius: 5px;
  background: rgba(0, 143, 17, 0.25);
  box-shadow: 0 8px 32px 16px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  }

  .latest-post-card > a > img {
    height: 150px;
    object-fit: cover;
  }

  .latest-post-content {
    padding: 0.5em;
    text-align: left;
}

.latest-post-content >h3 {
  line-height: 0.85 !important;
}

  .latest-post-content >h3 > a {
    font-size: var(--global-font-size-small);
    color: var(--global-palette2);
    line-height: 1.15 !important;
  }

  .sidebar-kontakt > div {
    padding-inline: 0 !important;
  }

  ul.blog-archive-categories {
    margin-left: 0;
  }


  .blog-archive-categories > li {
    list-style: none;
    margin-block: 1.5em;
    border-bottom: 1px solid #ffffff42;
    padding-bottom: 0.5rem;
  }

  .blog-archive-categories > li > a {
    color: var(--global-palette2);
  }