/* Default Button Styles */
.btn-default,
.registration-btn {
  background-color: var(--dark-primary);
  color: var(--dark-text-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-default:hover,
.registration-btn:hover {
  transform: scale(1.05);
  background-color: #388e3c;
  color: var(--dark-text-primary);
}

/* Hero Section Styles */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 50%, #2e2e2e 100%);
  z-index: -1;
}

.page-hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Повністю розтягуємо текстовий блок, коли немає зображення */
.page-hero-content:not(:has(.page-hero-image)) .page-hero-text {
  flex: 1;
  max-width: 100%;
}

.page-hero-text {
  flex: 1;
  max-width: 600px;
}

.page-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark-text-primary);
}

.hero-description {
  color: var(--dark-text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-btn {
  min-width: 150px;
  text-align: center;
}

.page-hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-hero-image .image-container {
  max-width: 450px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  /* Додані стилі для запобігання CLS */
  min-height: 100px; /* Мінімальна висота до завантаження зображення */
  background-color: #1e1e1e; /* Фон до завантаження зображення */
}

.page-hero-image .image-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  /* Додані стилі для запобігання CLS */
  max-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-hero-image .image-container:hover {
  transform: translateY(-5px);
}

.page-hero-image .image-container:hover img {
  transform: scale(1.05);
}

/* Responsive styles */
@media (max-width: 991px) {
  .page-hero {
    padding: 60px 0;
  }

  .page-hero-text h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-hero-content {
    flex-direction: column;
  }

  .page-hero-text {
    max-width: 100%;
    text-align: center;
    margin-bottom: 30px;
  }

  .page-hero-image {
    justify-content: center;
    width: 100%;
  }

  .page-hero-image .image-container {
    max-width: 100%;
  }
}
