/**
 * Featured Blog Slider Styles
 */

header:has(.section_hero-carousel) .container {
  max-width: 100%;
}

.section_hero-carousel {
    padding-top: 3rem;
    position: relative;
    overflow: hidden;
}
.padding-global {
    z-index: 8;
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}
.container-large {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}
/* Container and Layout */
.featured-blog-slider {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
  .featured-blog-slider {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .featured-blog-slider {
    padding-left: 5%;
    padding-right: 5%;
  }
}

/* Hero Carousel Wrap */
.hero-carousel_wrap {
  grid-column-gap: 2.5rem;
  /* grid-row-gap: 1rem; */
  text-align: center;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}
.section_hero-carousel:has(> div.knowledge-hub) {
  padding-top: 0;
}
/* Hero Carousel Slider */
.hero-carousel_slider {
  width: 100%;
}
.hero-carousel_slider .swiper-wrapper {
  padding-bottom: 0px;
}
.swiper-wrapper {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    display: flex;
}
.swiper-slide.is-hero-carousel {
    flex: 1;
    align-self: stretch;
    min-width: 100%;
}
.swiper-slide {
    flex: none;
    transition: filter .4s, opacity .4s;
}

/* Hero Carousel Slide */
.hero-carousel_slide {
    grid-column-gap: 1.25rem;
    grid-row-gap: 1.25rem;
    background-color: #fff;
    border-radius: 1.5rem;
    height: 100%;
    padding: 1.5rem;
    display: flex;
}
.knowledge-hub .hero-carousel_slide {
    background-color: #f2f2f2;
}
.hero-carousel_slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Slide Content */
.hero-carousel_slide-content {
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
    background-color: #f7fafa;
    text-align: left;
    border-radius: .625rem;
    flex: 1;
    justify-content: space-between;
    align-items: stretch;
    padding: 2.5rem;
}

.w-layout-vflex {
    flex-direction: column;
    align-items: flex-start;
    display: flex;
}

/* Slide Meta */
.margin-bottom {
    margin-top: 0rem !important;
    margin-right: 0rem !important;
    margin-left: 0rem !important;
}

.margin-24 {
    margin: 1.5rem;
}

.hero-carousel_slide-meta {
    justify-content: space-between;
    width: 100%;
    display: flex;
}

/* Product Pill */
.product-pill {
    grid-column-gap: .25em;
    grid-row-gap: .25em;
    background-color: var(--taevas-blue);
    color: #ffffff;
    border-radius: 3.2rem;
    justify-content: center;
    align-items: center;
    padding: .25em .5em .25em 1rem;
    display: flex;
    padding-right: 1em;
}

.product-pill.is-simple.is-purple {
    background-color: #A046F0;
    color: #fff;
}

.text-size-tiny {
    font-size: .875rem;
    line-height: 1.4;
}

.text-weight-medium {
  font-weight: 500;
}

/* Blog Tag */
.blog-tag {
  background-color: #f2f2f2;
  color: #000;
    letter-spacing: .02em;
    text-transform: uppercase;
    justify-content: flex-start;
    align-items: center;
    height: 1.5rem;
    padding: .1rem .5rem;
    font-size: .875rem;
    display: inline-flex
;
}

/* Heading Style */
.heading-style-h5 {
  letter-spacing: -.02em;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Blog Card Meta */
.blog-card_meta {
    grid-column-gap: .5rem;
    grid-row-gap: .5rem;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;
}

.blog-card_author {
    grid-column-gap: .5rem;
    grid-row-gap: .5rem;
    justify-content: flex-start;
    align-items: center;
    display: flex;
}

.blog-card_avatar {
    border-radius: 50%;
    width: 2.5rem;
}

.blog-card_avatar-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Slide Visual */
.hero-carousel_slide-visual {
    border-radius: .5rem;
    flex: 1;
    height: 21.25rem;
    min-height: 100%;
    position: relative;
    overflow: hidden;
}

.img-cover {
  object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0%;
}

/* Bottom Navigation Container - Like Screenshot */
.swiper-bottom-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

/* Swiper Navigation */
.swiper-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.swiper-pagination-bullets {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.swiper-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.swiper-dot:hover {
  background: #9ca3af;
  transform: scale(1.1);
}

.swiper-dot.is-active {
  background: #1f2937;
  transform: scale(1.2);
}

/* Navigation Arrows - Bottom Center Layout */
.swiper-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--taevas-blue) !important;
  background: transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  color: var(--taevas-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  position: static;
  margin: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #8b5cf6;
  color: #ffffff;
  transform: scale(1.05);
}

.swiper-button-prev:disabled,
.swiper-button-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.swiper-button-prev:disabled:hover,
.swiper-button-next:disabled:hover {
  background: transparent;
  color: #8b5cf6;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  width: 20px;
  height: 20px;
}

/* Remove default swiper button positioning */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Mobile Swiper Fixes - Allow Proper Swiping */
@media (max-width: 768px) {
  .hero-carousel_slider {
    width: 100%;
    overflow: hidden;
  }
  
  .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
  }
  
  .swiper-slide.is-hero-carousel {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
  }
  
  /* Allow swiper to move slides properly */
  .hero-carousel_slider .swiper-wrapper {
    transform: translate3d(0px, 0px, 0px);
    transition-duration: 300ms;
  }
  .swiper-slide{
    padding-bottom: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container-large {
    padding: 0 16px;
  }
  
  .heading-style-h3 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .hero-carousel_slide {
    height: 350px;
  }
  
  .hero-carousel_slide-content {
    padding: 32px;
  }
  
  .hero-carousel_slide-visual {
    flex: 0 0 250px;
  }
}

@media (max-width: 768px) {
  .featured-blog-slider {
    padding: 0 1rem;
  }

  .section_hero-carousel {
    padding-top: 1rem;
  }

  .padding-global {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container-large {
    padding: 0;
  }

  .heading-style-h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-carousel_slide {
    flex-direction: column;
    padding: 1rem;
    min-height: auto;
    height: auto;
  }
  
  .hero-carousel_slide-content {
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    background-color: transparent;
    padding: 1.5rem 0 0 0;
    order: 2;
  }
  
  .hero-carousel_slide-visual {
    aspect-ratio: 16 / 9;
    flex: none;
    order: 1;
    height: 200px;
    min-height: auto;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .heading-style-h5 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-carousel_slide-meta {
    grid-column-gap: 0.75rem;
    grid-row-gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  
  .blog-card_meta {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .blog-card_author {
    grid-column-gap: 0.5rem;
  }

  .blog-card_avatar {
    width: 2rem;
    height: 2rem;
  }

  .blog-card_avatar-placeholder {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }

  .text-size-tiny {
    font-size: 0.8rem;
  }

  .product-pill {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
  }

  .blog-tag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    height: auto;
  }

  /* Make swiper slides full width on mobile */
  .swiper-slide.is-hero-carousel {
    min-width: 100%;
    width: 100%;
  }

  /* Pagination dots styling for mobile */
  .swiper-pagination-bullets {
    gap: 8px;
    margin-top: 1rem;
  }

  .swiper-dot {
    width: 10px;
    height: 10px;
  }

  .swiper-dot.is-active {
    width: 12px;
    height: 12px;
  }
  
  /* Mobile bottom navigation styles */
  .swiper-bottom-navigation {
    margin-top: 1rem;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  
  .swiper-navigation {
    gap: 0.75rem;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
    border: 2px solid #8b5cf6;
  }
  
  .swiper-button-prev svg,
  .swiper-button-next svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .featured-blog-slider {
    padding: 0 0.75rem;
  }

  .section_hero-carousel {
    padding-top: 0.75rem;
  }

  .container-large {
    padding: 0;
  }
  
  .heading-style-h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-carousel_slide {
    padding: 0.75rem;
    border-radius: 1rem;
  }
  
  .hero-carousel_slide-content {
    padding: 1rem 0 0 0;
  }
  
  .hero-carousel_slide-visual {
    height: 180px;
    border-radius: 0.5rem;
  }
  
  .heading-style-h5 {
    font-size: 1.125rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-carousel_slide-meta {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .blog-card_meta {
    margin-top: 0.75rem;
    gap: 0.5rem;
  }

  .blog-card_avatar,
  .blog-card_avatar-placeholder {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.7rem;
  }

  .text-size-tiny {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .product-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }

  .blog-tag {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
  }

  /* Ensure single slide view on mobile but allow swiping */
  .swiper-slide.is-hero-carousel {
    min-width: 100%;
    width: 100%;
    margin-right: 0;
  }

  /* Allow swiper to work properly */
  .hero-carousel_slider {
    overflow: hidden;
  }

  .swiper-wrapper {
    width: 100%;
  }

  /* Pagination dots for small mobile */
  .swiper-pagination-bullets {
    gap: 6px;
    margin-top: 0.75rem;
    padding: 0 1rem;
  }

  .swiper-dot {
    width: 8px;
    height: 8px;
  }

  .swiper-dot.is-active {
    width: 10px;
    height: 10px;
  }
  
  /* Small mobile bottom navigation styles */
  .swiper-bottom-navigation {
    margin-top: 0.75rem;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .swiper-navigation {
    gap: 0.5rem;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    border: 1.5px solid #8b5cf6;
  }
  
  .swiper-button-prev svg,
  .swiper-button-next svg {
    width: 14px;
    height: 14px;
  }
  .swiper-slide{
    padding-bottom: 0;
  }

  .hero-carousel_wrap {
    grid-row-gap: 0.5rem;
  }
}

/* Animation Classes */
.swiper-slide {
  transition: all 0.3s ease;
}

.swiper-slide-active {
  transform: scale(1.02);
}

.featured-blog-slider .swiper-slide-prev,
.featured-blog-slider .swiper-slide-next {
  opacity: 0.7;
}

/* Loading State */
.hero-carousel_slider.loading {
  opacity: 0.7;
  pointer-events: none;
}

.hero-carousel_slider.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #10b981;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.swiper-notification {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Focus States */
.hero-carousel_slide:focus,
.swiper-dot:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-carousel_slide {
    border: 2px solid #000;
  }
  
  .product-pill.is-simple.is-green {
    background: #000;
    color: #fff;
  }
  
  .swiper-dot.is-active {
    background: #000;
  }
}