.tl-toggle-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

/* Wrapper for each box */
.tl-toggle-item-wrapper {
    width: 300px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tl-toggle-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #d9d9d9;
    background: #fff;

    text-align: center;
    cursor: pointer;

    box-sizing: border-box;
    position: relative;

    transition: border-color .25s ease, box-shadow .25s ease;

    /* spacing */
    row-gap: 10px;
}

/* Hover + Active borders */
.tl-toggle-item:hover {
    border-color: #0054A1 !important;
}

.tl-toggle-item.active {
    border-color: #0054A1 !important;
}

/* ============================
   SPACING TWEAKS (final)
============================= */

/* Space between icon and title */
.tl-toggle-item .tl-icon {
    margin-bottom: 12px;
}

/* Reduce space between title and button */
.tl-toggle-item .tl-title {
    margin-bottom: 8px;
}

/* Help with equal height */
.tl-title {
    flex-grow: 1;
}

.tl-underline {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;

    width: 0;
    height: 4px;
    border-radius: 5px;

    background: #0054A1;
    transition: width .25s ease;
}

.tl-toggle-item:hover .tl-underline,
.tl-toggle-item.active .tl-underline {
    width: 60px;
}

/* Desktop wrapper */
.tl-desktop-content {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

/* Hidden by default (JS handles slide) */
.tl-content-box {
    display: none;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Two column layout */
.tl-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;

    align-items: center; /* vertical center */
}

/* ============================
   LEFT COLUMN
============================= */
.tl-left-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.tl-content-title {
    margin-bottom: 10px;
}

.tl-short-desc {
    margin-bottom: 15px;
}

/* CTA button SHOULD NOT stretch */
.tl-left-col .tl-btn-primary {
    width: auto !important;
    display: inline-block !important;
    align-self: flex-start; /* can be center or flex-end */
}

/* ============================
   RIGHT COLUMN (GLASS EFFECT)
============================= */
.tl-right-col {
    /* REAL GLASS EFFECT */
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border: 1px solid rgba(255,255,255,0.4);
    padding: 25px;
    transition: 0.3s ease;
}

.tl-right-col::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.25),
        rgba(255,255,255,0.05)
    );
    pointer-events: none;
    z-index: 1;
}
.tl-right-col > * {
    position: relative;
    z-index: 2;
}

/* ============================
   CUSTOM ICON LIST
============================= */
.tl-icon-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Proper vertical alignment */
.tl-icon-ul li {
    display: flex;
    align-items: flex-start !important;
    gap: 12px;
    margin-bottom: 10px;
}
.tl-list-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

.tl-list-icon,
.tl-list-icon svg,
.tl-list-icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1;
}

.tl-list-text {
    flex: 1;
}

/* ============================
   BUTTONS (BOTH TYPES)
============================= */

.tl-btn {
    border: none;
    cursor: pointer;
}

/* CTA button styling done in Elementor controls */
.tl-btn-primary {
    font-weight: 600;
    text-decoration: none;
}

/* ============================
   RESPONSIVE (MOBILE)
============================= */

@media (max-width: 767px) {

    .tl-toggle-row {
        justify-content: center !important;
    }

    .tl-toggle-item-wrapper {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    .tl-toggle-item {
        width: 100%;
        height: auto;
    }

    /* Hide desktop content */
    .tl-desktop-content {
        display: none !important;
    }

    /* Mobile content */
    .tl-mobile-content {
        display: none; /* hidden initially; JS shows */
        margin-top: 25px;
        margin-bottom: 0px;
        overflow: hidden;
    }

    /* 1-column mobile */
    .tl-content-inner {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .tl-right-col {
        margin-top: 20px;
    }
}