:root {
    --bg: #f4f6f8;
    --text: #1e1e1e;
    --nav: #ffffff;
    --summary-bg: #f0f4f7;
    --highlight: #0077cc;
    --card: #ffffff;
}

body.dark {
    --bg: #1e1e1e;
    --text: #e0e0e0;
    --nav: #2c2c2c;
    --summary-bg: #333;
    --highlight: #00bfff;
    --card: #2a2a2a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding-top: 60px;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2 {
    text-align: center;
    color: var(--highlight);
    margin: 10px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav);
    border-bottom: 1px solid #ccc;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    z-index: 1000;
    scrollbar-width: none;
}

nav::-webkit-scrollbar {
    display: none;
}

nav button {
    margin: 0 6px;
    padding: 8px 14px;
    border: none;
    background-color: #e0e0e0;
    color: #333;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 0 0 auto;
   a{
    text-decoration: none;
    color: #333;

   }
}

nav button:hover,
nav button.active {
    background-color: var(--highlight);
    color: white;
}

.dark-toggle {
    margin-left: auto;
    background: var(--highlight);
    color: white;
}

section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

details {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: var(--card);
    transition: background-color 0.3s;
}

summary {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: var(--summary-bg);
    cursor: pointer;
}

.content {
    padding: 20px;
    line-height: 1.6;
    font-size: 0.98rem;
}

.content ul {
    padding-left: 20px;
    list-style: disc;
}

@media (max-width: 768px) {
    nav button {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    h1,
    h2 {
        font-size: 1.5rem;
    }

    .content {
        font-size: 0.95rem;
    }
}

@media (max-width: 330px) {

    h1,
    h2 {
        font-size: 1rem;
    }
}

/* footer........... */

/* Base footer styles */

.footer {
    background-color: var(--footer-bg, #111);
    color: var(--footer-text, #f1f1f1);
    padding: 40px 15px 20px; /* Reduced left/right padding */
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scroll */
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
    padding: 0 10px; /* Add inner padding */
  }
  
  .footer-column {
    flex: 1 1 250px;
    min-width: 220px;
    padding: 0 10px; /* Reduced inner spacing */
  }
  
  .footer h3, .footer h4 {
    margin-bottom: 12px;
  }
  
  .footer p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer ul li {
    margin-bottom: 10px;
  }
  
  .footer a {
    color: var(--footer-text, #f1f1f1);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer a:hover {
    color: #00ffd5;
  }
  
  .social-icons {
    margin-top: 10px;
  }
  
  .social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 22px;
    color: var(--footer-text, #f1f1f1);
    transition: color 0.3s ease;
  }
  
  .social-icons a:hover {
    color: #00ffd5;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    border-top: 1px solid #333;
    padding-top: 15px;
    font-size: 14px;
    color: #aaa;
  }
  
  /* ✅ Improved mobile responsiveness */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
      gap: 0px;
      padding: 0 10px;
    }
  
    .footer-column {
      width: 100%;
      text-align: center;
      padding: 0;
      flex: 84px;
    }
  
    .social-icons a {
      margin: 0 8px;
    }
  
    .footer-bottom {
      padding: 15px 10px 0;
    }
  }
  

/* body.light-mode {
    --footer-bg: #f8f8f8;
    --footer-text: #111;
}

body.dark-mode {
    --footer-bg: #111;
    --footer-text: #f1f1f1;
} */