  :root {
  --bg-light: #f5f7fb;
  --text-light: #0b1220;
  --accent: #00d1d1;
  --card-light: #fff;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-light);
  color: var(--text-light); /* Default text color */
}

/* ================= HEADER / NAVBAR ================= */
header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-size: 22px;
  font-weight: bold;
  color: var(--accent); 
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light); 
  font-size: 16px;
}

.nav-links a:hover {
  color: var(--accent); 
}
  .nav-links.active {
    display: flex;
  }
/* Hamburger Menu */
.menu-toggle {
  color: black;
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= ARTICLE ================= */
.section {
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 16px;
}

.tutorial {
  background: var(--card-light);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge.category {
  background: rgba(0,209,209,.15);
  color: var(--accent);
}

.badge.featured {
  background: #f5a623;
  color: #fff;
}

/* Headings */
.tutorial h1, .tutorial h2 {
  color: var(--accent);
  margin-top: 12px;
}

.tutorial p,
.tutorial li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light); /* Normal text color */
}

/* Links inside tutorial */
.tutorial a {
  color: var(--accent);
}

.tutorial a:hover {
  text-decoration: underline;
}

/* ================= FOOTER ================= */
footer {
  background: #ffffff;
  padding: 50px 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark footer {
  background: linear-gradient(180deg, #0b1220, #070d18);
  border-top: none;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  flex: 0 1 260px;
}

.footer-left h3 {
  margin-top: 0;
  color: var(--accent);
}

.footer-left p {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
  width: 180%;
}

.footer-right {
  min-width: 400px;
}

.footer-right h4 {
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 35px;
  font-size: 13px;
  opacity: 0.6;
}

/* ================= MOBILE ================= */
@media(max-width:768px) {
  .menu-toggle {
    display: block;
  }
    .menu-btn{
    display:block;   
    color:black;
    font-size:28px;
    z-index:6000;
  }
    .logo{
    margin-left:0;   
    color: var(--accent);
    text-decoration:none;
    white-space: nowrap;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    width: 260px;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
  }
 nav.show {
     gap: 0px;
    display:flex;
    transform: translateX(0);
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
  }

  nav a:hover {
    color: var(--accent);
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
    gap: 0;
  }

  header {
    justify-content: space-between; 
  }

  .section {
    margin-top: 50px;
  }

  .tutorial {
    padding: 22px;
  }

  .tutorial h1 {
    font-size: 24px;
  }

  .tutorial h2 {
    font-size: 20px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    min-width: 100%;
  }

  .footer-left p {
    width: 100%;
    font-size: 14px;
  }

  .footer-right h4 {
    font-size: 15px;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 12px;
    margin-top: 25px;
  }
}
