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

:root {
  --primary-color: #1e40af;
  --secondary-color: #0ea5e9;
  --accent-color: #f97316;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-light: #e5e7eb;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* Header */
.header {
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--border-light);
  sticky-top: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.logo i {
  font-size: 2rem;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.nav {
  flex: 1;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-light);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border-light);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 200px;
  color: var(--text-dark);
}

.search-box input::-moz-placeholder {
  color: var(--text-light);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.search-box button:hover {
  color: var(--secondary-color);
}

/* Featured Section */
.featured {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.featured-card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  width: -moz-fit-content;
  width: fit-content;
}

.featured-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.featured-content p {
  font-size: 1rem;
  opacity: 0.9;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: -moz-fit-content;
  width: fit-content;
}

.read-more:hover {
  background-color: var(--secondary-color);
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 0 1fr 280px;
  gap: 2rem;
}

/* Sidebar */
.sidebar,
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sidebar-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.sidebar-section p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Trending */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: var(--bg-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.trending-item:hover {
  background-color: #eff6ff;
}

.trend-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.trend-content {
  flex: 1;
}

.trend-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.trend-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscribe-form input {
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-primary {
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Tags */
#tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* News Feed */
.news-feed {
  grid-column: 2;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-image {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.news-card-category {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.news-card-description {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}

.news-card-time {
  color: var(--text-light);
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: #d1d5db;
  margin-top: 4rem;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

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

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4b5563;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr;
  }
  .sidebar,
  .right-sidebar {
    display: none;
  }
  .header-container {
    flex-wrap: wrap;
    padding: 1rem;
  }
  .nav ul {
    gap: 1rem;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .logo {
    width: 100%;
  }
  .nav ul {
    width: 100%;
    flex-wrap: wrap;
  }
  .featured-card {
    height: 300px;
  }
  .featured-content h2 {
    font-size: 1.5rem;
  }
  .featured-content {
    padding: 2rem 1rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
/* Article Modal */
.article-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.article-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.article-modal-content {
  position: relative;
  background-color: var(--bg-white);
  border-radius: 16px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.article-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background-color: var(--bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
  z-index: 10;
  transition: all 0.3s ease;
}

.article-close-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: rotate(90deg);
}

.article-container {
  padding: 0;
}

.article-header {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top;
     object-position: top;
}

.article-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  width: -moz-fit-content;
  width: fit-content;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.5rem 0 0 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid white;
}

.article-author {
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}

.article-date {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0.3rem 0 0 0;
}

.article-actions {
  display: flex;
  gap: 1rem;
}

.article-action-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.article-action-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.article-body {
  padding: 3rem 2rem;
  max-width: 800px;
}

.article-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 500;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.article-footer {
  padding: 2rem;
  border-top: 2px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.article-tags h3,
.article-related h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.article-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-article-item {
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.related-article-item:hover {
  background-color: #eff6ff;
  transform: translateX(5px);
}

.related-article-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.related-article-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Scrollbar Styling */
.article-modal-content::-webkit-scrollbar {
  width: 8px;
}

.article-modal-content::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.article-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.article-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Responsive Article Modal */
@media (max-width: 768px) {
  .article-modal-content {
    width: 98%;
    max-height: 100vh;
  }
  .article-header {
    height: 300px;
  }
  .article-title {
    font-size: 1.6rem;
    display: none;
  }
  .article-header-content {
    padding: 2rem 1rem;
  }
  .article-body {
    padding: 1.5rem;
  }
  .article-footer {
    grid-template-columns: 1fr;
  }
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .article-close-btn {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .container {
    gap: 0;
  }
}/*# sourceMappingURL=style.css.map */