body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
  color: #222;
}

/* HEADER */
/*.blog-header {
  text-align: center;
  background: linear-gradient(135deg, #ff4d6d, #f77f00);
  color: white;
  padding: 80px 20px 60px;
  position: relative;
}*/

.blog-header .blog-nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
}

.blog-header .logo img {
  height: 40px;
}

.blog-header ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.blog-header ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: opacity 0.3s;
}

.blog-header ul li a:hover,
.blog-header ul li a.active {
  opacity: 0.8;
}

.blog-title {
  margin-top: 60px;
  font-size: 2.5rem;
}

.blog-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.blog-hero {
  background: linear-gradient(135deg, #18ccf0, #80129b);
  color: white;
  padding: 100px 20px 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* LAYOUT */

.blog-wrapper {
  display: flex;
  gap: 2rem;
}

.blog-main {
  flex: 3;
}

.blog-sidebar {
  flex: 1;
}

.blog-header-img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}


.blog-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.main-post {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s;
}

.main-post:hover {
  transform: translateY(-5px);
}

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

.main-post-content {
  padding: 25px 30px 40px;
}

.main-post-content h2 {
  color: #2f4f96;
  margin-bottom: 10px;
}

.main-post-content p {
  line-height: 1.6;
  color: #444;
}

.main-post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

.main-post-content h1,
.main-post-content h2 {
  color: #2f4f96;
}

.main-post-content p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* SIDEBAR */
.sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 25px;
}

.sidebar h2 {
  margin-top: 0;
  color: #2f4f96;
  font-size: 1.3rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.sidebar ul li a:hover {
  color: #18ccf0;
}

.sidebar ul li a.active-post {
  color: #2f4f96;
  font-weight: bold;
  text-decoration: underline;
}

/* FOOTER */
.blog-footer {
  text-align: center;
  padding: 30px;
  background: #111;
  color: white;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .blog-main {
    grid-template-columns: 1fr;
  }

  .blog-header .blog-nav {
    flex-direction: column;
    gap: 10px;
    position: static;
    transform: none;
  }

  .main-post img {
    height: 260px;
  }
}
