* {
  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;
}

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;
    text-decoration: none;
}

.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;
  }

  .nav-links 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;
}


.container {
  max-width: 900px;
  margin: auto;
  padding: 25px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h1, h2 {
  text-align: center;
  color: #2c3e50;
}

label {
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

textarea,
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 10px;
  background-color: #fafafa;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

textarea {
  height: 80px;
  resize: vertical;
}

button {
  margin-top: 20px;
  margin-right: 10px;
  padding: 10px 20px;
  background-color: #4a90e2;
  border: none;
  color: white;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #357ab8;
}

pre {
  margin-top: 20px;
  padding: 15px;
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}


@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;
}


@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
  }

  td {
    border: none;
    padding: 6px 0;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #555;
    margin-bottom: 3px;
  }
}

/* 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;
}