/* Footer Styles */
footer {
    padding-top: clamp(2rem, 5vw, 100rem) 0;
}
.menu-wrap {
    display: flex;
    gap:clamp(.1rem, 1vw, 100rem);
    flex-direction: column;
    flex-wrap: wrap;
    height: 30%;
    width: clamp(.1rem, 55vw, 100rem);
    
}

.footer-wrapper {
    padding: 7% 10% 1% 10%;
}

.footer-logo {
    display: flex;
    justify-content: flex-start;
}

.footer-logo img {
    width: clamp(.1rem, 18vw, 100rem);
    height: auto;
    margin-bottom: 2%;
}

.footer-separator {
    border: none;
    height: clamp(.01rem, .1vw, 100rem);
    background-color: #DEE1E9;
    margin-bottom: clamp(.01rem, 3vw, 100rem);
    margin-top: clamp(.01rem, 1vw, 100rem);
}

.footer-main-content {
    display: flex;
    flex-direction: row; /* Desktop default */
    justify-content: space-between;
    gap: clamp(.1rem, 3vw, 100rem);
    margin-bottom: clamp(.1rem, 0vw, 100rem);
}

.footer-menu, 
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1vw, 100rem);
}
.footer-contact{
    width: 26%;
}
.footer-heading {
    font-size: clamp(.1rem, 1.4vw, 100rem);
    font-weight: 600;
    color: #E6007E;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.footer-menu {
    display: flex;
    gap: clamp(0.75rem, 1vw, 100rem);
    justify-items: start;
}



.footer-menu a {
    font-size: clamp(.1rem, 1.2vw, 100rem);
    color: #00165E;
    text-decoration: none;
    transition: color 0.3s ease;
    width: clamp(.1rem, 9vw, 100rem);
}

.footer-menu a:hover {
    color: #E6007E;
}

.footer-contact-item {
    font-size: clamp(.1rem, 1.4vw, 100rem);
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 100rem);
    color: #5B5B5B;
}


.footer-contact p {
    font-size: clamp(.1rem, 1.1vw, 100rem);
    color: #5B5B5B;
}

.footer-contact h2 {
    font-size: clamp(.1rem, 1.1vw, 100rem);
    color: #5B5B5B;
    font-weight: 600;
}
.footer-contact-item a {
    font-size: clamp(.1rem, 1.1vw, 100rem);
    color: #00165E;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #E6007E;
}

.footer-copyright {
    display: flex;
    flex-direction: row; /* Desktop default */
    justify-content: space-between;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    align-items: center;
    font-size: clamp(0.01rem, 1.15vw, 100rem);
    color: #5B5B5B;
}

.footer-legal a {
    color: #00165E;
    font-size: clamp(0.01rem, 1.12vw, 100rem);
    text-decoration: none;
    font-weight: 500;
    margin-left: clamp(0.1rem, .8vw, 100rem);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #E6007E;
}
.icon img {
    width: clamp(.1rem, 1.3vw, 100rem);  /* min: 16px, preferred: 2% of viewport width, max: 24px */
    height: auto;
    vertical-align: middle;
  }

/* Mobile Styles */
@media (max-width: 767px) {
    .footer-main-content {
        flex-direction: column;
        gap: clamp(2rem, 6vw, 3rem);
    }

    .footer-menu {
        display: flex;
        flex-direction: column;
        gap: clamp(0.75rem, 1.5vw, 1rem);
    }
  
    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-logo img {
        width: clamp(.1rem, 60vw, 100rem);
    }
    
    
    .footer-heading {
        font-size: clamp(.1rem, 5vw, 100rem);
    }
    .footer-menu a {
        font-size: clamp(.1rem, 4vw, 100rem);
        margin: 0;
    }

 
        /* Keep your existing grid layout */
        .menu-wrap {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          grid-template-rows: repeat(3, auto);
          grid-auto-flow: column;
          gap: clamp(.1rem, 2.5vw, 2rem);
          width: clamp(1rem, 90vw, 100rem);
          padding: 0;
          margin: 0;
        }
      
        /* Make dropdown inline in the flow */
        .menu-wrap .dropdown-menu {
            display: block;          /* keep in flow */
            position: static;
            grid-column: 1 / -1;
            max-height: 0;           /* collapse by default */
            overflow: hidden;
            margin: 0;
            padding: 0;
            transition: max-height 0.5s ease-out;
          }
        
          .menu-wrap .dropdown.active .dropdown-menu {
            max-height: 1000px; /* large enough to fit all items */
            border: none;
            box-shadow: none;
            margin: 0;
            padding: 0;
          }
        
          /* Individual item stagger */
          .menu-wrap .dropdown-menu li {
            opacity: 0;
            margin-top: 5%;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
         
            
          }
         
        
          .menu-wrap .dropdown.active .dropdown-menu li {
            opacity: 1;
            transform: translateY(0);
            
          }
        
      
        /* Optional: adjust dropdown link layout */
        .menu-wrap .dropdown > a {
          display: flex;
          align-items: center;
          cursor: pointer;
          
        }
        .menu-wrap .dropdown-arrow {
            display: inline-block;
            width: clamp(.1rem, 3vw, 100rem);
            height: clamp(.1rem, 3vw, 100rem);
            transition: transform 0.3s ease-in-out;
            margin-left: 0.25rem;
            
          }
      
        /* Arrow rotation */
        .menu-wrap .dropdown .arrow {
          transition: transform 0.3s;
          
        }
        
      
        .menu-wrap .dropdown.active .arrow {
          transform: rotate(180deg);
        }
      
      
    .footer-separator {
        margin-bottom: clamp(.01rem, 10vw, 100rem);
        margin-top: clamp(.01rem, 10vw, 100rem);
    }
    .footer-wrapper {
        padding: 20% 10% 1% 5%;
    }
    .footer-contact h2 {
        font-size: clamp(.1rem, 4vw, 100rem);
    }
    .footer-contact-item a {
        font-size: clamp(.1rem, 4vw, 100rem);
        margin-left: 2%;
    }
    .footer-contact p{
        font-size: clamp(.1rem, 4vw, 100rem);
    }
    .footer-copyright{
        font-size: clamp(.1rem, 4vw, 100rem);
    }
    .footer-legal a {
        font-size: clamp(.1rem, 4vw, 100rem);
    }
    .footer-contact {
        width: 100%;
    }
    .footer-container {
        margin-bottom: 10%;
    }
    .icon img {
        width: clamp(.1rem, 5vw, 100rem);
    }
    .footer-menu a {
        width: 100%;
    }
   
}

/* Footer dropdown menu */
/* Footer dropdown items initial state */
footer .dropdown-menu li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
   
  }

footer .dropdown-menu {
    top: 50%;
}
footer .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  footer .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 500px; /* large enough for items */
  }
  
footer .dropdown-menu a {
    border-bottom: none;
}
  /* When dropdown is active, stagger each item */
  footer .dropdown.active .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
    
  }
  
  /* Apply stagger using :nth-child */
  footer .dropdown.active .dropdown-menu li:nth-child(1) {
    transition-delay: 0.05s;
  }
  footer .dropdown.active .dropdown-menu li:nth-child(2) {
    transition-delay: 0.10s;
  }
  footer .dropdown.active .dropdown-menu li:nth-child(3) {
    transition-delay: 0.15s;
  }
  footer .dropdown.active .dropdown-menu li:nth-child(4) {
    transition-delay: 0.20s;
  }
  footer .dropdown.active .dropdown-menu li:nth-child(5) {
    transition-delay: 0.25s;
  }

  footer .dropdown-menu a:hover {
    color: #E6007E;
    border-bottom:none;
}

.menu-wrap  .dropdown.active:before {
    display: none;
}
  /* Add more if you have more items */
  


