/* Main Card Container */
.maincardcontainer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(120deg, #d7e9f7, #ebf4fc);
    padding: 20px;
    margin-top: 30px;
   margin-bottom: 200px;
   text-transform: capitalize;
    padding-top: 100px;
  border-radius: 50px;
    overflow-x: hidden;
}


  
  .main-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: bold;
    background-color: navy;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounceGlow 2s ease-in-out infinite alternate;
  }
  
  @keyframes bounceGlow {
    0% {
      transform: translateY(0);
      text-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
    }
    100% {
      transform: translateY(-8px);
      text-shadow: 0 0 20px rgba(0, 123, 255, 1);
    }
  }
  
  .card-container {
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
   
  }
  
  .card {


    
    border: 3px solid whitesmoke;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 85, 170, 0.15);
    display: flex;
    flex-direction: row;
    width: 45%;
    min-width: 280px;
    max-width: 600px;
    padding: 20px;
    flex-wrap: wrap;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: slideFade 1s ease forwards;
    position: relative;
    overflow: hidden;
    --card-shadow-color: rgba(0, 102, 204, 0.2);
    box-shadow: 0 10px 25px var(--card-shadow-color);
  }
  
  @keyframes slideFade {
    0% {
      transform: translateY(60px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .card:nth-child(even) {
    animation-delay: 0.2s;
  }
  .card:nth-child(odd) {
    animation-delay: 0.4s;
  }
  
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 85, 170, 0.3);
  }
  
  @keyframes fadeInRotate {
    0% {
      opacity: 0;
      transform: rotateX(-15deg) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: rotateX(0deg) scale(1);
    }
  }
  
  .card-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    animation: fadeInRotate 1s ease-in-out;
  }
  
  .card-heading h1 {
    font-size: 2rem;
    color: #003366; /* Professional dark blue */
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 3px rgba(0, 51, 102, 0.2);
    display: inline-block;
    transition: transform 0.3s ease;
  }
  
  .card-heading h1:hover {
    transform: scale(1.05);
    color: #0056b3;
  }
  
  
  .card-left {
    flex: 2;
  }
  
  .card-left img {
    margin-top: 30px;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    border: 3px solid #007bff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  
  }
  
  .card-left img:hover {
    transform: scale(1.03);
  }
  
  .card-content {
    padding: 12px 0;
    position: relative;
  }
  
  .card-content h2 {
    margin: 5px 0;
    font-size: 1.4rem;
    color: #1c3f95;
    font-weight: 700;
    position: relative;
    display: inline-block;
  }
  
  .card-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #001f5c, #0056b3);
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineSlide 2s ease-in-out forwards;
    animation-delay: 0.5s;
  }
  
  @keyframes underlineSlide {
    to {
      transform: scaleX(1);
    }
  }
  
  .card-content p {
    font-weight: bold;
    margin: 5px 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .rating {
    margin: 6px 0;
    font-size: 1.1rem;
    color: #ff9800;
  }
  
  .explore-btn {
    margin-top: 40px;
    padding: 10px 18px;
    background: linear-gradient(to right, #0056b3, #00c6ff);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  }
  
  .explore-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(to right, #003d82, #007fff);
  }
  
  .card-right {
    flex: 1;
    padding-left: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .card-right img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff;
    margin-bottom: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .card-right img:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
  }
  
  .card-right h5 {
    margin: 10px 0 4px;
    font-size: 1.05rem;
    color: #222;
  }
  
  .card-right p {
    font-size: 0.9rem;
    color: #666;
    font-weight: bolder;
  }
  
  #explore-more-btn {
    display: block;
    margin: 50px auto;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(to right, #28a745, #65dd60);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  #explore-more-btn:hover {
    background: linear-gradient(to right, #1e7e34, #4caf50);
    transform: translateY(-4px);
  }
  
  .hidden {
    display: none;
  }
  






 













  /* Responsive Design */
  @media (max-width: 992px) {
    .card {
      width: 90%;
    }
  }
  
  @media (max-width: 600px) {
    .card {
      flex-direction: column;
      width: 95%;
      align-items: center;
    }
  
    .card-left img {
      max-height: 180px;
    }
  
    .card-right {
      padding-left: 0;
      margin-top: 15px;
    }
  }

  /* Media query for screen sizes between 332px and 600px */
@media (min-width: 332px) and (max-width: 600px) {
  .main-heading {
    font-size: 1.8rem;
  }

  .card {
    width: 100%;
    padding: 10px;
    flex-direction: row; /* Keep structure horizontal */
    align-items: center;
  }

  .card-heading h1 {
    margin-top: 10px;
    font-size: 1.3rem;
  }

  .card-left {
    flex: 2;
  }

  .card-left img {
    height: 120px;
    max-width: 100%;
  }

  .card-content h2 {
    font-size: 0.9rem;
  }

  .card-content p {
    font-size: 0.75rem;
  }

  .rating {
    font-size: 0.9rem;
  }

  .explore-btn {
    font-size: 0.75rem;
    padding: 10px 15px;
    margin-top: 20px;
    margin-left: auto;
    white-space: nowrap;
  }

  .card-right {
    flex: 1;
    padding-left: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .card-right img {
    width: 80px;
    height: 80px;
  }

  .card-right h5,
  .card-right p {
    font-size: 0.75rem;
    text-align: center;
  }

  #explore-more-btn {
    
    font-size: 0.95rem;
    padding: 20px 20px;
  }
}
