@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0d6efd;
  --text-color: #212529;
  --text-muted: #6c757d;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-hover: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: var(--radius-sm);
}

/* Header & Navigation */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
}

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

.search-icon {
  cursor: pointer;
  color: var(--text-muted);
}

.search-icon:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-color);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  padding: 3rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  .layout-sidebar {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 2.5rem;
  }
}

/* Cards */
.news-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.category-tag {
  display: inline-block;
  background-color: var(--bg-light);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-meta i {
  margin-right: 0.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Hero Section */
.hero {
  margin-bottom: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 400px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
}

.hero .category-tag {
  background-color: var(--primary-color);
  color: white;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-meta {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* Category Banner */
.category-banner {
  background-color: var(--bg-light);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.category-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.category-banner p {
  color: var(--text-muted);
}

/* Sidebar */
.sidebar-widget {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.sidebar-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.trending-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.trending-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.trending-list a {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

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

.trending-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Newsletter */
.newsletter-box {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.newsletter-box h3 {
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

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

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.newsletter-form button {
  padding: 0.75rem 1rem;
  background-color: #0a58ca;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.newsletter-form button:hover {
  background-color: #084298;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-weight: 500;
}

.page-link:hover, .page-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.bg-light-section {
  background-color: var(--bg-light);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
  background-color: #1a1d20;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-about .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-about p {
  color: #adb5bd;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
}

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

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: white;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #adb5bd;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #adb5bd;
  font-size: 0.85rem;
}

/* Responsive Utilities */
@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
    gap: 1rem;
  }
  
  .nav-links.show {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .hamburger {
    display: block;
  }
  
  .search-icon {
    display: none;
  }
  
  .hero {
    height: 300px;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
}
