/* Mega Menu Styling */
.mega-menu {
    position: static !important; /* Allows mega menu to align with container */
}

.mega-menu-content {
    width: 100%;
    left: 0;
    right: 0;
    padding: 10px;
    background: var(--more-dark);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Add transition properties */
    opacity: 0;
    transform: translateY(-10px); /* Start slightly above */
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.mega-menu:hover .mega-menu-content,
.mega-menu .mega-menu-content.show {
    /* Show menu on hover or when toggled */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.mega-menu-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.mega-menu .dropdown-item {
    padding: 8px 0;
    color: #555;
}

.mega-menu .dropdown-item:hover {
    background: none;
    color: var(--secondary);
}

@media (max-width: 991.98px) {
    .mega-menu-content {
        width: auto;
        padding: 10px;
        /* Disable transitions on mobile for instant toggle */
        opacity: 1;
        transform: none;
        visibility: visible;
        transition: none;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu .col-md-3,
    .mega-menu .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }

    .mega-menu-header {
        font-size: 1rem;
    }
}

/* Ensure dropdown toggle works with Bootstrap */
.nav-item.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover for desktop */
}

@media (min-width: 992px) {
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
}

.session-message-container .alert {
    width: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

/* Initially hide the arrow */
.arrow-container {
    display: none;
}

/* Show the arrow when hovering over the parent container */
.mb-3:hover .arrow-container {
    display: block;
    animation: jump 0.5s ease-out;
}

/* Keyframes for the jump animation */
@keyframes jump {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}



#liveSearchResults ul {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

#liveSearchResults .list-group-item a {
    color: #fff; /* or any color */
}


#liveSearchResults .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

blockquote {
  position: relative;
  max-width: 600px;
  margin: 1rem auto;
  padding: 1rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 300;
  color: #1e293b; /* slate-800 */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Decorative left bar */
blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 1.25rem 0 0 1.25rem;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

/* Large subtle quote mark */
blockquote::after {
  content: "“";
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 5rem;
  font-weight: bold;
  color: var(--secondary);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

/* Reset the <p> inside */
blockquote p {
  margin: 0;
}



/* Image container float left */
.se-image-container.__se__float-left {
  float: left;
  margin: 0 15px 10px 0; /* spacing between image and text */
  display: inline-block;
}

/* Image container float right */
.se-image-container.__se__float-right {
  float: right;
  margin: 0 0 10px 15px;
  display: inline-block;
}

/* Optional: make sure images inside scale correctly */
.se-image-container img {
  max-width: 100%;
  height: auto;
  display: block;
}



/* Timeline Styling */
    .timeline {
        position: relative;
        margin-left: 20px;
    }
    .timeline-dot {
        position: relative;
        width: 20px;
        flex-shrink: 0;
    }
    .timeline-dot .dot {
        width: 16px;
        height: 16px;
        display: block;
        border-radius: 50%;
        margin: 0 auto;
    }
    .timeline-dot .line {
        position: absolute;
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% + 20px);
    }
    .timeline-dot .line.dashed {
        border-left: 2px dashed #ffc107;
        background: transparent !important;
    }
    /* Mobile Adjustments */
    @media (max-width: 767.98px) {
        .timeline {
            margin-left: 0;
        }
        .timeline-dot {
            margin: 0 auto 10px;
        }
        .timeline-dot .line {
            left: 50%;
        }
    }
