/* Custom Mega Menu Layout Optimization - Scoped to the 2nd Menu Item (Çözümler) */

/* Target only the mega menu inside the 2nd list item of the navbar */
.navbar-wrapper ul li:nth-child(2) .mega-menu.mega-menu-company {
    min-width: 1200px !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu .left {
    flex: 1 !important;
    padding-right: 40px !important;
    max-width: 70% !important;
}

/* Link Wrap Container - Vertical Stack */
.navbar-wrapper ul li:nth-child(2) .mega-menu-link-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
}

/* Service Cards - 2x2 Grid Layout */
.navbar-wrapper ul li:nth-child(2) .mega-menu-service-cards {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 24px 30px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Ensure service cards take full width and have proper spacing */
.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card {
    width: 100% !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px) !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card .icon {
    flex-shrink: 0 !important;
    width: 48px !important;
    height: 48px !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card .content {
    flex: 1 !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card h2 {
    font-size: 17px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-service-card p {
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* Links Section - 2 Groups Side by Side */
.navbar-wrapper ul li:nth-child(2) .mega-menu-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px !important;
    width: 100% !important;
}

/* Individual Link Column Group */
.navbar-wrapper ul li:nth-child(2) .mega-menu-link {
    min-width: 0 !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-link h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    color: #1a1a1a !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 10px !important;
}

/* Split the list itself into 2 columns */
.navbar-wrapper ul li:nth-child(2) .mega-menu-link ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    columns: 2 !important;
    -webkit-columns: 2 !important;
    -moz-columns: 2 !important;
    column-gap: 30px !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-link ul li {
    margin-bottom: 11px !important;
    /* Prevent items from breaking between columns */
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: block !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-link ul li:last-child {
    margin-bottom: 0 !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-link ul li a {
    font-size: 18px !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: block !important;
    line-height: 1.4 !important;
}

.navbar-wrapper ul li:nth-child(2) .mega-menu-link ul li a:hover {
    color: #ff0000 !important;
    padding-left: 4px !important;
}

/* Right side adjustments */
.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .right {
    flex-shrink: 0 !important;
    width: 30% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .right .mega-menu-ads {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .right .mega-menu-ads img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    display: block !important;
}

.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .right .mega-menu-ads h2,
.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .right .mega-menu-ads p {
    width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Footer spacing */
.navbar-wrapper ul li:nth-child(2) .mega-meu-footer {
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid #e5e5e5 !important;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .navbar-wrapper ul li:nth-child(2) .mega-menu.mega-menu-company {
        min-width: 1000px !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu-links {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 1200px) {
    .navbar-wrapper ul li:nth-child(2) .mega-menu.mega-menu-company {
        min-width: 800px !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu-links {
        grid-template-columns: 1fr 1fr !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu .left {
        max-width: 65% !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu .right {
        width: 35% !important;
    }
}

@media (max-width: 992px) {
    .navbar-wrapper ul li:nth-child(2) .mega-menu.mega-menu-company {
        min-width: auto !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu-service-cards {
        grid-template-columns: 1fr !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu-links {
        grid-template-columns: 1fr !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu-link ul {
        columns: 1 !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu .left {
        max-width: 100% !important;
        padding-right: 0 !important;
    }

    .navbar-wrapper ul li:nth-child(2) .mega-menu .right {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px !important;
    }
}

.footer-area .footer-bottom .footer-contact-info .footer-contact-info-item+.footer-contact-info-item {
    margin-top: unset !important;
}
.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .mega-menu-inner .mega-menu-link-wrap {
    border-bottom: unset !important;
}

.header-area .navbar-wrapper ul li:nth-child(2) .mega-menu .mega-menu-inner .right a {
    display: inline-block;
    border-bottom: none;
}