/* Mega Menu Styles */
.mega-menu,
.industries-mega-menu,
.company-mega-menu {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 140px; /* Initial position with contact header */
    width: 70vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* When header is sticky (scrolled) */
.main-header.sticky .mega-menu,
.main-header.sticky .industries-mega-menu,
.main-header.sticky .company-mega-menu {
    top: 80px;
}

.sbmenu:hover .mega-menu {
    display: block;
    transition: opacity 0.3s ease;
}

.mega-menu-content {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.mega-menu-tabs {
    flex: 0 0 30%;
    min-width: 200px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 1rem;
    max-height: 50vh;
    overflow-y: auto;
}

.mega-menu-tabs::-webkit-scrollbar {
    width: 4px;
}

.mega-menu-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mega-menu-tabs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.mega-menu-tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mega-menu-tab:hover,
.mega-menu-tab.active {
    background: #f8f9fa;
    color: #2b2350;
    transform: translateX(5px);
}

.mega-menu-tab::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #2b2350;
    opacity: 0;
    transition: all 0.3s ease;
}

.mega-menu-tab:hover::after,
.mega-menu-tab.active::after {
    opacity: 1;
}

.mega-menu-details {
    display: flex;
    flex: 1;
    gap: 1.5rem;
}

.mega-menu-content-tab {
    display: none;
    flex: 1;
    min-width: 35%;
    padding-left: 1.5rem;
    padding-right: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu-image {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mega-menu-image a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.mega-menu-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mega-menu-image img:hover {
    transform: scale(1.05);
}

.mega-menu-content-tab::-webkit-scrollbar {
    width: 4px;
}

.mega-menu-content-tab::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mega-menu-content-tab::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.mega-menu-content-tab.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-content-tab h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #2b2350;
    font-weight: 600;
}

.mega-menu-content-tab p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}

.mega-menu-subtabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.mega-menu-subtab {
    display: block;
    padding: 0.45rem 0;
    color: #2b2350;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease;
}

.mega-menu-subtab:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Company Mega Menu Styles */
.company-menu-details {
    flex: 1;
    padding-right: 30px;
}

.company-header {
    margin-bottom: 30px;
}

.company-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.company-header p {
    color: #666;
    font-size: 16px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.company-item {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.company-item:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
}

.company-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
}

.company-title i {
    margin-right: 10px;
    font-size: 20px;
    color: #007bff;
}

.company-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.company-mega-menu .mega-menu-image {
    width: 300px;
}

.company-mega-menu .mega-menu-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Dark Mode Styles */
.dark-mode .mega-menu,
.dark-mode .industries-mega-menu,
.dark-mode .company-mega-menu {
    background: #1a1a1a;
}

.dark-mode .company-header h3 {
    color: #fff;
}

.dark-mode .company-header p {
    color: #ccc;
}

.dark-mode .company-item {
    background: #2a2a2a;
}

.dark-mode .company-item:hover {
    background: #333;
}

.dark-mode .company-title {
    color: #fff;
}

.dark-mode .company-item p {
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .mega-menu,
    .industries-mega-menu,
    .company-mega-menu {
        width: 90vw;
    }

    .mega-menu-content {
        flex-direction: column;
        padding: 20px;
    }

    .company-menu-details {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Awards Carousel Styles */
.awards-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 200px;
}

.award-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.award-item img:hover {
    transform: scale(1.05);
}

.awards-carousel .owl-nav {
    display: none;
}

.awards-carousel .owl-dots {
    position: absolute;
    bottom: -20px;
    width: 100%;
    text-align: center;
}

.awards-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 4px;
}

.awards-carousel .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.awards-carousel .owl-dots .owl-dot.active span {
    background: #2b2350;
    transform: scale(1.2);
}

/* Dark Mode Support */
.dark-mode .awards-carousel .owl-dots .owl-dot span {
    background: #666;
}

.dark-mode .awards-carousel .owl-dots .owl-dot.active span {
    background: #fff;
} 