/* SRMunera Widgets - Frontend Styles */

/* Common Styles */
.srmunera-widget {
  position: relative;
  width: 100%;
}

/* Enlaces heredan estilos tipográficos del padre por defecto */
.srmunera-widget a,
.srmunera-hero a,
.srmunera-button-wrapper a,
.srmunera-testimonials a,
.srmunera-post-slider a {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
}

/* Hero Section Widget */
.srmunera-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #FAFAFA;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.srmunera-hero .hero-container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.srmunera-hero .hero-text-1,
.srmunera-hero .hero-text-2 {
  position: absolute;
  font-weight: 700;
  font-size: 81.74px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.srmunera-hero .hero-text-1 {
  color: #FAFAFA;
  z-index: 1;
}

.srmunera-hero .hero-text-2 {
  color: #5154F5;
  z-index: 1;
}

.srmunera-hero .hero-center-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.srmunera-hero .hero-center-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {

  .srmunera-hero .hero-text-1,
  .srmunera-hero .hero-text-2 {
    font-size: 60px;
  }

  .srmunera-hero .hero-center-image {
    width: 60% !important;
    max-width: 400px;
  }
}

@media (max-width: 768px) {

  .srmunera-hero .hero-text-1,
  .srmunera-hero .hero-text-2 {
    font-size: 40px;
    transform: translateX(-50%);
  }

  .srmunera-hero .hero-text-1 {
    left: 50% !important;
    top: 15% !important;
  }

  .srmunera-hero .hero-text-2 {
    left: 50% !important;
    top: 85% !important;
  }

  .srmunera-hero .hero-center-image {
    width: 80% !important;
    max-width: 300px;
  }
}

@media (max-width: 480px) {

  .srmunera-hero .hero-text-1,
  .srmunera-hero .hero-text-2 {
    font-size: 28px;
  }
}

/* Testimonials Widget */
.srmunera-testimonials {
  width: 100%;
}

.testimonials-grid {
  display: grid;
  gap: 65px;
}

.srmunera-testimonials.columns-1 .testimonials-grid {
  grid-template-columns: repeat(1, 1fr);
}

.srmunera-testimonials.columns-2 .testimonials-grid {
  grid-template-columns: repeat(2, 1fr);
}

.srmunera-testimonials.columns-3 .testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

.srmunera-testimonials.columns-4 .testimonials-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

  .srmunera-testimonials.columns-4 .testimonials-grid,
  .srmunera-testimonials.columns-3 .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 40px;
  }
}

/* Testimonial Card */
.testimonial-card {
  background: #FFFFFF;
  border-radius: 21.14px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

/* Person Image */
.testimonial-person-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}

.testimonial-person-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Content Wrapper */
.testimonial-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Title */
.testimonial-title {
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  color: #121212;
  margin: 0;
}

/* Content */
.testimonial-content {
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: #121212;
  margin: 0;
}

.testimonial-content p {
  margin: 0 0 1em 0;
  line-height: 1.4;
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

/* Links and highlights in content */
.testimonial-content strong {
  color: #5154F5;
  font-weight: 700;
}

.testimonial-content a {
  color: #5154F5;
  text-decoration: none;
}

.testimonial-content a:hover {
  text-decoration: underline;
}

/* Divider */
.testimonial-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px dashed #E0E0E0;
  margin: 0;
}

/* Footer */
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Company Info */
.testimonial-company {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-logo {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.company-name {
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  color: #121212;
}

/* Location Badge */
.testimonial-location {
  padding: 6px 18px;
  border: 1px solid #5154F5;
  border-radius: 5px;
  background: #FFFFFF;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  color: #5154F5;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Testimonials Carousel (Slider Layout) */
.testimonials-carousel-container {
  width: 100%;
  position: relative;
  padding: 20px 0;
}

.testimonials-swiper-preview,
[class*="testimonials-swiper-"] {
  width: 100%;
  padding: 0;
  overflow: visible;
}

.testimonials-swiper-preview .swiper-wrapper,
[class*="testimonials-swiper-"] .swiper-wrapper {
  align-items: stretch;
}

.testimonials-swiper-preview .swiper-slide,
[class*="testimonials-swiper-"] .swiper-slide {
  height: auto;
  display: flex;
}

.testimonials-swiper-preview .testimonial-card,
[class*="testimonials-swiper-"] .testimonial-card {
  width: 100%;
}

/* Swiper Pagination */
.testimonials-carousel-container .swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 40px;
}

.testimonials-carousel-container .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #D0D5DD;
  opacity: 1;
  margin: 0 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonials-carousel-container .swiper-pagination-bullet-active {
  background-color: #5154F5;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 25px;
  }

  .testimonial-title {
    font-size: 20px;
  }

  .testimonial-content {
    font-size: 16px;
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .testimonial-location {
    align-self: flex-start;
  }
}


/* Post Slider Widget */
.srmunera-post-slider {
  position: relative;
  width: 100%;
}

/* Slider Header */
.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.25rem;
}

/* When there's no title, align navigation to the right */
.slider-header:empty {
  justify-content: flex-end;
}

.slider-header-title {
  margin: 0;
  font-size: var(--theme-font-size-h4, 1.875rem);
  font-weight: var(--theme-font-weight-bold, 700);
  color: var(--theme-color-text, #111112);
  line-height: var(--theme-line-height-h4, 1.875rem);
  flex: 1;
}

.slider-navigation {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.srmunera-post-slider .swiper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.srmunera-post-slider.overflow-visible .swiper {
  overflow: visible;
}

.srmunera-post-slider .swiper-wrapper {
  display: flex;
  transition-timing-function: linear;
  /* Mejora la suavidad del loop */
}

.srmunera-post-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* Asegurar que los slides duplicados del loop se vean igual */
.srmunera-post-slider .swiper-slide-duplicate {
  opacity: 1 !important;
}

/* Slide Card */
.slide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--theme-color-white, #FFFFFF);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slide-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Background mode styles */
.slide-card.has-background {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  overflow: hidden;
}

/* Background image as pseudo-element for zoom effect */
.slide-card.has-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: inherit;
  transition: transform 0.5s ease, filter 0.3s ease;
  z-index: 0;
}

.slide-card.has-background.has-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  /* Gradient por defecto - puede ser sobrescrito por Elementor */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/*.slide-card.has-background:hover.has-overlay::before {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}*/

.slide-card.has-background .slide-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  /*padding: 20px 24px 28px;*/
  padding: 2.25rem 2.13rem;
}

.slide-card.has-background .slide-title {
  margin: 0;
  font-size: var(--theme-font-size-h4, 1.875rem);
  font-weight: var(--theme-font-weight-semibold, 600);
  line-height: var(--theme-line-height-h4, 1.875rem);
}

.slide-card.has-background .slide-title a {
  color: #ffffff;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.slide-card.has-background .slide-title a:hover {
  opacity: 0.85;
}

.slide-card.has-background .slide-meta,
.slide-card.has-background .slide-excerpt,
.slide-card.has-background .slide-category {
  color: rgba(255, 255, 255, 0.9);
}

/* Ensure button inherits color in background mode */
.slide-card.has-background .slide-button {
  color: inherit;
  border-color: currentColor;
}

.slide-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

/* Flecha circular que aparece al hacer hover sobre el slide (estilo mobile/desktop) */
.slide-image .hover-arrow {
  position: absolute;
  right: 16px;
  bottom: 0;
  transform: translateY(-50%) translateX(8px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 5;
}

.slide-image .hover-arrow svg {
  width: 9px;
  height: 17px;
  display: block;
}

/* Mostrar la flecha al hacer hover sobre la tarjeta */
.srmunera-post-slider .slide-card:hover .slide-image .hover-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* También mostrar cuando se hace hover sobre la propia imagen (por si existe overlay) */
.srmunera-post-slider .slide-image:hover .hover-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mostrar flecha también para slides con imagen como background */
.slide-card.has-background>.hover-arrow {
  position: absolute;
  right: 16px;
  bottom: 0.7rem;
  transform: translateY(-50%) translateX(8px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 6;
}

.slide-card.has-background>.hover-arrow svg {
  width: 9px;
  height: 17px;
  display: block;
}

.srmunera-post-slider .slide-card.has-background:hover>.hover-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.slide-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.slide-image a {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.slide-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

/* In background mode, push content to bottom */
.slide-card.has-background .slide-content {
  justify-content: flex-end;
}

/* In normal mode, create a content wrapper for grouping */
.slide-content>* {
  margin-bottom: 0;
}

.slide-content>*:not(:last-child) {
  margin-bottom: 12px;
}

.slide-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.slide-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--theme-color-primary, #23388E);
  color: #ffffff;
  font-size: 11px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.slide-title {
  margin: 0 0 12px 0;
  font-size: var(--theme-font-size-h5, 1.5625rem);
  font-weight: var(--theme-font-weight-semibold, 600);
  line-height: var(--theme-line-height-h5, 1.875rem);
  color: var(--theme-color-text, #111112);
}

.slide-title a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.slide-title a:hover {
  color: var(--theme-color-primary, #23388E);
}

.slide-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  font-weight: 400;
}

.slide-excerpt {
  margin-bottom: 20px;
  /*flex-grow: 0;*/
  font-size: var(--theme-font-size-base, 1rem);
  font-weight: var(--theme-font-weight-regular, 400);
  line-height: var(--theme-line-height-base, 1.5625rem);
  color: var(--theme-color-text, #111112);
}

.slide-button {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 24px;
  border-radius: 0.63rem;
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  background: var(--theme-color-primary, #23388E);
  color: #ffffff;
}

.slide-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 56, 142, 0.3);
  background: var(--theme-color-black, #111112);
}

/* Hover Effects - Image */
.srmunera-post-slider.hover-image-zoom .slide-card:hover .slide-image img {
  transform: scale(1.1);
}

/* Hover effect for background mode */
.srmunera-post-slider.hover-image-zoom .slide-card.has-background:hover::after {
  transform: scale(1.1);
}

.srmunera-post-slider.hover-image-zoom-out .slide-card:hover .slide-image img {
  transform: scale(0.95);
}

.srmunera-post-slider.hover-image-zoom-out .slide-card.has-background:hover::after {
  transform: scale(0.95);
}

.srmunera-post-slider.hover-image-grayscale .slide-image img {
  filter: grayscale(100%);
}

.srmunera-post-slider.hover-image-grayscale .slide-card.has-background::after {
  filter: grayscale(100%);
}

.srmunera-post-slider.hover-image-grayscale .slide-card:hover .slide-image img {
  filter: grayscale(0%);
}

.srmunera-post-slider.hover-image-grayscale .slide-card.has-background:hover::after {
  filter: grayscale(0%);
}

.srmunera-post-slider.hover-image-blur .slide-card:hover .slide-image img {
  filter: blur(2px);
}

.srmunera-post-slider.hover-image-blur .slide-card.has-background:hover::after {
  filter: blur(2px);
}

.srmunera-post-slider.hover-image-brightness .slide-card:hover .slide-image img {
  filter: brightness(1.2);
}

.srmunera-post-slider.hover-image-brightness .slide-card.has-background:hover::after {
  filter: brightness(1.2);
}

/* Hover Effects - Card */
.srmunera-post-slider.hover-card-lift .slide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.srmunera-post-slider.hover-card-scale .slide-card {
  transition: transform 0.3s ease;
}

.srmunera-post-slider.hover-card-scale .slide-card:hover {
  transform: scale(1.03);
}

.srmunera-post-slider.hover-card-shadow .slide-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrows */
.srmunera-post-slider .swiper-button-prev,
.srmunera-post-slider .swiper-button-next,
.slider-navigation .swiper-button-prev,
.slider-navigation .swiper-button-next {
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  margin: 0;
}

/* Arrows in header navigation */
.slider-navigation .swiper-button-prev,
.slider-navigation .swiper-button-next {
  position: static;
}

.srmunera-post-slider .swiper-button-prev:after,
.srmunera-post-slider .swiper-button-next:after,
.slider-navigation .swiper-button-prev:after,
.slider-navigation .swiper-button-next:after {
  font-size: 18px;
  font-weight: 700;
}

.srmunera-post-slider .swiper-button-prev:hover,
.srmunera-post-slider .swiper-button-next:hover,
.slider-navigation .swiper-button-prev:hover,
.slider-navigation .swiper-button-next:hover {
  /*transform: scale(1.1);*/
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.srmunera-post-slider .swiper-button-disabled,
.slider-navigation .swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.srmunera-post-slider .swiper-button-disabled:hover,
.slider-navigation .swiper-button-disabled:hover {
  transform: none;
}

/* Arrows Position - Inside */
.srmunera-post-slider.arrows-inside .swiper-button-prev {
  left: 10px;
}

.srmunera-post-slider.arrows-inside .swiper-button-next {
  right: 10px;
}

/* Arrows Position - Outside */
.srmunera-post-slider.arrows-outside {
  padding: 0 60px;
}

.srmunera-post-slider.arrows-outside .swiper-button-prev {
  left: 0;
}

.srmunera-post-slider.arrows-outside .swiper-button-next {
  right: 0;
}

@media (max-width: 768px) {
  .srmunera-post-slider.arrows-outside {
    padding: 0 40px;
  }
}

/* Pagination */
.srmunera-post-slider .swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.srmunera-post-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--theme-color-primary, #23388E);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.srmunera-post-slider .swiper-pagination-bullet:hover {
  opacity: 0.6;
}

.srmunera-post-slider .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--theme-color-primary, #23388E);
}

/* Prevent blinking text caret when bullets are focused/clicked */
.srmunera-post-slider .swiper-pagination .swiper-pagination-bullet {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  caret-color: transparent;
}

.srmunera-post-slider .swiper-pagination .swiper-pagination-bullet:focus {
  outline: none;
}

/* Apply same behavior to all widget swipers */
.srmunera-widget .swiper-pagination .swiper-pagination-bullet {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  caret-color: transparent;
}

.srmunera-widget .swiper-pagination .swiper-pagination-bullet:focus {
  outline: none;
}

.srmunera-post-slider .swiper-pagination-fraction,
.srmunera-post-slider .swiper-pagination-progressbar {
  margin-top: 20px;
}

.srmunera-post-slider .swiper-pagination-progressbar-fill {
  background: var(--theme-color-primary, #23388E);
}

/* Effects - Cube, Coverflow, Flip, Cards */
.srmunera-post-slider .swiper-slide-shadow-left,
.srmunera-post-slider .swiper-slide-shadow-right,
.srmunera-post-slider .swiper-slide-shadow-top,
.srmunera-post-slider .swiper-slide-shadow-bottom {
  background: rgba(0, 0, 0, 0.3);
}

/* Loading State */
.srmunera-post-slider {
  position: relative;
}

.srmunera-post-slider.swiper-loading {
  min-height: 400px;
}

.srmunera-post-slider.swiper-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 50px;
  height: 50px;
  border: 4px solid var(--theme-color-bg-alt, #F5F5F5);
  border-top: 4px solid var(--theme-color-primary, #23388E);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.srmunera-post-slider.swiper-loading .swiper {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.srmunera-post-slider:not(.swiper-loading) .swiper {
  opacity: 1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-header {
    margin-bottom: 2rem !important;
  }

  .slider-header-title {
    font-size: 22px;
  }

  .slider-navigation {
    gap: 8px;
  }

  .slider-navigation .swiper-button-prev,
  .slider-navigation .swiper-button-next {
    width: 42px;
    height: 42px;
  }

  .slider-navigation .swiper-button-prev:after,
  .slider-navigation .swiper-button-next:after {
    font-size: 16px;
  }

  .slide-card.has-background {
    min-height: 300px;
  }

  .slide-card.has-background .slide-title {
    font-size: 22px;
  }

  .slide-card.has-background .slide-content {
    padding: 16px 20px 24px;
  }

  .slide-title {
    font-size: 18px;
  }

  .srmunera-post-slider .swiper-button-prev,
  .srmunera-post-slider .swiper-button-next {
    width: 42px;
    height: 42px;
  }

  .srmunera-post-slider .swiper-button-prev:after,
  .srmunera-post-slider .swiper-button-next:after {
    font-size: 16px;
  }
}

/* ========================================
   POST LIST WIDGET
   ======================================== */

.srmunera-post-list {
  width: 100%;
}

/* Grid Container */
.srmunera-post-list .post-list-container {
  display: grid;
  gap: 65px;
  width: 100%;
}

/* Grid Columns */
.srmunera-post-list[data-columns="1"] .post-list-container {
  grid-template-columns: repeat(1, 1fr);
}

.srmunera-post-list[data-columns="2"] .post-list-container {
  grid-template-columns: repeat(2, 1fr);
}

.srmunera-post-list[data-columns="3"] .post-list-container {
  grid-template-columns: repeat(3, 1fr);
}

.srmunera-post-list[data-columns="4"] .post-list-container {
  grid-template-columns: repeat(4, 1fr);
}

/* Card Item */
.srmunera-post-list .post-list-item {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 4px 10px 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srmunera-post-list .post-list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px 2px rgba(0, 0, 0, 0.15);
}

/* Image */
.srmunera-post-list .post-list-image {
  width: 100%;
  height: 324px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.srmunera-post-list .post-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.srmunera-post-list .post-list-item:hover .post-list-image img {
  transform: scale(1.05);
}

/* Content */
.srmunera-post-list .post-list-content {
  padding: 30px 31px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

/* Title */
.srmunera-post-list .post-list-item-title {
  font-weight: 700;
  font-size: 35px;
  line-height: 1;
  color: #121212;
  margin: 0 0 5px 0;
}

/* Excerpt/Description */
.srmunera-post-list .post-list-excerpt {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #000000;
  margin: 0 0 15px 0;
}

/* Button */
.srmunera-post-list .post-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 15px 30px;
  border: 1px solid #FFA000;
  border-radius: 13px;
  background: transparent;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #FFA000;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
  align-self: flex-start;
  margin-top: auto;
}


/* ===================================
   Image Hotspots Widget
   =================================== */

/* Container */
.srmunera-hotspots-wrapper {
  width: 100%;
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 50px;
  overflow: visible;
}

.srmunera-hotspots-wrapper-2 {
  display: flex;
  padding: 50px;
  justify-content: center;
  overflow: visible;
}

/* Title */
.hotspots-title {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  font-size: 81.74px;
  line-height: 1;
}

.hotspots-title-line-1 {
  color: #121212;
}

.hotspots-title-line-2 {
  color: #5154F5;
}

@media (max-width: 1024px) {
  .hotspots-title {
    font-size: 60px;
  }

  .srmunera-hotspots-wrapper {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .hotspots-title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .srmunera-hotspots-wrapper {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hotspots-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .srmunera-hotspots-wrapper {
    padding: 20px;
  }
}

.srmunera-hotspots-container {
  position: relative;
  width: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  overflow: visible;
}

.srmunera-hotspots-container-2 {
  position: relative;
  overflow: visible;
}

img.image-background-hotspots {
  height: 600px;}

/* Hotspot Item */
.hotspot-item {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hotspot-item.is-active {
  z-index: 100;
}

/* Hotspot Button */
.hotspot-button {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFA000;
  border: none;
  cursor: pointer;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-button:hover {
  transform: scale(1.1);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.hotspot-button:focus {
  outline: none;
  box-shadow: 0px 0px 0px 3px rgba(255, 160, 0, 0.3);
}

/* Icon - Plus Sign */
.hotspot-button::before,
.hotspot-button::after {
  content: '';
  position: absolute;
  background-color: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Vertical line of plus */
.hotspot-button::before {
  width: 2px;
  height: 12px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Horizontal line of plus */
.hotspot-button::after {
  width: 12px;
  height: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Active state - Rotate to X */
.hotspot-item.is-active .hotspot-button::before,
.hotspot-item.is-active .hotspot-button::after {
  height: 2px;
  width: 14px;
}

.hotspot-item.is-active .hotspot-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hotspot-item.is-active .hotspot-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hotspot Line */
.hotspot-line {
  position: absolute;
  background-color: #FFA000;
  height: 2px;
  width: 0;
  transform-origin: left center;
  transition: width 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Line positioning based on popup position */
.hotspot-item[data-popup-position="left"] .hotspot-line,
.hotspot-item.popup-left .hotspot-line {
  left: auto;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hotspot-item[data-popup-position="right"] .hotspot-line,
.hotspot-item.popup-right .hotspot-line {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hotspot-item[data-popup-position="top"] .hotspot-line,
.hotspot-item.popup-top .hotspot-line {
  left: 50%;
  top: auto;
  bottom: 20px;
  transform: translateX(-50%) rotate(90deg);
}

.hotspot-item[data-popup-position="bottom"] .hotspot-line,
.hotspot-item.popup-bottom .hotspot-line {
  left: 50%;
  top: 20px;
  transform: translateX(-50%) rotate(90deg);
}

/* Active state - Show line */
.hotspot-item.is-active .hotspot-line {
  width: 80px;
}

/* Hotspot Popup */
.hotspot-popup {
  position: absolute;
  background-color: #FFFFFF;
  border-radius: 21px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  padding: 34px;
  width: 310px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.3s ease 0.2s,
    transform 0.3s ease 0.2s,
    visibility 0.3s ease 0.2s;
  z-index: 0;
  pointer-events: none;
}

/* Popup positioning */
.hotspot-item[data-popup-position="left"] .hotspot-popup,
.hotspot-item.popup-left .hotspot-popup {
  right: calc(100% + 100px);
  top: 50%;
  transform: translateY(-50%) scale(0);
  transform-origin: right center;
}

.hotspot-item[data-popup-position="right"] .hotspot-popup,
.hotspot-item.popup-right .hotspot-popup {
  left: calc(100% + 100px);
  top: 50%;
  transform: translateY(-50%) scale(0);
  transform-origin: left center;
}

.hotspot-item[data-popup-position="top"] .hotspot-popup,
.hotspot-item.popup-top .hotspot-popup {
  left: 50%;
  bottom: calc(100% + 100px);
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
}

.hotspot-item[data-popup-position="bottom"] .hotspot-popup,
.hotspot-item.popup-bottom .hotspot-popup {
  left: 50%;
  top: calc(100% + 100px);
  transform: translateX(-50%) scale(0);
  transform-origin: center top;
}

/* Active state - Show popup with zoom animation */
.hotspot-item.is-active .hotspot-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.hotspot-item.is-active[data-popup-position="left"] .hotspot-popup,
.hotspot-item.is-active.popup-left .hotspot-popup {
  transform: translateY(-50%) scale(1);
}

.hotspot-item.is-active[data-popup-position="right"] .hotspot-popup,
.hotspot-item.is-active.popup-right .hotspot-popup {
  transform: translateY(-50%) scale(1);
}

.hotspot-item.is-active[data-popup-position="top"] .hotspot-popup,
.hotspot-item.is-active.popup-top .hotspot-popup {
  transform: translateX(-50%) scale(1);
}

.hotspot-item.is-active[data-popup-position="bottom"] .hotspot-popup,
.hotspot-item.is-active.popup-bottom .hotspot-popup {
  transform: translateX(-50%) scale(1);
}

/* Popup Content */
.hotspot-popup-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotspot-popup-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: #121212;
  margin: 0;
}

.hotspot-popup-subtitle {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: #5154F5;
  margin: 0;
}

.hotspot-popup-description {
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  color: #121212;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hotspot-popup {
    width: 280px;
    padding: 28px;
  }

  .hotspot-item.is-active .hotspot-line {
    width: 60px;
  }

  .hotspot-item[data-popup-position="left"] .hotspot-popup,
  .hotspot-item.popup-left .hotspot-popup {
    right: calc(100% + 80px);
  }

  .hotspot-item[data-popup-position="right"] .hotspot-popup,
  .hotspot-item.popup-right .hotspot-popup {
    left: calc(100% + 80px);
  }

  .hotspot-item[data-popup-position="top"] .hotspot-popup,
  .hotspot-item.popup-top .hotspot-popup {
    bottom: calc(100% + 80px);
  }

  .hotspot-item[data-popup-position="bottom"] .hotspot-popup,
  .hotspot-item.popup-bottom .hotspot-popup {
    top: calc(100% + 80px);
  }
}

@media (max-width: 768px) {
  .hotspot-button {
    width: 35px;
    height: 35px;
  }

  .hotspot-popup {
    width: 250px;
    padding: 24px;
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) scale(0) !important;
  }

  .hotspot-item.is-active .hotspot-popup {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .hotspot-line {
    display: none;
  }

  .hotspot-popup-title {
    font-size: 16px;
  }

  .hotspot-popup-subtitle {
    font-size: 13px;
  }

  .hotspot-popup-description {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hotspot-button {
    width: 30px;
    height: 30px;
  }

  .hotspot-popup {
    width: calc(100vw - 40px);
    max-width: 300px;
  }
}

.srmunera-post-list .post-list-button:hover {
  background: #FFA000;
  color: #121212 !important;
  transform: translateY(-2px);
}

/* Pagination */
.srmunera-post-list .post-list-pagination {
  margin-top: 50px;
  text-align: center;
}

/* Load More Button */
.srmunera-post-list .load-more-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #FFA000;
  background: transparent;
  border: 1px solid #FFA000;
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.srmunera-post-list .load-more-button:hover {
  background: #FFA000;
  color: #121212;
  transform: translateY(-2px);
}

.srmunera-post-list .load-more-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.srmunera-post-list .load-more-button.loading {
  opacity: 0.7;
}

/* Page Numbers Pagination */
.srmunera-post-list .page-numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.srmunera-post-list .page-numbers a,
.srmunera-post-list .page-numbers .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #121212;
  background: #ffffff;
  border: 1px solid #DBDBDB;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.srmunera-post-list .page-numbers a:hover {
  background: #FFA000;
  color: #121212;
  border-color: #FFA000;
}

.srmunera-post-list .page-numbers .current {
  background: #FFA000;
  color: #121212;
  border-color: #FFA000;
}

/* Prev/Next Pagination */
.srmunera-post-list .prev-next-pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.srmunera-post-list .prev-next-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  color: #FFA000;
  background: transparent;
  border: 1px solid #FFA000;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.srmunera-post-list .prev-next-pagination a:hover:not(.disabled) {
  background: #FFA000;
  color: #121212;
  transform: translateY(-2px);
}

.srmunera-post-list .prev-next-pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Animation for newly loaded items */
.srmunera-post-list .post-list-item.ajax-loaded {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No Posts Message */
.srmunera-post-list .no-posts {
  text-align: center;
  padding: 3rem;
  font-size: 1rem;
  color: #999;
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1200px) {
  .srmunera-post-list[data-columns="4"] .post-list-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .srmunera-post-list .post-list-container {
    gap: 40px;
  }
}

@media (max-width: 1024px) {

  .srmunera-post-list[data-columns="3"] .post-list-container,
  .srmunera-post-list[data-columns="4"] .post-list-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .srmunera-post-list .post-list-item {
    height: auto;
  }

  .srmunera-post-list .post-list-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .srmunera-post-list .post-list-container {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 30px;
  }

  .srmunera-post-list .post-list-item {
    height: auto;
  }

  .srmunera-post-list .post-list-image {
    height: 220px;
  }

  .srmunera-post-list .post-list-item-title {
    font-size: 28px;
  }

  .srmunera-post-list .post-list-button {
    font-size: 16px;
    padding: 12px 24px;
  }
}