/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 8px 0;
}

a {
  text-decoration: none;
  color: #ff6600;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* Header styles */
.header {
  background-color: #ffcc00;
  padding: 10px 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  margin-right: 20px;
}

.logo {
  max-width: 150px;
  height: auto;
}

.search-box input {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  justify-content: center;
  background-color: #ff9900;
  padding: 10px 0;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: white;
  font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-top {
    flex-wrap: wrap;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .search-box {
    margin-top: 10px;
    width: 80%;
  }
  .home-left, .home-right, .main-content, .sidebar {
    flex: 100% !important;
  }
  .sidebar {
    display: none;
  }
}

/* Footer styles */
.footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  margin-top: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-left, .footer-right {
  flex: 1;
  padding: 10px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
}

/* Home page styles */
.home-row {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.home-left, .home-right {
  flex: 1;
}

.featured-article {
  display: flex;
  margin-bottom: 15px;
}

.img-container {
  width: 30%;
}

.text-container {
  width: 70%;
  padding-left: 15px;
}

.thumb {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.divider {
  height: 1px;
  background-color: #ddd;
  margin: 10px 0;
}

.secondary-articles .article-item {
  padding: 8px 0;
}

/* List and article page styles */
.breadcrumb {
  padding: 10px 0;
  font-size: 14px;
}

.content-wrapper {
  display: flex;
  gap: 20px;
}

.category-section,.main-content {
  flex: 7;
}

.sidebar {
  flex: 3;
}

.list-item {
  display: flex;
  margin-bottom: 15px;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.item-info {
  padding-left: 15px;
}

.date {
  color: #666;
  font-size: 14px;
}

.pagination ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.pagination li {
  display: inline-block;
  margin: 0 5px;
}

.article-body h2, .article-body h3, .article-body h4, .article-body h5 {
  margin: 15px 0;
  color: #ff6600;
}

.article-body ul, .article-body ol {
  margin-left: 20px;
}

.article-body li {
  margin: 5px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
}

.article-body th, .article-body td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.article-body tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Box styles for sidebars */
.recommend-box, .hot-box, .update-box, .popular-box, .headlines-box {
  background-color: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.recommend-box h3, .hot-box h3, .update-box h3, .popular-box h3, .headlines-box h3 {
  margin-bottom: 10px;
  color: #ff6600;
}

.views {
  color: #999;
  font-size: 12px;
}