@media (max-width: 768px) {
  
    .is-style-line-left{
        margin-top: 24px!important;
    }
    .assistance-card{
        margin-bottom: 24px!important;
    }
    .visa-container-horizontal .tab.active::after {
        left: unset!important;
    }
    .page-content a , .page-content strong{
        font-size: 0.875rem!important;
    }
      .link-h4 a{
    font-size: 1.25rem!important;    
    }
    body .gform_wrapper .top_label .gfield_label, body .gform_wrapper label.gfield_label, body .gform_wrapper legend.gfield_label{
        margin-bottom: 24px!important;
    }
    .contact-title{
        font-size:1.5rem!important;
    }
    .contact-box-title{
        font-size: 1.25rem!important;
    }
    .wp-block-buttons>.wp-block-button.wp-block-button__width-25{
        width: 100%!important;
    }
    /* --- SHARE SECTION --- */
    .share-section {
        padding: 20px!important;
        margin-top: 20px;
    }

    .share-section h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .share-options {
        flex-direction: column;
        gap: 20px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .share-options > div:first-child {
    align-self: flex-start; /* Ensures left alignment */
    text-align: left;
    width: 100%;
}
:where(.wp-block-columns.is-layout-flex){
        gap: 0px!important;
    }

.social-icons {
    justify-content: flex-start; /* Left-align icons */
    flex-wrap: wrap;
    gap: 10px;
}
    .copy-link {
        width: 100%;
    }

    .input-wrapper {
        width: 100%;
    }

    .link-input {
        padding: 10px 60px 10px 10px;
        font-size: 12px;
    }

    .copy-button {
        padding: 0 12px;
        font-size: 12px;
    }

    .card-inset-image{
        overflow: hidden;
        padding: 16px!important;
    }
    .parent-pageid-56 .card-inset-image h3{
        font-size: 1.25rem!important;
        margin-bottom: 16px!important;
    }
    .card-body strong{
        font-size:0.875rem!important;
    }
    .card-inset-image p{
        line-height: 1.5!important;
    }
    .content-block a{
        font-size: 0.875rem!important;
    }
    .content ul{
        font-size: 0.875rem!important;
    }
    .cta-text strong{
        font-size: 0.875rem!important;
    }
    body , p{
        font-size: 0.875rem!important;
    }
    .nav-dropdown a:hover{
        width:100%!important;
        padding: 8px!important;
    }
    .main,
    .info-tabs,
    .services-section,
    .immigration-services-section,
    .updates-section{
        margin: 20px 16px 0px 16px!important;
    }
    .immigration-services-section{
        margin: 60px 16px!important;
    }
    .assistance-card .card-content{
        flex: 0 0 65%!important;
        padding: 25px 20px 0px 20px;
    }
    .assistance-image img{
        min-width: 115px!important;
    }
    .services-section{
        padding: 40px 0px!important;
    }
    .bottom-space-100{
        margin-bottom: 60px!important;
    }
    .top-space-100{
        margin-top:60px!important;
    }
    .assistance-bg {
        padding: 0px !important;
    }
    .assistance-section{
        margin-left: 16px!important;
        margin-right: 16px!important;
    }
    .tabs-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        background-color: #ececec;
        padding: 0;
    }
    .assistance-content{
        gap: 24px!important;
    }
    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        position: relative;
        z-index: 1000;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .section-title b{
        font-size: 1.5rem!important;
    }
    .logo img,
    .logo svg {
        height: 40px;
        width: auto;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .header-actions .btn-primary {
        display: none;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 18px 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        flex-direction: column;
    }

    .main-navigation.active {
        display: flex;
    }

    .nav-menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 0;
        margin: 0;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .nav-menu li a {
        display: block;
        text-decoration: none;
        color: #000;
        font-size: 0.875rem!important;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        /* was 22px */
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 2px;
        /* gives breathing room so X doesn’t clip */
        box-sizing: content-box;
    }

    /* Keep consistent spacing between lines */
    .hamburger span {
        height: 2px;
        width: 100%;
        background: #000;
        border-radius: 1px;
        transition: 0.3s;
    }

    /* Adjust rotation so the lines remain centered even with extra width */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5.5px, 5px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5.5px, -5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-buttons {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-top: 16px;
    }

    .main-navigation.active+.mobile-buttons {
        display: flex;
    }

    .mobile-buttons a {
        text-align: center;
        background: #000;
        color: #fff;
        text-decoration: none;
        padding: 10px;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 500;
    }

    .header-search form {
        display: flex;
        align-items: center;
        background: #f6f6f6;
        padding-right: 0px;
        border-radius: 3px;
        width: 260px;
        height: 36px;
        position: relative;
    }

    .container {
        padding-top: 2px;
        padding-bottom: 2px;
    }

    /*.top-space-100,*/
    /*.bottom-space-100 {*/
    /*    padding-top: 2px !important;*/
    /*    padding-bottom: 2px !important;*/
    /*}*/
    /*    .parent-pageid-56 .visa-container{*/
    /*    margin-top:50px!important;*/
    /*}*/
    .parent-pageid-56 .grid h3{
        margin-bottom: 24px!important;
    }
    .parent-pageid-56 .wp-block-spacer{
        height: 50px!important;
        max-height: 50px!important;
    }
    .hero , .hero-block {
        position: relative;
        width: 100%;
        margin: 0px auto!important;
        padding: 24px 16px 160px 16px;
        text-align: left;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 100%;
    }
    .hero-content p{
        line-height: 1.25!important;
    }
    .hero h1 ,  .hero-block h1 {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .hero p {
        font-size: 0.875rem;
        color: #f1f1f1;
        /*margin-bottom: 24px;*/
        line-height: 1.25;
    }
    .tab-item a{
        font-size: 0.875rem;
    }
    .hero-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        /*margin-bottom: 30px;*/
        justify-content: space-between;
    }
    .top-space-48{
        margin-top: 24px!important;
    }
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        border: none;
        font-weight: 600;
    }

    .hero-buttons .btn:nth-child(1) {
        background: #E2DCB7;
        color: #000;
    }

    .hero-buttons .btn:nth-child(2) {
        background: #E2DCB7;
        color: #000;
    }

    .hero-logos {
        display: none;
        justify-content: center;
        align-items: center;
        grid-template-columns: auto auto;
        flex-wrap: nowrap;
        gap: 0px;
        margin-top: 30px;
        width: 100%;
    }
    .logo-item:nth-child(1){
        width: 75%!important;
        margin: auto!important;
    }

    .logo-item img{
        max-width: 100%!important;
        max-height: 100%!important;
        object-fit: scale-down!important;
        height: 100px!important;
    }

    .tabs-container .tab-item {
        text-align: start;
    }

    .cta-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .cta-text {
        max-width: 100%;
        width: 100%;
    }

    .cta-section {
        padding: 0px;
        margin: 0;
    }

    .cta-section .container {
        padding: 24px 16px;
    }
    .extra-height{
        padding: 24px 16px!important;
    }
    .cta-text p{
        margin: 0px!important;
    }
    .cta-button {
        margin-top: 10px;
        min-width: 100%;
    }

    .divider {
        margin: 0;
        padding: 0;
    }
    .testimonials-section,
    .assistance-section {
        /*padding: 24px 16px;*/
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
        margin-top: 0;
    }
    .testimonials-carousel{
        padding: 0px!important;
    }
    .service-card,
    .cta-content {
        flex-direction: column;
        gap: 16px;
    }

    .updates-grid , .posts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
}




/* Responsive */
@media (max-width: 992px) {
    .immigration-services-section .services-content {
        grid-template-columns: 1fr;
        gap: 24px!important;
    }

    .immigration-services-section .corporate {
        flex-direction: column;
    }

    .immigration-services-section .corporate .service-text {
        padding: 25px;
    }

    .immigration-services-section .individuals,
    .immigration-services-section .refusals {
        padding: 20px;
    }
}



 /*SERVICES PAGE */
@media (max-width: 768px) {
    .top-space-52{
        margin-top: 36px!important;
    }
    .page-id-17266 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-837 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-868 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-858 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-873 .wp-block-spacer{
        height: 32px!important;
    }
    #h-our-expertise-in-parent-migration-visas-in-australia{
        margin-top:28px!important;
    }
    .page-id-931 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-16728 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-944 .wp-block-spacer{
        height: 32px!important;
    }
    #cards-section-block_40366ca25e7ff3211fa7c8d3f771f425{
        margin-top:32px!important;
    }
    .page-id-1008  .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1030 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1047 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-17541 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1067 .wp-block-spacer{
        height: 32px!important;
    }
    .cards-grid.cards-count-4{
        grid-template-columns: unset!important;
        grid-template-rows: repeat(4, 1fr)!important;
    }
    .page-id-1094 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1109 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-18400 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1125 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1151 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1274 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1171 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-16728 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1180 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1201 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-1215 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-166 .wp-block-spacer{
        height: 32px!important;
    }
    .tab-title-numbered{
        text-align: center!important;
    }
    .page-id-160 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-162 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-17629 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-18141 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-16915 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-168 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-168 .wp-block-spacer{
        height: 32px!important;
    }
    .page-id-16802 .wp-block-spacer{
        height: 32px!important;
    }
    /*.container {*/
    /*    padding: 0;*/
    /*}*/

    /*.page-content {*/
    /*    padding: 0 20px;*/
    /*}*/

    /*.hero-shapes .shape-bottom-right {*/
    /*    display: none !important;*/
    /*}*/

    /*.hero-shapes .shape-top {*/
    /*    position: absolute !important;*/
    /*    bottom: -1px !important;*/
    /*    left: 0 !important;*/
    /*    top: auto !important;*/
    /*    right: auto !important;*/
    /*    transform: none !important;*/
    /*    width: 211px !important;*/
    /*}*/

    /*.hero-shapes .shape-bottom-left {*/
    /*    position: absolute !important;*/
    /*    bottom: 50px !important;*/
    /*    right: 0 !important;*/
    /*    left: auto !important;*/
    /*    top: auto !important;*/
    /*    transform: none !important;*/
    /*    width: auto !important;*/
    /*}*/

    /*.hero {*/
    /*    position: relative !important;*/
    /*    overflow: hidden !important;*/
    /*    padding: 0 20px;*/
    /*    min-height: 400px;*/
    /*    background: rgba(38, 115, 148, 1) 0% !important;*/
    /*    background-size: cover;*/
    /*}*/

    /*.hero-shapes {*/
    /*    position: absolute !important;*/
    /*    width: 100% !important;*/
    /*    height: 100% !important;*/
    /*    top: 0 !important;*/
    /*    left: 0 !important;*/
    /*    pointer-events: none !important;*/
    /*}*/

    /*.hero-content {*/
    /*    width: 100% !important;*/
    /*    max-width: 100% !important;*/
    /*    text-align: left !important;*/
    /*    padding: 0 !important;*/
    /*}*/

    /*.hero-content h1 {*/
    /*    display: block !important;*/
    /*    width: 100% !important;*/
    /*    max-width: 100% !important;*/
    /*    white-space: normal !important;*/
    /*    word-wrap: break-word !important;*/
    /*    overflow-wrap: break-word !important;*/
    /*    font-size: clamp(24px, 5vw, 26px) !important;*/
    /*    line-height: 1.2 !important;*/
    /*    margin-bottom: 12px !important;*/
    /*    text-align: start;*/
    /*    min-height: calc(1.4em * 3) !important;*/
    /*}*/

    /*.hero-content .hero-buttons {*/
    /*    margin-top: 24px !important;*/
    /*    margin-bottom: 60px !important;*/
    /*}*/

    /*.hero .container,*/
    /*.hero-content .short-width {*/
    /*    max-width: 100% !important;*/
    /*}*/

    /*.hero .short-width,*/
    /*.hero p {*/
    /*    font-size: 16px !important;*/
    /*    line-height: 1.6 !important;*/
    /*    max-width: 100% !important;*/
    /*    margin: 0 auto !important;*/
    /*}*/

    .visa-container {
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    /*:where(.wp-block-columns.is-layout-flex){*/
    /*    gap: 0em!important;*/
    /*}*/
    .tabs {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 24px 20px 0px 20px !important;
        margin: 0 !important;
        border: none !important;
        background: white !important;
        position: relative;
        z-index: 2;
    }

    .tabs::-webkit-scrollbar {
        display: none !important;
    }

    .tab {
        flex: 0 0 auto !important;
        min-width: 140px !important;
        height: 60px !important;
        padding: 0 18px 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #F4F4F4 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #2B7594 !important;
        border-right: 1px solid #e0e0e0 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .tab:last-child {
        border-right: none !important;
    }

    .tab.active {
        background: #e7e1c7 !important;
        color: #000 !important;
        font-weight: 600 !important;
        overflow: visible !important;
    }

    .tab.active::after {
        content: "";
        position: absolute !important;
        top: 50% !important;
        right: 8px !important;
        transform: translateY(-50%) !important;
        width: 4px !important;
        height: 24px !important;
        background-color: #000 !important;
        border-radius: 2px !important;
        z-index: 3 !important;
    }

    .tab-content {
        width: 100% !important;
        padding: 25px 15px !important;
        background: white !important;
        order: 2 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .tab-content h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .tab-content p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-top:0px!important;
    }

    .capsule-content {
        display: none !important;
    }

    .capsule-content.active {
        display: block !important;
        animation: fadeIn 0.3s ease !important;
    }

    .left-column,
    .right-column {
        width: 100% !important;
    }

    .grid h3,
    .grid h1,
    .grid h3 strong {
        /*font-size: 1.25rem!important;*/
        line-height: 1.4 !important;
        font-weight: 600 !important;
        margin-bottom: 24px !important;
    }
    #becoming-an-accredited-sponsor-and-receiving-accredited-sponsorship-status , #why-is-immigration-auditing-compliance-important{
        line-height: 1!important;
    }
    .cta-text h3{
        font-size: 1.25rem!important;
    }
    /*.grid section,*/
    /*.grid>div {*/
    /*    margin-bottom: 35px !important;*/
    /*}*/
    .cards-grid.cards-count-2{
        grid-template-rows: repeat(2, 1fr)!important;
        grid-template-columns: unset!important;
    }
    .cards-grid.cards-count-3{
        grid-template-columns: unset!important;
        grid-template-rows: repeat(3, 1fr)!important;
    }
    .cards-grid{
        gap: 24px!important;
    }
    .full-width-accordion{
        margin-bottom: 2px!important;
    }

    .grid .faq-section h3,
    .grid .faq-section h2 {
        font-size: clamp(18px, 4.5vw, 20px) !important;
        margin-bottom: 16px !important;
    }

    .wp-block-spacer {
        height: 10px !important;
        max-height: 30px !important;
        margin: 0;
    }

    .vertical-space {
        margin-top: 0px !important;
        margin-bottom: -60px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .assistance-card.employers {
        flex-direction: row !important;
        gap: 0px !important;
        min-height: max-content;
    }

    .assistance-card.employers .assistance-image {
        width: 35% !important;
        flex: 0 0 auto !important;
        max-height: 500px !important;
    }

    .assistance-card.employers .card-content {
        flex: 1 1 auto !important;
    }

    .assistance-card div {
        margin-bottom: 0 !important;
    }

    .assistance-card h3 {
        margin-bottom: 0 !important;
    }
    .immigration-services-section .corporate .service-text , .update-excerpt{
        font-size:0.875rem!important;
    }
    

}