@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
}

/* Logo */
/* ---------- HEADER FLEX ---------- */
.header-bar {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
  }
  
  .header-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  
  .logo img {
    height: 52px;
    width: auto;
  }
  
  

.logo img {
  height: 64px;
  display: block;
  margin: 0 auto;
}

/* Navbar */
.main-nav {
    background-color: #001070;
  }
  
  /* Add this line below */
  @media (max-width: 768px) {
    .main-nav {
      background: transparent;
      border-top: 5px solid #001070; /* thin blue line */
      padding: 0;
      margin: 0;
    }
  }
  

.main-nav .container {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 12px 14px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #001070;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  padding: 10px 14px;
  white-space: nowrap;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ---------- TRENDING BAR ---------- */
.trending-bar {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    padding: 8px 0;
  }
  
  .trending-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .trending-bar .icon {
    color: #f08c00;
    font-size: 16px;
    margin-right: 6px;
  }
  
  /* Style for trending tags */
  .trending-bar a {
    background-color: #e9ecf1;
    color: #001070;
    padding: 4px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
  }
  
  .trending-bar a:hover {
    background-color: #001070;
    color: white;
  }
  
/* ---------- HAMBURGER ICON ---------- */
/* ---------- HAMBURGER ---------- */
.hamburger {
    display: none;
    font-size: 26px;
    color: #001070;
    cursor: pointer;
    padding: 8px 12px;
  }

  @media (max-width: 768px) {
    .header-flex {
      justify-content: space-between;
    }
  
    .logo {
        margin-left: 20px;
      }
      
  
    .hamburger {
      display: block;
    }
  }
  
  
  /* ---------- MOBILE NAV ---------- */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: #001070;
      width: 100%;
      margin-top: 10px;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .hamburger {
      display: block;
    }
  
    .dropdown-menu {
      position: static;
    }
  
    .dropdown:hover .dropdown-menu {
      display: none;
    }
  
    .dropdown.show .dropdown-menu {
      display: block;
    }
  }
  
  /* Search toggle icon (right side of navbar) */
  .search-dropdown {
    position: relative;
  }
  
  /* Search Icon Image */
  .search-dropdown .search-icon img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    cursor: pointer;
    margin-top: 2px; /* optional for better vertical alignment */
  }
  
  
  /* Search Box (hidden by default, animated) */
  .search-box {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    padding: 10px;
    display: flex;
    gap: 6px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }
  
  .search-box input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
  }
  
  .search-box input:focus {
    border-color: #001070;
  }
  
  .search-box button {
    padding: 8px 14px;
    background: #001070;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .search-box button:hover {
    background: #0030aa;
  }
  
  /* When shown */
  .search-box.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  

/* Mobile */
@media (max-width: 768px) {
  .search-box {
    right: 0;
    width: 90vw;
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .search-box button {
    width: 100%;
  }
}

/* Tooltip wrapper */
.tooltip-wrapper {
  position: relative;
}

/* Tooltip itself */
.custom-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #001070;
  color: white;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

/* Triangle pointer */
.custom-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #001070 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .custom-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* ---------- LANGUAGE DROPDOWN ---------- */
.language-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}

.language-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.language-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.language-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 10px 0 0 0;
  padding: 8px 0;
  z-index: 1000;
}

.language-menu.show {
  display: block;
}

.language-menu li {
  margin: 0;
  padding: 0;
}

.language-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 14px;
}

.language-menu li a:hover {
  background-color: #f5f5f5;
}

.language-menu li a img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

/* Mobile responsiveness for language dropdown */
@media (max-width: 768px) {
  .language-dropdown {
    margin-left: 10px;
  }

  .language-menu {
    right: auto;
    left: 0;
  }

  .language-icon {
    padding: 6px 10px;
  }

  .language-menu li a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .language-menu li a img {
    width: 18px;
    height: 18px;
  }
}