/* Modern Dropdown Styles */

/* Parent Item Positioning */
.about-drop-hover,
.solutions-drop-hover {
    position: relative;
}

/* Mega Dropdown Container */
.mega-dropdown {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(20px);
    width: max-content;
    min-width: 300px;
    /* Reduced since image is gone */
    max-width: 900px;

    background-color: var(--background-color-light);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1000;

    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Gradient Border Top */
    border-top: 4px solid transparent;
    border-image: var(--Secondary-primary-color);
    border-image-slice: 1;
    border-radius: 12px;
    border: none;
    /* Reset standard border */
}

/* Pseudo-element for Gradient Top Border */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--Secondary-primary-color);
    z-index: 1;
}

/* Hover State - Trigger Animation */
.about-drop-hover:hover .mega-dropdown,
.solutions-drop-hover:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* Arrow Rotation on Parent Hover */
.about-drop-hover .arrowDropdown,
.solutions-drop-hover .arrowDropdown {
    transition: transform 0.3s ease;
}

.about-drop-hover:hover .arrowDropdown,
.solutions-drop-hover:hover .arrowDropdown {
    transform: rotate(180deg);
}

.about-drop-hover:hover p,
.solutions-drop-hover:hover p {
    color: var(--main-highligt-color);
    /* Updated to highlight color */
}

/* Active Indicator Line */
.about-drop-hover .activeDropdown,
.solutions-drop-hover .activeDropdown {
    height: 3px;
    background: var(--Secondary-primary-color);
    /* Gradient */
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.about-drop-hover:hover .activeDropdown,
.solutions-drop-hover:hover .activeDropdown {
    transform: scaleX(1);
}


/* Dropdown Inner Layout */
.mega-dropdown-inner {
    display: flex;
    flex-direction: row;
    min-height: auto;
    /* Allow auto height */
    background: #fff;
    padding: 10px 0;
    /* Add reasonable padding */
}

/* Menu Section (Left) */
.mega-dropdown-menu {
    flex: 1;
    /* Take full width */
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    /* Changed from #666 to white for modern look */
}

/* Menu Items */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    color: var(--main-text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: var(--activeCardBackgroundColor);
    /* Light blue bg */
    border-color: rgba(33, 150, 243, 0.1);
    transform: translateX(5px);
    /* Subtle shift */
}

/* Icons */
.mega-menu-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--main-highligt-color);
    transition: all 0.3s ease;
}

.mega-menu-item:hover .mega-menu-icon {
    background: var(--Secondary-primary-color);
    /* Gradient background */
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.mega-menu-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Text */
.mega-menu-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-text-color);
}

/* Sub-items (for Solutions) */
.mega-menu-subitems {
    padding-left: 73px;
    /* Align with text start */
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mega-sub-item {
    display: block;
    font-size: 14px;
    color: var(--paragraph-text-color);
    padding: 4px 0;
    transition: color 0.2s;
    position: relative;
}

.mega-sub-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* Subtle movement */
}

/* Sections in Solutions */
.mega-menu-section {
    margin-bottom: 10px;
}

/* Image Section (Right) - HIDDEN per request */
.mega-dropdown-image {
    display: none;
}

/* Mobile About Us and Solutions Dropdown */
.mobile-about-list,
.mobile-solutions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-about-list li a,
.mobile-solutions-list li a {
    color: #5b5b5b;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.mobile-about-list li a:hover,
.mobile-solutions-list li a:hover {
    color: var(--primary-color);
}

.mobile-section-header {
    margin-top: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title-mobile {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-sub-item {
    padding-left: 15px;
}

.mobile-sub-item a {
    font-size: 16px !important;
    color: #666 !important;
}

.mobile-sub-item a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .mega-dropdown {
        min-width: 300px;
    }

    .mega-dropdown-menu {
        padding: 20px;
    }

    .mega-dropdown-image {
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    .mega-dropdown {
        display: none !important;
        /* Switch to mobile menu handled by JS/other CSS */
    }
}