/* Blog specific styles */

.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--bs-body-color);
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--bs-body-secondary-color);
}

.blog-content pre {
  background-color: var(--bs-gray-100);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.card-hover-border-primary:hover {
  border-color: var(--bs-primary) !important;
  transition: border-color 0.3s ease;
}

/* Video Hero Section - Bold Full-Width Background */

/* Full-width hero wrapper (breaks out of container) */
.hero-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 50vh; /* Show 50% viewport height */
  min-height: 400px;
  overflow: hidden;
  background: #000; /* Fallback while video loads */
}

/* Video background - показує центральну частину */
.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Video covers full width, height auto maintains aspect ratio */
  width: 100%;
  height: auto;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1; /* Above background, below overlay */
}

/* 50% black mask overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50% black mask */
  z-index: 2; /* Above video */

  /* Optional: Add subtle texture to hide compression */
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 3px 3px;
}

/* Content overlay (optional) */
.hero-content {
  position: relative;
  z-index: 3; /* Above overlay and video */
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .blog-content {
    font-size: 1rem;
  }

  .hero {
    height: 45vh;
    min-height: 350px;
  }

  .hero-content {
    padding: 3rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .hero {
    height: 40vh;
    min-height: 300px;
  }

  .hero-wrapper {
    margin-bottom: 2rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .video-bg {
    /* Ensure full coverage on mobile */
    min-width: 110%;
    min-height: 110%;
  }
}

/* Newsletter CTA Placeholder styles */
.card.bg-primary .form-control::placeholder {
  color: #fff !important;
  opacity: 0.75 !important;
}

/* For Cross-browser compatibility */
.card.bg-primary .form-control::-webkit-input-placeholder {
  color: #fff !important;
  opacity: 0.75 !important;
}
.card.bg-primary .form-control::-moz-placeholder {
  color: #fff !important;
  opacity: 0.75 !important;
}
.card.bg-primary .form-control:-ms-input-placeholder {
  color: #fff !important;
  opacity: 0.75 !important;
}
