/* New Header Styles */

/* Top Bar */
.top-bar {
    height: 39px!important;
    display: flex;
    align-items: center;
    background-color: #094990;
    color: #fff;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    position: relative;
    z-index: 1002;
}

@media (max-width: 992px) {
    .top-bar {
        /* display: none; */
        height: 30px!important;
        text-align: center;
    }
    .top-bar .menu-items{
        display: none;
    }
    
    /* Hide mobile top bar copy by default */
    .top-bar-mobile {
        display: none !important;
        background-color: #eee !important;
        margin-top: 30px;
    }
    
    /* Show mobile top bar copy only when mobile menu is active */
    body.mobile-menu-active .top-bar-mobile {
        display: block !important;
    }
}

/* Hide mobile top bar copy for screens larger than 992px */
@media (min-width: 993px) {
    .top-bar-mobile {
        display: none !important;
    }
}


.top-bar-link {
    color:#eee !important;
    padding: 0 5px !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 13px !important;

}
.top-bar-mobile-link{
    display: inline-block !important;
    width: 30% !important;
}
.top-bar-mobile-link a{
    color: #094990 !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 13px !important;
}

.top-bar-mobile-link .dropdown-menu a{
    padding: 10px !important;
}

.top-bar-link a{
    color: #eee !important;
    padding: 0 5px !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 13px !important;
}

.top-bar-link:hover {
    color: #fff !important;
    opacity: 0.8;
    text-decoration: none;
}

/* Top Bar List Styles */
.top-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.dropdown-menu ul{
    justify-content: flex-start!important;
}

.top-bar ul li {
    display: inline-block;
    /* margin-right: 20px; */
}

.top-bar ul li:last-child {
    margin-right: 0;
}


/* Main Header */
.header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* height: 86px; */
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-width: 250px;
    transition: all 0.3s ease;
}

.header.sticky .logo img {
    max-height: 55px;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
    /* justify-content: flex-end; */
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

@media  (max-width: 992px) {
    .nav-item {
        width: 100%;
        display: block;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 15px !important;
    color: #094990 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    text-transform: capitalize;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: #094990;
    background-color: rgba(9, 73, 144, 0.05);
    text-decoration: none;
}

.nav-link i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-mega-menu:hover .nav-link i {
    transform: rotate(180deg);
}



/* Expert Button */
.btn-expert {
    background: #df760d;
    color: #fff !important;
    /* border-radius: 6px; */
    font-weight: 600;
    /* text-transform: capitalize; */
    transition: all 0.3s ease;
    white-space: nowrap;
}



.btn-expert:hover {
    background: #9f5204;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 73, 144, 0.3);
}

/* Search Icon */
.search-toggle {
    padding: 12px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: rgba(9, 73, 144, 0.1);
    color: #094990;
}

/* Mega Menu Styles */
.mega-menu {
    position: static;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 30px;
    min-width: 800px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #e9ecef;
    background: #f5f5f5 !important;
}


@media (max-width: 992px) {
    .mega-menu {
       display: none;
    }
}




/* Ensure consistent positioning for mega menus */
.mega-menu.align-right {
    left: auto;
    right: 0;
}

/* Override default mega menu styles for Size Estimation */
.size-estimation-menu.align-right {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
}

/* Top Bar Mega Menu - Higher z-index to appear above main header */
.top-bar .mega-menu {
    z-index: 1003;
}

/* Hover state for desktop */
.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Override hover for Size Estimation menu - it should only show on click */
.has-mega-menu:hover .size-estimation-menu {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Click toggle state - for both desktop and mobile */
.has-mega-menu.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Active state styling for the nav link */
.has-mega-menu.active .nav-link {
    background-color: rgba(9, 73, 144, 0.1);
    color: #094990;
}

.has-mega-menu.active .nav-link i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Ensure smooth transition for the chevron icon */
.has-mega-menu .nav-link i {
    transition: transform 0.3s ease;
}

.mega-menu h4 {
    color: #094990;
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mega-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu ul li {
    margin-bottom: 8px;
}

.mega-menu ul li a {
    color: #595959;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    text-transform: none;
    padding: 5px 0;
    display: block;
}

.mega-menu ul li a:hover {
    color: #094990;
    text-decoration: none;
    padding-left: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 2px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mega-menu {
        min-width: 700px;
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 15px 0;
    }
    
    .logo img {
        max-width: 200px;
    }
    
    .nav-menu {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1px;
    }
    
    .nav-link {
        padding: 8px 10px;
        /* font-size: 12px; */
    }
    
    .mega-menu {
        min-width: 600px;
        padding: 20px;
    }
    
    .btn-expert {
        padding: 5px !important;
        border-radius: 3px!important;
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .logo img {
        max-width: 180px;
    }
    
    .logo {
        position: relative;
    }
    
    .main-navigation {
        justify-content: center;
        margin-top: 15px;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px;
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
        width: 100%;
    }
    
    .nav-link {
        padding: 8px 8px;
        /* font-size: 11px; */
        width: 100%;
    }
    
    /* Mobile: Only apply space-between to links WITH dropdown arrows */
    .has-mega-menu .nav-link {
        justify-content: space-between;
    }
    
    /* Mobile: Explicitly align non-mega-menu items (like Contact) to the left */
    .nav-item:not(.has-mega-menu) .nav-link {
        justify-content: flex-start;
    }
    
    /* Mobile: Navigation link content wrapper for right-aligned arrows */
    .nav-link .nav-text {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .nav-link i.fa-chevron-down {
        /* margin-left: auto; */
        flex-shrink: 0;
    }
    
    .mega-menu {
        position: static;
        min-width: auto;
        width: 100%;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 15px;
        margin-top: 10px;
        background: #f8f9fa;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    /* Mobile: Override fixed positioning for mega menus */
    .size-estimation-menu,
    .brand-synergix-menu,
    .research-vaults-menu,
    .data-quality-menu,
    .about-menu,
    .services-menu {
        position: static !important;
        top: auto !important;
    }
    
    .has-mega-menu {
        width: 100%;
    }
    
    /* Mobile: Show mega menu only when active */
    .has-mega-menu.active .mega-menu {
        display: block;
    }
    
    /* Mobile: Hide hover effects */
    /* .has-mega-menu:hover .mega-menu {
        opacity: 0;
        visibility: hidden;
    } */
    
    .btn-expert {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
 
    
    .logo {
        text-align: center;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid #e9ecef;
        width: 100%;
    }
    
    /* Mobile: Only apply space-between to links WITH dropdown arrows */
    .has-mega-menu .nav-link {
        justify-content: space-between;
    }
    
    /* Mobile: Explicitly align non-mega-menu items (like Contact) to the left */
    .nav-item:not(.has-mega-menu) .nav-link {
        justify-content: flex-start;
    }
    
    /* Mobile: Navigation link content wrapper for right-aligned arrows */
    .nav-link .nav-text {
        display: flex;
        align-items: center;
        gap: 5px;
    }

  
    
    .mega-menu {
        padding: 10px;
    }
    
    /* Mobile: Override fixed positioning for mega menus */
    .size-estimation-menu,
    .brand-synergix-menu,
    .research-vaults-menu,
    .data-quality-menu,
    .about-menu,
    .services-menu {
        position: static !important;
        top: auto !important;
    }
    
    .mega-menu .row {
        margin: 0;
    }
    
    /* Small mobile: Ensure proper toggle behavior */
    .has-mega-menu:hover .mega-menu {
        display: none;
    }
    
    .has-mega-menu.active .mega-menu {
        display: block;
    }
   
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #595959;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
}

/* Animation for mega menu items */
.mega-menu .row > div {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.mega-menu .row > div:nth-child(1) { animation-delay: 0.1s; }
.mega-menu .row > div:nth-child(2) { animation-delay: 0.2s; }
.mega-menu .row > div:nth-child(3) { animation-delay: 0.3s; }
.mega-menu .row > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for menu items */
.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #094990;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover::before {
    width: 80%;
}

/* Focus states for accessibility */
.nav-link:focus {
    outline: 2px solid #094990;
    outline-offset: 2px;
}

/* Loading state for mega menus */
.mega-menu.loading {
    position: relative;
}

.mega-menu.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #094990;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Main Banner Slider Styles */
.main-banner-section {
    position: relative;
    width: 100%;
    /* height: 100vh; - Now dynamically calculated based on device ratio */
    min-height: 300px; /* Reduced from 400px for better ratio-based sizing */
    overflow: hidden;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading state for banner */
.main-banner-section.loading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.main-banner-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #094990;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.main-banner-section.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 50px));
    color: #094990;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Lato', sans-serif;
    z-index: 10;
}

.main-banner-section.loading .main-banner-slider {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-banner-section.loaded .main-banner-slider {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Fallback: Show banner even if JS fails to add loaded class */
.main-banner-section {
    animation: forceVisible 0.1s 4s forwards;
}

@keyframes forceVisible {
    to {
        /* Ensure banner is visible after 4 seconds regardless of loaded class */
    }
}

.main-banner-section:not(.loading) .main-banner-slider,
.main-banner-slider.owl-loaded {
    opacity: 1 !important;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.main-banner-section.loading .banner-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.main-banner-slider {
    height: 100%;
    display: block !important; /* Override owl-carousel default display:none */
}

/* Ensure owl-carousel is visible even before JS loads */
.main-banner-slider.owl-carousel {
    display: block !important;
}

.banner-slide {
    position: relative;
    /* height: 100vh; */
    min-height: 300px; /* Increased to match main-banner-section min-height */
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: height 0.3s ease;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    z-index: 1;
}

.banner-img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .main-banner-section {
        min-height: 250px; /* Adjusted for better ratio-based sizing on tablets */
    }
    
    .banner-slide {
        min-height: 250px; /* Adjusted for better ratio-based sizing on tablets */
    }
    
    /* .banner-img {
        height: 100%;
    } */
    
    .main-banner-slider .owl-nav{
       left: auto!important;
    }
}


.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 73, 144, 0.8) 0%, rgba(9, 73, 144, 0.6) 50%, rgba(9, 73, 144, 0.4) 100%);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 15px;
}

.banner-title {
    font-size: 5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    font-family: 'Youngest Serif', serif;
}

.banner-description {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-family: 'Youngest Serif', serif;

}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 200px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background: #df760d;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #df760d;
    display: inline-block;
}

.btn-primary:hover {
    background: #9f5204;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(223, 118, 13, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    display: inline-block;
}

.btn-secondary:hover {
    background: #fff;
    color: #094990;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Owl Carousel Custom Styles */
.main-banner-slider .owl-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 4;
    pointer-events: none;
}

.main-banner-slider .owl-prev,
.main-banner-slider .owl-next {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    color: #094990 !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
}

.main-banner-slider .owl-prev {
    left: 30px;
}

.main-banner-slider .owl-next {
    right: 30px;
}

.main-banner-slider .owl-prev:hover,
.main-banner-slider .owl-next:hover {
    background: #fff !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-banner-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.main-banner-slider .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.main-banner-slider .owl-dot.active {
    background: #df760d !important;
    border-color: #df760d !important;
    transform: scale(1.2);
}

/* Responsive Design for Banner */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .main-banner-section {
        min-height: 250px; /* Adjusted for better ratio-based sizing on tablets */
    }
    
    .banner-slide {
        min-height: 250px; /* Adjusted for better ratio-based sizing on tablets */
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .main-banner-section {
        min-height: 200px; /* Mobile: smaller min-height for better ratio-based sizing */
    }
    
    .banner-slide {
        min-height: 200px; /* Mobile: smaller min-height for better ratio-based sizing */
    }
    
    .banner-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .banner-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .main-banner-slider .owl-prev,
    .main-banner-slider .owl-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .main-banner-slider .owl-prev {
        left: 15px;
    }
    
    .main-banner-slider .owl-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .main-banner-section {
        min-height: 160px; /* Small mobile: maintain smaller min-height for ratio-based sizing */
    }
    
    .banner-slide {
        min-height: 160px; /* Small mobile: maintain smaller min-height for ratio-based sizing */
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    .main-banner-slider .owl-dots {
        bottom: 20px;
    }
    
    .main-banner-slider .owl-dot {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Animation for banner content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Apply base styles to all mega menu classes */
.size-estimation-menu,
.brand-synergix-menu,
.research-vaults-menu,
.data-quality-menu,
.about-menu,
.services-menu {
    min-width: 100vw !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-shadow: none !important;
    border: none !important;
    display: none !important;
    z-index: 9999 !important;
    position: fixed;
    top: 125px !important;
    transition: all 0.3s ease !important;
}

/* Show mega menus only when active */
.has-mega-menu.active .size-estimation-menu,
.has-mega-menu.active .brand-synergix-menu,
.has-mega-menu.active .research-vaults-menu,
.has-mega-menu.active .data-quality-menu,
.has-mega-menu.active .about-menu,
.has-mega-menu.active .services-menu {
    display: block !important;
}

/* Force hide mega menus by default - highest specificity */
.nav-item.has-mega-menu .size-estimation-menu,
.nav-item.has-mega-menu .brand-synergix-menu,
.nav-item.has-mega-menu .research-vaults-menu,
.nav-item.has-mega-menu .data-quality-menu,
.nav-item.has-mega-menu .about-menu,
.nav-item.has-mega-menu .services-menu {
    display: none !important;
}

/* Force show only when active - highest specificity */
.nav-item.has-mega-menu.active .size-estimation-menu,
.nav-item.has-mega-menu.active .brand-synergix-menu,
.nav-item.has-mega-menu.active .research-vaults-menu,
.nav-item.has-mega-menu.active .data-quality-menu,
.nav-item.has-mega-menu.active .about-menu,
.nav-item.has-mega-menu.active .services-menu {
    display: block !important;
    opacity: 0.96 !important;
}

/* Override hover for all mega menus - they should only show on click */
.has-mega-menu:hover .size-estimation-menu,
.has-mega-menu:hover .brand-synergix-menu,
.has-mega-menu:hover .research-vaults-menu,
.has-mega-menu:hover .data-quality-menu,
.has-mega-menu:hover .about-menu,
.has-mega-menu:hover .services-menu {
    display: none !important;
}

/* Four Column Mega Menu now uses standard estimation-section styling */

/* Responsive adjustments for Agent Smith four columns */
@media (max-width: 992px) {
    .research-vaults-menu .estimation-left-column .col-md-3 {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .research-vaults-menu .estimation-left-column .col-md-3 {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* Highlighted text styling for red text items */
.estimation-section ul li a.highlighted {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

.estimation-section ul li a.highlighted:hover {
    color: #c82333 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.estimation-left-column {
    background: #e3f2fd !important;
    padding: 30px !important;
    height: 100% !important;
    min-height: 200px !important;
    display: block !important;
    position: relative !important;
    z-index: 1002 !important;
}

@media (min-width: 1200px) {
    .estimation-left-column {
        padding-left: 120px !important;
    }
}

/* .estimation-section {
    margin-bottom: 30px;
} */

.estimation-section h4 {
    color: #094990;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.estimation-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.estimation-section ul li {
    margin-bottom: 8px;
}

.estimation-section ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400!important;
    transition: color 0.3s ease;
    padding: 2px 0!important;
    display: block;
}

.estimation-section ul li a:hover {
    color: #094990;
    text-decoration: none;
    padding-left: 5px;
}

.estimation-right-column {
    background: #f8f9fa !important;
    padding: 30px !important;
    height: 100% !important;
    /* min-height: 400px !important; */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /* align-items: center !important; */
    position: relative !important;
    z-index: 1002 !important;
}

.estimation-action-item {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    /* background: #fff; */
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    transition: all 0.3s ease;
}

.estimation-action-item:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.15); */
}

.action-icon {
    font-size: 24px;
    color: #094990;
    /* margin-bottom: 10px; */
}

.action-text a {
    color: #094990;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.action-text a:hover {
    color: #063d7a;
    text-decoration: none;
}

.estimation-right-column {
    /* background: #f5f5f5 !important; */
    padding: 30px !important;
    height: 100% !important;
    /* min-height: 400px !important; */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1002 !important;
}

.estimation-section {
    /* margin-bottom: 30px !important; */
    display: inline-block !important;
    vertical-align: top !important;
    
    margin-right: 2% !important;
}

.estimation-section:first-child {
    width: 25% !important;
}

.estimation-section:last-child {
    margin-bottom: 0;
    margin-right: 0;
    width: 100% !important;
}

/* Special styling for About mega menu with 3 sections */
.about-menu .estimation-section {
    width: 30% !important;
    margin-right: 3% !important;
}

.about-menu .estimation-section:last-child {
    margin-right: 0 !important;
    width: 30% !important;
}

.estimation-section h4 {
    color: #094990;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.estimation-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.estimation-section ul li {
    margin: 0;
    padding: 0;
}

.estimation-section ul li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
    border-radius: 4px;
    padding-left: 10px;
}
.estimation-section-content{
   font-size: 14px;
}
.estimation-section ul li a:hover {
    color: #094990;
    background-color: rgba(9, 73, 144, 0.1);
    padding-left: 15px;
    text-decoration: none;
}

.estimation-action-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 15px;
    /* background: white; */
    border-radius: 8px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
    transition: all 0.3s ease;
}

.estimation-action-item:last-child {
    margin-bottom: 0;
}

.estimation-action-item:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.15); */
}

.action-icon {
    width: 40px;
    height: 40px;
    background: #094990;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    align-self: center;
}

.action-icon i {
    color: white;
    font-size: 18px;
    line-height: 1;
}

.action-text {
    display: flex;
    align-items: center;
}

.action-text a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.action-text a:hover {
    color: #094990;
    text-decoration: none;
}

/* Responsive adjustments for Size Estimation menu */
@media (max-width: 1200px) {
    .size-estimation-menu,
    .brand-synergix-menu,
    .research-vaults-menu,
    .data-quality-menu {
        min-width: 100vw !important;
        width: 100vw !important;
    }
    
    .estimation-left-column,
    .estimation-right-column {
        padding: 25px;
    }
}

/* Simple Dropdown Menu Styles for Top Bar */
.top-bar .has-dropdown, .top-bar-mobile .has-dropdown {
    position: relative;
}

.top-bar .has-dropdown .dropdown-menu, .top-bar-mobile .has-dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1003 !important;
    padding: 8px 0 !important;
    margin-top: 5px !important;
    text-align: left !important;
}

.top-bar .has-dropdown:hover .dropdown-menu, .top-bar-mobile .has-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.top-bar .has-dropdown.active .dropdown-menu, .top-bar-mobile .has-dropdown.active .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.top-bar .dropdown-menu ul, .top-bar-mobile .dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-bar .dropdown-menu ul li, .top-bar-mobile .dropdown-menu ul li {
    margin: 0;
}

.top-bar .dropdown-menu ul li a {
    display: block !important;
    padding: 8px 16px !important;
    color: #595959 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid #f5f5f5 !important;
    text-align: left !important;
    background: #ffffff !important;
}

.top-bar .dropdown-menu ul li:last-child a {
    border-bottom: none !important;
}

.top-bar .dropdown-menu ul li a:hover {
    background-color: #f8f9fa !important;
    color: #094990 !important;
    padding-left: 20px !important;
    text-align: left !important;
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .top-bar .has-dropdown .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .top-bar .dropdown-menu ul li a {
        padding: 8px 0 !important;
        border-bottom: none !important;
        color: #fff !important;
        background: transparent !important;
    }
    
    .top-bar .dropdown-menu ul li a:hover {
        background-color: transparent !important;
        color: #fff !important;
        padding-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .size-estimation-menu,
    .brand-synergix-menu,
    .research-vaults-menu,
    .data-quality-menu,
    .about-menu,
    .services-menu {
        min-width: 100vw !important;
        width: 100vw !important;
    }

    .mega-menu-row {
        max-height: 300px;
        overflow-y:scroll;
    }
    .estimation-left-column,
    .estimation-right-column {
        padding: 20px;
    }
    
    .estimation-section {
        width: 47%;
    }
    
    /* About menu with 3 sections - tablet layout */
    .about-menu .estimation-section {
        width: 30%;
        margin-right: 3%;
    }
    
    .about-menu .estimation-section:last-child {
        margin-right: 0;
    }
    
    /* Services menu with 2 sections - tablet layout */
    .services-menu .estimation-section {
        width: 47%;
        margin-right: 3%;
    }
    
    .services-menu .estimation-section:last-child {
        margin-right: 0;
    }
    
    .estimation-section h4 {
        font-size: 18px;
    }
    
    .estimation-section ul li a {
        font-size: 13px;
    }
    
    .action-text a {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .size-estimation-menu,
    .brand-synergix-menu,
    .research-vaults-menu,
    .data-quality-menu,
    .about-menu,
    .services-menu {
        min-width: 100vw !important;
        width: 100vw !important;
    }
    
    .estimation-left-column,
    .estimation-right-column {
        padding: 15px;
        min-height: auto;
    }
    
    .estimation-section {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* About menu with 3 sections - mobile layout */
    .about-menu .estimation-section {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* Services menu with 2 sections - mobile layout */
    .services-menu .estimation-section {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .estimation-action-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .action-icon {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .action-icon i {
        font-size: 16px;
    }
    
    .action-text a {
        font-size: 14px;
    }
}
