header#masthead p.site-title{
    font-size: 30px;
    font-family: 'Montserrat';
    line-height: 42px;
    color: #fff;
}
#masthead .site-branding p.site-description {
    font-size: 20px;
    font-family: 'Montserrat';
    text-transform: capitalize;
    color: #fff;
    margin-top: 5px;
}
.non-transparent-header header#masthead {
    background: var(--global-palette3);
}
header#masthead div#main-header {
    padding: 12px 0px;
}
.header-button-wrap a.button.header-button.button-size-medium.button-style-filled:hover {
    background: #fff;
    color: #001f54 !important;
}
.header-button-wrap a.button.header-button.button-size-medium.button-style-filled {
    color: #fff !important;
}
nav#site-navigation ul#primary-menu ul.sub-menu li a {
    font-size: 15px;
    font-family: 'Montserrat';
    font-weight: 600 !important;
}
nav#site-navigation ul#primary-menu ul.sub-menu li a:hover {
    background: #fff;
    color: #001f54;
}
nav#site-navigation ul#primary-menu ul.sub-menu{
    top: 75px;
}
nav#site-navigation ul#primary-menu ul.sub-menu:before {
    content: "";
    background: #001f5400;
    height: 31px;
    width: 100%;
    position: absolute;
    top: -31px;
}

/*youtube section */
.youtube-embed-section .kt-inside-inner-col {
    flex-direction:column !important;
	display: block !important;
}
 .youtube-embed-section{
     margin-right:0px !important;
 }

/* Container for the grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Each service box */
.service-item {
    flex: 0 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%
}

/* Service image */
.service-image {
    width: 100%;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    object-fit: cover;
}

.service-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Prevent image stretching */
    object-fit: cover;
}

/* Service content */
.service-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-content h3 {
    margin-bottom: 10px;
}

/* Ensure all boxes align in height */
.services-grid .service-item {
    align-items: stretch;
}
.service-content p {
    font-size: 19px;
    color: #4f4f4f;
}
.service-content h3,.service-content h3 a  {
    font-size: 28px;
    font-family: 'Montserrat';
    line-height: 42px;
    color: #000 !important;
    text-decoration: none;
}


/* Footer Css Start  */
.site-footer .site-title-wrap p.site-title {
    font-size: 30px;
    font-family: 'Montserrat';
    line-height: 42px;
    color: #fff;
    margin: 0;
}
.site-footer .site-title-wrap p.site-description {
    font-size: 20px;
    font-family: 'Montserrat';
    text-transform: capitalize;
    color: #fff;
    margin-top: 5px;
    margin-bottom: 0;
}
.site-footer a.brand.footer_site_title {
    text-decoration: none !important;
}
.related-guid-section {
    box-shadow: 1px 1px 20px 0 #00000024;
    padding: 30px;
    width: 380px;
}
.single-service .entry.single-entry {
    box-shadow: unset;
}

/*.permit_diff_services_main_wrp {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Space between columns 
   margin: 80px 0px;
}

.permit_diff_services_inner {
    background-color: #001f54;
    box-shadow: 0 4px 15px rgb(0 0 0 / 22%);
    padding: 40px 20px;
    border-radius: 8px;
}*/
.permit_diff_services_main_wrp{
    margin: 80px 0px;
}
.permit_diff_services_inner h3 {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 34px;
    color: #000;
    font-family: 'Montserrat';
}

.permit_diff_services_inner p {
    margin-bottom: 15px;
    color: #4f4f4f;
    font-size: 18px;
    line-height: 27px;
    font-family: var(--global-body-font-family);
    font-weight: 400;
}
.permit_diff_services_inner {
    margin-bottom: 50px;
}

.custom_btn {
    display: inline-block;
    text-decoration: none;
    background-color:var(--global-palette-btn-bg); ;
    color: #fff;
    padding: 15px 20px;
    transition: background-color .3s ease;
    font-size: 16px;
    line-height: normal;
    font-family: 'Montserrat';
    font-weight: 600;
}

.custom_btn:hover {
    background-color: #001f54; /* Darker color on hover */
    color: #fff;
}
.blog div#inner-wrap {
    background: #efefef;
}
.permits-in-no-time-news {
    text-align: center;
}
.kt-blocks-info-box-text a {
    color: var(--global-palette3, #1a202c);
}
.kt-blocks-info-box-text a:hover {
    color: var(--global-palette-highlight);
}

.custom-btn-wrp {
    padding: 12px 15px !important;
    border: none !important;
    background: var(--global-palette-btn-bg-hover) !important;
    background: var(--global-palette-highlight) !important;
    color: #fff !important;
}
.custom-btn-wrp:hover {
    background: var(--global-palette-btn-bg-hover) !important;
    color: #fff !important;
}

/*Custom Footer Css*/
.site-footer .footer-widget-area-inner h2.wp-block-kadence-advancedheading {
    font-size: 22px;
    color: #fff;
    line-height: 28px;
    font-family: 'Montserrat';
    letter-spacing: 0.33px;
}
.site-footer .footer-widget-area-inner section#block-21 {
    font-size: 18px;
    line-height: 26px;
    color: #fff;
    font-family: var(--global-body-font-family);
    letter-spacing: 0.33px;
}
ul#menu-footer-menu li a,
ul#menu-services li a,
ul#menu-popular-resources li a {
    font-size: 18px;
    color: #fff;
}
ul#menu-footer-menu li a:hover,
ul#menu-popular-resources li a:hover,
ul#menu-services li a:hover {
    color: var(--global-palette-btn-bg);
}

ul#menu-footer-menu li.current-menu-item a,
ul#menu-popular-resources li.current-menu-item a,
ul#menu-services li.current-menu-item a {
    color: var(--global-palette-btn-bg);
}
.perm-footer-office-details-wrp .perm-field-footer {
    display: flex;
    align-items: flex-start;
    padding-bottom: 10px;
}
.perm-footer-office-details-wrp .perm-field-footer .perm-field-footer-content p {
    margin: 0;
}

.perm-footer-office-details-wrp .perm-field-footer span.perm-field-footer-icon svg {
    fill: var(--global-palette-btn-bg);
}
.perm-footer-office-details-wrp .perm-field-footer span.perm-field-footer-icon {
    padding-right: 15px;
}
.perm-footer-office-details-wrp .perm-field-footer .perm-field-footer-content p {
    margin: 0;
    color: #fff;
    font-size: 18px;
}
.perm-footer-office-details-wrp .perm-field-footer .perm-field-footer-content p a {
    color: #fff;
}
.perm-footer-office-details-wrp .perm-field-footer .perm-field-footer-content p a:hover {
    color: var(--global-palette-btn-bg);
}


.service-title h1.entry-title {
    text-align: center;
    padding-bottom: 82px;
}

.site-footer .footer-widget5 section#block-26 ul.wp-block-list {
    display: flex;
    align-items: center;
    list-style: none;
    justify-content: flex-end;
}

.site-footer .footer-widget5 section#block-26 ul.wp-block-list li {
    padding: 0 10px;
}
.single-post div#primary {
    margin-bottom: 0px;
}
.single-post div#primary .content-container.site-container {
    max-width: 1190px;
}
.kadence-blog-btn a {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;
    border-radius: 0;
    padding: 17px 34px;
    box-shadow: 0px 0px 0px -7px rgba(0, 0, 0, 0);
    text-decoration: none;
    background: var(--global-palette-highlight);
    color: #fff !important;
    display: block !important;
}
.kadence-blog-btn {
    text-align: center;
    padding: 50px 0px;
}
.services-grid .service-item {
    height: auto;
    justify-content: flex-start;

}
.services-grid .service-item .service-image > a {
    position: relative;
    overflow: hidden;
    padding-bottom: 70%;
    display: block;
}

.services-grid .service-item .service-image > a > img {
    object-fit: cover;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.services-grid .service-item .service-image {
    height: auto;
}
.custom_home_page_banner .kt-row-column-wrap {
    position: absolute;
    left: 0;
    padding: 30px 50px;
    background: #d9d9d94f;
    box-shadow: 0px 6px 5px #00000017;
}

.custom_home_page_banner {
    position: relative;
    height: 728px;
}
ul.wp-block-list.affiliate_page_custom_css li a {
    color: #4f4f4f;
}
ul.wp-block-list.affiliate_page_custom_css li a:hover {
    color: var(--global-palette-highlight);
}
@media (max-width: 1100px) {
    .site-footer .footer-widget5 section#block-26 ul.wp-block-list {
        justify-content: center !important;
        margin: 0 !important;
        padding: 0;
    }
    .service-title {
        margin-bottom: 0;
    }
    .service-title h1.entry-title {
        padding-bottom: 30px;
    }
}

@media (max-width: 767px) {
    :root {
        --global-md-spacing: 1rem;
        --global-content-edge-padding: 20px;
    }
    body,
    p.has-medium-font-size,
    li.has-medium-font-size {
        font-size: 16px !important;
    }
    h1 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }
    
    h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    body, input, select, optgroup, textarea {
        font-size: 16px !important;
    }
    
    
    
    button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"], .fl-button, .elementor-button-wrapper .elementor-button, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit {
        font-size: 14px;
    }
    
    h5 {
        font-size: 18px !important;
        line-height: 1.25;
    }
    
    .service-content p,ul#menu-footer-menu li a, ul#menu-services li a,.perm-footer-office-details-wrp .perm-field-footer .perm-field-footer-content p {
        font-size: 16px;
    }
    
    .service-content h3, .service-content h3 a {
        font-size: 22px;
    }
    
    .gutena-testimonial-block .gutena-testimonial-item-block .gutena-testimonial-text-block {
        font-size: 16px;
    }
    
    .postid-3115 .single_post_type_img h2{
        padding-top:50%;
    }
	
    .gutena-testimonial-block .gutena-testimonial-details-block .gutena-testimonial-details-content .gutena-testimonial-title {
        font-size: 16px;
        line-height: 1.2;
    }
    
    .site-footer .footer-widget-area-inner h2.wp-block-kadence-advancedheading {
        font-size: 20px !important;
    }
    
    .site-middle-footer-inner-wrap .widget {
        margin-bottom: 15px;
    }
    
    .single-post .single-content > .kb-row-layout-wrap > div {
        padding: 0;
    }
    
    .single-post .wp-site-blocks .post-title h1 {
        font-size: 30px !important;
    }
    
    section.entry-hero.post-hero-section .hero-container {padding-top: 30px;padding-bottom: 30px;}
    .services-grid .service-item {
        width: 100%;
        flex: 0 0 100%;
    }
    .services-grid .service-item .service-image {
        height: auto;
    }
    .gutena-testimonial-block .gutena-testimonial-details-block{
        flex-direction: column !important;
    }
    .gutena-testimonial-block .gutena-testimonial-details-block.image-side .gutena-testimonial-details-image{
        flex-shrink: 0;
    }
    .gutena-testimonial-block .gutena-testimonial-details-block .gutena-testimonial-details-content{
        text-align: center;
        align-items: center;
    }
    .kb-gallery-ul.kb-gallery-type-carousel .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kb-gallery-image-contain.kadence-blocks-gallery-intrinsic.kb-gallery-image-ratio-inherit {
        padding-bottom: 40% !important;
    }
    .kb-gallery-ul.kb-gallery-type-carousel .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner .kb-gallery-image-contain.kadence-blocks-gallery-intrinsic.kb-gallery-image-ratio-inherit img {
        max-width: 200px;
        display: block;
        margin: 0 auto;
        right: 0;
    }
    .service-title h1.entry-title {
        padding-bottom: 15px;
    }

    .entry-content-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .loop-entry.type-post h2.entry-title {
        font-size: 20px !important;
    }
    .loop-entry.type-post .entry-taxonomies, .loop-entry.type-post .entry-taxonomies a {
        font-size: 16px;
    }
    .single-content ul, .single-content ol {
        padding-left: 15px;
    }
    .kb-form .kadence-blocks-form-field .kb-forms-submit.kb-button-size-large {
        font-size: 18px;
    }
}
.services-grid .service-cta {
    margin-top: -10px;  
}
