/* =========================================================
   Our Digital Ventures
   Scoped homepage section styles
   ========================================================= */

.sg-ventures {
    position: relative;
    overflow: hidden;
    padding: 72px 0 82px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(238, 245, 255, 0.95) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.sg-ventures-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
}

.sg-ventures-dots,
.sg-ventures-ring {
    position: absolute;
    display: block;
    pointer-events: none;
}

.sg-ventures-dots {
    width: 300px;
    height: 280px;
    opacity: 0.48;
    background-image: radial-gradient(circle, rgba(54, 117, 243, 0.46) 0 2px, transparent 2.8px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.85) 38%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.85) 38%, transparent 72%);
}

.sg-ventures-dots-top {
    top: -62px;
    left: -72px;
}

.sg-ventures-dots-bottom {
    right: -72px;
    bottom: -50px;
}

.sg-ventures-ring {
    width: 290px;
    height: 290px;
    border: 1px solid rgba(77, 132, 250, 0.2);
    border-radius: 50%;
}

.sg-ventures-ring::before,
.sg-ventures-ring::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(77, 132, 250, 0.16);
    border-radius: 50%;
}

.sg-ventures-ring::before { inset: 18px; }
.sg-ventures-ring::after { inset: 37px; }

.sg-ventures-ring-top {
    top: -206px;
    right: -88px;
}

.sg-ventures-header {
    max-width: 820px;
    margin: 0 auto 46px;
}

.sg-ventures-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 21px;
    border: 1px solid rgba(71, 132, 246, 0.18);
    border-radius: 999px;
    color: #1268ed;
    background: rgba(240, 246, 255, 0.74);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sg-ventures-title {
    margin: 21px 0 12px;
    color: #0b1b42;
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.sg-ventures-title span { color: #1768ed; }

.sg-ventures-subtitle {
    max-width: 740px;
    margin: 0 auto;
    color: #58709a;
    font-size: 16px;
    line-height: 1.55;
}

.sg-ventures-divider {
    position: relative;
    display: block;
    width: 52px;
    height: 3px;
    margin: 23px auto 0;
    border-radius: 999px;
    background: #1268ed;
}

.sg-ventures-divider::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    width: 5px;
    height: 5px;
    content: "";
    border-radius: 50%;
    background: #1268ed;
    transform: translateY(-50%);
}

.sg-ventures-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 28px;
}

.sg-ventures-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc((100% - 56px) / 3);
    overflow: hidden;
    border: 1px solid rgba(76, 137, 242, 0.2);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(45, 94, 180, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sg-ventures-card:hover {
    border-color: rgba(31, 104, 237, 0.4);
    box-shadow: 0 18px 36px rgba(45, 94, 180, 0.15);
    transform: translateY(-5px);
}

.sg-ventures-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf2ff;
}

.sg-ventures-media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46%;
    content: "";
    background: linear-gradient(180deg, rgba(11, 27, 66, 0) 0%, rgba(11, 27, 66, 0.12) 100%);
    pointer-events: none;
}

.sg-ventures-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.sg-ventures-card:hover .sg-ventures-banner { transform: scale(1.04); }

.sg-ventures-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: -32px;
    padding: 0 24px 24px;
}

.sg-ventures-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 170px;
    height: 64px;
    padding: 12px 16px;
    border: 1px solid rgba(76, 137, 242, 0.22);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(45, 94, 180, 0.12);
}

.sg-ventures-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 138px;
    max-height: 38px;
    object-fit: contain;
}

.sg-ventures-industry {
    margin-top: 18px;
    color: #1768ed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.sg-ventures-desc {
    flex: 1 1 auto;
    margin: 10px 0 20px;
    color: #5e759f;
    font-size: 14px;
    line-height: 1.65;
}

.sg-ventures-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 9px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: #0c1462;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(12, 20, 98, 0.16);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sg-ventures-cta i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.sg-ventures-cta:hover {
    background: #1768ed;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(23, 104, 237, 0.24);
    transform: translateY(-2px);
}

.sg-ventures-cta:hover i { transform: translate(2px, -2px); }

.sg-ventures-cta:focus-visible {
    outline: 3px solid #1768ed;
    outline-offset: 3px;
}

.sg-ventures-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 991px) {
    .sg-ventures { padding: 64px 0 70px; }
    .sg-ventures-header { margin-bottom: 40px; }

    .sg-ventures-card {
        flex: 0 1 calc((100% - 28px) / 2);
        max-width: calc((100% - 28px) / 2);
    }
}

@media (max-width: 767px) {
    .sg-ventures { padding: 55px 0 62px; }
    .sg-ventures-header { margin-bottom: 34px; }
    .sg-ventures-title { font-size: 31px; letter-spacing: -0.8px; }
    .sg-ventures-subtitle { padding: 0 8px; font-size: 14px; }

    .sg-ventures-grid { gap: 22px; }

    .sg-ventures-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .sg-ventures-body { padding: 0 20px 22px; }

    .sg-ventures-logo {
        width: 158px;
        height: 60px;
        padding: 11px 15px;
    }

    .sg-ventures-logo img {
        max-width: 126px;
        max-height: 36px;
    }

    .sg-ventures-dots { opacity: 0.28; }
    .sg-ventures-ring { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
    .sg-ventures *,
    .sg-ventures *::before,
    .sg-ventures *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .sg-ventures-card:hover { transform: none; }
    .sg-ventures-card:hover .sg-ventures-banner { transform: none; }
    .sg-ventures-cta:hover { transform: none; }
    .sg-ventures-cta:hover i { transform: none; }
}
