body {
  font-family: sans-serif;
  max-width: 900px;
  margin: 30px auto;
  background: #f4f4f4;
  padding: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.logo{
    width: 70px;
}

.news-item {
  padding: 10px;
  background: #fff;
  margin-bottom: 8px;
  border-left: 4px solid #3498db;
}

.news-item a {
  font-size: 16px;
  color: #2c3e50;
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

.source {
  font-size: 11px;
  color: #999;
  margin-right: 8px;
}

.category {
  font-size: 11px;
  color: #e67e22;
  margin-right: 8px;
}

.date {
  float: right;
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}

.pagination {
  margin-top: 15px;
  text-align: center;
}

.pagination a {
  display: inline-block;
  padding: 5px 8px;
  background: #ddd;
  margin: 0 3px 5px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  font-size: 13px;
}

.pagination a.active {
  background: #3498db;
  color: #fff;
  pointer-events: none;
}

.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px;
  gap: 15px;
}

.main-content {
  flex: 1 1 600px;
  min-width: 280px;
  max-width: 900px;
  margin-right: 20px;
}

.sidebar {
  width: 210px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

.widget {
  background: #f9f9f9;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ddd;
}

.open-widgets {
  display: none;
  position: fixed;
  top: 20px;       /* Замість bottom: 20px */
  right: 20px;
   color: #fff;
  border: none;
  padding: 14px;
 
  font-size: 14px;
  z-index: 999;
  cursor: pointer;
}


.burger-menu {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  height: 4px;
  background-color: #333;
  border-radius: 2px;}
  
/* Модальне вікно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 20px;
  background: rgba(0,0,0,0.7);
  top: 0; left: 0; width: 100%; height: 100%;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 350px;
  margin: 60px auto;
  border-radius: 10px;
  position: relative;
}

.modal-content .close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 24px;
  cursor: pointer;
}

/* Список міст (якщо потрібно) */
#cityList {
  background: #f7f7f7;
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  position: absolute;
  z-index: 999;
  width: 90%;
}

#cityList div {
  padding: 5px 10px;
  cursor: pointer;
}

#cityList div:hover {
  background: #eee;
}

/* Адаптив для мобільних пристроїв */
@media (max-width: 921px) {
  body {
    margin: 15px 10px;
    padding: 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .container {
    flex-direction: column;
    max-width: 100%;
    padding: 5px;
  }

  .main-content {
    max-width: 100%;
    margin-right: 0;
  }

  .sidebar {
    display: none; /* ховаємо сайдбар на мобільних */
  }

  .pagination a {
    padding: 5px 6px;
    font-size: 12px;
    margin: 0 2px 4px;
  }

  .news-item a {
    font-size: 14px;
  }

  .source, .category, .date {
    font-size: 10px;
  }

  .open-widgets {
    display: block;
  }
}
#fuel-widget {
  border: 1px solid #ccc;
  padding: 12px;
  width: 300px;
  font-family: Arial, sans-serif;
  background: #fdfdfd;
  border-radius: 8px;
}
#fuel-widget h3 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tab {
  background: #e0e0e0;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  transition: background 0.2s;
}
.tab:hover {
  background: #d0d0d0;
}
.tab.active {
  background: #007bff;
  color: white;
}
.station-info {
  font-size: 14px;
  line-height: 1.4;
}
.station {
  padding: 4px 0;
  border-bottom: 1px dashed #ccc;
}
.station:last-child {
  border-bottom: none;
}
.station .name {
  font-weight: bold;
}
.station .price {
  color: #007b00;
}
.fuel-widget {
  font-family: Arial, sans-serif;
  max-width: 500px;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
}

.fuel-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fuel-tab {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
}

.fuel-tab:hover {
  background: #e0e0e0;
}

.fuel-details {
  margin-top: 15px;
}

.fuel-station {
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
}
