/**
 * Pulsar Custom Elementor Widgets CSS
 */

/* Pulsar Header Widget Styles */
.pulsar-header-widget {
  margin-bottom: 30px;
}

/* Title Styles */
.pulsar-header-title-wrapper {
  display: inline-block;
}

.pulsar-header-title {
  display: inline-block;
  font-family: "AktivGrotesk", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  padding: 6px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px; /* Adding rounded corners */
  margin-bottom: 20px;
}

/* Subtitle Styles */
.pulsar-header-subtitle {
  font-family: "AktivGrotesk", sans-serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 72px;
  margin: 0;
  padding: 0;
}

/* Light Mode (Default) */
.pulsar-header-widget.light-mode .pulsar-header-title {
  background-color: #000000;
  color: #ffffff;
}

.pulsar-header-widget.light-mode .pulsar-header-subtitle {
  color: #000000;
}

/* Dark Mode */
.pulsar-header-widget.dark-mode {
  background-color: #000000;
}

.pulsar-header-widget.dark-mode .pulsar-header-title {
  background-color: #ffffff;
  color: #000000;
}

.pulsar-header-widget.dark-mode .pulsar-header-subtitle {
  color: #ffffff;
}

/* Pulsar Button Widget Styles */
.pulsar-button-wrapper {
  margin-bottom: 20px;
}

.pulsar-button {
  display: inline-flex;
  align-items: center;
  font-family: "AktivGrotesk", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 28px;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.pulsar-button-text {
  position: relative;
  display: inline-block;
}

/* Underline effect on hover */
.pulsar-button-text::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.pulsar-button:hover .pulsar-button-text::after {
  width: 100%;
}

.pulsar-button-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.pulsar-arrow-icon {
  width: 16px; /* Smaller arrow */
  height: auto;
}

/* Button hover effect */
.pulsar-button:hover .pulsar-button-icon {
  transform: translateX(5px);
}

/* Light Mode Button (Default) */
.pulsar-button-wrapper.light-mode .pulsar-button {
  color: #000000;
}

/* Dark Mode Button */
.pulsar-button-wrapper.dark-mode {
  background-color: #000000;
}

.pulsar-button-wrapper.dark-mode .pulsar-button {
  color: #ffffff;
}

.pulsar-button-wrapper.dark-mode .pulsar-arrow-icon {
  filter: invert(1);
}

/* Pulsar Manual Items Widget Styles */
.pulsar-manual-items-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.pulsar-manual-item {
  position: relative;
  margin-bottom: 20px; /* Fixed item spacing */
  z-index: 1;
  display: flex;
}

.pulsar-manual-item-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.pulsar-manual-item-link:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, #efbd8f 0%, #b2ccd1 47%, #7bb3e4 100%);
}

.pulsar-manual-item-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0px 10px 0 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.pulsar-manual-item-link.pulsar-empty-link {
  cursor: default;
}

.pulsar-manual-item-text {
  font-family: "AktivGrotesk", sans-serif;
  font-weight: 300; /* Light */
  font-size: 56px;
  line-height: 72px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.pulsar-manual-item-link:hover .pulsar-manual-item-text {
  color: #000000 !important;
}

.pulsar-manual-item-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}

.pulsar-manual-item-icon img {
  width: 36px; /* Fixed icon size */
  height: auto;
  transition: filter 0.3s ease;
  filter: invert(1); /* Make icon white initially */
}

.pulsar-manual-item-link:hover .pulsar-manual-item-icon img {
  filter: invert(0); /* Make icon black on hover */
}

/* Testimonials Widget Styles */
.pulsar-testimonials-wrapper {
  margin: 0;
}

.pulsar-testimonials-title {
  margin-bottom: 30px;
}

/* Grid Layout */
.pulsar-testimonials-grid {
  display: grid;
  grid-gap: 30px;
}

.pulsar-testimonials-columns-1 {
  grid-template-columns: 1fr;
}

.pulsar-testimonials-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pulsar-testimonials-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pulsar-testimonials-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Testimonial Item */
.pulsar-testimonial-item {
  margin-bottom: 30px;
  padding-right: 25px;
}

/* Testimonial Content */
.pulsar-testimonial-content {
  font-family: "AktivGrotesk", sans-serif;
  font-weight: normal; /* Black */
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 24px;
  color: #000000;
}

/* Rating */
.pulsar-testimonial-rating {
  margin-bottom: 15px;
}

.pulsar-star {
  color: #ddd;
  font-size: 18px;
  margin-right: 2px;
}

.pulsar-star-filled {
  color: #ffd700;
}

/* Posts Grid Testimonial Styles */
.pulsar-testimonial-container .pulsar-post-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulsar-testimonial-container .pulsar-post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pulsar-testimonial-container .pulsar-post-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 15px;
  font-style: italic;
  position: relative;
  padding-left: 24px;
}

.pulsar-testimonial-container .pulsar-post-title:before {
  content: "\201C";
  font-size: 36px;
  position: absolute;
  left: 0;
  top: -10px;
  color: #ddd;
}

.pulsar-testimonial-meta {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.pulsar-testimonial-author {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.pulsar-testimonial-position {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

/* Author */
.pulsar-testimonial-author {
  display: flex;
  align-items: center;
}

.pulsar-testimonial-author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  float: left;
}

.pulsar-testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulsar-testimonial-author-name {
  font-weight: 400; /* Black */
  font-size: 18px;
  line-height: 28px;
  color: #000000;
}

.pulsar-testimonial-author-position {
  font-size: 16px;
  line-height: 24px;
  color: #696b72;
  font-weight: 400 !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .pulsar-testimonials-columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pulsar-testimonials-columns-3,
  .pulsar-testimonials-columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pulsar-manual-item-link {
    padding: 0px;
    justify-content: space-between;
    text-align: left !important;
    width: 100%;
  }
  .pulsar-manual-item-text {
    font-size: 36px !important;
    line-height: 44px !important;
    text-align: left !important;
  }
  .pulsar-manual-item-icon {
    margin-left: 30px;
  }
  .pulsar-manual-item {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .pulsar-testimonials-columns-2,
  .pulsar-testimonials-columns-3,
  .pulsar-testimonials-columns-4 {
    grid-template-columns: 1fr;
  }
}

/* Partners Widget Styles */
.pulsar-partners-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.pulsar-partners-title {
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
}

.pulsar-partners-slider {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100px;
  white-space: nowrap;
  transition: none;
}

.pulsar-partner-logo {
  text-align: center;
  height: 100%;
  display: inline-block !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 10px;
  transition: none;
}

.pulsar-partner-logo img {
  max-width: 100%;
  height: auto !important;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  /* Removed filter to show original logo colors */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pulsar-partner-placeholder {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #666;
  font-weight: 500;
}

/* Slick Slider Overrides */
.slick-track {
  display: flex !important;
  align-items: center;
  opacity: 1 !important;
  visibility: visible !important;
}

.slick-slide {
  opacity: 1 !important;
  visibility: visible !important;
  height: auto;
}

.slick-slide img {
  display: block !important;
  margin: 0 auto;
}
.slick-track {
  display: flex !important;
  align-items: center;
  width: 100% !important;
}

.slick-slider.pulsar-partners-slider {
  margin: 0 !important;
  padding: 0 !important;
}

.slick-slide {
  height: auto;
  float: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
}

.slick-slide > div {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slick-slider {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Hide slider until fully initialized to prevent flickering */
.pulsar-partners-slider:not(.slick-initialized) {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.pulsar-partners-slider.slick-initialized {
  visibility: visible;
  height: auto;
  overflow: visible;
}

/* Dark Background Support */
.elementor-section.elementor-section-boxed
  > .elementor-container
  .pulsar-partners-wrapper {
  width: 100%;
}

/* Alignment options */
.pulsar-manual-item.pulsar-align-left {
  justify-content: flex-start;
}

.pulsar-manual-item.pulsar-align-right {
  justify-content: flex-end;
}

/* Posts Grid Widget */
.pulsar-posts-grid {
  display: grid;
  grid-gap: 24px;
}

.pulsar-post-column-1 {
  grid-template-columns: 1fr;
}

.pulsar-post-column-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pulsar-post-column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pulsar-post-column-4 {
  grid-template-columns: repeat(4, 1fr);
}

.pulsar-post-item {
  position: relative;
  overflow: hidden;
}

.pulsar-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pulsar-post-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: 200px;
  margin-bottom: 0;
  width: 100%;
}

.pulsar-post-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.pulsar-post-item:hover .pulsar-post-image {
  transform: scale(1.05);
}

.pulsar-post-title {
  font-family: "AktivGrotesk", sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: #ffffff;
  margin: 0;
  font-weight: 400;
  padding: 15px;
  background-color: #333333;
}

.pulsar-news-container .pulsar-post-image-container {
  max-height: 280px;
}

.pulsar-news-container .pulsar-post-title {
  font-size: 24px !important;
  line-height: 32px !important;
  font-family: "AktivGrotesk", sans-serif !important;
  font-weight: normal !important;
  margin-top: 10px;
}

.pulsar-news-container .pulsar-post-image-container {
  aspect-ratio: 4/3;
}
.pulsar-post-date {
  font-family: "AktivGrotesk", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #000 !important;
  margin: 10px 0 0;
  font-weight: 400;
  padding: 5px 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .pulsar-header-subtitle {
    font-size: 48px;
    line-height: 60px;
  }

  .pulsar-button {
    font-size: 20px;
    line-height: 26px;
  }

  .pulsar-post-column-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .pulsar-button .pulsar-button-text::after {
    width: 100%;
  }
  .pulsar-header-widget {
    margin-bottom: 0px;
  }
  .pulsar-button-wrapper {
    margin-bottom: 12px;
  }
  .pulsar-manual-item-text {
    font-size: 36px;
    line-height: 44px;
  }

  .pulsar-manual-item-icon img {
    width: 36px;
  }

  .pulsar-header-title {
    font-size: 12px;
    line-height: 18px;
    padding: 5px 15px;
  }

  .pulsar-header-subtitle {
    font-size: 36px;
    line-height: 46px;
  }

  .pulsar-button {
    font-size: 18px;
    line-height: 28px;
  }

  .pulsar-post-column-3,
  .pulsar-post-column-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pulsar-post-title {
    font-size: 18px;
    line-height: 24px;
  }
  .pulsar-post-date {
    font-family: "AktivGrotesk", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #000 !important;
    margin: 10px 0 0;
    padding: 2px 0;
  }
  .pulsar-testimonial-content {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 20px;
  }
  .pulsar-testimonial-author-name {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
  }
  .pulsar-testimonial-author-position {
    font-size: 14px;
    line-height: 20px;
    color: #696b72;
    font-weight: 400 !important;
  }
  .pulsar-testimonial-author {
    margin-bottom: 0;
  }
  .pulsar-partners-wrapper {
    width: 100%;
    margin-top: 32px;
    background-color: #0000;
    margin-bottom: 0;
  }
  .pulsar-partner-logo {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .pulsar-post-column-2,
  .pulsar-post-column-3,
  .pulsar-post-column-4 {
    grid-template-columns: 1fr;
  }
}

/* News Post Type Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item {
  background-color: #f5f5f5;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image {
  transform: scale(1.05);
}

.news-title {
  font-family: "AktivGrotesk", sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: #333333;
  margin: 0;
  font-weight: 400;
  padding: 15px 15px 5px;
}

.news-excerpt {
  padding: 0 15px 15px;
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
}

.news-categories {
  margin-left: 10px;
}

/* Single News Page */
.single-news .entry-header {
  margin-bottom: 30px;
}

.single-news .entry-title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.single-news .entry-meta {
  font-size: 14px;
  color: #666666;
  margin-bottom: 20px;
}

.single-news .featured-image {
  margin-bottom: 30px;
}

.single-news .entry-content {
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive News Grid */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .single-news .entry-title {
    font-size: 28px;
  }
}
