.main-content-weather {
  max-width: 990px;
  width: 100%;
  height: fit-content;
  border-radius: 8px;
  background: #F8F9FA;
  padding: 24px;
  color: #000;
  margin-right: 24px;
  padding-bottom: 33px;

}

.weather-top {
  gap: 18px;
}

.weather-top-text {
  max-width: 282px;
  width: 100%;
}

.weather-top-current {
  max-width: 898px;
  width: 100%;
  gap: 120px;
  margin-bottom: 24px;
}

.weather-current-element-1 {
  gap: 64px;
}

.weather-current-main-icon-text {
  gap: 16px;
}

.weather-current-main-text {
  gap: 2px;
}

.weather-current-element-2 {
  gap: 56px;
}

.weather-curr-icon-text {
  font-weight: 600;
}

.weather-curr-feels-like {
  font-size: 14px;
  font-weight: 400;
}

.weather-text-wrapp {
  font-size: 14px;
  font-weight: 300;
  gap: 4px;
}

.weather-text-wrapp span {
  font-weight: 400;
  font-size: 14px;
}

.weather-top-current .weather-icon {
  max-width: 74px;
  max-height: 74px;
}

.weather-carousel {
  max-width: 918px;
  height: fit-content;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #DEE2E6;
  padding: 15px;
}

.metric-toggle {
  padding-top: 10px;
  padding-right: 7px;
  padding-bottom: 30px;
}

.metric-toggle-wrapper {
    width: fit-content;
    background: #F8F9FA;
    border: 1px solid #CED4DA;
    border-radius: 8px;
}

.toggle-btn {
  padding: 4px 12px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #6C757D;
}

.toggle-btn.active {
  background: #E7F1FF;
  color: #0C2F64;
  font-weight: 600;
  border-radius: 8px;
}

#weather-days {
  list-style: none;
  padding: 0;
  width: fit-content;
}

.day-card {
  width: 160px;
  height: 148px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  transition: 0.2s;
}
.day-card.active { background: #DEE2E6; }

.day-header {
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 10px;
}

.day-date {
  font-weight: 400;
}

.day-icon img {
  max-height: 65px;
  max-width: 65px;
}

.day-icon {
  padding-bottom: 4px;
}

.day-temps {
  font-size: 14px;
  color: #343A40;
  gap: 9px;
}

.temp-max {
  color: #000;
}

.chart-container {
  margin-top: 20px;
  height: 228px;
  margin-left: -15px;
  margin-right: -15px;
  padding-bottom: 29px;
}
.chart-container .arrow {
  background: #DEE2E6;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 12px;
  cursor: pointer;
}
.arrow.left { 
  left: -24px; 
  bottom: 163px;
}
.arrow.right { 
  right: -24px;
  bottom: 163px;
}

.main-content .weather-icon {
    max-width: 74px;
    max-height: 74px;
}

.current-topics, #recent-sluds {
  gap: 16px;
  width: 100%;
  margin-bottom: 40px;
}

.current-topics-header, .recent-sluds-header {
  gap: 4px;
}

.current-topics-list {
  border-radius: 8px;
  border: 1px solid #CED4DA;
  width: 100%;
}

.current-topics-card {
  padding: 12px;
  gap: 12px;
  width: 100%;
}

.current-topics-list a:first-child {
  border-bottom: 1px solid #DEE2E6;
}

.current-topics-element-1 {
  gap: 6px;
}

.current-topics-author {
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.current-topics-element-2 {
  gap: 4px;
}

.current-topics-meta {
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}

.current-topics-meta div {
  color: #495057;
}

.ads-list {
  gap: 16px;
}

.recent-slud-card {
  border-radius: 8px;
  height: 106px;
  border: 1px solid #CED4DA;
  background: #F8F9FA;
}

.recent-slud-card img {
  width: 118px;
  height: 105px;
  object-fit: cover;
  border-radius: 8px;
}

.recent-slud-content {
  padding: 12px;
  width: 188px;
  gap: 4px;
}

.recent-slud-meta {
  gap: 8px;
  font-size: 14px;
}

.sidebar-ad-weather {
  max-width: 300px;
  max-height: 250px;
  margin: 0 auto;
  margin-bottom: 35px;
}

.recent-slud-time {
  color: #495057;
}

@media (max-width: 1440px) {
  .weather-carousel {
    max-width: calc(90vw - 330px);
  }
  .weather-top-current {
    gap: 64px;
  }
}

@media (max-width: 1240px) {
  .weather-top-current {
    gap: 32px;
    justify-content: space-between;
  }
  .weather-current-element-2 {
    gap: 16px;
  }
  .weather-current-element-1 {
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .weather-top-current {
    flex-direction: column;
    gap: 16px;
    align-items: start !important;
  }
  .weather-current-element-2 {
    gap: 32px;
  }
  .weather-current-element-1 {
    gap: 32px;
  }
}

@media (max-width: 992px) {
  .day-card {
    height: fit-content;
  }
  .day-icon img {
    max-width: 40px;
    max-height: 40px;
  }
}

@media (max-width: 768px) {
  .weather-carousel {
    max-width: calc(94vw);
  }
  .sidebar-ad-weather {
    margin: 0 auto;
  }
  .weather-sidebar {
    margin: 24px 0;
  }
  .metric-toggle {
    justify-content: center !important;
  }

  #recent-sluds {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .weather-top-current .weather-icon {
    max-width: 56px;
    max-height: 56px;
  }
  .day-card span{
    font-size: 14px;
  }
  .main-content-weather .arrow.right, .main-content-weather .arrow.left {
    display: none;
  }
  .weather-carousel {
    max-width: calc(100vw);
  }
  .day-header {
    padding-bottom: 8px;
    font-size: 14px;
  }
  #weather-days {
    height: fit-content !important;
  }
}