* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #333;
  user-select: auto;
  cursor: auto;
}

.bodycontainer {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  flex-wrap: wrap;
}


.left-sidebar,
.right-sidebar {
  width: 250px;
  background: #fff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 12px;
  transition: all 0.3s ease;
}

.right-sidebar ul {
  padding-left: 0;
  margin-left: 0;
  list-style-type: none;
}

.main-content {
  flex-grow: 1;
  flex-basis: 0;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  margin-bottom: 1.5rem; /* Added bottom gap */
}

.bodynav {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

.logo {
  width: 150px;
  height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}


.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  color: black;
  padding: 8px 16px;
  transition: all 0.3s ease;
  background-color: #2a2a2a;
}

.nav-links a:nth-child(1) {
  background-color: #f8f9fa;
  border-bottom: 5px solid #00cc99;
}

.nav-links a:nth-child(2) {
  border-bottom: 5px solid #ff9900;
}

.nav-links a:nth-child(3) {
  border-bottom: 5px solid #00cc99;
}

.nav-links a:nth-child(4) {
  border-bottom: 5px solid #ff33cc;
}

.nav-links a:hover {
  background-color: #f8f9fa;
  color: #0056b3;
  text-decoration: underline;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  border-radius: 5px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 3px;
}

.search-results {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0;
  background: none;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.05),
    0 10px 25px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}

.search-results li {
  font-size: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(8px);
  color: #333;
  border-radius: 15px;
  padding: 1rem;
  list-style: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.search-results li:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.2),
    0 6px 15px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.search-results a {
  display: block;
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.search-results a:hover {
  color: #0056b3;
  text-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

.search-results li.hidden {
  display: none;
}


footer {
  margin-top: auto;
  padding: 1.2rem 1rem;
  text-align: center;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
}

.modern-share {
  text-align: center; /* Center the entire content */
  padding: 20px;
}

.modern-share h6 {
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #444;
}

.share-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center; /* Center the icons horizontally */
  gap: 15px; /* Space between icons */
}

.share-icons li {
  display: inline-block;
}

.share-icons a {
  font-size: 14px;
  color: #888;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  width: 30px;
  height: 30px;
}

.share-icons a:hover {
  color: #fff;
  transform: scale(1.1);
}

.share-icons .facebook:hover {
  background-color: #3b5998;
}

.share-icons .twitter:hover {
  background-color: #1da1f2;
}

.share-icons .whatsapp:hover {
  background-color: #25d366;
}

.share-icons .copy:hover {
  background-color: #6c757d;
}

.facebook, .twitter, .whatsapp, .copy {
  background-color: #0056b3;
  box-shadow: 0 0px 5px rgba(112, 128, 144, 0.4), 0 2px 6px rgba(112, 128, 144, 0.2), 0 4px 10px rgba(112, 128, 144, 0.1);
  text-decoration: none;
}

.copy-feedback {
  font-size: 10px;
  color: #28a745;
  text-align: center;
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .bodycontainer {
    flex-direction: column;
    align-items: center;
  }

  .left-sidebar,
  .right-sidebar,
  .main-content {
    width: 90%;
    margin: 1rem 0;
  }

  .main-content {
    order: 1;
  }

  .left-sidebar {
    order: 2;
  }
  
  .left-sidebar h2 {
    text-align:center;
    font-size:18px;
  }

  .right-sidebar {
    order: 3;
  }

  .nav-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 15px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    z-index: 999;
    border-radius: 12px;
    border: 1px solid #444;
    width: 200px;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
  }
  
  .bodynav {
    z-index: 5;
  }

  .search-results {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  padding: 50px 20px 10px; /* increased top padding, reduced bottom */
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 40px; /* Adjust left padding to create a 30px gap between the icon and text */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23888" height="18" viewBox="0 0 20 20" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C8.01 14 6 11.99 6 9.5S8.01 5 10.5 5 15 7.01 15 9.5 12.99 14 10.5 14z"/></svg>');
  background-repeat: no-repeat;
  background-position: 12px center; /* Align the icon to the left inside input */
  background-size: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2), 0 -4px 8px rgba(0, 0, 0, 0.1);
  outline: none;
  height: 44px; /* Set height to match button height */
  text-align: left; /* Ensure cursor is aligned left */
}

.search-bar input::placeholder {
  color: rgba(0, 0, 0, 0.7); /* Darker placeholder for better visibility */
}

/* Search Button */
.search-button {
  background-color: #5e7c7a;
  color: #fff;
  font-size: 16px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2), 0 -4px 8px rgba(0, 0, 0, 0.1);
  margin-left: 10px;
  height: 44px; /* Ensure button height matches the input height */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #4a625f;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .search-bar input {
    font-size: 14px;
    padding: 12px 16px 12px 40px;
  }

  .search-button {
    font-size: 14px;
    padding: 10px 14px;
  }
}