body {
    --color: rgba(30, 30, 30);
    --bgColor: rgba(245, 245, 245);
    min-height: 100vh;
    display: grid;
    align-content: center;
    color: var(--color);
    background: var(--bgColor);
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}
.top-navBar header{
    margin-bottom: 0px !important;
}
.leader-sec ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(60rem, 90%);
    margin-inline: auto;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out forwards;
    animation-delay: 0.5s;
    /* Delay to make timeline appear after the title */
}

/* line */
.leader-sec ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

/* columns */
.leader-sec ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

/* card */
.leader-sec ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.leader-sec ul li:nth-child(odd) {
    animation-delay: 0.5s;
}

.leader-sec ul li:nth-child(even) {
    animation-delay: 1s;
}

/* date */
.leader-sec ul li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

.leader-sec ul li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
}

.leader-sec ul li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--bgColor);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title and description */
.leader-sec ul li .title {
    background: var(--bgColor);
    position: relative;
    padding-inline: 1.5rem;
    font-size: 20px;
}

.leader-sec ul li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 1rem;
    font-weight: 500;
}

.leader-sec ul li .descr {
    padding-block-end: 1.5rem;
    font-weight: 300;
}

.leader-sec ul li .title::before,
.leader-sec ul li .descr::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 0.5rem;
    /* background: rgba(0, 0, 0, 0.5); */
    left: 50%;
    border-radius: 50%;
    filter: blur(4px);
    transform: translate(-50%, 50%);
}

.leader-sec ul li .title::before {
    bottom: calc(100% + 0.125rem);
}

.leader-sec ul li .descr::before {
    z-index: -1;
    bottom: 0.25rem;
}

/* Hover effect */
.leader-sec ul li:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.leader-sec ul li:hover .title {
    color: var(--accent-color);
}

@media (min-width: 40rem) {
    .leader-sec ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    .leader-sec ul::before {
        grid-column: 2;
    }

    .leader-sec ul li:nth-child(odd) {
        grid-column: 1;
    }

    .leader-sec ul li:nth-child(even) {
        grid-column: 3;
    }

    /* start second card */
    .leader-sec ul li:nth-child(2) {
        grid-row: 2/4;
    }

    .leader-sec ul li:nth-child(odd) .date::before {
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        left: 0;
    }

    .leader-sec ul li:nth-child(odd) .date::after {
        transform: translate(-50%, -50%);
        left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    .leader-sec ul li:nth-child(odd) .date {
        border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }
}

.credits {
    margin-top: 1rem;
    text-align: right;
}

.credits a {
    color: var(--color);
}