.icon-box {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #cce7ff, #e6f4ff); /* light blue gradient */
  transition: bottom 0.4s ease;
  z-index: 0;
}

.icon-box:hover::before {
  bottom: 0;
}

.icon-box * {
  position: relative;
  z-index: 1;
}
.custom-button {
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
}

.custom-button a {
  background-color: #004080;
  color: #ffffff;
  padding: 12px 24px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  border-radius: 6px;
  box-shadow: none;
}

.custom-button a:hover {
  background-color: #cce7ff;
  color: #004080;
}

@media (max-width: 600px) {
  .custom-button {
    width: 100%;
    text-align: center;
  }

  .custom-button a {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 12px 16px;
    word-break: break-word;
    white-space: normal;
  }
}


.icon-box-link {
  background-color: #004080;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.icon-box-link:hover {
  background-color: #cce7ff;
  color: #004080;
}

.icon-box-link:hover h3,
.icon-box-link:hover p,
.icon-box-link:hover i,
.icon-box-link:hover svg {
  color: #004080;
}

.icon-box-link * {
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  /* Make sure the container stacks vertically */
  header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* Target the actual button */
  header a.wp-block-button__link.wp-element-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    white-space: normal !important;
    margin-top: 12px !important;
  }
}
@media (max-width: 768px) {
  footer .wp-block-column p {
    text-align: left !important;
  }
}

/* Submenu container (entire submenu background) */
.wp-block-navigation__submenu-container {
    background-color: #cce7ff; /* Optional: submenu background */
}

/* Submenu items on hover */
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background-color: #cce7ff;
    transition: background-color 0.3s ease;
}

/* Optional: Add padding and border radius for smoother look */
.wp-block-navigation-item__content {
    padding: 8px 12px;
    transition: all 0.3s ease;
}

/* Smooth transition for text */
.wp-block-navigation-item__label {
    transition: all 0.3s ease;
}

/* Enlarge and change text color on hover */
.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
    color: #004080;
    font-size: 1.1em;
}

