/* sora-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-300.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-300.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-500.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-700.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* sora-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('/wp-content/themes/Listandsell/fonts/sora/sora-v17-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

.form-heading{
	    max-width: 800px;
    margin: 0 auto;
   color:#fff !important;
	padding-bottom:15px;
}

.agbwrapper {
    padding: 140px 0 80px;
    text-align: left !important;
}
.agbwrapper .section-header {
    text-align: left;
    margin-bottom: 60px;
}


.agbwrapper .section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    padding-top: 8px;
}
.agbwrapper h1{
    color:#fff;
}
a.btn.btn-primary.desktop-only{
        padding: 9px 24px;
}
p.form-link {
        display: block !important;
    text-align: center !important;
}
a {
    color: #3b82f6;
    text-decoration: none;
}
a:hover {
    color: #fff;
}
.mission-box > p{
       font-size: 16px; 
}
.certifications-section{
    padding-top: 0;
}
 
/* ================== Mobile Menu ===================== */

/* ========================================
   MEGA MENU STYLES (Click Based)
======================================== */

.nav-item-has-children {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    top: 2px;
}

li.nav-item-has-children a.mega-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Arrow Icon - NO ANIMATION TRANSITION */
.chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid var(--text-gray);
    transform: rotate(45deg);
    top: -1px;
    position: relative;
}

/* Rotate chevron when active */
.nav-item-has-children.active .chevron {
    transform: rotate(225deg);
    border-color: #9ca3af;
    top: 2px;
}

/* The Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 83%;
    left: 50%;
    /* Kept your exact positioning request */
    transform: translateX(-38%) translateY(31px);
    width: 1200px;
    background: #10192c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    
    /* Hidden State */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Kept slide/fade transition for the popup itself */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

/* Active/Open State */
.mega-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Links Column Layout */
.mega-menu-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mega-column h3 {
    color: var(--primary-blue);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.mega-column ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: var(--text-gray);
    font-size: 14px;
    text-decoration: none;
    /* REMOVED ANIMATION TRANSITION */
}

.mega-column ul li a:hover {
    color: var(--text-white);
    /* REMOVED padding shift animation */
}

/* Contact Box CTA Styles */
.mega-menu-cta {
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info-item {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-info-item strong {
    color: var(--text-white);
    display: block;
    font-size: 13px;
}

.contact-info-item a {
    color: var(--text-gray);
    text-decoration: none;
}
.contact-info-item a:hover {
       color: #ffffff;
}

.contact-email {
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 5px;
    text-decoration: none;
}
.contact-email:hover {
    text-decoration: underline;
}
.footer-links ul{
    gap:0 !important
}
.footer-links h4{
       font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px; 
}
 .footer-links a,  .footer-links span {
    font-size: 13px;
    color: var(--text-gray);
}
a.btn.btn-primary.megactabtn {
    color: #fff;
}
/* ========================================
   RESPONSIVE DESIGN (Tablet & Mobile)
========================================= */
.logo-icon{
        width: auto;
    height: auto;
}
.footer-brand > p{
        font-size: 14px !important;
}
    .footer-legal a{
    color: #9ca3af;
    text-decoration: none; 
    }
    .badge-small2 {
    color: #9ca3af;
}
.header{
       border-bottom: 2px solid #ffffff26; 
}
.logo-icon a {
    display: flex;
}
div#wpforms-18 {
    margin: 0 0 27px 0;
}
.page-id-42 .contact-cards-section{
     margin-top: 0;   
}
@media (max-width: 1024px) {
    .mega-menu {
        width: 600px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        max-width: 395px;
        height: 100vh;
        background: #0f121a;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .btn-primary {
        width: 100%;
        margin-top: 20px;
    }

    /* Reset mobile styles for all list items */
    .nav-links > li {
        width: 100%;
        margin-bottom: 15px;
        position: static;
        display: block;
    }

    /* Mega menu trigger link */
    .nav-item-has-children a.mega-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Chevron for mobile */
    .nav-item-has-children .chevron {
        position: static;
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    /* Rotate chevron when open on mobile */
    .nav-item-has-children.open .chevron {
        transform: rotate(225deg);
        top: 4px;
    }

    /* Mobile Mega Menu Transformation */
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
        display: block !important; /* Always block for animation */
        grid-template-columns: 1fr;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 15px;
        margin: 10px 0;
        transition: max-height 0.4s ease, padding 0.3s ease;
        pointer-events: auto;
    }

    /* Open state for mobile mega menu */
    .mega-menu.open {
        max-height: max-content; /* Adjust based on content */
        padding: 15px 0 15px 1px;
    }

    .mega-menu-links {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .mega-column {
        margin-bottom: 20px;
    }

    .mega-column h3 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mega-column ul li {
        margin-bottom: 8px;
    }

    .mega-column ul li a {
        font-size: 13px;
        padding: 1px 0;
        display: block;
        color: #ccc;
    }

    .mega-column ul li a:hover {
        color: #fff;
        padding-left: 5px;
    }

    .mega-menu-cta {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0 0 0;
        background: transparent;
        margin-top: 20px;
        display:none
    }

    /* Remove desktop-specific positioning */
    .nav-item-has-children {
        position: static;
        height: auto;
        top: 0;
    }
    .nav-item-has-children a.mega-trigger{
        padding: 0;
        border-bottom: 0px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links > li{
                margin-bottom: 0;
    }
    .mega-menu {
    margin: 0;
}
.nav-links a{
      font-size: 15px;  
}
.mega-menu.open {
    padding-bottom: 0;
}
.logo-icon img {
    height: 32px;
}

    div#wpforms-18 {
    margin: 0 0 22px 0;
}
div#wpforms-138 {
    margin-top: 0;
}
.service-page .specializations.reveal-right.box-list>h2{
        font-size: 22px;
}
}

/* Mobile Hamburger Animation */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}