/* Root Variables */
:root {
  --primary-color: #007BFF;
  --secondary-color: #6C757D;
  --light-color: #F8F9FA;
  --dark-color: #343A40;
  --hover-color: #0056b3;
  --font-family: "Arial, sans-serif";
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
}
a{
  text-decoration: none;
}

.dropdown {
  position: relative;
  display: inline-block;
  width:100%;
}

.dropdown-button {
  position: absolute;
  top: -2rem;
  right: 0rem;
  width:10rem;
  background-color: #0051ff;
  color: white;
  padding: 10px 20px;
  font-size: 1.2em;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  text-align: left;
  white-space: nowrap;
}
span{
  display: flex;

}
.dropdown-button:hover {
  background-color: #0056b3;
}

.dropdown-content {
  display: none;
  position: absolute;
  right:0rem;
  background-color: #ffffff;
  min-width: 160px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  text-align: left;
  padding: 10px;
}
.dropdown-content a {
  color: #007bff;
  padding: 10px;
  text-decoration: none;
  display: block;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
  }
  40% {
      transform: translateY(-20px);
  }
  60% {
      transform: translateY(-10px);
  }
}

.back-btn{
  padding:.5rem 2rem;
  background-color:#07b2f7;
  color:white;
  float:right;
  border-radius:10rem;
  margin-right:1rem;
  margin-top:1rem;
}


/* Banner */
.Banner {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.banner-img {
  height: 40rem;
  width: 100%;
  background-size:contain;
}

/* Cards Section */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
}

.card h3 {
  margin: 1rem 0;

  font-size: 1.2rem;
}

.card p {
  font-size: 0.9rem;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.card-link{
  text-decoration:none;
  color:black;
}


/* Responsive Styles */
@media (max-width: 992px) {

  .banner-img {
    height: 30rem;
  }

  .card-container {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 12px;
  }

  .Banner {
    margin: 3rem 0;
  }

  .banner-img {
    height: 20rem;
  }

  .card-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

 
}
