:root {
    --latest-primary: #087a68;
    --latest-primary-dark: #075e52;
    --latest-primary-deep: #075e52;
    --latest-primary-light: #eaf8f3;

    --latest-heading: #15201d;
    --latest-text: #56616a;

    --latest-white: #ffffff;
    --latest-border: #e0ece9;

    --latest-shadow:
        0 24px 70px rgba(17, 66, 59, 0.12);
}

/* =========================================
   MAIN SECTION
========================================= */

.latest-version-section {
    position: relative;
    width: 100%;

    padding: 80px 20px;

    overflow: hidden;

    background: #ffffff;
}

.latest-version-container {
    position: relative;

    width: min(1400px, 100%);
    min-height: 740px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1.04fr) minmax(0, 1fr);

    overflow: hidden;

    background: var(--latest-white);

    border: 1px solid rgba(8, 141, 125, 0.08);
    border-radius: 34px;

    box-shadow: var(--latest-shadow);
}

/* =========================================
   LEFT PANEL
========================================= */

.latest-version-preview {
    position: relative;
    isolation: isolate;

    min-width: 0;
    min-height: 740px;

    padding: 82px 54px 38px;

    overflow: hidden;

    background:
        radial-gradient(circle at 28% 22%,
            rgba(255, 255, 255, 0.2),
            transparent 38%),
        linear-gradient(135deg,
            #d9f3ed 0%,
            #bce9df 52%,
            #9ddfd2 100%);
}

/* Curved light overlay */

.latest-version-preview::after {
    content: "";

    position: absolute;
    z-index: 0;

    top: -100px;
    right: -150px;

    width: 285px;
    height: 115%;

    background: rgba(255, 255, 255, 0.62);

    border-radius: 50%;

    transform: rotate(-4deg);

    pointer-events: none;
}

/* Dark green background glow */

.latest-version-preview::before {
    content: "";

    position: absolute;
    z-index: 0;

    left: -180px;
    bottom: -180px;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(7, 141, 125, 0.22),
            rgba(7, 141, 125, 0.04) 65%,
            transparent 72%);

    pointer-events: none;
}

/* =========================================
   BACKGROUND DECORATIONS
========================================= */

.latest-dot-pattern {
    position: absolute;
    z-index: 1;

    top: 28px;
    left: 28px;

    width: 130px;
    height: 72px;

    opacity: 0.38;

    background-image:
        radial-gradient(var(--latest-primary) 3px,
            transparent 3px);

    background-size: 22px 22px;
}

.latest-circle-pattern {
    position: absolute;
    z-index: 1;

    border: 1px solid rgba(5, 111, 99, 0.24);
    border-radius: 50%;

    pointer-events: none;
}

.latest-circle-pattern::before,
.latest-circle-pattern::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(5, 111, 99, 0.18);
    border-radius: 50%;
}

.latest-circle-top {
    top: -115px;
    right: 55px;

    width: 230px;
    height: 230px;
}

.latest-circle-top::before {
    inset: 25px;
}

.latest-circle-top::after {
    inset: 50px;
}

.latest-circle-bottom {
    bottom: -95px;
    left: 5px;

    width: 200px;
    height: 200px;
}

.latest-circle-bottom::before {
    inset: 24px;
}

.latest-circle-bottom::after {
    inset: 48px;
}

/* =========================================
   LEFT HEADING
========================================= */

.latest-version-header {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 20px;
}

.latest-version-heading-wrap {
    min-width: 0;
}

.latest-version-name {
    margin: 0;

    color: #122521;

    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 760;
    line-height: 1.1;
}

.latest-version-name span {
    color: var(--latest-primary-dark);
}

.latest-version-heading-wrap p {
    margin: 14px 0 17px;

    color: #213b36;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.latest-small-line {
    display: block;

    width: 58px;
    height: 3px;

    background: var(--latest-primary-dark);

    border-radius: 20px;
}

/* =========================================
   UPDATE BADGE
========================================= */

.latest-update-badge {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
    overflow: hidden;

    color: var(--latest-white);
    background: var(--latest-primary-dark);

    border-radius: 100px;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 10px 24px rgba(5, 111, 99, 0.22);
}

.latest-bell-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--latest-primary-dark);
    background: var(--latest-white);
}

.latest-bell-icon svg {
    width: 19px;
    height: 19px;
}

.latest-update-badge>span:last-child {
    padding: 0 18px 0 12px;
}

/* =========================================
   DASHBOARD AREA — NO ANIMATION
========================================= */

.latest-dashboard-area {
    position: relative;
    z-index: 4;

    width: 100%;
    min-height: 490px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: visible;

    isolation: isolate;
}

/* Circle remains fixed */

.latest-large-circle {
    position: absolute;
    z-index: 1;

    top: 42px;
    right: 0;

    width: 158px;
    height: 158px;

    border: 27px solid rgba(5, 126, 113, 0.92);
    border-radius: 50%;

    transform: translate(-22%, 12%);

    box-shadow:
        0 20px 50px rgba(5, 126, 113, 0.16),
        inset 0 0 20px rgba(255, 255, 255, 0.18);

    pointer-events: none;

    /* No animation */
    animation: none;
}

/* Dashboard fixed immediately */

.latest-dashboard-wrapper {
    position: relative;
    z-index: 3;

    width: 108%;
    max-width: 700px;

    margin-left: -4%;
    margin-bottom: 8px;

    opacity: 1;
    visibility: visible;
    transform: none;

    /* No animation */
    animation: none !important;
    transition: none;
}

/* AOS ko dashboard par forcefully disable karega */

.latest-dashboard-wrapper[data-aos],
.latest-dashboard-area[data-aos] {
    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
    transition: none !important;

    animation: none !important;
}

.latest-dashboard-image {
    position: relative;
    z-index: 3;

    display: block;

    width: 100%;
    height: auto;
    max-height: 490px;

    object-fit: contain;
    object-position: center bottom;

    opacity: 1;
    visibility: visible;
    transform: none;

    animation: none !important;
    transition: none !important;

    filter:
        drop-shadow(0 28px 45px rgba(8, 81, 72, 0.18));
}

/* =========================================
   RIGHT PANEL
========================================= */

.latest-version-content {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 48px 56px 38px;

    background: var(--latest-white);
}

.latest-section-heading {
    margin-bottom: 15px;
}

.latest-section-heading h2 {
    margin: 0;

    color: var(--latest-heading);

    font-family: var(--title-font);
    font-size: var(--title-size);
    font-weight: var(--title-weight);
    line-height: 1.15;
}

.latest-section-heading h2 span {
    color: var(--latest-primary);
}

.latest-heading-line {
    display: block;

    width: 48px;
    height: 3px;

    margin-top: 14px;

    background: var(--latest-primary);

    border-radius: 100px;
}

/* =========================================
   FEATURE LIST
========================================= */

.latest-feature-list {
    width: 100%;
}

.latest-feature-item {
    position: relative;

    display: grid;
    grid-template-columns:
        54px minmax(0, 1fr) 28px;

    align-items: center;

    gap: 14px;

    min-height: 84px;

    padding: 11px 0;

    border-bottom:
        1px solid var(--latest-border);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.latest-feature-item:hover {
    transform: translateX(5px);
}

.latest-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--latest-primary-dark);
    background: var(--latest-primary-light);
    border-radius: 14px;
}

.latest-feature-icon svg {
    width: 18px;
    height: 18px;
}

.latest-feature-text {
    min-width: 0;
}

.latest-feature-text h3 {
      margin: 0 0 4px;
    color: var(--latest-heading);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.latest-feature-text p {
    max-width: 460px;
    margin: 0;
    color: var(--latest-text);
    font-size: 11px;
    line-height: 1.5;
}

.latest-check-icon {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--latest-white);
    background: var(--latest-primary);

    border-radius: 50%;
}

.latest-check-icon svg {
    width: 13px;
    height: 13px;
}

/* =========================================
   CHANGELOG BUTTON
========================================= */

.latest-changelog-button {
    width: fit-content;
    min-height: 42px;

    margin-top: 22px;
    padding: 10px 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--latest-white);
    background: var(--latest-primary);

    border-radius: 100px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 12px 25px rgba(8, 141, 125, 0.22);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.latest-changelog-button svg {
    width: 17px;
    height: 17px;
}

.latest-changelog-button:hover {
    color: var(--latest-white);
    background: var(--latest-primary-dark);

    transform: translateY(-3px);

    box-shadow:
        0 16px 30px rgba(8, 141, 125, 0.28);
}

/* =========================================
   MEDIUM DESKTOP
========================================= */

@media screen and (max-width: 1200px) {
    .latest-version-container {
        min-height: 700px;
    }

    .latest-version-preview {
        min-height: 700px;

        padding: 68px 40px 36px;
    }

    .latest-version-content {
        padding: 42px 38px 35px;
    }

    .latest-version-header {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 10px;
    }

    .latest-dashboard-area {
        min-height: 425px;
    }

    .latest-dashboard-wrapper {
        width: 112%;

        margin-left: -6%;
    }

    .latest-dashboard-image {
        max-height: 430px;
    }

    .latest-large-circle {
        top: 28px;
        right: -3%;

        width: 140px;
        height: 140px;

        border-width: 23px;

        transform: translate(-26%, 15%);
    }

    .latest-section-heading h2 {
        font-size: var(--title-size);
    }

    .latest-feature-item {
        grid-template-columns:
            50px minmax(0, 1fr) 26px;

        gap: 12px;

        min-height: 82px;
    }

    .latest-feature-icon {
        width: 48px;
        height: 48px;
    }

    .latest-feature-icon svg {
        width: 25px;
        height: 25px;
    }

    .latest-feature-text h3 {
        font-size: 14px;
    }

    .latest-feature-text p {
        font-size: 12px;
    }
}

/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 900px) {
    .latest-version-section {
        padding: 65px 18px;
    }

    .latest-version-container {
        grid-template-columns: 1fr;

        border-radius: 26px;
    }

    .latest-version-preview {
        min-height: 700px;

        padding: 58px 44px 38px;
    }

    .latest-version-content {
        padding: 48px 44px;
    }

    .latest-version-header {
        flex-direction: row;
        align-items: center;

        margin-bottom: 28px;
    }

    .latest-dashboard-area {
        min-height: 470px;
    }

    .latest-dashboard-wrapper {
        width: 100%;
        max-width: 680px;

        margin-left: 0;
    }

    .latest-dashboard-image {
        max-height: 455px;
    }

    .latest-large-circle {
        top: 35px;
        right: 2%;

        width: 150px;
        height: 150px;

        border-width: 24px;

        transform: translate(-24%, 14%);
    }

    .latest-version-content {
        align-items: stretch;
    }

    .latest-section-heading h2 {
        font-size: var(--title-size);
    }

    .latest-feature-item {
        grid-template-columns:
            52px minmax(0, 1fr) 28px;

        min-height: 88px;
    }

    .latest-feature-item:hover {
        transform: none;
    }
}

/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 600px) {
    .latest-version-section {
        padding: 45px 14px;
    }

    .latest-version-container {
        border-radius: 20px;
    }

    .latest-version-preview {
        min-height: auto;

        padding: 44px 22px 32px;
    }

    .latest-version-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;

        margin-bottom: 22px;
    }

    .latest-version-name {
        font-size: 33px;
    }

    .latest-version-heading-wrap p {
        font-size: 15px;
    }

    .latest-update-badge {
        font-size: 12px;
    }

    .latest-bell-icon {
        width: 39px;
        height: 39px;
    }

    .latest-dashboard-area {
        min-height: 325px;
    }

    .latest-dashboard-wrapper {
        width: 118%;
        max-width: none;

        margin-left: -9%;
        margin-bottom: 0;
    }

    .latest-dashboard-image {
        max-height: 325px;
    }

    .latest-large-circle {
        top: 20px;
        right: -7%;

        width: 102px;
        height: 102px;

        border-width: 16px;

        transform: translate(-28%, 17%);
    }

    .latest-version-content {
        padding: 38px 22px;
    }

    .latest-section-heading {
        margin-bottom: 12px;
    }

    .latest-section-heading h2 {
        font-size: 29px;
    }

    .latest-feature-item {
        grid-template-columns:
            46px minmax(0, 1fr) 24px;

        gap: 10px;

        min-height: 88px;

        padding: 13px 0;
    }

    .latest-feature-icon {
        width: 44px;
        height: 44px;

        border-radius: 12px;
    }

    .latest-feature-icon svg {
        width: 23px;
        height: 23px;
    }

    .latest-feature-text h3 {
        font-size: 14px;
    }

    .latest-feature-text p {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .latest-check-icon {
        width: 22px;
        height: 22px;
    }

    .latest-check-icon svg {
        width: 12px;
        height: 12px;
    }

    .latest-changelog-button {
        width: 100%;

        min-height: 44px;

        margin-top: 24px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media screen and (max-width: 400px) {
    .latest-version-preview {
        padding-left: 17px;
        padding-right: 17px;
    }

    .latest-version-name {
        font-size: 28px;
    }

    .latest-dashboard-area {
        min-height: 275px;
    }

    .latest-dashboard-wrapper {
        width: 126%;

        margin-left: -13%;
    }

    .latest-dashboard-image {
        max-height: 275px;
    }

    .latest-large-circle {
        top: 16px;
        right: -10%;

        width: 82px;
        height: 82px;

        border-width: 13px;

        transform: translate(-28%, 15%);
    }

    .latest-version-content {
        padding-left: 17px;
        padding-right: 17px;
    }

    .latest-section-heading h2 {
        font-size: 26px;
    }

    .latest-feature-item {
        grid-template-columns:
            42px minmax(0, 1fr) 22px;

        gap: 8px;
    }

    .latest-feature-icon {
        width: 40px;
        height: 40px;
    }

    .latest-feature-icon svg {
        width: 21px;
        height: 21px;
    }

    .latest-feature-text h3 {
        font-size: 13px;
    }

    .latest-feature-text p {
        font-size: 10.5px;
    }

    .latest-check-icon {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   AOS / REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}