:root{
  --primary: #1f9daa;
  --secondary: #25aab9;
  --card-bg: #ffffff;
  --text: #333;
}

.custom-news-module{
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.news-slider{
  flex: 2;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  min-height: 300px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.slider-wrapper{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide{
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(37,170,185,0.85) 0%,
    rgba(37,170,185,0.35) 50%,
    rgba(31,157,170,0.1) 100%);
  z-index: 1;
}

.slide-title{
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 36px;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 2;
}

.slide-title a{
  color: #fff;
  text-decoration: none;
}

.news-slider .slide-title a:hover {
  color: #fff;
  text-decoration: none;
}

.slider-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 3;
}

.news-slider:hover .slider-nav{
  opacity: 1;
  pointer-events: auto;
}

.slider-nav:hover{
  transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev{ left: 16px; }
.slider-nav.next{ right: 16px; }

.slider-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.slider-indicators button.active {
  background: var(--secondary);
  transform: scale(1.1);
}

.news-list{
  flex: 1;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.list-title{
  background: var(--secondary);
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
  margin: 0;
}

.news-item{
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid #eef3f3;
  transition: background .12s ease;
}

.news-item:hover{
  background: #f7fdfd;
}

.news-date{
  background: var(--primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  line-height: 1.1;
  font-size: 13px;
}

.news-title{
  color: var(--text);
  font-size: 15px;
  line-height: 1.3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title a{
  color: var(--text);
  text-decoration: none;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--secondary);
  border-radius: 10px 10px 0 0;
}

.show-all {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background .2s, color .2s;
}

.show-all:hover {
  background: #fff;
  color: var(--secondary);
}

@media (max-width: 900px){
  .custom-news-module{
    flex-direction: column;
  }
  .news-slider, .news-list{
    width: 100%;
    max-width: none;
    min-height: auto;
  }
  .slide-title{
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 20px;
  }
}
