/* Ported from resources/views/frontend/layouts/partials/header.blade.php <style> */

    .logo img {
        height: 60px;
        width: auto;
        max-width: 220px;
        object-fit: contain;
        display: block;
    }

    @media (max-width: 767px) {

        .logo img {
            max-height: 40px !important;
            max-width: 150px;
        }
    }

    .department-item {
        border-bottom: 1px solid #d9d9d9;
        padding: 15px 0;
    }

    .department-item a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #222;
        font-weight: 600;
    }

    .department-item svg {
        width: 22px !important;
        height: 22px !important;
    }


    /* SERVICES MEGA MENU */

    .mega-menu {
        position: relative;
    }

    .mega-dropdown {

        position: absolute;
        top: calc(100% + 4px);
        max-width: 95vw;
        background: #fff;
        border: 1px solid #e8edf3;
        border-radius: 14px;
        padding: 16px;
        display: none;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        box-shadow:
            0 15px 35px rgba(0, 0, 0, .08),
            0 30px 60px rgba(0, 0, 0, .08);

        z-index: 9999;
        max-height: 540px;
        overflow-y: auto;
        animation: megaFade .25s ease;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(1040px, 95vw);

    }

    .mega-menu:hover .mega-dropdown {
        display: grid;
    }

    /* Scrollbar */

    .mega-dropdown::-webkit-scrollbar {
        width: 5px;
    }

    .mega-dropdown::-webkit-scrollbar-track {
        background: #f5f5f5;
    }

    .mega-dropdown::-webkit-scrollbar-thumb {
        background: #2f8d46;
        border-radius: 20px;
    }

    /* Card */

    .mega-dropdown .service-card {

        background: #fff;
        border: 1px solid #edf2f7;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: .35s;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
        display: flex !important;
        flex-direction: column !important;
        min-height: 220px;
        margin: 0;
        padding: 0;
    }

    .mega-dropdown .service-card:hover {

        border-color: #2f8d46;
        transform: translateY(-5px);
        box-shadow: 0 12px 28px rgba(47, 141, 70, .15);

    }

    /* Heading */

    .service-heading {
        background: linear-gradient(90deg, #2f8d46, #3da857);
        color: #fff;
        padding: 9px 14px;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .4px;
        line-height: 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        margin: 0;
        border-radius: 10px 10px 0 0;


    }

    /* List */

    .mega-dropdown .service-card ul {
        list-style: none !important;
        margin: 10px 0;
        padding: 0 16px;
        flex: 1;
        padding: 10px 16px;
    }

    .mega-dropdown .service-card ul li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;

    }

    .mega-dropdown .service-card ul li:last-child {
        border-bottom: none;

    }

    .mega-dropdown .service-card ul li::before {
        content: "✔";
        color: #27ae60;
        font-size: 10px;
        flex-shrink: 0;
        margin-top: 4px;
    }

    /* Button */
    .submenu-view-btn {
        display: flex;
        align-items: center;
        padding: 12px 0 12px 18px !important;
        color: #2f8d46;
        font-size: 13px;
        font-weight: 600;
        border-top: 1px solid #eef2f5;
        background: #fafcfa;
        text-decoration: none;
    }

    .submenu-view-btn:hover {
        background: #f2faf4;
    }

    .submenu-view-btn::after {

        transition: .30s;
    }

    .mega-dropdown .service-card:hover .submenu-view-btn {

        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .08);

    }

    .submenu-view-btn:hover::after {

        transform: translateX(5px);

    }

    /* Animation */

    @keyframes megaFade {

        from {

            opacity: 0;

            transform: translate(-50%, 12px);

        }

        to {

            opacity: 1;

            transform: translate(-50%, 0);

        }

    }

    /* Responsive */

    @media(max-width:1100px) {

        .mega-dropdown {

            width: 95vw;

            grid-template-columns: repeat(2, 1fr);

        }

    }

    @media(max-width:768px) {

        .mega-dropdown {

            position: static;

            transform: none;

            width: 100%;

            display: block;

            padding: 12px;

            max-height: none;

            border-radius: 12px;

        }

        .mega-dropdown .service-card {
            min-height: auto;
            margin-bottom: 12px;

        }

    }


    .mega-dropdown .service-card ul {

        display: block !important;

        position: relative !important;

        visibility: visible !important;

        opacity: 1 !important;

        height: auto !important;

        width: 100% !important;

        overflow: visible !important;

        transform: none !important;

        float: none !important;

        left: auto !important;

        top: auto !important;

        background: transparent !important;

        box-shadow: none !important;

        margin: 10px 0 !important;

        padding: 0 16px !important;

    }

    .mega-dropdown .service-card ul li {

        display: flex !important;

        align-items: center;

        gap: 8px;

        position: relative !important;

        float: none !important;

        width: 100% !important;

        padding: 8px 0 !important;

        color: #555 !important;

        border-bottom: 1px solid #f2f2f2;

    }

    .mega-dropdown .service-card ul li:last-child {

        border-bottom: none;

    }

    .mega-dropdown {
        top: 100%;
    }

    .mega-footer {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid #e8e8e8;
        margin-top: 25px;
        padding-top: 25px;
    }

    .explore-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-width: 200px;
        height: 46px;
        padding: 0 25px;
        background: #198754;
        color: #fff !important;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        text-align: center;
        gap: 8px;
    }

    .explore-btn:hover {
        background: #146c43;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(25, 135, 84, .35);
    }

    .explore-btn i {
        margin-left: 4px;
        transition: .3s;
    }

    .explore-btn:hover i {
        transform: translateX(5px);
    }

    .mega-dropdown .service-card ul li.hidden-submenu-item {
        display: none !important;
    }

    .mega-dropdown .service-card ul li.hidden-submenu-item.show {
        display: flex !important;
    }

    .mega-menu {
        position: relative;
    }

    .mega-menu>a {
        display: flex;
        align-items: center;
    }

    .mega-menu .open-dropdown {
        background: none;
        border: 0;
        cursor: pointer;
        padding: 0 0 0 5px;
    }

    .mega-dropdown .service-card:hover .submenu-view-btn {
        transform: none;
        box-shadow: none;
    }

    /* ===========================
   MOBILE HEADER ONLY
=========================== */

@media only screen and (max-width:767px){

    html,
    body{
        margin:0;
        padding:0;
        overflow-x:hidden;
    }

    .site-header{
        position:sticky;
        top:0;
        left:0;
        width:100%;
        background:#fff;
        z-index:9999;
        border-bottom:1px solid #ececec;
    }

    .site-header .container{
        display:flex;
        justify-content:space-between;
        align-items:center;
        min-height:64px;
        padding:8px 12px;
    }

    /* Logo */

    .logo{
        flex:0 0 auto;
    }

    .logo img{
        width:140px !important;
        max-width:140px !important;
        height:auto;
        display:block;
    }

    /* Hide Desktop Menu */

    .site-header nav{
        display:none;
    }

    /* Right Icons */

    .header-contact-number{
        display:flex;
        align-items:center;
        gap:16px;
        margin-left:auto;
    }

    .header-contact-number>a{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-decoration:none;
        padding:0;
        min-width:42px;
    }

    .whatsapp-btn img,
    .contact-btn img{
        width:24px !important;
        height:24px !important;
    }

    .whatsapp-btn .txt,
    .contact-btn .txt{
        display:block;
        font-size:10px;
        margin-top:3px;
        color:#000;
        font-weight:600;
        line-height:1;
    }

    /* Hide Extra Buttons */

    .reqcallback-btn,
    .g-wrapper_translate,
    .emergency-btn-box-mb{
        display:none !important;
    }

    /* Remove Tap Highlight */

    a,
    button{
        -webkit-tap-highlight-color:transparent;
        outline:none;
    }

    a:focus,
    button:focus,
    a:active,
    button:active{
        outline:none;
        box-shadow:none;
        transform:none;
    }

    /* Bottom Sticky Menu */

    .mobile-sticky-links{
        position:fixed;
        bottom:0;
        left:0;
        width:100%;
        background:#fff;
        border-top:1px solid #eee;
        box-shadow:0 -2px 8px rgba(0,0,0,.08);
        z-index:99999;
    }

    .mobile-sticky-links ul{
        display:flex;
        justify-content:space-between;
        margin:0;
        padding:0;
        list-style:none;
    }

    .mobile-sticky-links li{
        flex:1;
    }

    .mobile-sticky-links a{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        padding:10px 0;
        font-size:11px;
        font-weight:600;
        color:#222;
        text-decoration:none;
    }

    .mobile-sticky-links svg{
        width:22px;
        height:22px;
        margin-bottom:5px;
    }

    body{
        padding-bottom:72px;
    }
}
