@media (max-width: 1200px){
 .contact-list a span {
    display: none;
}

  .contact-list{
    gap: 12px;
  }

  .contact-list img{
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 2px solid #f5c34a;
    border-radius: 50%;
  }

  .header-call.y-btn{
    padding: 10px 8px;
  }

  .nav-menu li{
    padding: 10px;
  }



  /**/
  /*Footer*/
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
}

.footer-info-text{
    margin-bottom: 16px;
    max-width: 100%;
}

 .footer-col:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

.footer-col:not(:first-child) {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }


  .home-blog-content-section.blog-posts-wrapper {
        grid-template-columns: repeat(2, 1fr)!important;
    }

    .blog-card img{
      height: auto!important;
    }

    .home-blog-card{
      padding: 48px 60px!important;
    }
}

/*===================================*/
@media (min-width: 1080px){

.nav-menu > li > a {
    position: relative;
    font-size: 16px;
}


/* Consolidated — 4-column grid, ONLY applies here (min-width: 1080px) */
#menu-item-46 > .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);

    box-sizing: border-box;

    width: 100%;
    max-width: 1224px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
  

    background: #123678;
    padding-top: 20px;
    padding-bottom: 20px;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#menu-item-46 > .sub-menu > li {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

#menu-item-46:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/*=========*/

.nav-menu li::after {
    content: "";
    position: absolute;
    inset: -6px -12px;
    background-image: url("../img/yp.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left;
    opacity: 0;
    transform: scale(0.96) rotate(-1deg);
    transition: opacity 0.2s ease, transform 0.25s ease;
    z-index: -1;
}

.nav-menu li:hover::after {
    opacity: 1;
    transform: scale(1) rotate(-1deg);
}



}

/*===================================*/
@media (max-width: 1080px){
  .submenu-icon {
        display: none;
    }
  .header-call.y-btn{
    padding: 10px!important;
  }

  .logo img{
    width: 140px;
    height: auto;
  }

  /*Header*/
  .h-mobile{
    display: block;
  }

  .h-desktop{
    display: none;
  }

  .mobile-nav{
    display: flex;
    gap: 24px;
  }

  .hamburger {
    display: block;
  }

  #desktop-btn {
    display: none;
  }

  #mobile-btn {
    display: block;
    padding: 16px;
  }

  /* SMOOTH MENU PANEL */
  .main-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    border: 4px solid #f5c34a;
    border-radius: 12px;
  }

  .main-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px;
    border-radius: 8px;
    background-color: #1a202c;
  }

  /* Menu items */
  .nav-menu li {
    position: relative;
    list-style: none;
    padding: 10px 20px;
  }

  .nav-menu li a {
    color: #ffffff!important;
  }

  .nav-menu li:hover{
    background-color: #123678;
    border-radius: 8px;
  }

  

  /* Remove the round icon on mobile */
  .nav-menu li::before {
    display: none;
    content: none;
  }

  /* Parent link layout (text + arrow) */
  .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Arrow only for items that have children */
  .menu-item.has-children > a::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 10px;
    flex-shrink: 0;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }

  .menu-item.has-children:hover > a::after,
  .menu-item.has-children.open > a::after {
    border-color: #123678;
  }

  /* Rotate arrow when open */
  .menu-item.has-children.open > a::after {
    transform: rotate(-135deg);
  }

  /* SUBMENU AS ACCORDION (no overlap, no absolute positioning) */
  #menu-item-12,
  .menu-item {
    position: relative !important;
  }

  .sub-menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    grid-template-columns: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .menu-item.open > .sub-menu {
    max-height: 1000px;
    padding: 6px 0 0px 0px !important;
  }

  .sub-menu li {
    padding: 10px 0px;
  }

  .sub-menu li::before {
    display: none;
    content: none;
  }


/**/
  .sub-menu li {
        position: static; /* let the <a> become the positioning context instead */
    }

    .sub-menu li > a {
        position: relative;
        display: inline-block; /* shrink to fit text width */
    }

    .sub-menu li::after {
        display: none; /* remove the li-based background */
    }

    .sub-menu li > a::after {
        content: "";
        position: absolute;
        inset: -6px -12px;
        background-image: url("../img/yp.webp");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: left;
        opacity: 0;
        transform: scale(0.96) rotate(-1deg);
        transition: opacity 0.2s ease, transform 0.25s ease;
        z-index: -1;
    }

    .sub-menu li:hover > a::after {
        opacity: 1;
        transform: scale(1) rotate(-1deg);
    }

    .sub-menu li:hover > a{
      color: #1a202c!important;
    }

     .sub-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* stacks li's top-to-bottom, each shrink-wrapped left */
    }

    .sub-menu li {
        width: fit-content; /* li only as wide as its text content */
    }



}
/*==================================*/
@media (max-width: 1024px){
.pb-section{
  padding-top: 80px;
  padding-bottom: 80px;
}

  /*========================*/
/*footer*/
 /* 2nd & 3rd columns */
.footer-col:nth-child(2),
.footer-col:nth-child(3) {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

/* 4th column */
.footer-col:nth-child(4) {
    flex: 0 0 100%;
    max-width: 100%;
}
.footer-bottom-div{
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
} 

 .footer-bottom p{
  text-align: left;
 }

/*HOME==============================*/



}    
/*==================================*/
@media (max-width: 768px) {
.home-blog-content-section.blog-posts-wrapper {
        grid-template-columns: 1fr!important;
    }

    
    .home-blog-card{
      padding: 60px 72px!important;
    }



}
/*=================================*/
@media (max-width: 576px){

.header-call.yellow-btn span{
  display: none;
}

.header-call{
  gap: 0;
}

.logo img{
  width: 175px;
  height: auto;
}

.footer-inner {
  gap: 48px;
}

.footer-col {
    flex: 0 0 100%!important;
    max-width: 100%!important;
}

/*
.footer-info{
  align-items: center;
}

.footer-info-text{
  text-align: center;
}


.footer-headings{
  text-align: center;
}

.footer-menu ul ,
.get-in-touch,
.footer-menu{
    list-style: none;
    padding: 0;
    margin: 0px auto 0;
    width: fit-content;
    max-width: 100%;
    text-align: left;
}

.footer-menu li,
.get-in-touch,
.footer-menu {
    text-align: left;
}
*/
/*home----------------*/
.home-hero-content{
  max-width: 100%;
}

.home-hero p{
  max-width: 100%;
}

.home-hero .header-call{
  gap: 12px;
}


}

/*===============================*/
@media (max-width: 480px) {
  .contact-list{
    display: none;
  }

  .home-hero {
        background-image: url("../img/home-hero-mobile.webp");
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
    }

    .home-hero::before {
        background: rgba(18, 54, 120, 0.9);
    }
}

