@import url("[https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap](https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap)");
* {
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  width: 100%;
  overflow-x: hidden;
}

/* Header */
header {
  padding: 15px 20px;
  /* background-color: #fff; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  position: relative; 
}
.logo1 {
  text-decoration: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

/* navbar */
nav {
  display: flex;
  align-items: center;
  /* gap: 20px; */
}

nav a,
.dropdown {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background-color 0.3s ease-in-out;
}

nav a:hover {
  background-color: #d2cece;
  text-decoration: none;
}

/* Search Bar */
.search-container {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 5px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-container input {
  border: none;
  outline: none;
  padding: 8px;
  width: 180px;
  font-size: 1rem;
  border-radius: 20px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
}

.search-btn:hover {
  color: #555;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  right: 0;
  left: auto;
  display: none;
  position: absolute;
  top: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
  padding: 10px;
  border-radius: 4px;
  z-index: 1000;
}

.dropdown-menu a {
  color: black;
  text-decoration: none;
  padding: 5px 10px;
  display: block;
}

.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* User Icon */
.user-icon {
  font-size: 1.5rem;
  padding: 5px;
  cursor: pointer;
  margin: 0px 20px 0px 0px;
}

/* Hamburger Button */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: #000;
}

/* title */
h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

/* Main Section */
main {
  padding: 20px;
  width: 100vw; 
  height: 100vh; 
  margin: 0;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  padding-bottom: 5px;
  color: #040404;
}

/* crads section */
.cards-container {
  position: relative;
  overflow: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
}

.cards {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  gap: 15px;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none; 
}

.cards::-webkit-scrollbar {
  display: none; 
}

/* Stock Card */
.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  min-width: 300px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  background-color: white;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-btn {
  left: 10px;
}

.right-btn {
  right: 10px;
}

/* Stock Name & Price */
.card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #000000;
}

.card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
  align-items: center;
  justify-content: left;
  display: flex;
}

/* Logo & Name */
.stock-logo {
  width: 40px; 
  height: 40px; 
  object-fit: contain; 
  display: block; 
}

/* Center-align text and logo properly */
.card-header {
  display: flex;
  align-items: center; 
  gap: 10px; 
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo1 {
    order: 1; 
    margin-right: auto; 
  }

  .hamburger-btn {
    display: block; 
    order: 2; 
    margin-left: auto; 
  }

  nav {
    display: none; 
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0; 
    z-index: 999;
    align-items: center; 
  }

  nav.active {
    display: flex;
  }

  nav a,
  .dropdown {
    width: calc(100% - 20px);
    text-align: center;
    padding: 10px 0;
    margin-bottom: 5px; 
  }

  .search-container {
    width: calc(100% - 40px); 
    margin-bottom: 10px; 
  }

  .search-container input {
    width: 100%; 
  }

  .user-icon {
    margin: 10px 0;
  }

  .dropdown-menu {
    position: static; 
    box-shadow: none; 
    padding: 0;
    border-radius: 0;
    width: 100%; 
  }

  .dropdown-menu a {
    padding: 8px 0; 
  }

  h1 {
    font-size: 2rem; 
    text-align: center;
  }

  main {
    padding: 10px; 
  }

  .cards-container {
    padding: 10px 0; 
  }

  .card {
    min-width: 250px; 
  }

  .scroll-btn {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* Terms & Conditions Section */
.terms-section {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

.terms-section h3 {
  margin-bottom: 10px;
}

.terms-section a {
  color: #00c3ff;
  text-decoration: none;
  font-weight: bold;
}

.terms-section a:hover {
  text-decoration: underline;
}


