:root {
  --accent: #6C63FF;
  --text: #1A1A1A;
  --muted: #777;
  --bg: #FAFAFB;
  --card-bg: #fff;
  --border: #eee;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--card-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header .logo {
  font-weight: 600;
  font-size: 1.2rem;
}

nav a {
  margin-left: 20px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

/* Main layout */
.main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-title {
  text-align: center;
  margin-bottom: 40px;
}
.main-title p:first-child {
  color: var(--accent);
  font-weight: 500;
}
.main-title h1 {
  font-size: 2.5rem;
  margin: 10px 0;
}
.main-title p:last-child {
  color: var(--muted);
}

/* Top section */
.top-section {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Featured blog */
.featured {
  flex: 2;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.featured:hover {
  transform: translateY(-3px);
}
.featured img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.featured-content {
  padding: 20px;
}
.featured-content .category {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}
.featured-content h2 {
  margin: 10px 0;
  font-size: 1.5rem;
}
.featured-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Top Stories */
.top-stories {
  flex: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.top-stories h3 {
  margin: 0 0 15px 0;
}
.story-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.story-item:hover {
  transform: translateX(4px);
}
.story-item img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}
.story-info h4 {
  margin: 0;
  font-size: 0.95rem;
}
.story-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
}
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card .content {
  padding: 15px;
}
.blog-card .content h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
}
.blog-card .content p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Blog Reader */
.blog-reader {
  display: none;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.blog-reader.active {
  display: block;
}
.blog-reader h2 {
  font-size: 2rem;
  color: var(--accent);
}
.blog-reader img,
.blog-reader video {
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

/* Responsive */
@media(max-width: 900px){
  .top-section {
    flex-direction: column;
  }
}