#as-identity-gov-s2 {
    --idgov-card-size-w: clamp(300px, 22vw, 395px);
    --idgov-card-radius: 24px;
    --idgov-card-gap: 22px;
    --idgov-slider-speed: 62s;
    background: #ebe3d8;
    padding: 64px 0 150px;
    color: #0f172a;
    position: relative;
    z-index: 6;
}

#as-identity-gov-s2 * {
    box-sizing: border-box;
}

#as-identity-gov-s2 .idgov-shell {
    width: min(1920px, 100%);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    #as-identity-gov-s2 .idgov-shell {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    #as-identity-gov-s2 .idgov-shell {
        padding: 0 2rem;
    }
}

#as-identity-gov-s2 .idgov-kicker {
    display: flex;
    width: max-content;
    max-width: calc(100% - 2rem);
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.45);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
    margin-left: auto;
    margin-right: auto;
}

#as-identity-gov-s2 .idgov-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
}

#as-identity-gov-s2 .idgov-headline {
    margin: 16px auto 0;
    max-width: 24ch;
    text-align: center;
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(34px, 3.9vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #0f172a;
    text-wrap: balance;
}

#as-identity-gov-s2 .idgov-headline-sub {
    display: block;
    margin-top: 8px;
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(1.2rem, 2.25vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-weight: 700;
}

#as-identity-gov-s2 .idgov-focus-blue {
    color: #1d4ed8;
}

#as-identity-gov-s2 .idgov-focus-green {
    color: #0f766e;
}

#as-identity-gov-s2 .idgov-focus-purple {
    color: #7c3aed;
}

#as-identity-gov-s2 .idgov-focus-red {
    color: #be123c;
}

#as-identity-gov-s2 .idgov-subcopy {
    margin: 16px auto 0;
    max-width: 62ch;
    text-align: center;
    color: #334155;
    font-family: NibPro, Georgia, serif;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.6;
}

#as-identity-gov-s2 .idgov-slider-wrap {
    margin-top: 30px;
    overflow: hidden;
    position: relative;
    padding: 4px 0;
}

#as-identity-gov-s2 .idgov-slider-wrap::before,
#as-identity-gov-s2 .idgov-slider-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    z-index: 2;
    pointer-events: none;
}

#as-identity-gov-s2 .idgov-slider-wrap::before {
    left: 0;
    background: linear-gradient(90deg, rgba(235, 227, 216, 1) 0%, rgba(235, 227, 216, 0) 100%);
}

#as-identity-gov-s2 .idgov-slider-wrap::after {
    right: 0;
    background: linear-gradient(270deg, rgba(235, 227, 216, 1) 0%, rgba(235, 227, 216, 0) 100%);
}

#as-identity-gov-s2 .idgov-slider-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: idgovAutoSlide var(--idgov-slider-speed) linear infinite;
}

#as-identity-gov-s2 .idgov-slider-wrap:hover .idgov-slider-track,
#as-identity-gov-s2 .idgov-slider-wrap:focus-within .idgov-slider-track {
    animation-play-state: paused;
}

#as-identity-gov-s2 .idgov-slider-group {
    display: flex;
    gap: var(--idgov-card-gap);
    padding-right: var(--idgov-card-gap);
    align-items: stretch;
}

#as-identity-gov-s2 .idgov-card {
    --idgov-accent: #0f172a;
    --idgov-title-color: #0f172a;
    width: var(--idgov-card-size-w);
    aspect-ratio: 1 / 1;
    border-radius: var(--idgov-card-radius);
    padding: 24px 22px 30px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
    transition: transform 140ms ease, box-shadow 140ms ease;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#as-identity-gov-s2 .idgov-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), var(--idgov-accent));
    opacity: 0.85;
}

#as-identity-gov-s2 .idgov-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.12);
}

#as-identity-gov-s2 .idgov-card h3 {
    font-family: welfare, AnekBangla, system-ui, sans-serif;
    font-size: clamp(1.45rem, 1.75vw, 1.92rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--idgov-title-color);
    margin: 0;
    text-wrap: balance;
}

#as-identity-gov-s2 .idgov-card p {
    margin-top: 10px;
    font-size: clamp(1.06rem, 1.05vw, 1.2rem);
    line-height: 1.48;
    color: rgba(15, 23, 42, 0.82);
}

#as-identity-gov-s2 .idgov-card ul {
    margin-top: 14px;
    margin-bottom: 12px;
    display: grid;
    gap: 8px;
    font-size: clamp(0.96rem, 0.96vw, 1.08rem);
    color: rgba(15, 23, 42, 0.9);
}

#as-identity-gov-s2 .idgov-card li {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.32;
    padding: 8px 12px;
    border-radius: 13px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

#as-identity-gov-s2 .idgov-dot {
    margin-top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex: 0 0 7px;
    background: var(--idgov-accent);
    transform: rotate(45deg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 4px 8px rgba(15, 23, 42, 0.14);
    position: relative;
}

#as-identity-gov-s2 .idgov-dot::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

#as-identity-gov-s2 .idgov-meta {
    background: linear-gradient(90deg, #edf3df 0%, #d5eaa1 100%);
    --idgov-accent: #2d5e0f;
    --idgov-title-color: #173b0c;
}

#as-identity-gov-s2 .idgov-purple {
    background: linear-gradient(120deg, #c9a0f1 0%, #ad79f3 100%);
    --idgov-accent: #5a208f;
    --idgov-title-color: #3a0f63;
}

#as-identity-gov-s2 .idgov-cyan {
    background: #73d3de;
    --idgov-accent: #06516a;
    --idgov-title-color: #0b375d;
}

#as-identity-gov-s2 .idgov-pink {
    background: linear-gradient(120deg, #f79de9 0%, #eb86de 100%);
    --idgov-accent: #8f1f7f;
    --idgov-title-color: #4f1148;
}

#as-identity-gov-s2 .idgov-green {
    background: #80e287;
    --idgov-accent: #136f1f;
    --idgov-title-color: #0f4e17;
}

#as-identity-gov-s2 .idgov-yellow {
    background: #f6e74d;
    --idgov-accent: #8f7700;
    --idgov-title-color: #3b2f00;
}

#as-identity-gov-s2 .idgov-sky {
    background: #b8e4f3;
    --idgov-accent: #0e4d68;
    --idgov-title-color: #143c65;
}

#as-identity-gov-s2 .idgov-peach {
    background: #f8cfbc;
    --idgov-accent: #7a3f27;
    --idgov-title-color: #5b2f1d;
}

#as-identity-gov-s2 .idgov-lime {
    background: #e5edbf;
    --idgov-accent: #5a6b0c;
    --idgov-title-color: #314006;
}

@keyframes idgovAutoSlide {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #as-identity-gov-s2 .idgov-slider-track {
        animation: none !important;
    }

    #as-identity-gov-s2 .idgov-card {
        transition: none !important;
    }
}

/* Keep the Section 3 overlap effect, but soften it after this larger Section 2. */
#as-identity-gov-s2 + .section-gradient-divider + .core-pillars {
    margin-top: -120px;
    padding-top: 220px;
}

#as-identity-gov-s2 + .section-gradient-divider + .core-pillars::before {
    height: 120px;
}

@media (max-width: 900px) {
    #as-identity-gov-s2 {
        --idgov-card-size-w: clamp(260px, 72vw, 340px);
        --idgov-card-gap: 16px;
        padding: 48px 0 120px;
    }

    #as-identity-gov-s2 .idgov-headline {
        font-size: clamp(30px, 8vw, 40px);
    }

    #as-identity-gov-s2 .idgov-headline-sub {
        font-size: clamp(1rem, 5.2vw, 1.4rem);
    }

    #as-identity-gov-s2 .idgov-subcopy {
        font-size: clamp(1rem, 4.2vw, 1.15rem);
    }
}
