* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}


:root {
  --primary-color: #ffd000;
  --secondary-color: black;
  --accent-color: white;
  --gradient-bg: linear-gradient(130deg, #ffffff, #ffea03, #fff);
  --gradient-button-hover: linear-gradient(130deg, #a1a09e, #ffffff, #c9c7bc);
  --gray-color: #f3f3f3;
  --family-button-hover: linear-gradient(130deg, #999999, #ffffff, #a1a1a1);
}

.navbar {
  background-color: var(--primary-color);
}

.container {
  padding: 10px;
  justify-content: center;
}

.custom-subscribe {
  margin-left: 20px;
  align-self: center;
}

/* Navbar Links Styling */
.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color);
  /* Purple hover color */
}

/* Subscribe Button Styling */
.custom-subscribe:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
}

/* Responsive Navbar Toggle Button */
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-color: var(--accent-color);
}


/* IPTV Section */
.iptv-section {
  width: 100%;
  padding: 10%;
  background: white;
}

.iptv-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center; /* Centers titles */
}

/* Titles */
.iptv-title {
  color: black;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.iptv-subtitle {
  color: rgb(73, 71, 71);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* IPTV Card Grid */
.iptv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px); /* Fixed column width of 300px */
  gap: 2rem;
  justify-content: center; /* Centers the grid items horizontally */
  margin-bottom: 3rem;
}

/* IPTV Card */
.iptv-card {
  background: rgb(189, 185, 185);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px; /* Fixed width */
  display: flex;
  flex-direction: column;
}

.iptv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px black;
}

.iptv-card-img {
  width: 100%;
  max-height: 250px; /* Maximum height for image */
  object-fit: contain; /* Shows full image without cropping */
  flex-shrink: 0;
}

.iptv-card-body {
  padding: 1.2rem;
  text-align: center;
   /* Takes remaining space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distributes content evenly */
}

.iptv-card-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.iptv-card-price {
  color: black;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.iptv-card-btn {
  padding: 0.75rem 1.5rem;
  background: black;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.iptv-card-btn:hover {
  background: whitesmoke;
  transform: translateY(-2px);
  color: black;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .iptv-title {
      font-size: 2.2rem;
  }

  .iptv-subtitle {
      font-size: 1.6rem;
  }

  .iptv-card {
      width: 280px; /* Slightly smaller width */
      height: 350px; /* Slightly smaller height */
  }

  .iptv-card-img {
      max-height: 175px; /* Adjusted for medium screens */
  }

  .iptv-card-grid {
      grid-template-columns: repeat(auto-fit, 280px); /* Match card width */
  }
}

@media (max-width: 768px) {
  .iptv-title {
      font-size: 2rem;
      margin-top: 80px;
  }

  .iptv-subtitle {
      font-size: 1.5rem;
  }

  .iptv-card {
      width: 260px; /* Further reduced width */
      height: 320px; /* Further reduced height */
  }

  .iptv-card-img {
      max-height: 160px; /* Adjusted for smaller screens */
  }

  .iptv-card-grid {
      grid-template-columns: repeat(auto-fit, 260px); /* Match card width */
  }

  .iptv-card-title {
      font-size: 1.3rem;
  }

  .iptv-card-price {
      font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
    text-align: center;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 8px 10px;
  }

  .container {
    display: flex;
    justify-content: space-around;
  }

}

@media (max-width: 480px) {
  .iptv-section {
      padding: 4%;
  }

  .iptv-title {
      font-size: 1.5rem;
  }

  .iptv-subtitle {
      font-size: 1.3rem;
  }

  .iptv-card {
      width: 240px; /* Smaller width for mobile */
      height: 300px; /* Smaller height for mobile */
  }

  .iptv-card-img {
      max-height: 150px; /* Adjusted for small screens */
  }

  .iptv-card-grid {
      grid-template-columns: repeat(auto-fit, 240px); /* Match card width */
  }

  .iptv-card-body {
      padding: 1rem;
  }

  .iptv-card-title {
      font-size: 1.2rem;
  }

  .iptv-card-price {
      font-size: 1rem;
  }

  .iptv-card-btn {
      padding: 0.6rem 1.2rem;
      font-size: 0.9rem;
  }
}


/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  gap: 0.5rem;
  background: none;
  border: none;
  color: black;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  width: 100%; /* Optional, makes button span parent width */
}


.dropdown-btn:hover {
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: black;
  border: 1px solid black;
  border-radius: 4px;
  width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
}

.dropdown-content a:hover {
  background-color: #333;
  color: yellow;
}

/* Scrollbar Styling */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #444;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    width: 100%;
    max-height: 300px;
    margin-top: 0.5rem;
  }
  .dropdown-btn {
    text-align: center;
    align-items: center;
  }
  .test {
    margin-top: 10px;
  }
}


.test {
  border: 1px solid black;
  height: 45px;
  background-color: var(--secondary-color);
  color: white;
  width: 100px;
  text-align: center;
  border-radius: 10px;
}

.test:hover {
  background-color: var(--gray-color);
  color: var(--secondary-color);
  border: none;
}