/* =========================================================
   GLOBAL SETTINGS
========================================================= */

@font-face {
    font-family: 'World Athletics';

    src: url('../Font/WorldAthletics.eot');

    src:
        local('World Athletics'),
        local('WorldAthletics'),
        url('../Font/WorldAthletics.eot?#iefix') format('embedded-opentype'),
        url('../Font/WorldAthletics.woff2') format('woff2'),
        url('../Font/WorldAthletics.woff') format('woff'),
        url('../Font/WorldAthletics.ttf') format('truetype');

    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'World Athletics Headline';

    src: url('../Font/WorldAthleticsHeadline.eot');

    src:
        local('World Athletics Headline'),
        local('WorldAthleticsHeadline'),
        url('../Font/WorldAthleticsHeadline.eot?#iefix') format('embedded-opentype'),
        url('../Font/WorldAthleticsHeadline.ttf') format('truetype');

    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --oydc-green: #00843d;
    --oydc-dark-green: #006b32;
    --oydc-black: #111111;
    --oydc-white: #ffffff;

    --border-color: #eeeeee;
    --text-color: #171717;
    --light-green: #f3faf6;
}

body {
    font-family: 'World Athletics', sans-serif;
    color: var(--text-color);
    background: #ffffff;

    animation: pageFadeIn 0.8s ease-out both;
}


/* =========================================================
   EVENTS HERO
========================================================= */

.events-hero {
    min-height: 300px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;

    background-image:
        url('../Images/OYDC-3.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.events-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 107, 50, 0.96) 0%,
            rgba(0, 132, 61, 0.88) 45%,
            rgba(0, 132, 61, 0.55) 100%
        );

    z-index: 1;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.events-hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    padding: 80px 6%;

    position: relative;
    z-index: 3;

    animation:
        eventsHeroIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.15s
        both;
}


/* =========================================================
   HERO LABEL
========================================================= */

.section-label {
    display: inline-block;

    font-family: 'World Athletics Headline', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2.5px;

    color: rgba(255,255,255,0.85);

    margin-bottom: 12px;
}


/* =========================================================
   HERO HEADING
========================================================= */

.events-hero h1 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 64px;
    line-height: 1;

    color: var(--oydc-white);

    margin-bottom: 20px;
}

.events-hero p {
    max-width: 680px;

    color: rgba(255,255,255,0.93);

    font-size: 18px;
    line-height: 1.75;

    margin-bottom: 32px;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 14px;
}

.hero-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 13px 21px;

    background: var(--oydc-white);
    color: var(--oydc-dark-green);

    text-decoration: none;

    font-family: 'World Athletics Headline', sans-serif;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;

    border: 1px solid var(--oydc-white);
    border-radius: 3px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.hero-btn:hover {
    background: var(--oydc-green);

    color: var(--oydc-white);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.15);
}

.hero-btn i {
    font-size: 14px;
}


/* =========================================================
   OUTLINE BUTTONS
========================================================= */

.hero-btn-outline {
    background: transparent;

    color: var(--oydc-white);

    border-color: rgba(255,255,255,0.75);
}

.hero-btn-outline:hover {
    background: var(--oydc-white);

    color: var(--oydc-dark-green);

    border-color: var(--oydc-white);
}


/* =========================================================
   HERO DECORATIVE CIRCLES
========================================================= */

.hero-circle {
    position: absolute;

    border: 1px solid rgba(255,255,255,0.14);

    border-radius: 50%;

    z-index: 2;

    pointer-events: none;
}

.hero-circle-one {
    width: 430px;
    height: 430px;

    right: -130px;
    top: -150px;

    animation:
        heroCircleIn
        1.2s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.25s
        both;
}

.hero-circle-two {
    width: 280px;
    height: 280px;

    right: 100px;
    bottom: -190px;

    border-color: rgba(255,255,255,0.09);
}


/* =========================================================
   EVENTS SECTION
========================================================= */

.events-section {
    padding: 75px 6%;

    background: #ffffff;
}


/* =========================================================
   EVENTS CONTAINER
========================================================= */

.events-container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.events-intro {
    max-width: 900px;

    margin-bottom: 50px;

    animation:
        introIn
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.35s
        both;
}

.intro-heading {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}

.green-line {
    width: 5px;
    height: 42px;

    background: var(--oydc-green);

    display: block;
}

.intro-heading h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 34px;

    color: var(--oydc-black);
}

.events-intro p {
    font-size: 16px;

    line-height: 1.8;

    color: #555555;

    margin-bottom: 12px;
}


/* =========================================================
   EVENTS GRID
========================================================= */

.events-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}


/* =========================================================
   EVENT CARD
========================================================= */

.event-card {
    background: var(--oydc-white);

    border: 1px solid var(--border-color);

    border-radius: 4px;

    padding: 28px;

    min-height: 220px;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    opacity: 0;

    animation:
        eventCardIn
        0.8s
        cubic-bezier(0.22, 1, 0.36, 1)
        both;
}

.event-card:nth-child(1) {
    animation-delay: 0.50s;
}

.event-card:nth-child(2) {
    animation-delay: 0.62s;
}

.event-card:nth-child(3) {
    animation-delay: 0.74s;
}

.event-card:nth-child(4) {
    animation-delay: 0.86s;
}

.event-card:hover {
    transform: translateY(-6px);

    border-color: rgba(0,132,61,0.30);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.08);
}


/* =========================================================
   EVENT ICON
========================================================= */

.event-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--light-green);

    color: var(--oydc-green);

    border-radius: 4px;

    margin-bottom: 22px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.event-card:hover .event-icon {
    background: var(--oydc-green);

    color: var(--oydc-white);
}

.event-icon i {
    font-size: 24px;
}


/* =========================================================
   EVENT CONTENT
========================================================= */

.event-content h3 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 21px;

    line-height: 1.25;

    color: var(--oydc-black);

    margin-bottom: 12px;
}

.event-content p {
    font-size: 14px;

    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   PAGE ANIMATIONS
========================================================= */

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes eventsHeroIn {
    from {
        opacity: 0;

        transform: translateX(-35px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }
}

@keyframes introIn {
    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes eventCardIn {
    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes heroCircleIn {
    from {
        opacity: 0;

        transform:
            translateX(40px)
            scale(0.9);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }
}


/* =========================================================
   GREEN LOADING LINE
========================================================= */

body::before {
    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 3px;

    background: var(--oydc-green);

    transform-origin: left;

    transform: scaleX(0);

    animation:
        pageLoadingLine
        1.1s
        cubic-bezier(0.65, 0, 0.35, 1)
        both;

    z-index: 99999;

    pointer-events: none;
}

@keyframes pageLoadingLine {
    0% {
        transform: scaleX(0);

        opacity: 1;
    }

    70% {
        transform: scaleX(0.85);

        opacity: 1;
    }

    100% {
        transform: scaleX(1);

        opacity: 0;
    }
}


/* =========================================================
   MEET THE TEAM
========================================================= */

.team-section {
    padding: 80px 6%;

    background: #f8faf9;

    border-top: 1px solid #edf2ef;
}

.team-container {
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   TEAM HEADING
========================================================= */

.team-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 50px;
}

.section-label-green {
    display: inline-block;

    font-family: 'World Athletics Headline', sans-serif;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2.5px;

    color:#fff;

    margin-bottom: 10px;
}


.events-email {
    text-align: center;
    width: 100%;
    margin: 40px auto 0;
    font-size: 20px !important;
}

.events-email a {
text-decoration: none;
color: var(--oydc-green);
}



.team-heading h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 38px;

    line-height: 1.1;

    color: var(--oydc-black);

    margin-bottom: 15px;
}

.team-heading p {
    font-size: 16px;

    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    background: var(--oydc-white);

    border: 1px solid var(--border-color);

    border-radius: 4px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-7px);

    border-color: rgba(0,132,61,0.25);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.10);
}


/* =========================================================
   TEAM IMAGE
========================================================= */

.team-image {
    width: 100%;

    height: 340px;

    overflow: hidden;

    background: #eeeeee;
}

.team-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.04);
}


/* =========================================================
   TEAM INFORMATION
========================================================= */

.team-info {
    padding: 22px 24px 25px;

    text-align: center;

    background: var(--oydc-green);

    color: var(--oydc-white);
}


/* =========================================================
   TEAM NAME
========================================================= */

.team-info h3 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 22px;

    color: var(--oydc-white);

    margin-bottom: 7px;
}


/* =========================================================
   TEAM POSITION
========================================================= */

.team-info p {
    font-size: 14px;

    color: rgba(255,255,255,0.88);

    font-weight: bold;

    line-height: 1.5;
}


/* =========================================================
   GREEN/WHITE DECORATIVE LINE
========================================================= */

.team-info::before {
    content: "";

    display: block;

    width: 35px;

    height: 3px;

    background: var(--oydc-white);

    margin: 0 auto 15px;
}


/* =========================================================
   UPCOMING EVENTS SECTION
========================================================= */

.upcoming-events {
    padding: 45px 0 35px;

    background-image:
        linear-gradient(
            rgba(24, 24, 24, 0.65),
            rgba(24, 26, 24, 0.65)
        ),
        url('../Images/OYDC-4.jpg');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    overflow: hidden;

    color: #ffffff;
}


/* =========================================================
   UPCOMING EVENTS CONTAINER
========================================================= */

.upcoming-events .events-container {
    width: 90%;

    max-width: 1400px;

    margin: 0 auto;
}


/* =========================================================
   TIMELINE HEADING
========================================================= */

.timeline-heading {
    text-align: center;

    max-width: 720px;

    margin: 0 auto 45px;
}

.timeline-heading h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 42px;

    color: #ffffff;

    margin: 5px 0 10px;
}

.timeline-heading p {
    font-size: 16px;

    color: rgba(255,255,255,0.85);

    line-height: 1.6;

    margin: 0;
}


/* =========================================================
   HORIZONTAL SCROLL AREA
========================================================= */

.timeline-scroll {
    width: 100%;

    overflow-x: auto;

    overflow-y: visible;

    padding: 10px 20px 35px;

    scrollbar-width: thin;

    scrollbar-color:
        #fff
        rgba(255,255,255,0.20);
}


/* =========================================================
   TIMELINE
========================================================= */

.events-timeline {
    display: flex;
    position: relative;
    width: max-content;
    min-width: 100%;
}


/* =========================================================
   MAIN TIMELINE LINE
========================================================= */

.events-timeline::before {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    /* Timeline line position */
    top: 284px;

    height: 5px;

    background: var(--oydc-green);

    border-radius: 10px;

    z-index: 1;
}


/* =========================================================
   EVENT ITEM
========================================================= */

.timeline-item {
    width: 25%;

    min-width: 300px;

    position: relative;

    height: 400px;

    display: flex;

    justify-content: flex-start;

    align-items: center;

    flex-direction: column;
}


/* =========================================================
   TIMELINE EVENT CARD
========================================================= */

.timeline-content {
    width: 250px;

    min-height: 230px;

    background: var(--oydc-white);

    border: 1px solid #e5e9e6;

    padding: 25px 22px;

    border-radius: 5px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.07);

    position: relative;

    z-index: 3;

    transition:
        all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.12);
}


/* =========================================================
   SMALL ARROW FROM CARD TO TIMELINE
========================================================= */

.timeline-content::after {
    content: "";

    position: absolute;

    bottom: -11px;

    left: 50%;

    width: 20px;

    height: 20px;

    background: var(--oydc-white);

    border-right: 1px solid #e5e9e6;

    border-bottom: 1px solid #e5e9e6;

    transform:
        translateX(-50%)
        rotate(45deg);

    z-index: -1;
}


/* =========================================================
   EVENT DATE
========================================================= */

.event-date {
    display: inline-block;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.2px;

    color: var(--oydc-green);

    margin-bottom: 12px;
}


/* =========================================================
   EVENT TITLE
========================================================= */

.timeline-content h3 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 20px;

    line-height: 1.25;

    color: var(--oydc-black);

    margin: 0 0 20px;
}


/* =========================================================
   EVENT DETAILS
========================================================= */

.event-detail {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    font-size: 13px;

    color: #666;

    margin-bottom: 10px;

    line-height: 1.4;
}

.event-detail i {
    color: var(--oydc-green);

    width: 15px;

    margin-top: 2px;
}


/* =========================================================
   TIMELINE POINT
========================================================= */

.timeline-point {
    position: absolute;

    /* Point sits on the timeline */
    top: 260px;

    left: 50%;

    transform: translateX(-50%);

    width: 50px;

    height: 50px;

    border-radius: 50%;

    background: var(--oydc-green);

    border: 5px solid #f7faf8;

    box-shadow:
        0 0 0 3px var(--oydc-green);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--oydc-white);

    z-index: 5;

    font-size: 17px;
}


/* =========================================================
   DATE + ICON BELOW TIMELINE
========================================================= */

.timeline-date-bottom {
    position: absolute;

    /* Content below the timeline point */
    top: 325px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    line-height: 1;

    z-index: 4;

    text-align: center;
}


/* =========================================================
   ICON BELOW TIMELINE
========================================================= */

.timeline-date-bottom i {
    font-size: 22px;

    color: var(--oydc-green);

    margin-bottom: 10px;
}


/* =========================================================
   DATE
========================================================= */

.timeline-date-bottom strong {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 27px;

    color: #ffffff;

    margin-bottom: 5px;
}


/* =========================================================
   MONTH / DATE LABEL
========================================================= */

.timeline-date-bottom span {
    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;

    color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET - TEAM
========================================================= */

@media (max-width: 900px) {

    .team-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 25px;
    }

    .team-image {
        height: 320px;
    }
}

.events-email {
font-size: 16px;
}

/* =========================================================
   MOBILE - UPCOMING EVENTS
========================================================= */

@media (max-width: 768px) {

    .upcoming-events {
        padding: 40px 0 30px;
    }

    .timeline-heading {
        margin-bottom: 35px;
    }

    .timeline-heading h2 {
        font-size: 34px;
    }

    .timeline-heading p {
        font-size: 15px;
    }

    .events-timeline {
        min-width: 1100px;
    }

    .timeline-scroll {
        padding:
            10px
            10px
            30px;
    }

    .events-email {
font-size: 16px;
}
}


/* =========================================================
   MOBILE - TEAM
========================================================= */

@media (max-width: 600px) {

    .team-section {
        padding: 60px 6%;
    }

    .team-heading {
        margin-bottom: 35px;
    }

    .team-heading h2 {
        font-size: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .team-image {
        height: 360px;
    }

    .events-email {
font-size: 16px;
}
}


/* =========================================================
   MOBILE - EVENTS HERO
========================================================= */

@media (max-width: 768px) {

    .events-hero {
        min-height: 500px;
    }

    .events-hero-content {
        padding: 65px 7%;
    }

    .events-hero h1 {
        font-size: 48px;
    }

    .events-hero p {
        font-size: 17px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-email {
font-size: 16px;
}
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .events-hero {
        min-height: 560px;
    }

    .events-hero-content {
        padding: 55px 6%;
    }

    .events-hero h1 {
        font-size: 40px;
    }

    .events-hero p {
        font-size: 16px;

        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;

        width: 100%;
    }

    .hero-btn {
        width: 100%;

        text-align: center;
    }

    .events-section {
        padding: 50px 6%;
    }

    .intro-heading h2 {
        font-size: 28px;
    }

    .events-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .event-card {
        min-height: auto;

        padding: 24px;
    }

    .hero-circle-one {
        width: 300px;

        height: 300px;

        right: -160px;

        top: -100px;
    }

    /* Keep Upcoming Events compact on small phones */
    .upcoming-events {
        padding: 35px 0 25px;
    }

    .timeline-heading {
        margin-bottom: 30px;
    }

    .timeline-heading h2 {
        font-size: 30px;
    }

    .events-email {
font-size: 16px;
}
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    body,
    .events-hero-content,
    .events-intro,
    .event-card,
    .hero-circle,
    body::before {

        animation: none !important;

        opacity: 1 !important;

        transform: none !important;
    }
}

