/* =========================================================
   New Milestone Module
========================================================= */

section[data-module="new-milestone"] {
    --milestone-main: #156082;
    --milestone-blue: #37c2e3;
    --milestone-green: #7cbc4a;
    --milestone-yellow: #f9d067;
    --milestone-line-x: 16px;
    --milestone-axis-h: 28px;

    position: relative;
    z-index: 5;
    overflow: hidden;
    padding: 80px 30px 90px;
    font-family: "Open Sans", Arial, sans-serif;
}

section[data-module="new-milestone"] * {
    box-sizing: border-box;
}

section[data-module="new-milestone"] .new-milestone-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
}

/* =========================================================
   Graphic Pattern
========================================================= */

section[data-module="new-milestone"] .new-milestone-bg-pattern {
    position: absolute;
    right: -120px;
    top: 165px;
    z-index: 1;
    width: 330px;
    max-width: 24vw;
    opacity: 0.9;
    pointer-events: none;
}

section[data-module="new-milestone"] .new-milestone-bg-pattern svg {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   Heading
========================================================= */

section[data-module="new-milestone"] .new-milestone-heading {
    text-align: center;
    margin-bottom: 70px;
}

section[data-module="new-milestone"] .new-milestone-title {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    color: var(--milestone-main);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.4px;
}

section[data-module="new-milestone"] .new-milestone-title span {
    content: "";
    display: inline-block;
    width: 16px;
    height: 20px;
    flex: 0 0 16px;
    margin-left: 12px;
    margin-bottom: 4px;
    background: url("/wp-content/uploads/2026/04/water-after-heading.png") no-repeat center / contain;
    border-radius: 0;
}

section[data-module="new-milestone"] .new-milestone-description {
    max-width: 840px;
    margin: 14px auto 0;
    color: #333333;
    font-size: 18px;
    line-height: 1.6;
}

section[data-module="new-milestone"] .new-milestone-mobile {
    display: none;
}

/* =========================================================
   Timeline Groups
========================================================= */

section[data-module="new-milestone"] .new-milestone-groups {
    position: relative;
    z-index: 2;
}

section[data-module="new-milestone"] .new-milestone-group {
    position: relative;
    width: 100%;
    margin-bottom: 78px;
}

section[data-module="new-milestone"] .new-milestone-group:last-child {
    margin-bottom: 0;
}

section[data-module="new-milestone"] .new-milestone-group.is-hidden-group {
    display: none;
}

section[data-module="new-milestone"] .new-milestone-group.is-revealed {
    animation: newMilestoneGroupIn 0.55s ease both;
}

@keyframes newMilestoneGroupIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   Desktop Timeline Layout
========================================================= */

section[data-module="new-milestone"] .new-milestone-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 34px;
}

section[data-module="new-milestone"] .new-milestone-row-top {
    align-items: stretch;
    min-height: 245px;
}

section[data-module="new-milestone"] .new-milestone-row-bottom {
    align-items: stretch;
    min-height: 210px;
}

section[data-module="new-milestone"] .new-milestone-cell {
    position: relative;
    min-width: 0;
    height: 100%;
}

/* =========================================================
   Middle Axis
========================================================= */

section[data-module="new-milestone"] .new-milestone-axis {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 34px;
    align-items: center;
    height: var(--milestone-axis-h);
    margin: 0;
}

section[data-module="new-milestone"] .new-milestone-axis-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        var(--milestone-main) 0%,
        var(--milestone-blue) 52%,
        var(--milestone-main) 100%
    );
    transform: translateY(-50%);
    overflow: hidden;
}

section[data-module="new-milestone"] .new-milestone-axis-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: newMilestoneLineShine 3.6s ease-in-out infinite;
}

@keyframes newMilestoneLineShine {
    0% {
        left: -35%;
    }

    55% {
        left: 105%;
    }

    100% {
        left: 105%;
    }
}

section[data-module="new-milestone"] .new-milestone-axis-dot {
    position: relative;
    z-index: 6;
    display: block;
    justify-self: start;
    margin-left: calc(var(--milestone-line-x) - 5px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--milestone-green);
    box-shadow:
        0 0 0 4px rgba(124, 188, 74, 0.18),
        0 0 14px rgba(55, 194, 227, 0.38);
    animation: newMilestoneDotPulse 2.3s ease-in-out infinite;
}

@keyframes newMilestoneDotPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 4px rgba(124, 188, 74, 0.18),
            0 0 14px rgba(55, 194, 227, 0.32);
    }

    50% {
        transform: scale(1.18);
        box-shadow:
            0 0 0 7px rgba(124, 188, 74, 0.12),
            0 0 22px rgba(55, 194, 227, 0.46);
    }
}

/* =========================================================
   Items
========================================================= */

section[data-module="new-milestone"] .new-milestone-item {
    position: relative;
    min-width: 0;
    height: 100%;
}

section[data-module="new-milestone"] .new-milestone-item-inner {
    position: relative;
    z-index: 3;
}

section[data-module="new-milestone"] .new-milestone-item.is-top {
    padding-bottom: 0;
}

section[data-module="new-milestone"] .new-milestone-item.is-bottom {
    padding-top: 54px;
}

/* Vertical line base */
section[data-module="new-milestone"] .new-milestone-item.is-top::after,
section[data-module="new-milestone"] .new-milestone-item.is-bottom::after {
    content: "";
    position: absolute;
    left: var(--milestone-line-x);
    z-index: 1;
    width: 2.5px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        var(--milestone-green) 0%,
        var(--milestone-blue) 100%
    );
}

/* Top vertical line: connect from year/icon area to middle dot */
section[data-module="new-milestone"] .new-milestone-item.is-top::after {
    top: 76px;
    bottom: calc((var(--milestone-axis-h) / -2) - 1px);
    height: auto;
}

/* Bottom vertical line: connect from middle dot to bottom year/icon */
section[data-module="new-milestone"] .new-milestone-item.is-bottom::after {
    top: calc((var(--milestone-axis-h) / -2) - 1px);
    height: 68px;
}

/* =========================================================
   Year Bubble
========================================================= */

section[data-module="new-milestone"] .new-milestone-year-wrap {
    position: relative;
    min-height: 78px;
    margin-bottom: 12px;
    margin-left: 4px;
}

section[data-module="new-milestone"] .new-milestone-year-bubble {
    position: relative;
    display: inline-block;
    min-height: 78px;
    padding-left: 16px;
}

section[data-module="new-milestone"] .new-milestone-circle {
    position: absolute;
    left: 0;
    top: -13px;
    z-index: 0;
    display: block;
    width: 74px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(5px 5px 8px rgba(21, 96, 130, 0.12));
}

section[data-module="new-milestone"] .new-milestone-year-text {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 68px;
    padding-left: 22px;
}

section[data-module="new-milestone"] .new-milestone-year {
    color: var(--milestone-main);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 45px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.4px;
}

section[data-module="new-milestone"] .new-milestone-year-range {
    padding-bottom: 8px;
    color: var(--milestone-main);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   Content
========================================================= */

section[data-module="new-milestone"] .new-milestone-content {
    position: relative;
    max-width: 260px;
    margin-left: 33px;
    padding-left: 20px;
}

section[data-module="new-milestone"] .new-milestone-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--milestone-green);
    box-shadow: 0 0 0 3px rgba(124, 188, 74, 0.12);
}

section[data-module="new-milestone"] .new-milestone-content p {
    margin: 0;
    color: #1d1d1d;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
}

section[data-module="new-milestone"] .new-milestone-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

section[data-module="new-milestone"] .new-milestone-content li {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #1d1d1d;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
}

section[data-module="new-milestone"] .new-milestone-content li + li {
    margin-top: 6px;
}

section[data-module="new-milestone"] .new-milestone-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--milestone-green);
    box-shadow: 0 0 0 3px rgba(124, 188, 74, 0.12);
}

section[data-module="new-milestone"] .new-milestone-content:has(ul)::before {
    display: none;
}

/* =========================================================
   Animation
========================================================= */

section[data-module="new-milestone"].is-visible .new-milestone-item {
    animation: newMilestoneItemPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes newMilestoneItemPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   Load More Button
========================================================= */

section[data-module="new-milestone"] .new-milestone-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

section[data-module="new-milestone"] .new-milestone-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    padding: 9px 12px 9px 22px;
    border-radius: 999px;
    background: var(--milestone-yellow);
    border: 1px solid var(--milestone-yellow);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
    box-shadow: none;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}

section[data-module="new-milestone"] .new-milestone-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 0;
    height: 0;
    border-radius: 999px;
    background: var(--milestone-main);
    transform: translate(-50%, -50%);
    transition:
        width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

section[data-module="new-milestone"] .new-milestone-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

section[data-module="new-milestone"] .new-milestone-button-text {
    position: relative;
    z-index: 2;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #111111;
    white-space: nowrap;
    transition:
        color 0.38s ease,
        transform 0.38s ease;
}

section[data-module="new-milestone"] .new-milestone-button-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: var(--milestone-main);
    border-radius: 50%;
    transition:
        background-color 0.38s ease,
        transform 0.38s ease;
}

section[data-module="new-milestone"] .new-milestone-button-icon::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background: url("/wp-content/uploads/2026/04/button-right.png") no-repeat center;
    background-size: contain;
    transition:
        filter 0.38s ease,
        transform 0.38s ease;
}

section[data-module="new-milestone"] .new-milestone-button:hover {
    transform: translateY(-1px);
    border-color: var(--milestone-main);
    background: var(--milestone-yellow);
}

section[data-module="new-milestone"] .new-milestone-button:hover::before {
    width: 240px;
    height: 240px;
}

section[data-module="new-milestone"] .new-milestone-button:hover::after {
    opacity: 1;
}

section[data-module="new-milestone"] .new-milestone-button:hover .new-milestone-button-text {
    color: #ffffff;
    transform: translateX(1px);
}

section[data-module="new-milestone"] .new-milestone-button:hover .new-milestone-button-icon {
    background: var(--milestone-main);
    transform: translateX(2px);
}

section[data-module="new-milestone"] .new-milestone-button:hover .new-milestone-button-icon::before {
    filter: brightness(0) invert(1);
    transform: translateX(1px);
}

section[data-module="new-milestone"] .new-milestone-button:active {
    transform: scale(0.98);
}

/* =========================================================
   Laptop
========================================================= */

@media (max-width: 1499px) {
    section[data-module="new-milestone"] {
        --milestone-line-x: 16px;

        padding: 72px 24px 82px;
    }

    section[data-module="new-milestone"] .new-milestone-wrapper {
        max-width: 1280px;
    }

    section[data-module="new-milestone"] .new-milestone-row,
    section[data-module="new-milestone"] .new-milestone-axis {
        column-gap: 22px;
    }

    section[data-module="new-milestone"] .new-milestone-title {
        font-size: 46px;
    }

    section[data-module="new-milestone"] .new-milestone-year {
        font-size: 38px;
    }

    section[data-module="new-milestone"] .new-milestone-year-range {
        font-size: 12px;
    }

    section[data-module="new-milestone"] .new-milestone-content p,
    section[data-module="new-milestone"] .new-milestone-content li {
        font-size: 16px;
    }

    section[data-module="new-milestone"] .new-milestone-bg-pattern {
        right: -145px;
        width: 285px;
    }
}

/* =========================================================
   Mobile Slider
========================================================= */

@media (max-width: 1024px) {
    section[data-module="new-milestone"] {
        padding: 54px 0 58px;
    }

    section[data-module="new-milestone"] .new-milestone-wrapper {
        max-width: 100%;
    }

    section[data-module="new-milestone"] .new-milestone-desktop {
        display: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile {
        display: block;
        position: relative;
        z-index: 3;
        overflow: hidden;
    }

    section[data-module="new-milestone"] .new-milestone-heading {
        margin-bottom: 24px;
        padding: 0 26px;
        text-align: left;
    }

    section[data-module="new-milestone"] .new-milestone-title {
        font-size: 38px;
        line-height: 1.12;
    }

    section[data-module="new-milestone"] .new-milestone-title span {
        width: 14px;
        height: 18px;
        flex-basis: 14px;
        margin-left: 10px;
        margin-bottom: 3px;
    }

    section[data-module="new-milestone"] .new-milestone-description {
        font-size: 16px;
    }

    section[data-module="new-milestone"] .new-milestone-bg-pattern {
        right: -110px;
        top: 92px;
        width: 230px;
        max-width: none;
        opacity: 0.62;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 18px 28px;
        scroll-padding-left: 28px;
        scrollbar-width: none;
        box-shadow: none;
        filter: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-track::-webkit-scrollbar {
        display: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-track::after {
        content: "";
        flex: 0 0 18px;
        width: 18px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide {
        flex: 0 0 80%;
        max-width: 420px;
        scroll-snap-align: start;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item {
        position: relative;
        min-height: 230px;
        padding: 24px 18px 22px;
        border-radius: 22px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fdfe 100%);
        border: 1px solid rgba(55, 194, 227, 0.22);
        box-shadow: none;
        overflow: hidden;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item::before {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        top: 0;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--milestone-green) 0%, var(--milestone-blue) 100%);
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item.is-mobile {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item.is-mobile::after {
        display: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-year-wrap {
        min-height: 72px;
        margin-left: 0;
        margin-bottom: 12px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-circle {
        width: 68px;
        top: -10px;
        filter: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-year-text {
        min-height: 62px;
        padding-left: 22px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-year {
        font-size: 34px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-year-range {
        font-size: 11px;
        white-space: normal;
        padding-bottom: 6px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-content {
        max-width: 100%;
        margin-left: 0;
        padding-left: 20px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-content p,
    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-content li {
        font-size: 16px;
        line-height: 1.55;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-indicator {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        margin-top: 4px;
        padding-left: 28px;
        color: rgba(21, 96, 130, 0.45);
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 16px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0.04em;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-current {
        color: var(--milestone-main);
    }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 767px) {
    section[data-module="new-milestone"] {
        padding: 48px 0 54px;
    }

    section[data-module="new-milestone"] .new-milestone-heading {
        padding: 0 24px;
        margin-bottom: 22px;
    }

    section[data-module="new-milestone"] .new-milestone-title {
        font-size: 33px;
    }

    section[data-module="new-milestone"] .new-milestone-title span {
        width: 13px;
        height: 17px;
        flex-basis: 13px;
        margin-left: 9px;
        margin-bottom: 3px;
    }

    section[data-module="new-milestone"] .new-milestone-description {
        font-size: 15px;
    }

    section[data-module="new-milestone"] .new-milestone-bg-pattern {
        right: -118px;
        top: 88px;
        width: 205px;
        opacity: 0.58;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-track {
        gap: 12px;
        padding: 8px 0 18px 24px;
        scroll-padding-left: 24px;
        box-shadow: none;
        filter: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-track::after {
        flex-basis: 16px;
        width: 16px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide {
        flex-basis: 84%;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item {
        min-height: 232px;
        border-radius: 20px;
        padding: 22px 16px 20px;
        box-shadow: none;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-item::before {
        left: 16px;
        right: 16px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-circle {
        width: 64px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-year {
        font-size: 32px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-content p,
    section[data-module="new-milestone"] .new-milestone-mobile-slide .new-milestone-content li {
        font-size: 15px;
    }

    section[data-module="new-milestone"] .new-milestone-mobile-indicator {
        justify-content: center;
        padding-left: 24px;
        font-size: 15px;
    }
}