/* Reset and base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  background-color: #ffffff;
  color: #222222;
  line-height: 1.8;
}

/* Header & Navbar Container */
header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar flex container */
.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* wrap for small screens */
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  user-select: none;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Links styling */
.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #007bff;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
}

/* Container max width for content */
.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Intro styling */
.intro h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.intro p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #444444;
}

/* Images responsive */
.main-img, .section-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ddd;
}

/* Lists styling */
ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
}

/* Headings in content */
.content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #2c3e50;
  border-left: 4px solid #2c3e50;
  padding-left: 10px;
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  overflow-x: auto;
  display: block;
}

.content table, .content th, .content td {
  border: 1px solid #ccc;
  text-align: left;
  padding: 10px;
}

.content th {
  background-color: #f0f0f0;
}

/* Blockquote */
.content blockquote {
  border-left: 4px solid #2c3e50;
  padding-left: 15px;
  margin: 20px 0;
  color: #555;
  font-style: italic;
}

/* Footer */
footer {
  background-color: #f1f1f1;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
  font-size: 14px;
  color: #555555;
  border-top: 1px solid #cccccc;
}

/* Responsive styles */
@media (max-width: 768px) {

  /* Navbar: stack logo + hamburger + menu */
  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
  }

  /* Hide nav-links by default */
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 220px;
    border-left: 1px solid #ddd;
    height: calc(100vh - 60px);
    padding: 20px 15px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
  }

  /* When active, slide in */
  .nav-links.active {
    transform: translateX(0);
  }

  /* Nav items spacing */
  .nav-links li {
    margin-bottom: 20px;
  }

  /* Adjust fonts */
  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 16px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content table {
    font-size: 14px;
  }

  /* Container padding */
  .container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
  }
}

/* Smallest screens */
@media (max-width: 400px) {
  .intro h1 {
    font-size: 24px;
  }
}










/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.float-btn {
  background: #00adb5;
  color: #fff;
  padding: 10px 15px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.float-btn:hover {
  background: #02888f;
}

