/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
 background: linear-gradient(90deg, rgb(0, 153, 255),rgb(0, 153, 255));
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-family: 'poppins',sans-serif;
}
/* Desktop categories */
.categories {
  display: flex;
  gap: 0px;
flex-grow: 0.7;
}
.cat {
  position: relative;
}
.cat-btn {
  color: lightyellow;
   font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  font-family: 'poppins',sans-serif;
  font-size: 1.1rem;
}
.cat-btn:hover {
  background: linear-gradient(90deg, rgb(120, 139, 187),rgb(114, 117, 175));
}
/* Dropdowns */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10001;
  font-family: Arial, Helvetica, sans-serif;
}
.dropdown.show {
  opacity: 1;
  max-height: 600px;
  pointer-events: auto;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  color: black;
  text-decoration: none;
font-weight: 500;
}
.dropdown a:hover {
  background: linear-gradient(90deg, skyblue, skyblue);
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger div {
  width: 26px;
  height: 3px;
  background: #e3f2fd;
  border-radius: 2px;
}
/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  z-index: 10002;
  animation: slideDown 0.3s ease forwards;
}
.mobile-menu.active {
  display: block;
}
.mobile-menu .cat-btn {
  display: block;
  color: white;
  background: rgb(0, 153, 255);
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 6px;
}
.mobile-menu .dropdown {
  position: static;
  box-shadow: none;
  border-radius: 0;
  opacity: 1;
  max-height: none;
  pointer-events: auto;
}
.mobile-menu .dropdown a {
  padding-left: 28px;
  background: #fff;
}
/* Animation */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Responsive */
@media (max-width: 768px) {
  .categories { display: none; }
  .hamburger { display: flex; }
}

/* ===== INTRO ===== */
.intro {
  text-align: center;
  padding: 40px 20px;
}
.intro h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1565c0;
}
.intro p {
  font-size: 1.3rem;
  color: #555;
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.6;
}

/* ===== POPULAR TOOLS ===== */
.popular-tools-section {
  padding: 40px 20px;
  text-align: center;
}
.popular-tools-section h2 {
  font-size: 2.0rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #1565c0;
}
.popular-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  background:  #4577be;
  box-shadow: 0 2px 6px rgba(128, 206, 50, 0.05);
  transition: all 0.25s ease;
  color: #fff;
 }
.tool-card i {
  font-size: 1.9rem;
  color: #dc20c9;
  margin-bottom: 6px;
}
.tool-card span {
  font-size: 1.15rem;
  color: #deded7;
  font-weight: 700;
  font-family: 'poppins',sans-serif;
}

.tool-card:hover {
  background: linear-gradient(90deg,   #4577be, #4577be);
  transform: translateY(-4px);
}

/* ===== ADSENSE ===== */
.ads-block {
  margin: 20px auto;
  text-align: center;
}

footer {
    text-align: center;
    padding: 15px;
    width: 100%;
}
.footer-ad {
  margin: 20px auto;
  text-align: center;
}

/* Hide sidebar ads on mobile */
@media (max-width: 1024px) {
  .side-ad { display: none; }
}
/*.sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    padding: 8px 0;
    z-index: 9999;
    text-align: center;
}*/
/* ===== ADSENSE SPECIAL ===== */
.inline-ad {
  margin: 20px auto;
  text-align: center;
}

.side-ad {
  position: fixed;
  top: 120px;
  width: 160px;
  height: auto;
  z-index: 9998;
}
.left-ad { left: 10px; }
.right-ad { right: 10px; }
@media (max-width: 1024px) {
  .side-ad { display: none; }
}
