/* Container and Title */
.card2-container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    font-family: Arial, sans-serif;
  }
  
  .title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
  }
  
  h1 {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
  }
  
  p {
    display: flex;
    justify-content: center;
  }
  
  /* Categories */
  .categories {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
  }
  
  .category {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: #333;
    font-size: 1rem;
    border: 1px solid #ddd;
  }
  
  .category.active {
    background-color: #4a9bc5;
    color: #fff;
  }
  
  .category:hover {
    background-color:#89c3e0;
    color: #fff;
  }
  
  /* Grid Layout */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1rem;
  }
  
  @media (max-width: 920px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 500px) {
    .grid {
        grid-template-columns: repeat(1, 1fr);
    }
  }
  
  /* Card */
  /* Card */
.grid-card {
  perspective: 1000px;
  overflow: hidden;
  width: 100%;
  background-color: #f4f4f4;
  border-radius: 8px;
  cursor: pointer; 
}

.card-inner {
  position: relative;
  width: 100%;
  height: 200px; 
  transform-style: preserve-3d;
  transition: transform 0.6s ease; 
}

.grid-card:hover .card-inner {
  transform: rotateY(180deg); 
}

/* Front and Back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid #ddd;
  border-radius: 9px;
  display: flex; 
  justify-content: center; 
  align-items: center; 
  overflow: hidden; 
}

.card-front {
  background-color: #f9f9f9; 
}

.card-back {
  background-color: #e9e9e9; 
  transform: rotateY(180deg);
} 



.card-image {
  width: 100%;
  height: 100%;
  max-height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease;
}

.card-image:hover {
  transform: scale(1.02);
}
  
  /* Title and Button */
  .card-title-container {
    padding: 0.2rem;
    background-color: #f4f4f4;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  
  .card-title {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
  }
  
  /* Button Styles */
  .button-container {
    display: flex;
    justify-content: center; 
    margin-top: 1.5rem; 
    margin-bottom: 4rem; 
}

.view-more-btn {
    padding: 0.5rem 1rem;
    border: none;
    background-color: #5cb4e0;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}
  
  .view-more-btn:hover {
    background-color: #4a9bc5;
  }
 /* model css here ......... */

 .modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
  padding-top: 60px; 
}

.modal-contentt {
  height: auto;
  width: 90%; 
  background-color: #fefefe;
  margin: 5% auto; 
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}