/* ============================
   MOBILE NAVIGATION (ONLY MOBILE)
============================= */
@media (max-width: 991px) {

    /* Hide desktop menu behavior */
    #mainMenu {
        position: absolute !important;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 999999;
        border-bottom: 1px solid #eee;
    }

    /* Menu open */
    #mainMenu.open {
        max-height: 600px !important;
        overflow: visible !important;
    }

    /* UL + LI styling */
    #mainMenu nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #mainMenu nav ul li {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    #mainMenu nav ul li a {
        color: #000;
        text-decoration: none;
        display: block;
    }

    /* Dropdown menu */
    #mainMenu .dropdown-menu {
        display: none;
        background: #f8f8f8;
        padding-left: 20px;
    }

    #mainMenu .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Arrow */
    /* #mainMenu .dropdown > a::after {
        content: "▾";
        float: right;
        opacity: 0.7;
    } */

    

    /* Hamburger icon */
    .mobile-nav-toggle {
        display: block;
        width: 30px;
        position: absolute;
        right: 15px;
        top: 20px;
        z-index: 1000000;
        cursor: pointer;
    }

    .mobile-nav-toggle span {
        height: 3px;
        background: #000;
        margin: 6px 0;
        display: block;
        transition: 0.3s;
    }

    /* Cross animation */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Center logo in mobile */
    #logo {
        position: absolute;
        left: 50%;
        top: 12px;
        transform: translateX(-50%);
        z-index: 10000;
    }

    #logo img {
        height: 45px;
        width: auto;
    }

    /* PUSH SLIDER BACKWARD — IMPORTANT */
    #hm-slider,
    .owl-carousel,
    .owl-stage-outer,
    .owl-stage,
    video,
    .overlay-b {
        z-index: 1 !important;
        position: relative !important;
    }

    /* BRING MENU ABOVE EVERYTHING */
    header#header,
    #header-wrap,
    #mainMenu {
        z-index: 9999999 !important;
        position: relative;
    }
}

/* DESKTOP MUST NOT CHANGE */
@media (min-width: 992px) {
    .mobile-nav-toggle {
        display: none !important;
    }
}
@media (max-width: 991px) {

    /* Perfect center alignment for logo */
    #logo {
        position: relative !important;
        left: 50% !important;
        top: -20px !important;
        /* transform: translateX(-50%) !important; */
        z-index: 10000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #logo img {
        max-height: 45px !important;
        width: auto !important;
    }

    /* Move hamburger to right cleanly */
    .mobile-nav-toggle {
        right: 15px !important;
        top: 15px !important;
    }
}
@media (max-width: 991px) {

    /* Remove header gaps */
    header#header,
    #header-wrap,
    #header .container {
        padding: 0 !important;
        margin: 0 !important;
        height: 60px !important;   /* header exact height */
    }

    /* Push menu directly below header */
    #mainMenu {
        top: 60px !important;
    }

    /* Pull slider up, remove gap */
    #hm-slider,
    .sld-hm {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Dropdown arrow (mobile only) */
@media (max-width: 991px) {

    /* Arrow icon */
    #mainMenu .dropdown-arrow {
        float: right;
        width: 25px;
        height: 25px;
        display: inline-block;
        background: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat center;
        background-size: 18px;
        cursor: pointer;
        margin-top: -3px;
    }

    /* Rotate arrow when open */
    #mainMenu .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Ensure layout stays correct */
    #mainMenu .dropdown {
        position: relative;
    }

    /* 
    Do NOT affect desktop */
}

/* ===== Social Media Icons ===== */
.social-icons {
  margin: 20px 0;
  position: relative;
  left: 80px;
  bottom: 20px;
}
/* CENTER SOCIAL ICONS ON MOBILE */
@media (max-width: 767px) {
    .social-icons {
        /* position: static !important; */
        margin: 20px auto !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        position: relative;
        left: -15%;

    }
    

    .social-icons a {
        margin: 0 5px !important;
    }
}
.social-icons a {
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  margin: 0 8px;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  line-height: 38px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #1E5D96;
  color: #ffffff;
  border-color: #1E5D96;
}

/* ===== Copyright ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
 
}

.footer-bottom p {
  color: #cfd6e0;
  font-size: 14px;
  margin: 0;
   position: relative;
  left: 30px;
}
}

/* =====================================================
      TABLET ONLY (768px - 991px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 991px) {

    /* ---------------- HEADER ---------------- */

    #header,
    #header-wrap,
    #header .container {
        height: 75px !important;
        padding: 0 20px !important;
    }

    /* Center logo nicely */
    #logo {
        position: absolute !important;
        left: 50% !important;
        top: 15px !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
    }

    #logo img {
        max-height: 60px !important;
    }

    /* Hamburger on right */
    .mobile-nav-toggle {
        right: 20px !important;
        top: 22px !important;
    }

    /* Adjust main menu container */
    #mainMenu {
        top: 75px !important;
        background: #fff !important;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    #mainMenu nav ul li {
        padding: 14px 20px !important;
        border-bottom: 1px solid #eee;
    }

    /* ---------------- SLIDER ---------------- */

    .sld-hm,
    #hm-slider {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    div#hm-slider .slide {
        height: 70vh !important;
    }

    div#hm-slider .slide video {
        object-fit: cover;
        height: 100% !important;
        width: 100% !important;
    }

    .sld-cap-s h3 {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .sld-cap-s p {
        font-size: 16px !important;
        width: 90% !important;
    }

    /* ---------------- HOME SECTIONS ---------------- */

    /* About Section */
    #about p,
    section p {
        width: 90% !important;
        font-size: 16px !important;
        line-height: 26px !important;
    }

    .heading h4 {
        font-size: 26px !important;
    }

    /* Services Grid */
    .post-3-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .post-item-description h1,
    .post-item-description h2 {
        font-size: 20px !important;
    }

    .post-item-description p {
        font-size: 15px !important;
        line-height: 24px !important;
    }

    /* Products Grid */
    .post-3-columns .post-item:nth-child(3) {
        margin-top: 20px !important;
    }

    /* Projects Carousel */
    .team-members .team-member {
        margin-bottom: 25px;
    }

    .team-desc h4 {
        font-size: 20px !important;
    }

    /* ---------------- CLIENTS LOGOS ---------------- */

    .client_logo_section .carousel {
        margin-top: 20px !important;
    }

    .clientsLogos {
        height: 70px !important;
        background-size: contain !important;
    }

    /* ---------------- FOOTER ---------------- */

    .footer-sections {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between !important;
        text-align: left !important;
    }

    .footer-col {
        width: 45% !important;
        margin-bottom: 30px !important;
    }

    .footer-bottom img {
        max-height: 60px;
    }

    .footer-bottom {
        text-align: center !important;
        margin-top: 20px;
    }
