:root {
  --primary-color: #d32f2f;
  --primary-dark: #9a0007;
  --primary-light: #ff6659;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --text-light: #666;
  --text-dark: #121212;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}


body.dark-mode {
  --primary-color: #ff5252;
  --primary-dark: #d32f2f;
  --primary-light: #ff867f;
  --secondary-color: #1e1e1e;
  --text-color: #e0e0e0;
  --text-light: #b0b0b0;
  --text-dark: #f5f5f5;
  --bg-light: #1e1e1e;
  --bg-dark: #121212;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: var(--secondary-color);
  color: var(--text-color);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: baseline;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.tagline {
  font-size: 0.9rem;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.main-nav a.active,
.main-nav a:hover {
  opacity: 1;
}

.main-nav a.active:after,
.main-nav a:hover:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
}

#darkModeToggle {
  background: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border-radius: 30px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

#darkModeToggle:hover {
  background: var(--primary-light);
  color: white;
}

.sun-icon {
  display: none;
}

body.dark-mode .moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: inline;
}


.hero-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.hero-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.search-hero {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-hero input {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-hero .search-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary-color);
}

.content {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.main-section {
  flex: 3;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.main-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


.card {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover img {
  opacity: 0.9;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card .read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.card .read-more:hover {
  color: var(--primary-dark);
}

.card .read-more:after {
  content: '→';
  margin-left: 0.5rem;
  transition: var(--transition);
}

.card .read-more:hover:after {
  transform: translateX(3px);
}


.sidebar {
  flex: 1;
}

.widget {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.category-list li {
  margin-bottom: 0.8rem;
}

.category-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.category-list a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.category-icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

.popular-list li {
  margin-bottom: 1rem;
}

.popular-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.popular-list a:hover {
  color: var(--primary-color);
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 0.8rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.newsletter p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.newsletter-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
}


.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination button {
  background: var(--primary-color);
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  min-width: 40px;
}

.pagination button:hover:not(:disabled) {
  background: var(--primary-dark);
}

.pagination button:disabled {
  background: #cccccc;
  cursor: default;
}


footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  color: white;
}

.footer-section p {
  opacity: 0.8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section ul li a {
  color: #ddd;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-section ul li a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}


@media (max-width: 992px) {
  .hero-banner h2 {
    font-size: 2rem;
  }
  
  .hero-banner p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav {
    gap: 1rem;
  }
  
  .content {
    flex-direction: column;
  }
  
  .hero-banner {
    padding: 2rem 0;
  }
  
  .hero-banner h2 {
    font-size: 1.8rem;
  }
  
  .search-hero {
    max-width: 100%;
    padding: 0 1rem;
  }
}

@media (max-width: 576px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .card img {
    height: 150px;
  }
}

    .article-container {
      max-width: 800px;
      margin: 2rem auto;
      padding: 0 1rem;
    }
    
    .article-title {
      font-size: 2rem;
      line-height: 1.3;
      margin-bottom: 1rem;
      color: var(--text-color);
    }
    
    .article-meta {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      color: var(--text-light);
      font-size: 0.9rem;
    }
    
    .article-image {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      transition: transform 0.3s ease;
    }
    
    .article-image:hover {
      transform: scale(1.02);
    }
    
    .article-body {
      line-height: 1.8;
      color: var(--text-color);
    }
    
    .article-body p {
      margin-bottom: 1.5rem;
    }
    
    .article-body .lead {
      font-size: 1.1rem;
      font-weight: 500;
      color: var(--text-color);
    }
    
    .article-section h2 {
      font-size: 1.5rem;
      margin: 2rem 0 1rem;
      color: var(--primary-color);
    }
    
    .article-section li {
      margin-bottom: 0.8rem;
      position: relative;
      padding-left: 1.5rem;
    }
    
    .article-section li:before {
      content: "•";
      position: absolute;
      left: 0;
      color: var(--primary-color);
    }
    
    .read-more-btn {
      display: block;
      margin: 2rem auto;
      padding: 0.8rem 1.5rem;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-weight: 500;
      transition: background 0.3s ease;
    }
    
    .read-more-btn:hover {
      background: var(--primary-dark);
    }
    
    .read-more-btn i {
      margin-left: 0.5rem;
      transition: transform 0.3s ease;
    }
    
    .read-more-btn:hover i {
      transform: translateY(3px);
    }
    
    .main-banner {
      background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
      color: white;
      padding: 2rem 0;
      margin: 2rem 0;
    }
    
    .banner-content {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
    }
    
    .banner-text {
      flex: 1;
    }
    
    .banner-text h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    
    .banner-text p {
      margin-bottom: 1.5rem;
      opacity: 0.9;
    }
    
    .banner-btn {
      display: inline-flex;
      align-items: center;
      padding: 0.8rem 1.5rem;
      background: white;
      color: var(--primary-color);
      border-radius: 4px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .banner-btn:hover {
      background: #f0f0f0;
      transform: translateX(5px);
    }
    
    .banner-btn i {
      margin-left: 0.5rem;
    }

    #disqus_thread {
      margin: 2rem auto;
      max-width: 800px;
      padding: 0 1rem;
    }

    @media (max-width: 768px) {
      .article-title {
        font-size: 1.8rem;
      }
      
      .banner-content {
        flex-direction: column;
      }
      
      .banner-text {
        order: 1;
      }

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.download-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-block;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-download.android {
  background-color: #3ddc84;
}

.btn-download.android:hover {
  background-color: #2db86b;
}

.btn-download.ios {
  background-color: #007aff;
}

.btn-download.ios:hover {
  background-color: #0059c7;
}
 
#pagination {
gap: 6px;
}
            
#pagination button {
padding: 8px 12px;
min-width: 36px;
font-size: 13px;
  }
}

  @media (max-width: 576px) {
  .main-nav {
  flex-wrap: wrap;
  justify-content: center;
  }
            
  .card img {
  height: 150px;
  }
   }
        
#pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 0 10px;
}

#pagination button {
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 10px 16px;
  min-width: 44px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

#pagination button:hover {
  background-color: #023e8a;
  transform: scale(1.05);
}

#pagination button.active {
  background-color: #0096c7;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#pagination button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
}

.quote-block {
  border-left: 4px solid #ccc;
  padding-left: 15px;
  margin: 5px 0;
  font-family: Arial, sans-serif;
  color: #0059c7;
  line-height: 1.0;
  font-style: italic;
}
