/* Peptide Home Hero block — full width via tokens.css alignfull rules (no 100vw) */

/* Editor canvas — stay within content area */
.editor-styles-wrapper .hero-section.is-editor.alignfull,
.block-editor-block-list__block .hero-section.is-editor {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.hero-section {
    background: linear-gradient(135deg, #002B5B 0%, #00A89E 100%);
    background: var(--page-gradient, linear-gradient(135deg, #002B5B 0%, #00A89E 100%));
    padding: 80px var(--prg-home-gutter, 15px) 75px;
    position: relative;
    overflow-x: hidden;
  }

  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
  }

  .hero-container {
    max-width: var(--prg-home-max-width, 1200px);
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* Mobile-first text styles */
  .hero-text {
    text-align: center; /* Center on mobile */
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease;
  }

  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-text h1 {
    font-size: 2rem; /* Smaller on mobile */
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  .hero-text p {
    font-size: 1.1rem; /* Smaller on mobile */
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    line-height: 1.5;
    padding: 0 10px; /* Add padding for better readability */
  }

  /* Mobile-first button styles */
  .hero-buttons {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 15px;
    padding: 0 10px;
  }

  .hero-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%; /* Full width on mobile */
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .hero-buttons a.primary-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }

  .hero-buttons a.secondary-cta {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.3);
  }

  .hero-buttons a i {
    margin-right: 8px;
  }

  /* Mobile-first slideshow styles */
  .hero-slideshow {
    position: relative;
    text-align: center;
    padding: 0;
    width: 100%;
    animation: fadeIn 0.8s ease 0.3s both;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero-slideshow-track {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-home-lg);
    aspect-ratio: 4 / 3;
    background: rgba(0,0,0,0.15);
  }

  .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .hero-slide.active {
    opacity: 1;
  }

  .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
  }

  /* Prev / Next arrows */
  .slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    font-size: 0.85rem;
  }

  .slide-arrow:hover {
    background: rgba(255,255,255,0.35);
  }

.slide-arrow.prev { left: 10px; }
.slide-arrow.next { right: 10px; }

@media (min-width: 768px) {
  .hero-section {
    padding: 90px var(--prg-home-gutter, 30px) 70px;
  }

  .hero-container {
    max-width: var(--prg-home-max-width, 1200px);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }

  .hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    margin-bottom: 0;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.2rem;
    padding: 0;
  }

  .hero-buttons {
    flex-direction: row;
    padding: 0;
  }

  .hero-buttons a,
  .hero-buttons .hero-button-preview {
    width: auto;
    min-width: 180px;
  }

  .hero-slideshow {
    flex: 1;
    min-width: 300px;
    padding: 0;
  }

  .hero-slideshow-track {
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 100px var(--prg-home-gutter, 20px) 80px;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text p {
    font-size: 1.3rem;
  }

  .hero-slideshow-track {
    max-width: 500px;
  }
}

.hero-section::before {
  pointer-events: none;
}

.hero-buttons a.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.45);
  filter: brightness(1.08);
}

.hero-buttons a.secondary-cta:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

/* Editor preview helpers */
.hero-section.is-editor .hero-button-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}

.hero-section.is-editor .hero-button-preview.primary-cta {
  background: linear-gradient(135deg, var(--color-primary, #00A89E), var(--color-primary-dark, #008F87));
  color: #ffffff;
}

.hero-section.is-editor .hero-button-preview i {
  margin-right: 8px;
}

.hero-section.is-editor .hero-button-preview.secondary-cta {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-slideshow-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.prg-hero-slide-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.75rem;
}

.prg-hero-slide-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.prg-hero-slide-preview img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.hero-slideshow-track > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* Block editor canvas */
.editor-styles-wrapper .wp-block-peptideresourceguide-home-hero.hero-section,
.block-editor-block-list__block .hero-section.is-editor {
  background: linear-gradient(135deg, #002B5B 0%, #00A89E 100%);
  background: var(--page-gradient, linear-gradient(135deg, #002B5B 0%, #00A89E 100%));
  color: #ffffff;
}

.editor-styles-wrapper .hero-section.is-editor .hero-container,
.block-editor-block-list__block .hero-section.is-editor .hero-container {
  max-width: var(--prg-home-max-width, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.editor-styles-wrapper .hero-section.is-editor .hero-text h1,
.editor-styles-wrapper .hero-section.is-editor .hero-text p,
.block-editor-block-list__block .hero-section.is-editor .hero-text h1,
.block-editor-block-list__block .hero-section.is-editor .hero-text p {
  color: #ffffff !important;
}

.editor-styles-wrapper .hero-section.is-editor .hero-text p,
.block-editor-block-list__block .hero-section.is-editor .hero-text p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.editor-styles-wrapper .hero-section.is-editor [data-rich-text-placeholder]::before,
.block-editor-block-list__block .hero-section.is-editor [data-rich-text-placeholder]::before {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1;
}

.prg-hero-link-control {
  margin-bottom: 16px;
  max-width: 100%;
  min-width: 0;
}

.prg-hero-link-control__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: #1e1e1e;
}

/* Keep URL fields inside the block sidebar */
.interface-complementary-area .prg-hero-link-control,
.components-panel .prg-hero-link-control {
  overflow: hidden;
}

.interface-complementary-area .prg-hero-link-control .block-editor-url-input,
.components-panel .prg-hero-link-control .block-editor-url-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.interface-complementary-area .prg-hero-link-control input[type="text"],
.components-panel .prg-hero-link-control input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.prg-fa-icon-modal {
  z-index: 1000000 !important;
}

.prg-btn-popover {
  z-index: 99990 !important;
}

