/* ===== SERVICE LIST PAGE ===== */
/* Main content area */
.royal-list-content {
  padding: 60px 0;
  overflow: hidden;
}

/* Service card container */
.royal-list-service-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  padding: 60px 0;
  border-bottom: 1px solid #f6f6f6;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
}

/* Service title with underline effect */
.royal-list-service-info-title {
  font-size: 30px;
  margin: 0 0 30px 0;
  position: relative;
  padding-bottom: 30px;
}

.royal-list-service-info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #b8941f;
  transition: width 0.3s ease;
}

.royal-list-service-card:hover .royal-list-service-info-title::after {
  width: 120px;
}

/* Service description */
.royal-list-service-info-desc {
  overflow: hidden;
  font-size: 16px;
  color: #666;
}

.royal-list-service-info-desc ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e6e6e6;
  color: #666;
}

/* Even items: Image left, content right */
.royal-list-item-even .royal-list-service-img {
  order: 0;
  padding-right: 30px;
}

.royal-list-item-even .royal-list-service-info {
  order: 1;
  padding-left: 30px;
}

/* Odd items: Content left, image right */
.royal-list-item-odd .royal-list-service-img {
  order: 1;
  padding-left: 30px;
}

.royal-list-item-odd .royal-list-service-info {
  order: 0;
  padding-right: 30px;
}

/* ===== PRODUCTS GRID LAYOUT ===== */
/* Products grid container */
.royal-list-product-grid {
  margin: 0 -15px;
}

/* Product item spacing */
.royal-list-product-item {
  padding: 15px;
}

/* Product card with hover effects */
.royal-list-product-card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  background-color: #fff;
  position: relative;
  border: 1px solid #f6f6f6;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.royal-list-product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Remove border radius from thumbnails inside product cards */
.royal-list-product-card .royal-thumb-wrapper {
  border-radius: 0 !important;
}

/* Product info section */
.royal-list-product-info {
  padding: 30px;
  overflow: hidden;
}

/* Product title with underline effect */
.royal-list-product-info-title {
  font-size: 18px;
  margin: 0 0 15px 0;
  position: relative;
  padding-bottom: 15px;
}

.royal-list-product-info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  background: #b8941f;
  transition: width 0.3s ease;
}

.royal-list-product-card:hover .royal-list-product-info-title::after {
  width: 100%;
}

/* Product description with 2-line truncation */
.royal-list-product-info-desc {
  color: #5c4b4b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 48px;
  font-size: 16px;
}

/* Fallback for browsers without -webkit-line-clamp support */
@supports not (-webkit-line-clamp: 2) {
  .royal-list-product-info-desc {
    position: relative;
    max-height: 48px;
    overflow: hidden;
  }

  .royal-list-product-info-desc::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 20px;
    background: linear-gradient(to right, transparent, #fff 20%);
  }
}

/* ===== NEWS LIST LAYOUT ===== */
/* News list container */
.royal-list-news-content {
  padding: 60px 0;
  overflow: hidden;
}

/* News card container */
.royal-list-news-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f6f6f6;
  padding: 30px 0;
}

/* News image area - left */
.royal-list-news-img {
  position: relative;
  flex: 0 0 25%;
  max-width: 25%;
  order: 0;
  overflow: hidden;
}

/* News info area - right */
.royal-list-news-info {
  flex: 0 0 75%;
  max-width: 75%;
  padding-left: 30px;
  order: 1;
}

/* News title style */
.royal-list-news-title {
  font-size: 24px;
  margin: 0 0 15px 0;
  padding-bottom: 15px;
}

.royal-list-news-item:hover .royal-list-news-title::after {
  width: 80px;
}

/* News description */
.royal-list-news-desc {
  color: #999;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 72px;
}

/* News meta info area */
.royal-list-news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #f6f6f6;
}

/* Left info */
.royal-inner-num {
  display: flex;
  gap: 20px;
}

/* Date and views */
.royal-list-news-date,
.royal-list-news-views {
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.royal-list-news-date i,
.royal-list-news-views i {
  color: #b8941f;
  font-size: 14px;
}

/* No data prompt */
.royal-no-results {
  text-align: center;
  padding: 80px 20px;
  color: #999;
}

.royal-no-results i {
  font-size: 60px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.royal-no-results h3 {
  font-size: 22px;
  color: #666;
  margin: 0 0 10px 0;
}

.royal-no-results p {
  font-size: 16px;
  color: #999;
  margin: 0;
}

/* ===== BRAND/ABOUT PAGE STYLES ===== */
.royal-list-factory {
  background-color: #f6f6f6;
  padding: 90px 0;
}

/* Brand Content Grid */
.royal-list-brand-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0px -15px 0;
  align-items: center;
  padding: 30px 0;
}

.royal-list-brand-info,
.royal-list-brand-image {
  padding: 0 15px;
}

/* Brand Header */
.royal-list-brand-header {
  margin-bottom: 30px;
}

.royal-list-brand-title {
  font-size: 24px;
  margin: 0 0 15px 0;
  position: relative;
  padding-bottom: 15px;
}

.royal-list-brand-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #b8941f;
  transition: width 0.3s ease;
}

.royal-list-brand-grid:hover .royal-list-brand-title::after {
  width: 100px;
}

.royal-list-brand-subtitle {
  font-size: 18px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Brand Description */
.royal-list-brand-description {
  font-size: 16px;
}

.royal-list-brand-description p {
  margin-bottom: 15px;
}

/* Brand Image */
.royal-list-brand-image .royal-thumb-wrapper {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  padding-bottom: 200%;
}

/* ===== FACTORY/CORE TEAM STYLES ===== */
/* Factory/Core Team Card */
.royal-list-factory-card {
  display: flex;
  flex-wrap: wrap;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 30px;
  background: #fff;
  align-items: center;
}

/* Team Member Info */
.royal-list-factory-info {
  overflow: hidden;
  padding: 0 30px;
}

.royal-list-factory-info-title {
  font-size: 24px;
  margin: 0 0 15px 0;
  position: relative;
  padding-bottom: 15px;
}

.royal-list-factory-info-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #b8941f;
  transition: width 0.3s ease;
}

.royal-list-factory-card:hover .royal-list-factory-info-title::after {
  width: 80px;
}

.royal-list-factory-info-desc {
  font-size: 16px;
  overflow: hidden;
  position: relative;
}

/* ===== SWIPER STYLES ===== */
/* Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: #b8941f !important;
  transform: scale(1.2);
}

/* Navigation buttons */
.royal-swiper-button-next,
.royal-swiper-button-prev {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.434);
}

.royal-swiper-button-next:after,
.royal-swiper-button-prev:after {
  content: none;
}

.royal-swiper-button-next i,
.royal-swiper-button-prev i {
  color: #333;
  font-size: 16px;
}

.royal-swiper-button-next:hover,
.royal-swiper-button-prev:hover {
  background: rgba(184, 148, 31, 0.3);
  transform: scale(1.1);
}

.royal-swiper-button-next {
  right: 20px !important;
}

.royal-swiper-button-prev {
  left: 20px !important;
}

/* ===== PRODUCTION EQUIPMENT SECTION ===== */
.royal-list-production-eque-section {
  padding: 60px 0;
  overflow: hidden;
  background: #f6f6f6;
}

/* Products Grid */
.royal-list-production-eque-grid {
  margin: 0 -15px;
}

.royal-list-production-eque-item {
  padding: 15px;
}

/* Product Card */
.royal-list-production-eque-card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  background-color: #fff;
  position: relative;
  border: 1px solid #f0f0f0;
}

.royal-list-production-eque-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.royal-list-production-eque-img-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.royal-list-production-eque-img-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  overflow: hidden;
}

.royal-list-production-eque-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.royal-list-production-eque-card:hover .royal-list-production-eque-img {
  transform: scale(1.1);
}

.royal-list-production-eque-content {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.royal-list-production-eque-info {
  padding: 0 30px;
}

.royal-list-production-eque-card:hover .royal-list-production-eque-content {
  background-color: rgba(0, 0, 0, 0.6);
}

.royal-list-production-eque-name {
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.royal-list-production-eque-desc {
  line-height: 1.6;
  color: #ccc;
}

.royal-list-production-eque-btn {
  transform: translateY(10px);
  opacity: 0;
}

.royal-list-production-eque-card:hover .royal-list-production-eque-btn {
  transform: translateY(0);
  opacity: 1;
}

/* ===== COMPATIBILITY OPTIMIZATIONS ===== */
/* Ensure object-fit fallback for older browsers */
@supports not (object-fit: cover) {
  .royal-thumb {
    background-size: cover;
    background-position: center;
  }

  .royal-thumb img {
    display: none;
  }
}

/* Ensure proper rendering on older WebKit browsers */
.royal-thumb-wrapper {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Print styles */
@media print {
  .royal-page-banner::before,
  .royal-thumb-wrapper::before,
  .royal-list-service-info-title::after,
  .royal-list-product-info-title::after {
    display: none;
  }

  .royal-page-banner,
  .royal-thumb-wrapper,
  .royal-list-product-card {
    box-shadow: none !important;
    transform: none !important;
  }
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {
  .royal-list-content {
    padding: 30px 0;
  }

  .royal-list-product-grid {
    margin: 0 -5px;
  }

  .royal-list-product-card:hover {
    transform: translateY(2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
  }
 .royal-list-service-img{
    padding: 0!important;
  }
.royal-list-service-info{
  padding: 0!important;
}
.royal-list-service-card{
  padding:20px;
  border: 1px solid #e6e6e6;
  margin-bottom: 15px;
  border-radius: 12px;
}
.royal-list-service-info-title{
  margin-bottom: 15px;
  padding-bottom: 15px;
}
  .royal-list-product-item {
    padding: 5px;
  }

  .royal-list-product-info {
    padding: 15px;
  }
.royal-list-brand-image .royal-thumb-wrapper{
  padding-bottom: 100%;
}
  .royal-list-product-info-title {
    font-size: 16px;
    margin: 0;
    padding: 0;
  }

  .royal-list-product-info-title::after {
    display: none;
  }

  .royal-list-product-info-desc {
    display: none;
  }

  .royal-list-brand-grid {
    padding: 15px 0;
  }

  .royal-list-factory {
    padding: 30px 0;
  }

  .royal-list-factory-info {
    padding: 15px;
  }

  .royal-list-factory-card {
    padding: 15px;
  }
}