/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ROOT ===== */
body {
  font-family: "Inter", sans-serif;
  background: #f7f9fb;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* fix horizontal overflow */
}

/* ===== HEADER ===== */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;

}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #28a745;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #28a745;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 3px;
}

/* ===== CONTAINER ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 40px 0;
  animation: fadeIn 1s ease;
}

/* ===== PAGE TITLE ===== */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1e293b;
}

.subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  color: #64748b;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* ===== BLOG CARD ===== */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: cardFadeIn 0.8s forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== BLOG IMAGE ===== */
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* ===== BLOG CONTENT ===== */
.blog-content {
  padding: 20px;
  transition: all 0.3s ease;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #0f172a;
  transition: color 0.3s ease;
}

.blog-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #475569;
}

/* ===== META ===== */
.meta {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: #22c55e;
  font-weight: 600;
}

/* ===== READ MORE ===== */
.read-more {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #22c55e;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.read-more:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 50px 0 20px;
  margin-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-grid h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-grid p {
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-grid a:hover {
  color: #22c55e;
}

/* ===== COPYRIGHT ===== */
.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes cardFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }

  .blog-card img { height: 200px; }
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Hide nav by default */
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    background: #fff;
    top: 60px;
    right: 0px;
    width: 200px;
    /* height: 300px; */
    padding: 20px;
    border-radius: 8px 0 0 8px;
  }

  .main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .main-nav.active {
    display: flex;
  }
}




