/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: #f9fafb;
  color: #222;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 20px 0;
}

h1, h2, h3 {
  color: #003366;
  margin-bottom: 15px;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #28a745;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #28a745;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
   border-radius: 2px;
}

/* ===== Post Page ===== */
.post-page {
  animation: fadeIn 1s ease-in;
}

.blog-post {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  animation: slideUp 1s ease forwards;
}

.blog-post img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.blog-post img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.blog-post ol {
  margin-left: 20px;
  padding-left: 15px;
}

.blog-post ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  position: relative;
  counter-increment: step-counter;
}

/* .blog-post ol li::before {
  content: counter(step-counter) ". ";
  font-weight: bold;
  color: #28a745;
  position: absolute;
  left: -25px;
} */

/* ===== Footer ===== */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-grid h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: #ccc;
  text-decoration: none;
}

.footer-grid a:hover {
  color: #28a745;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(50px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    background: #fff;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 0 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .blog-post {
    padding: 20px;
  }
}
