/* Landing Page - Connectivity Section Styles */

.landing-connectivity-section {
    padding: 80px 0;
    background-color: #fff;
}

.connectivity-item {
    display: flex;
    align-items: stretch; /* Changed from center to stretch */
    background: linear-gradient(to right, #f0f7ff, #f8f8f8);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.connectivity-item .text-content {
    flex: 1;
    padding: 40px;
}

.connectivity-item .image-content {
    flex-basis: 40%;
    line-height: 0; /* Remove space under image */
}

.connectivity-item .image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Explicitly round image corners */
.connectivity-item.image-right .image-content img {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.connectivity-item.image-left .image-content img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Alternating layout */
.connectivity-item.image-left {
    flex-direction: row-reverse;
}

.text-content .super-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #222;
    font-weight: 400;
    margin-bottom: -15px;
}

.text-content .main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2em;
    font-weight: 800;
    text-transform: uppercase;
    background-image: linear-gradient(90deg, #2AADDF 0%, #282561 31.46%, #282561 52.61%, #282561 74.94%, #EF3E56 100%);    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 0;
    display: inline;

}

.text-content .subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2em;
    color: #007bff;
    margin-top: -10px;
    margin-bottom: 10px;
}

.text-content .description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #555;
    font-weight: 600;
}

/* CTA Box Styles */
.connectivity-cta-box {
    max-width: 320px;
    margin: 40px auto 0 auto; /* Centered, with top margin */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.popup-header {
    background-color: #0d3d6f;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.popup-header .popup-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff; /* Ensure title is white */
}

.popup-header .popup-title i {
    margin-right: 8px;
}

.popup-header .close-popup {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-bottom: 0px !important;
    margin-right: 0px !important;
    padding-right: 0px !important;
}

.popup-body {
    padding: 20px;
    text-align: center;
}

.popup-body .popup-text {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0; /* Remove margin as button is gone */
    padding-bottom: 10px; /* Add some padding */
}

/* Main CTA Button Styles */
.main-cta-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.main-cta-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.main-cta-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    color: #fff; /* Ensure text stays white on hover */
}

.main-cta-btn i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .connectivity-item {
        flex-direction: column !important; /* Stack on mobile */
    }

    .connectivity-item .image-content {
        flex-basis: auto;
        width: 100%;
    }

    .connectivity-item .text-content {
        padding: 30px;
        text-align: center;
    }
}
