.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown Css */

/* since nested groupes are not supported we have to use 
     regular css for the nested dropdowns 
  */
li > ul {
  transform: translatex(100%) scale(0);
}
li:hover > ul {
  transform: translatex(101%) scale(1);
}
li > button svg {
  transform: rotate(-90deg);
}
li:hover > button svg {
  transform: rotate(-270deg);
}

/* Below styles fake what can be achieved with the tailwind config
     you need to add the group-hover variant to scale and define your custom
     min width style.
  	 See https://codesandbox.io/s/tailwindcss-multilevel-dropdown-y91j7?file=/index.html
  	 for implementation with config file
  */
.group:hover .group-hover\:scale-100 {
  transform: scale(1);
}
.group:hover .group-hover\:-rotate-180 {
  transform: rotate(180deg);
}
.scale-0 {
  transform: scale(0);
}
.min-w-32 {
  min-width: 8rem;
}

/* category page card ------------------------------- */
  .card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
  }

  .custom-card {
    /* background-color: #1A1F28; */
    background-color:#ffffffdd;
        /* background-color:red; */
    /* color:whitesmoke; */
    color: #1e293b;
    /* border-color: #e2e8f0; */
    /* border-width: 1px; */
    border-radius: 8px;
    width: 180px; /* Reduced size for 7 cards to fit */
    padding: 7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    letter-spacing: 0.5px;  

    /* font-weight:500 ;     */
  }

  .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        border-color: #191919;
        border-width: 1px;
  }

  .custom-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
  }

  .card-icon {
  width: 50px;
  height: 50px;
    filter: invert(33%) sepia(90%) saturate(748%) hue-rotate(200deg) brightness(90%) contrast(95%);

  margin: 0 auto 8px auto;
  display: block;
  
}

 /* heading ****************************** */
 /* Default styles for desktop */
.main-heading {
  color: #111827;
  text-align: center;
  letter-spacing: 0.3vw;
  font-size: clamp(2.0rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-top: 20px;
}

.sub-heading {
  color: #4b5563;
  text-align: center;
  letter-spacing: 0.3vw;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  margin-top: 5px;
}

/* ✅ Mobile-only styling (≤ 640px) */
@media screen and (max-width: 640px) {
  .mobile-text-section {
    position: relative;
    /* margin: 20px 12px;
    border-radius: 10px; */
        padding: 5px 12px;

    overflow: hidden;
    text-align: center;
    background-color: #f3f4f6; /* Light gray background for readability */
  }

  .mobile-text-section::before,
  .mobile-text-section::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 60px;
    left: -25%;
    transform: rotate(-5deg);
    z-index: 0;
    opacity: 0.2;
  }

  .mobile-text-section::before {
    top: -10px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b); /* Amber Gradient */
  }

  .mobile-text-section::after {
    bottom: -10px;
    background: linear-gradient(90deg, #818cf8, #6366f1); /* Indigo Gradient */
  }

  .mobile-text-section .main-heading,
  .mobile-text-section .sub-heading {
    position: relative;
    z-index: 1;
  }

  .mobile-text-section .main-heading {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .mobile-text-section .sub-heading {
    font-size: 1rem;
    color: #374151;
    line-height: 1.4;
  }
}



 /* responsive design ***********************************  */
 
 #occupation-cards {
  margin-top: 50px; /* Default for desktop and larger screens */
}

@media screen and (max-width: 640px) {
  #occupation-cards {
    margin-top: 1px;
  }

  .custom-card {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px;
  }

  .card-grid {
    padding: 10px;
    gap: 10px;
  }

  /* .card-icon {
    width: 40px;
    height: 40px;
  } */

  .custom-card-title {
    font-weight: bold;
  }
}

 /* Gradiant color *************************************************  */
 :root {
  --grad-from: #7c3aed; /* violet-600 */
  --grad-to: #629bf7;   /* blue-500 */
}

.gradient-text {
  background: linear-gradient(to right, var(--grad-from), var(--grad-to));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


.gradient-bg {
  background: linear-gradient(to right, var(--grad-from), var(--grad-to));
}

