/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* Закріплення хедера зі світлим фоном */
header.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Темний колір тексту меню */
header.site-header a {
  color: #1a1a1a !important;
}

/* Акцент при наведенні */
header.site-header a:hover {
  color: #FFDE59 !important;
}

.typewriter-btn a {
  position: relative;
  display: inline-block;
  color: transparent !important;
}

/* друк на кнопці */
.wp-block-button a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  overflow: hidden;
  color: #141006;
  font-weight: bold;
  font-size: inherit;
  width: 0;
  opacity: 1;
	text-align: center;
}


.wp-block-button a:hover::before {
  animation: typingHover 2s steps(20) forwards;
}

@keyframes typingHover {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.typewriter-btn a::before
{
	content: "купити"; 
}

.aboutus-btn a::before
{
	content: "дізнатися більше"; 
}

/* Контейнер для ефекту */
.info-box-hover-zoom {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

/* При наведенні */
.info-box-hover-zoom:hover {
  transform: scale(1.02);
  z-index: 10;


}

/* Темний напівпрозорий фон */
.info-box-hover-zoom::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: rgba(0, 0, 0, 0.9); /* білий з прозорістю 0.9 */ /* затемнення */
  filter: blur(8px); /* розмиття */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 12px;
}

/* Показати фон при наведенні */
.info-box-hover-zoom:hover::before {
  opacity: 1;
	
}

/* Зміна кольору тексту всередині */
.info-box-hover-zoom:hover h1,
.info-box-hover-zoom:hover h2,
.info-box-hover-zoom:hover h3,
.info-box-hover-zoom:hover h4,
.info-box-hover-zoom:hover p
{
  color: #ffffff !important;
}

.kurs-box-hover-zoom {
  transition: transform 0.3s ease;
}

.kurs-box-hover-zoom:hover {
  transform: scale(1.05);
	z-index: 10;
}

/* Базові стилі для карти */
.svg-map {
  position: relative;
}

/* Стандартний вигляд шляхів (областей) */
.svg-map path, 
.svg-map text {
  cursor: pointer;
  transition: fill 0.3s ease, transform 0.3s ease;
}

/* Шлях при наведенні */
/* Базові стилі для всіх елементів карти */
.svg-path {
  transition: fill 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  transform-box: fill-box;
  transform-origin: center center;
  cursor: pointer;
  position: relative;
	overflow: visible;
}

/* Ховер для всіх path */
.svg-map path:hover {
  stroke: #ffde59;
  fill: #fff9cc;
  cursor: pointer;
}

/* Додатковий ефект тільки для тих path, які мають клас .svg-path */
.svg-path:hover {
  stroke: #ffde59;
  fill: #ffde59 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

/* Активний шлях при кліку */
.svg-path.active {
	fill: #ffde59;
  transform: scale(2);
  filter: brightness(1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.4));
	
}

/* Стиль для тексту в SVG */
.svg-map text {
  font-size: 10px;
  fill: #141006;
  text-anchor: middle;
  pointer-events: none;
  font-family: 'Arial', sans-serif;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

/* Назви міст */
#visnames {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#visnames.dimmed {
  opacity: 0.2;
}

.svg-map path.dimmed {
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}
.map-label, .text-background {
  pointer-events: none;
}

.svg-path.hovered-by-list {
  stroke: #ffde59;
  fill: #ffde59 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}


.svg-path.hovered {
  stroke: #ffde59;
  fill: #ffde59 !important;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}
#course {
  scroll-margin-top: 10vh; /* або 50vh для центру */
}