.ast-container,.ast-container-fluid {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Start Hero Section
========================================= */

.hero-left{
    padding: 2.5em 0em 2.5em 2em;
}

.hero-description {
    font-size: 0.875rem;
}

.hero-buttons {
    margin-top: 0;
    gap: 20px;
}

.hero-left-bg{
    background: var(--color-hero-backgorund);
}

.certifications-image {
    width: 400px;
}

.hero-left h1{
    font-size: 2.7rem;
    color: var(--primary-color);
}
.contact-text-color{
    color:var(--secondary-color)
}

.hero-right .image-slider>div:not(:first-child) {
    display: none;
}

@media (max-width: 768px){
        .fade-top {
        content: url('/wp-content/uploads/2025/11/Linear-Banner-Fade-Home-page-Mobile-Kelgray.png');
        width: 100%;
        height: auto;
    }
    .hero-left {
        padding: 25px 20px 0;
    }
    .hero-buttons {
        gap: 10px;
        margin-top: 25px;
    }
}

/* =========================================
   End Hero Section
========================================= */

/* =========================================
   Start of end-to-end-Business-section
========================================= */
.end-to-end-section {
    padding: 0px 20px;
    background: var(--color-white);
}

.end-to-end-container {
    max-width: 1300px;
    margin:auto;
}

.end-to-end-header {
    text-align: center;
}

.end-to-end-header h2 {
    color: var(--primary-color);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    position: relative;
}

.service-item img {
    width: 20%;
}

.service-content {
    flex: 1;
    padding-top: 5px;
	text-align: left;
}

.service-item:nth-child(odd) .service-content {
	margin-left: 15px;
}

.service-item:nth-child(even) .service-content {
	text-align: right;
	margin-right: 15px;
}

.service-content h3 {
    font-size: 18px;
    font-weight: bold;
    color:var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.0;
}

.service-content p {
    font-size: 14px;
    color: var(--text-dark) ;
    line-height: 1.6;
    margin: 0;
}

.service-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 103px;
    width: 100%;
    height: 40%;
    background-image: url(https://kelgray-v2.on-forge.com/wp-content/uploads/2025/11/End-to-End-Down-Dash-Line-Mobile-Kelgray.png);
    background-repeat: repeat-y;
    background-position: center;
    background-size: contain;
}

.end-to-end-cta {
    text-align: center;
}

.sales-funnel-btn {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    justify-content: center;
    width: 22%;
}

@media (max-width: 768px){
	.service-item:nth-child(even) .service-content {
        text-align: left !important;
        margin-right: 0 !important;
    }
	
	.service-item:nth-child(odd) .service-content {
    margin-left: 0 !important;
    }
}

@media(max-width:376px){
    .service-item:not(:last-child)::after{
            top: 114px;
    }
}
@media (max-width: 321px){
    .service-item:not(:last-child)::after{
        height: 36%;
        top:115px;
    }
}
/* ===================================
    End  of end-to-end-business Section
=====================================*/
/* ================================
   Start Services Section
================================ */
.service-image-wrapper .mobile {
    display: none;
}

.services-section {
    padding: 40px;
    background: var(--primary-color);
    border-radius: 30px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 40px;
}

.services-header h2 {
    color: var(--color-white);
}

.services-header .section-subheading{
    color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card-inner {
    text-align: center;
}

.service-card-content {
    background-color: var(--color-grey);
    padding: 20px 2px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 5px solid var(--color-white);
    border-bottom: 0;
}

.service-card-inner h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 50px;
}

.service-card-inner p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4em;
	margin-bottom: 10px;
}

.service-image-wrapper {
    position: relative;
    width: 100%;
}

.service-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 20px 20px;
    border: 5px solid white;
    border-top: none;
}

.service-button {
    position: absolute;
    /* top: 116px;
    right: -27px; */
    top: 170px;
    left: 165px;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.service-button:hover {
    transform: translateX(-50%) scale(1.1);
}

.button-icon {
    width: 100%;
    height: 100%;
    position: absolute;
}

.button-icon.default {
    opacity: 1;
}

.button-icon.hover {
    opacity: 0;
}

.service-button:hover .button-icon.default {
    opacity: 0;
}

.service-button:hover .button-icon.hover {
    opacity: 1;
}


@media (max-width: 768px){
    /* .service-image-wrapper .desktop {
        display: none;
    }
    .service-image-wrapper .mobile {
        display: block;
    } */
     .service-image{
        border: none;
     }
    .service-card-inner{
        border: 4px solid var(--color-white);
        border-radius: 25px;
    }
    .services-section {
        padding: 40px 30px;
    }
    .services-section{
        border-radius: 0;
    }
    .service-button{
        /* top:133px;
        right:110px */
        top: 200px;
        left: 190px;
    }
    .services-header {
        margin-bottom: 30px;
    }

    .services-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
        font-weight: 700;
    }
	
	.service-video-section .section-title {
		margin-top: 10px !important;
	}

    .services-header p {
        font-size: 14px;
        font-weight: 400;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-bottom: 40px;
    }

    .service-card-inner h3 {
        font-size: 22px;
        font-weight: 600;
    }

    .service-card-inner p {
        font-size: 13px;
        min-height: auto;
        margin-bottom: 15px;
    }
      .button-icon {
        width: 50px;
        height: 50px;
    }

    .service-card-content {
		border: 0 !important;
	}
}

@media (max-width: 480px){
    .service-card-inner p {
        font-size: 14px;
        font-weight: 400;
        color: var(--text-dark);
    }
}

@media (max-width: 376px){
    .service-button {
        top: 106px;
        right: 85px;
    }
}
@media (max-width: 321px){
        .service-button {
        top: 80px;
        right: 53px;
    }

}

/* ================================
  End of  Services Section
================================ */
/* ================================
   Lead Magnet Section 
================================ */

.lead-magnet-section {
    display: flex;
    gap: 30px;
    margin: 40px auto;
}

.left-magnet-section {
    width:50%;
    background: var(--primary-color);
    border-radius: 30px;
    padding: 0;
    position: relative;
}

.magnet-logo {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: auto;
    height: auto;
}


.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.banner-image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 30px 30px 0 0;
}

.magnet-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.magnet-header {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: var(--primary-opacity-color);
    padding: 20px;
    border-radius: 20px;
    width: 80%;
}

.magnet-header h5 {
    color: var(--color-white);
    text-align: center;
}

.magnet-header p {
    color: var(--color-white);
    text-align: center;
}

.magnet-form-content {
    padding: 20px;
}

.magnet-download {
    text-align: center;
    margin-bottom: 0;
}

.magnet-download h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-white);
}

.magnet-download p {
    color: var(--text-dark);
    margin-bottom: 18px;
}

.wpcf7-form {
    display: flex;
    flex-wrap: wrap;
    padding: 6px 4em 0;
}

.wpcf7-form .field-name, .wpcf7-form .field-company-name {
    width: 50%;
    padding: 0 10px;
}

span.wpcf7-spinner {
    position: absolute;
}

.field-email {
    padding: 0 10px;
    width: 100%;
}

.wpcf7-submit {
    margin-left: 10px;
}

.field-submit {
    width: 100%;
}

.wpcf7-form-control {
    border-radius: 36px !important;
    height: 45px !important;
}

.wpcf7-form-control::placeholder {
    color: var(--primary-color);
}

.wpcf7 form>div {
    margin-bottom: 0;
}

.wpcf7-submit {
    background-color: var(--secondary-color) !important;
    border: 2px solid var(--color-white) !important;
    padding: 13px 35px 14px !important;
    height: 48px;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: var(--color-white);
}

.wpcf7-response-output {
    margin-top: 0 !important;
    color: var(--color-white);
    line-height: 1.3em;
    padding: 8px 15px 10px !important;
    border-color: #c3e8ff !important;
}

.video-placeholder a.video-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.right-magnet-section {
    width:50%;
    background: var(--color-grey);
    border-radius: 30px;
    padding: 30px 30px 50px;
}

.unique-header h2 {
    color: var(--primary-color);    
}

.unique-header p {
	line-height: 1.3em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 6px 20px;
    border: 2px solid var(--text-dark);
    border-radius: 25px;
    transition: all 0.3s ease;
	justify-content: space-between;
}

.feature-item img {
    width: 46px;
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon img {
    width: 60px;
    height: 60px;
}

.feature-text {
    font-weight:600;
    color: var(--primary-color);
    line-height: 1.3;
	font-size: 0.875rem;
}

.magnet-cta {
    text-align: center;
}

.custom-cta-btn {
    margin-top: 10px;
    transition: all 0.3s ease;
}

@media (max-width:768px){   

  .lead-magnet-section {
        flex-direction: column;
        gap: 0;
        margin: 40px auto 20px;
        padding: 0 16px;
    }

    .left-magnet-section {
        width: 100%;
    }

    .banner-image {
        object-fit: none;
        height: 298px;
        border-radius: 30px 30px 0 0;
    }

    .magnet-logo {
        top: -12px;
    }

    .magnet-header {
        padding:10px;
        width:95%;
    }

    .magnet-header h5 {
        font-size: 30px;
        text-align: center;
    }

    .magnet-form-content {
        padding:10px 15px;
    }

    .magnet-download h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .magnet-download p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: row;
        gap: 10px;
    }

    .form-input,
    .form-input-full {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }

    .submit-form-btn {
        padding: 14px 35px;
        font-size: 13px;
        width: 55%;
    }
    
    .right-magnet-section {
        width:100%;
        background: var(--color-grey);
        border-radius: 30px;
        padding: 10px 30px 20px;
        margin-top: 20px;
    }

    .unique-header {
        margin-bottom: 25px;
    }

    .unique-header h2 {
        font-size: 1.675rem;
        margin-bottom: 0;
        text-align: center;
        color: var(--primary-color);
    }

    .unique-header p {
        font-size: 14px;
        font-weight: 300;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .feature-item {
        padding: 0;
        border: none;
		flex-direction: row-reverse;
        justify-content: flex-end;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
    }

    .feature-icon img {
        width: 50px;
        height: 50px;
    }

    .feature-text {
        font-size: 15px;
        color: var(--text-dark);
		font-weight: 400;
    }

    .custom-cta-btn {
        padding: 16px 35px;
        font-size: 13px;
        margin-top: 0;
    }

    .wpcf7-form {
        padding: 6px 0;
    }

    .wpcf7-form .field-name, .wpcf7-form .field-company-name {
        width: 100%;
    }

    .wpcf7-submit {
        width: calc(100% - 20px);
        margin-left: 0;
    }

    .field-submit p {
        margin-bottom: 0 !important;
    }

    span.wpcf7-spinner {
        margin-top: 10px;
        margin-bottom: 6px;
    }
}
/* ================================
   End Lead Magnet Section
================================ */

/* Service-Video-Section */
/* =========================== */
.hero-section{
    margin-bottom: 4em;
}

.service-video-container {
    background-color: var(--color-lightblue);
    padding: 20px;
    border-radius: 30px;
    margin-bottom: 40px;
}

.desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.video-placeholder img {
    width: 100px;
    height: 100px;
}

.badges-wrapper img{
	width: 350px;
    margin-bottom: 15px;
}
.mobile-layout {
    display: none;
}

.video-wrapper {
    position: relative;
    width: 100%;
}

.video-placeholder {
    background-color: var(--black-bg-color);
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-size: cover;        
    background-position: center;   
    background-repeat: no-repeat;  
}

.volume-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

.volume-button img{
    width: 45px;
    height: 45px;
}

.content-wrapper {
    display: flex;
	align-items: baseline;
    flex-direction: column;
    gap: 10px;
}

.service-video-section a.btn.btn-secondary {
    justify-content: center;
    align-items: center;
    text-align: center;
}


.section-title {
    color: var(--primary-color);
    line-height: 1.2;
}

.section-description {
    line-height: 1.3em;
}

.badges-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.badge {
    width: 80px;
    height: 80px;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ================================
   Desktop Responsive Styles
   ================================ */
@media (min-width: 1024px) {

    /* END to ENd Section  */
    /* =================== */
      .end-to-end-section {
        padding: 20px 10px;
        margin-bottom: 40px;
    }


    .services-list {
        position: relative;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        min-height: 700px;
    }

    .service-item:not(:last-child)::after {
        display: none;
    }


    .services-list::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 56%;
        height: 650px;
        background: url('https://kelgray-v2.on-forge.com/wp-content/uploads/2025/12/End-to-End-Circle-Graphic-Kelgray.jpg') center/contain no-repeat;
        z-index: 2;
        pointer-events: none;
    }

    .service-item {
            display: flex;
            position: absolute;
            align-items: center;
            text-align: center;
            width: 31%;
            padding: 0;
            gap: 0;
            z-index: 3;
        }
    
    .service-item:nth-child(1) {
            top: 15%;
            left: 0;
        
    }

    .service-item:nth-child(2) {
        flex-direction: row-reverse;
        top: 15%;
        right: 0;
    }

    .service-item:nth-child(3) {
        top : 70%;
        left: 0;
    }

    .service-item:nth-child(4) {
        flex-direction: row-reverse;
        top: 70%;
        right: 0;
    }

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

    .service-content p {
        font-size: 15px;
        line-height: 1.5;
    }

}

/* ================================
   End of Desktop Responsive 
   ================================ */

/* ================================
   Mobile Responsive Styles
   ================================ */

@media (max-width: 768px) {

/* END TO END SECTION RESPONSIVENESS */
    .end-to-end-section {
        padding: 0px 30px;
    }

    .end-to-end-header h2 {
        font-size: 2rem;
        line-height: 1.2em;
		margin-bottom: 6px;
    }
	
	.end-to-end-header p {
		line-height: 1.3em;
	}

    .service-icon img {
        width: 100%;
        height: 35px;
    }

    .service-content h3 {
        font-size: 16px;
    }

    .service-content p {
        line-height: 1.3em;
    }

    /* Service-Video-Section */
    /* =========================== */
     .service-video-container{
        border-radius: 0;
        margin-bottom: 10px;
    }

    .service-video-section a.btn.btn-secondary{
        margin:10px auto;
    }
    .desktop-layout {
        display: none;
    }

    .video-placeholder img {
        width: 80px ;
        height:80px;
        position: relative;
        top: 31%;
    }
    .volume-button{
        top:12px;
        right: 12px;
    }
     .badges-wrapper img{
        width: 342px;
     }
    .volume-button img {
        width: 35px;
        height: 35px;
    }

    .mobile-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .video-placeholder {
        border-radius: 15px;
    }
    
    .badges-wrapper {
        justify-content: center;
        gap: 12px;
    }
    
    .badge {
        width: 70px;
        height: 70px;
    }
    
}

/* MEDIA Query 480px small Screen */
@media (max-width: 480px) {
    .service-item {
        gap: 10px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
    }

    .service-icon::before {
        width: 35px;
        height: 35px;
        top: -6px;
        left: -6px;
    }

    .service-icon img {
        width: 32px;
        height: 32px;
    }

    .service-content h3 {
        font-weight: 600;
    }

    /* END TO END SECTION */
    .service-item {
        gap: 15px;
    }

}
@media (max-width:321px){
    .section-title {
        font-size: 24px;
    }
    .service-content h3{
        font-size: 13px;
    }

}