/* Grey background wrapper - not full width */
.compete-row-fluid-wrapper {
   
    border-radius: 12px !important;
    margin: 0 auto !important;
    max-width: 1280px !important;
    padding: 48px 40px !important;
    box-sizing: border-box !important;
}

/* Override for specific padding top class */
.compete-row-fluid-wrapper.pt-96dt-64mob {
    padding-top: 96px !important;
}

/* Override for specific padding bottom class */
.compete-row-fluid-wrapper.pb-96pb-64mob {
    padding-bottom: 96px !important;
}

.compete-content-max-width {
    max-width: 100% !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Primary grid layout with maximum specificity */
.compete-row-fluid-wrapper .row-fluid .compete-content-max-width,
.compete-row-fluid-wrapper > .row-fluid > .compete-content-max-width {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) 4fr !important;
    grid-template-areas: "image text" !important;
    gap: 48px !important;
    align-items: center !important;
    width: 100% !important;
}

/* Fallback flexbox approach in case grid doesn't work */
@supports not (display: grid) {
    .compete-row-fluid-wrapper .row-fluid .compete-content-max-width,
    .compete-row-fluid-wrapper > .row-fluid > .compete-content-max-width {
        display: flex !important;
        align-items: center !important;
        gap: 48px !important;
    }
    
    .compete-image-column {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
    
    .compete-text-column {
        flex: 1 !important;
    }
}

.compete-image-column {
    grid-area: image !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
}

.compete-sa-image {
    width: 100% !important;
    height: auto !important;
    max-width: 200px !important;
    min-width: 120px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    display: block !important;
}

.compete-text-column {
    grid-area: text !important;
    min-width: 0 !important;
}

.compete-text-column h2 {
    margin-bottom: 16px !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #0c121a !important;
}

.compete-text-column p {
    font-size: 18px !important;
    line-height: 27px !important;
    color: #0C121A !important;
    margin-bottom: 16px !important;
}

.compete-text-column p:last-of-type {
    margin-bottom: 0 !important;
}

/* Button Container */
.compete-button-container {
    display: inline-block !important;
    margin-top: 24px !important;
}

/* Medium Primary Button */
.compete-medium-primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 24px !important;
    border-radius: 40px !important;
    background-color: #0c121a !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.compete-medium-primary-button:hover {
    background-color: #1a252f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

.compete-medium-primary-button:focus {
    outline: 2px solid #ffffff !important;
    outline-offset: 2px !important;
    color: #ffffff !important;
}

.compete-medium-primary-button:active {
    transform: translateY(0) !important;
    color: #ffffff !important;
}

.compete-medium-primary-button:visited {
    color: #ffffff !important;
}

/* Button Text - Override HubSpot span styles */
.compete-medium-primary-button .compete-button-text {
    flex-shrink: 0 !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Button Icon */
.compete-button-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    filter: brightness(0) invert(1) !important; /* Makes any icon white */
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .compete-row-fluid-wrapper {
        padding: 40px 32px !important;
    }
    
    /* Tablet responsive padding overrides */
    .compete-row-fluid-wrapper.pt-96dt-64mob {
        padding-top: 96px !important; /* Same as desktop for this breakpoint */
    }
    
    .compete-row-fluid-wrapper.pb-96pb-64mob {
        padding-bottom: 96px !important; /* Same as desktop for this breakpoint */
    }
    
    .compete-row-fluid-wrapper .row-fluid .compete-content-max-width,
    .compete-row-fluid-wrapper > .row-fluid > .compete-content-max-width {
        gap: 32px !important;
        grid-template-columns: minmax(120px, 1fr) 3fr !important;
    }
    
    .compete-text-column h2 {
        font-size: 24px !important;
    }
    
    .compete-sa-image {
        max-width: 150px !important;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .compete-row-fluid-wrapper {
        padding: 32px 24px !important;
        margin: 0 16px !important;
    }
    
    /* Mobile responsive padding overrides - 64px as specified in class name */
    .compete-row-fluid-wrapper.pt-96dt-64mob {
        padding-top: 64px !important;
    }
    
    .compete-row-fluid-wrapper.pb-96pb-64mob {
        padding-bottom: 64px !important;
    }
    
    .compete-row-fluid-wrapper .row-fluid .compete-content-max-width,
    .compete-row-fluid-wrapper > .row-fluid > .compete-content-max-width {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }
    
    .compete-image-column {
        grid-area: unset !important;
        order: 2 !important;
        margin-top: 24px !important;
    }
    
    .compete-text-column {
        grid-area: unset !important;
        order: 1 !important;
    }
    
    /* Reverse order for mobile when enabled */
    .compete-content-max-width.compete-reverse-mobile .compete-image-column {
        order: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }
    
    .compete-content-max-width.compete-reverse-mobile .compete-text-column {
        order: 2 !important;
    }
    
    .compete-sa-image {
        max-width: 150px !important;
    }
    
    .compete-text-column h2 {
        font-size: 22px !important;
    }
    
    .compete-text-column p {
        font-size: 15px !important;
    }
    
    /* Mobile button adjustments */
    .compete-medium-primary-button {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    
    .compete-button-icon {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .compete-row-fluid-wrapper {
        margin: 0 12px !important;
        padding: 24px 20px !important;
    }
    
    /* Small mobile responsive padding overrides for outer wrapper */
    .compete-outer-wrapper.pt-96dt-64mob {
        padding-top: 64px !important;
    }
    
    .compete-outer-wrapper.pb-96pb-64mob {
        padding-bottom: 64px !important;
    }
}