/* ===========================
   CONNECTION SECTION
   =========================== */

.connection-section {
    width: 100%;
    background-image: url('../../../images/Background Frame - Background 2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
}

.connection-scroll-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;

    overflow-y: visible;
    scrollbar-width: none;
}

/* ===========================
   LEFT COLUMN
   =========================== */
.connection-left-col {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.connection-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Title H2 */
.connection-title {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    color: white;
    margin: 0;
    line-height: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Intro Group: Side-by-side */
.connection-intro-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.intro-block p {
    color: white;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    text-align: justify;
}

/* Info Cards */
.connection-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.connection-info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.connection-info-card .card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.connection-info-card h3 {
    font-family: var(--font-display);
    color: var(--blessed-light);
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.connection-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.connection-info-card li {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.connection-info-card li b {
    color: var(--blessed-light);
}

/* ===========================
   RIGHT COLUMN (The "Follower")
   =========================== */
.connection-right-col {
    flex: 1;
    position: relative;
}

.connection-item {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.connection-item a {
    display: block;
    height: 100%;
}

/* Image Logic */
.connection-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet/Mobile */
@media (max-width: 1024px) {
    .connection-scroll-wrapper {
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        /* Space for navbar */
        overflow-y: scroll;
        padding-bottom: 2rem;
    }

    .connection-left-col {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Reset Right Column for stacked layout */
    .connection-right-col {
        width: 100%;
        /* We must give it height now, as it can't borrow from the left column anymore */
        height: auto;
        min-height: 300px;
    }

    /* Put image back "in flow" for mobile */
    .connection-item {
        position: relative;
        height: auto;
        justify-content: center;
    }

    .connection-main-img {
        height: auto;
        max-height: 60vh;
        object-position: center;
    }
}