.amrutanjan-history-timeline {
    --green: #31964a;
    --ink: #171717;
    --muted: #525252;
    --dot: #2f2f2f;
}

.amrutanjan-history-timeline * {
    box-sizing: border-box;
}

.amrutanjan-history-timeline .history {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.6rem 1rem 3.2rem;
    background: #fff;
    color: var(--ink);
        font-family: "Gotham Book", Sans-serif;
}

.amrutanjan-history-timeline h1 {
    margin-bottom: 0.75rem;
     font-family: "Gotham Bold", Sans-serif;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    text-align: center;
}

.amrutanjan-history-timeline .subtitle {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
   font-family: "Gotham Bold", Sans-serif;
    font-size: clamp(0.96rem, 1.45vw, 1.17rem);
    line-height: 1.28;
	margin-top: 35px;
}

.amrutanjan-history-timeline .timeline-desktop {
    position: relative;
    width: 1200px;
    max-width: 100%;
    margin: 2.8rem auto 0;
    height: 920px;
}

.amrutanjan-history-timeline .stat-block {
    position: absolute;
    left: 110px;
    top: 48px;
    width: 255px;
}

.amrutanjan-history-timeline .stat-number {
    margin: 0;
    color: var(--green);
    font-family: "Gotham Bold", Sans-serif;
    font-weight: 900;
    font-size: 5.2rem;
    line-height: 0.9;
	text-align:center;
}

.amrutanjan-history-timeline .stat-text {
    margin: 0.5rem 0 0;
    font-family: "Gotham Bold", Sans-serif;
    font-size: 26px;
	text-align:center;
    line-height: 1.06;
}

.amrutanjan-history-timeline .segment {
    position: absolute;
    border-top: 2.3px dotted #3a3a3a;
    height: 0;
}

.amrutanjan-history-timeline .intro-drop {
    position: absolute;
    left: 420px;
    top: 80px;
    height: 48px;
    border-left: 2.3px dotted #3a3a3a;
}

.amrutanjan-history-timeline .connector {
    position: absolute;
    width: 72px;
    height: 102px;
    border: 2.3px dotted #3a3a3a;
}

.amrutanjan-history-timeline .connector.right {
    border-left: 0;
    border-radius: 0 52px 52px 0;
}

.amrutanjan-history-timeline .connector.left {
    border-right: 0;
    border-radius: 52px 0 0 52px;
}

.amrutanjan-history-timeline .marker {
    position: absolute;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 2px solid var(--dot);
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) scale(0.45);
    cursor: pointer;
    opacity: 0;
    animation: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.amrutanjan-history-timeline .timeline-desktop.is-ready .marker {
    animation: marker-dot-in 0.42s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
    animation-delay: var(--marker-delay, 0s);
}

.amrutanjan-history-timeline .timeline-desktop:not(.is-ready) .marker {
    opacity: 0;
}

.amrutanjan-history-timeline .marker::before {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: -44px;
    bottom: -44px;
}

.amrutanjan-history-timeline .marker::after {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    top: 135%;
    transform: translateX(-50%);
    font-family: "Gotham Bold", Sans-serif;
    font-size: 1.45rem;
    white-space: nowrap;
    line-height: 1;
    color: #1d1d1d;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    animation: none;
}

.amrutanjan-history-timeline .timeline-desktop.is-ready .marker::after {
    animation: marker-year-in 0.24s ease forwards;
    animation-delay: calc(var(--marker-delay, 0s) + 0.25s);
}

.amrutanjan-history-timeline .timeline-desktop:not(.is-ready) .marker::after {
    opacity: 0;
    visibility: hidden;
}

.amrutanjan-history-timeline .marker.year-top::after {
    top: auto;
    bottom: 138%;
}

.amrutanjan-history-timeline .marker.label-left::after {
    left: auto;
    right: 135%;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.amrutanjan-history-timeline .marker.label-right::after {
    left: calc(100% + 10px);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.amrutanjan-history-timeline .marker:hover,
.amrutanjan-history-timeline .marker:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 5px rgba(49, 150, 74, 0.16);
}

.amrutanjan-history-timeline .marker:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

@keyframes marker-dot-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.45);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes marker-year-in {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

.amrutanjan-history-timeline .hover-card {
    position: absolute;
    width: 330px;
    border-radius: 20px;
    background: var(--green);
    color: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 16px 32px rgba(24, 79, 40, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    pointer-events: none;
    z-index: 5;
}

.amrutanjan-history-timeline .hover-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.amrutanjan-history-timeline .hover-title {
  font-family: "Gotham Bold", Sans-serif;
    font-size: 0.98rem;
    margin-bottom: 0.45rem;
}

.amrutanjan-history-timeline .hover-card ul {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.amrutanjan-history-timeline .timeline-mobile {
    display: none;
    margin-top: 1.4rem;
}

.amrutanjan-history-timeline .timeline-mobile-slider {
    display: flex;
    gap: 1.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0.9rem 0.7rem;
    border-top: 2px dotted #3a3a3a;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}

.amrutanjan-history-timeline .mobile-item {
    position: relative;
    flex: 0 0 min(60vw, 220px);
    padding-top: 1.3rem;
    min-height: 5.5rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.amrutanjan-history-timeline .mobile-marker {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    padding: 0;
    border: 2px solid #2f2f2f;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.amrutanjan-history-timeline .mobile-item.active .mobile-marker {
    border-color: var(--green);
    box-shadow: 0 0 0 5px rgba(49, 150, 74, 0.14);
}

.amrutanjan-history-timeline .mobile-year {
    background: transparent;
    border: 0;
    padding: 0;
     font-family: "Gotham Bold", Sans-serif;
    font-size: 1.06rem;
    color: #181818;
    cursor: pointer;
}

.amrutanjan-history-timeline .mobile-popup {
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    padding: 0.8rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease, max-height 0.24s ease;
}

.amrutanjan-history-timeline .mobile-popup.show {
    opacity: 1;
    visibility: visible;
    max-height: 280px;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .amrutanjan-history-timeline .timeline-desktop {
        display: none;
    }

    .amrutanjan-history-timeline .timeline-mobile {
        display: block;
    }

    .amrutanjan-history-timeline .timeline-mobile-slider {
        gap: 1rem;
        padding: 0 0.75rem 0.8rem;
    }

    .amrutanjan-history-timeline .mobile-item {
        flex: 0 0 100%;
        min-height: auto;
        padding-top: 1.6rem;
        align-items: center;
    }

    .amrutanjan-history-timeline .mobile-marker {
        top: 0;
        width: 22px;
        height: 22px;
    }

    .amrutanjan-history-timeline .mobile-year {
        font-size: 1.12rem;
    }

    .amrutanjan-history-timeline .mobile-popup {
        width: 100%;
        max-width: 310px;
        margin: 0.7rem auto 0;
    }
    .amrutanjan-history-timeline  .mobile-popup ul {
    padding-left: 0px;
    margin: 0;
}
}

.amrutanjan-history-timeline .mobile-drag-note {
    margin-top: 0.55rem;
    margin-left: 0.2rem;
    font-size: 0.82rem;
    color: #666;
}

.amrutanjan-history-timeline .hint {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.amrutanjan-history-timeline .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .amrutanjan-history-timeline .timeline-desktop {
        display: none;
    }

    .amrutanjan-history-timeline .timeline-mobile {
        display: block;
    }

    .amrutanjan-history-timeline .timeline-mobile-slider {
        max-width: 100%;
    }

    .amrutanjan-history-timeline .hint {
        text-align: left;
        margin-left: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amrutanjan-history-timeline .hover-card,
    .amrutanjan-history-timeline .marker,
    .amrutanjan-history-timeline .mobile-marker,
    .amrutanjan-history-timeline .timeline-mobile-slider {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
