/* Custom Animations */



/* 1) Nav ko positioning context banao */
header nav{
  position: relative;           /* dropdown top:100% nav ke niche aayega */
  z-index: 10000;
}

/* 2) <li class="relative group"> ki relative ko neutralize karo,
      taaki dropdown li ke hisaab se na lage */
header nav li.group{
  position: static !important;
}

/* 3) Saare mega dropdowns ko screen ke center me lao
      + width ko viewport ke andar clamp karo */
header nav li.group > .absolute{
  position: absolute;                      /* nav ko relative rakha hai */
  left: 50% !important;
  transform: translateX(-50%) !important;  /* perfect centering */
  right: auto !important;
  width: min(100vw - 2rem, 72rem) !important; /* 16px gutter + 6xl cap */
  z-index: 10001 !important;
}

/* 4) Andar ka content bada ho to panel ke andar hi scroll ho */
header nav li.group > .absolute > .p-8{
  max-width: 100%;
  overflow-x: auto;
}

/* 5) Safety: page par horizontal scroll band */
html, body{ width:100%; overflow-x:hidden; }



    /* ONLY My Advisor dropdown */
header nav li.group.advisor { position: relative !important; }
header nav li.group.advisor > .absolute{
  right: 0 !important;         /* trigger ke right se open */
  left: auto !important;
  transform: none !important;
  width: 16rem !important;     /* w-64 = 256px */
  max-width: calc(100vw - 1rem);
}

@keyframes marquee {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}



@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fade-in-left {
  animation: fadeInLeft 1s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 1s ease-out 0.3s both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.animate-slide-in-up {
  animation: slideInUp 0.8s ease-out;
}

/* Custom Styles */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(221, 201, 21, 0.1), transparent);
  transition: left 0.5s;
}

.pricing-card:hover::before {
  left: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(7, 47, 88, 0.3);
}

.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ddc915;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c4b314;
}

/* Button Hover Effects */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form Focus Effects */
input:focus,
textarea:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(221, 201, 21, 0.2);
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease;
}

img:hover {
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .service-card,
  .pricing-card,
  .feature-card {
    transform: none !important;
  }

  .service-card:hover,
  .pricing-card:hover,
  .feature-card:hover {
    transform: translateY(-3px) !important;
  }
}

/* Intersection Observer Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger Animation Delays */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

.pricing-card:nth-child(1) {
  animation-delay: 0.1s;
}
.pricing-card:nth-child(2) {
  animation-delay: 0.2s;
}
.pricing-card:nth-child(3) {
  animation-delay: 0.3s;
}
.pricing-card:nth-child(4) {
  animation-delay: 0.4s;
}
.pricing-card:nth-child(5) {
  animation-delay: 0.5s;
}

.feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.feature-card:nth-child(4) {
  animation-delay: 0.4s;
}



/* Keep class names as-is to avoid conflicts */
/* chip button */

#ldCatNav{
  display:flex; gap:.5rem; overflow-x:auto; padding:.25rem 0 .5rem;
  -webkit-overflow-scrolling: touch;
}

.ld-chip{
  display:inline-flex; align-items:center; white-space:nowrap;
  padding:.55rem .95rem;             /* balanced padding */
  min-height:40px;                   /* fixes vertical clipping */
  line-height:1.2;                   /* text won't cut */
  font-size:.95rem; font-weight:600;
  border-radius:999px; background:#fff;
  border:1px solid #dce3ea; color:#111827;
  transition:border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

/* hover = solid border (no fancy color-mix) */
.ld-chip:hover{ border-color:#072F58; }

/* active = subtle bg + clear border */
.ld-chip.active{
  background:#f7fbff;
  border-color:#072F58;
  box-shadow:0 0 0 2px rgba(7,47,88,.18);  /* visible ring; not clipped */
}

.ld-card{
  grid-column: span 4 / span 4;
  background:#fff; border:1px solid #e7eaf0; border-radius:20px; overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
@media (max-width:1024px){ .ld-card{grid-column:span 6 / span 6} }
@media (max-width:640px){ .ld-card{grid-column:span 2 / span 2} }

.ld-thumb{ width:100%; aspect-ratio:16/9; object-fit:cover; transition:transform .35s ease; display:block; }
.ld-card:hover .ld-thumb{ transform:scale(1.04); }
.ld-badge{ position:absolute; left:.8rem; top:.8rem; padding:.28rem .6rem;
  border-radius:999px; font-size:.78rem; font-weight:700; color:#111;
  background:#DDC915; box-shadow:0 4px 16px rgba(0,0,0,.12);
}
.ld-pad{ padding:1.1rem }
.ld-meta{ color:#616a78; font-size:.9rem }
.ld-excerpt{ color:#616a78; margin:.35rem 0 .3rem }
.ld-btn{ display:inline-flex; align-items:center; gap:.5rem; padding:.65rem 1rem;
  border-radius:12px; background:#fff; border:1px solid #e7eaf0; color:#072F58; font-weight:700; text-decoration:none;
}
.ld-btn:hover{ border-color:#072F58 }
