*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
    --primary: #007bff;
    --dark: #333;
    --light: #f8f9fa;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;;
  line-height: 1.6;
  background: #f4f4f4;
  margin:0;
  overflow-x: hidden;
}

nav {
    position: sticky;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

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


.menu-icon {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}


@media screen and (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    background-color: #fffefe;
    width: 100%;
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 0;
  }

  a{
    margin-left: 30px;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }
}

main.container {
  max-width: 1000px;
  margin: 50px auto 30px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.blog-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.blog-section {
  margin-bottom: 40px;
}

.blog-section h1, .blog-section h2 {
  margin-bottom: 10px;
  color: #222;
}

.blog-section p, .blog-section ol {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-section code {
  background-color: #eee;
  padding: 2px 5px;
  border-radius: 4px;
}

.blog-section ul {
  padding-left: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
}

.blog-section li {
  margin-bottom: 10px;
}

.example {
    background-color: #e7f3fe;
    border-left: 5px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
}

@media screen and (max-width: 768px) {
  .blog-section h1 {
    font-size: 1.5em;
  }

  .blog-section h2 {
    font-size: 1.2em;
  }

  .blog-section p, .blog-section ol {
    font-size: 0.95em;
  }
}

h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}


/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #f0f0f0;
  color: #666;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: rgb(3, 0, 0);
    text-decoration: none;
}