/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: #6a0dad; /* Purple theme */
  transition: color 0.3s;
}

a:hover {
  color: #4b0082;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout and responsiveness */
.container {
  width: 100%;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 15px -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  padding: 0 15px;
}

.col-3 { width: 40%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333%; }

.right-sidebar {
  display: block;
}

@media (max-width: 768px) {
  .col-3, .col-6, .col-7 {
    width: 100%;
  }
  .right-sidebar {
    display: none;
  }
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  background: linear-gradient(234deg, #333333, #000000);
  color: white;
  margin-bottom: 1rem;
}

.logo img {
  max-height: 50px;
  margin-left: 20px;
}

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  font-weight: 500;
}

nav ul li.active a {
  border-bottom: 2px solid white;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
	display: none;
	position: absolute;
	top: 70px;
	left: 0;
	width: 100%;
	background: #000000de;
	flex-direction: column;
	padding: 10px 0;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  .hamburger {
    display: block;
	padding-right: 0.5rem;
  }
  .logo {
    text-align: center;
    margin: 0 auto;
  }
}

/* Footer styles */
footer {
  background: #2c2c2c;
  color: #ddd;
  padding: 30px 0;
  margin-top: 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about, .footer-copyright, .footer-links {
  flex: 1;
  padding: 0 15px;
}

.footer-copyright p {
  margin: 5px 0;
}

.footer-links ul li {
  margin: 5px 0;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
  .footer-about, .footer-copyright, .footer-links {
    margin-bottom: 20px;
  }
}

/* Common elements */
.breadcrumb {
  padding: 10px 0;
  color: #666;
}

.divider {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}

.thumbnail {
  width: 100%;
  height:auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 5px;
}

.truncate-1 {
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

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

.pagination li a {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Article content styles */
.article-content h2, .article-content h3, .article-content h4, .article-content h5 {
  margin: 15px 0 10px;
  color: #4b0082;
}

.article-content ul, .article-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

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

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

/* SEO and accessibility */
.article-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.article-meta {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.article-meta span {
  margin-right: 15px;
}

/* Theme colors */
.featured, .hot-main, .channel-block, .recommended, .headlines, .hot-rank, .latest-updates {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.featured h2, .hot-main h2, .channel-block h2, .recommended h2, .headlines h2, .hot-rank h2, .latest-updates h2 {
  color: #6a0dad;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.friends-link {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.friends-link ul {
  display: flex;
  flex-wrap: wrap;
}

.friends-link ul li {
  margin: 0 10px 10px 0;
}