/* ===========================
   COMPONENTS CSS
   =========================== */

/* ===========================
   HERO SLIDER
   =========================== */

.section-1 {
  padding: 0;
}

.hero-swiper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.swiper-slide {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Navigation Arrows */
.swiper-button-prev,
.swiper-button-next {
  width: 55px !important;
  height: 55px !important;
  background: rgba(173, 169, 169, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #d41317;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  line-height: 1;
  color: #e6dede;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: #fff;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Pagination */
.swiper-pagination {
  bottom: 30px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #fff;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 30px;
  border-radius: 6px;
  background: #d41317;
  opacity: 1;
}

/* ===========================
   SCROLL TO TOP BUTTON
   =========================== */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #eb5f00;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(230, 67, 45, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #943f07;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(230, 67, 45, 0.4);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   NEWS SIDEBAR SLIDER
   ======================================== */

.news-sidebar-slider {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 600px;
  overflow: hidden;
  background: #f1f1f1;
  border-radius: 8px;
}

.news-sidebar-track {
  display: flex;
  flex-direction: column;
  animation: slideUp 60s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}

.news-sidebar-track:hover {
  animation-play-state: paused;
}

@keyframes slideUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.news-sidebar-item {
  flex-shrink: 0;
  padding: 15px;
  transition: background 0.3s ease;
}

.news-sidebar-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.news-sidebar-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.news-sidebar-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-sidebar-item:hover .news-sidebar-thumbnail img {
  transform: scale(1.1);
}

.news-sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.news-sidebar-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: #333;
}

.news-sidebar-date {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-sidebar-date i {
  font-size: 11px;
}

/* Coninco Tower News Grid Styles */

/* Grid Layout */
.coninco-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* News Item */
.coninco-news-grid .news-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.coninco-news-grid .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.coninco-news-grid .news-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Thumbnail */
.coninco-news-grid .news-thumbnail {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.coninco-news-grid .news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.coninco-news-grid .news-item:hover .news-thumbnail img {
  transform: scale(1.05);
}

/* Content */
.coninco-news-grid .news-content {
  padding: 20px;
}

.coninco-news-grid .news-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.coninco-news-grid .news-item:hover .news-title {
  color: #eb5f00;
}

/* Meta */
.coninco-news-grid .news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #999;
}

/* Excerpt */
.coninco-news-grid .news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
  .coninco-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .coninco-news-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .coninco-news-grid .news-thumbnail {
    height: 200px;
  }
}
