/* This Is Gradient style which is Default */
.lac-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

/* NEW: Main section title style (e.g., 最新文章) */
.lac-carousel-main-title {
  font-size: 30px;
  font-weight: 700;
  color: #062f67;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Card title styling (keeps original styling) */
.lac-carousel-content .lac-carousel-title {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.7rem;
  margin-top: 0.7rem;
}

/* RESTORED: Card title hover */
.lac-carousel-content .lac-carousel-title a:hover {
  color: #3275cc;
}

.swiper-slide {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: none;
  border-radius: 15px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.swiper-slide:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.lac-carousel-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  z-index: 2;
  border-radius: 15px 15px 0 0;
  background: transparent;
}

.lac-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.lac-carousel-image:hover img {
  transform: scale(1.05);
}

.lac-carousel-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  color: white;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: auto;
  pointer-events: none;
}

.lac-carousel-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f0f7ff;
  color: #3174cc;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
  text-decoration: none !important;
  max-width: fit-content;
  transition: all 0.3s ease;
}

.lac-carousel-category:hover {
  background-color: #3174cc;
  color: #ffffff;
}

.lac-carousel-category * {
  color: inherit !important;
  text-decoration: none !important;
  display: inline;
}

.lac-carousel-content .lac-carousel-title a {
  font-size: 16px !important;
  font-weight: 600;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
  transition: color 0.3s ease;
  line-height: 1.4;
  margin: 0 0 1px 0;
  height: auto;
  white-space: normal;
}

.lac-carousel-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5rem;
}

.lac-carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: nowrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lac-carousel-meta span {
  display: inline-flex;
  align-items: center;
  margin-right: 0.75rem;
  padding-bottom: 10px;
}

.lac-carousel-meta {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
  gap: 0.5rem;
  color: #666;
  font-size: 13px;
}

.lac-carousel-meta i {
  margin-right: 0.25rem;
  font-size: 14px;
  color: #3174cc;
}

.lac-carousel-meta a {
  color: #666;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.lac-carousel-meta a:hover {
  opacity: 0.8;
}

/* CUSTOM ARROW STYLES */
.lac-carousel-wrapper .swiper-button-prev,
.lac-carousel-wrapper .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 15px 15px 15px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lac-carousel-wrapper .swiper-button-prev {
  left: -34px;
}

.lac-carousel-wrapper .swiper-button-next {
  right: -34px;
}

.lac-carousel-wrapper .swiper-button-prev:hover,
.lac-carousel-wrapper .swiper-button-next:hover {
  background-color: rgba(248, 249, 250, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) translateY(-2px);
}

.lac-carousel-wrapper .swiper-button-prev::after,
.lac-carousel-wrapper .swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide the default Swiper.js arrow content */
.lac-carousel-wrapper .swiper-button-prev,
.lac-carousel-wrapper .swiper-button-next {
  font-size: 0 !important;
  color: transparent !important;
}

.lac-carousel-wrapper .swiper-button-prev::before,
.lac-carousel-wrapper .swiper-button-next::before {
  display: none !important;
}

/* Hide any default content that might be showing, but keep ::after pseudo-elements */
.lac-carousel-wrapper .swiper-button-prev > *,
.lac-carousel-wrapper .swiper-button-next > * {
  display: none !important;
}

.lac-carousel-wrapper .swiper-button-prev::after {
  content: "❮";
  display: flex !important;
  font-size: 16px !important;
  color: #ffffff !important;
}

.lac-carousel-wrapper .swiper-button-next::after {
  content: "❯";
  display: flex !important;
  font-size: 16px !important;
  color: #ffffff !important;
}

.lac-carousel-wrapper .swiper-slide {
  border-radius: 15px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.lac-carousel-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  color: #ffffff;
}

.lac-carousel-header .lac-view-all {
  color: #ffffff; 
  text-decoration: underline;
  font-size: 20px;  /* Match the size of h2 */
  font-weight: 500;
  transition: color 0.3s ease;  /* Smooth transition for hover effect */
}

.lac-carousel-header .lac-view-all:hover {
  color: #3174CC;  /* Corporate color from token.css */
}

.lac-carousel-header .lac-carousel-header-title {
  font-size: 30px !important;
  font-weight: bold;
  color: #ffffff !important;
  margin: 0;
  display: flex;
  align-items: center;
}

.lac-view-all {
  font-size: 1.5em; /* Same size as typical h2 */
  text-decoration: none;
  font-weight: bold;
}

a {
  text-decoration: none !important;
}

/* Responsive Arrow Adjustments */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .lac-carousel-wrapper .swiper-button-prev,
  .lac-carousel-wrapper .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .lac-carousel-wrapper .swiper-button-prev,
  .lac-carousel-wrapper .swiper-button-next {
    border-radius: 0 10px 10px 10px;
  }

  .lac-carousel-wrapper .swiper-button-prev::after,
  .lac-carousel-wrapper .swiper-button-next::after {
    font-size: 12px;
  }

  .lac-carousel-wrapper {
    padding: 40px;
  }

  .swiper-slide {
    margin-left: 0px;
  }

  .lac-carousel-wrapper .swiper-button-prev {
    left: 0px;
  }

  .lac-carousel-wrapper .swiper-button-next {
    right: 0px;
  }

  .lac-carousel-content .lac-carousel-title a {
    font-size: 16px;
  }
}


@media screen and (max-width: 767px) {
  .lac-carousel-wrapper .swiper-button-prev,
  .lac-carousel-wrapper .swiper-button-next {
    width: 30px;
    height: 30px;
  }

  .lac-carousel-wrapper .swiper-button-prev {
    left: -16px;
  }

  .lac-carousel-wrapper .swiper-button-next {
    right: -16px;
  }

  .lac-carousel-wrapper .swiper-button-prev::after,
  .lac-carousel-wrapper .swiper-button-next::after {
    font-size: 8px;
  }

  .lac-carousel-content .lac-carousel-title a {
    font-size: 16px;
  }

  .lac-carousel-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media screen and (max-width: 1024px) {
  .lac-carousel-wrapper .swiper-button-prev,
  .lac-carousel-wrapper .swiper-button-next {
    border-radius: 0 10px 10px 10px;
  }

  .lac-carousel-wrapper .swiper-slide {
    border-radius: 15px 15px 15px 15px;
  }
} 

.lac-carousel-category a {
  color: inherit;
  text-decoration: none;
}

.lac-carousel-category a:hover {
  text-decoration: underline;
}

.lac-carousel-title a {
  color: inherit;
  text-decoration: none;
}

.lac-carousel-title a:hover {
  text-decoration: underline;
}

.lac-author-link {
  text-decoration: none;
  color: #666;
}

.lac-author-link:hover {
  text-decoration: none;
  color: #666;
}

.lac-post-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}



.lac-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  cursor: pointer;
}

.lac-carousel-category,
.lac-carousel-title,
.lac-carousel-meta,
.lac-carousel-image a {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.lac-carousel-gradient-overlay {
  pointer-events: none;
}

.swiper-slide {
  position: relative;
}


@media screen and (max-width: 767px) {
  .lac-carousel-wrapper .swiper-button-prev,
  .lac-carousel-wrapper .swiper-button-next {
    display: none !important;
  }
}
