.integra-services-grid {
    display: grid;
    width: 100%;
}

.integra-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    background: #fff;
    height: 100%;
}

.integra-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.integra-service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.integra-service-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.integra-service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.integra-service-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.integra-service-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1;
}

/* Buttons Container - True Flex Layout */
.integra-service-buttons {
    display: flex;
    gap: 6px;
    font-size: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    align-items: center;
}

.integra-service-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.integra-service-button:hover {
    background-color: #005177;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .integra-service-image {
        height: 200px; /* Reduced height for mobile */
    }

    .integra-service-buttons {
        flex-direction: column;
        align-items: stretch; /* Make buttons full width on mobile */
        gap: 10px;
    }

    .integra-service-button {
        width: 100%;
        white-space: normal; /* Allow text wrapping on very small screens if needed */
    }

    .integra-service-title {
        font-size: 1.15rem;
    }

    .integra-service-description {
        font-size: 0.9rem;
    }
}

/* Modal Styles */
body.integra-modal-open {
    overflow: hidden;
}

.integra-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.integra-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.integra-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.integra-modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.integra-modal.is-active .integra-modal-container {
    transform: scale(1);
}

.integra-modal-header {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}

.integra-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s ease;
}

.integra-modal-close:hover {
    color: #0073aa;
}

.integra-modal-content {
    flex-grow: 1;
    position: relative;
    width: 100%;
    background: #f8f9fa;
}

.integra-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loader Styles */
.integra-modal-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.integra-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: integra-spin 0.8s linear infinite;
}

@keyframes integra-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .integra-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

