/* =========================================================
   GLOBAL SETTINGS
========================================================= */

/* World Athletics Regular */
@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;
}


/* World Athletics Headline */
@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;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'World Athletics', serif;
    color: var(--text-color);
    background: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font-family: inherit;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --oydc-green: #00843d;
    --oydc-dark-green: #006b32;

    --oydc-black: #111111;
    --oydc-white: #ffffff;

    --border-color: #eeeeee;

    --text-color: #171717;

    --light-grey: #f5f7f6;

    --medium-grey: #6c746f;

    --light-green: #8de0ae;
    --impact-green: #81dba5;
}


/* =========================================================
   CONTAINER
========================================================= */

.success-container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.success-hero {
    position: relative;

    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.58),
            rgba(0, 132, 61, 0.40)
        ),
        url('../Images/Tysc/Success/Success_BG.png');

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.success-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 132, 61, 0.28),
            transparent 55%
        );
}


.success-hero-content {
    position: relative;
    z-index: 2;

    width: min(1180px, 90%);

    margin: 0 auto;

    color: #ffffff;
}


.hero-label {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--light-green);

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.success-hero h1 {
    max-width: 850px;

    font-family: 'World Athletics Headline', sans-serif;

    font-size: clamp(70px, 10vw, 145px);

    line-height: 0.82;

    letter-spacing: -4px;

    text-transform: uppercase;
}


.success-hero h1 span {
    display: block;

    color: var(--light-green);
}


.success-hero p {
    max-width: 650px;

    margin-top: 35px;

    color: #eeeeee;

    font-size: 20px;

    line-height: 1.7;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;
}


.hero-btn,
.hero-btn-outline {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 52px;

    padding: 0 24px;

    font-weight: bold;

    transition: 0.3s ease;
}


.hero-btn {
    background: var(--oydc-green);

    color: #ffffff;
}


.hero-btn:hover {
    background: var(--oydc-dark-green);

    transform: translateY(-3px);
}


.hero-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.65);

    color: #ffffff;

    background: transparent;
}


.hero-btn-outline:hover {
    background: #ffffff;

    color: var(--oydc-black);

    transform: translateY(-3px);
}


/* =========================================================
   INTRODUCTION
========================================================= */

.success-introduction {
    padding: 100px 0;

    background: #ffffff;
}


.success-introduction .success-container {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 80px;

    align-items: start;
}


.section-heading span,
.section-label {
    display: block;

    margin-bottom: 15px;

    color: var(--oydc-green);

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.section-heading h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: clamp(45px, 5vw, 75px);

    line-height: 0.95;

    text-transform: uppercase;
}


.section-heading h2 strong {
    display: block;

    color: var(--oydc-green);
}


.intro-content {
    padding-top: 25px;
}


.intro-content p {
    margin-bottom: 25px;

    color: #555555;

    font-size: 18px;

    line-height: 1.85;
}


.intro-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SUCCESS STORIES SECTION
========================================================= */

.success-stories {
    position: relative;

    padding: 100px 0 120px;

    background: var(--light-grey);

    overflow: hidden;
}


/* =========================================================
   SUCCESS STORIES TOP GREEN ANIMATED LINE
========================================================= */

.success-stories::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--oydc-green);

    transform: scaleX(0);

    transform-origin: left;

    animation:
        successHorizontalLine
        1.2s
        ease-out
        0.2s
        forwards;
}


/* =========================================================
   STORIES HEADING
========================================================= */

.stories-heading {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: 70px;

    align-items: end;

    margin-bottom: 50px;

    position: relative;
}


.stories-heading::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -25px;

    width: 70px;
    height: 3px;

    background: var(--oydc-green);

    transform: scaleX(0);

    transform-origin: left;

    animation:
        successHorizontalLine
        0.8s
        ease-out
        0.5s
        forwards;
}


.stories-heading h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: clamp(50px, 6vw, 85px);

    line-height: 0.9;

    text-transform: uppercase;
}


.stories-heading h2 strong {
    display: block;

    color: var(--oydc-green);
}


.stories-heading > p {
    color: var(--medium-grey);

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   SEARCH & FILTERS
========================================================= */

.stories-controls {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.story-search {
    position: relative;

    width: 100%;

    max-width: 400px;
}


.story-search i {
    position: absolute;

    top: 50%;
    left: 18px;

    transform: translateY(-50%);

    color: var(--oydc-green);
}


.story-search input {
    width: 100%;

    height: 50px;

    padding: 0 18px 0 48px;

    border: 1px solid #dfe5e1;

    outline: none;

    background: #ffffff;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.story-search input:focus {
    border-color: var(--oydc-green);

    box-shadow:
        0 0 0 3px rgba(0,132,61,0.10);
}


.story-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.story-filter {
    height: 42px;

    padding: 0 15px;

    border: 1px solid #dfe5e1;

    background: #ffffff;

    color: #333333;

    cursor: pointer;

    font-family: inherit;

    font-weight: bold;

    transition: 0.25s ease;
}


.story-filter:hover,
.story-filter.active {
    background: var(--oydc-green);

    border-color: var(--oydc-green);

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   STORY COUNT
========================================================= */

.story-count {
    margin-bottom: 20px;

    color: var(--medium-grey);

    font-size: 14px;
}


/* =========================================================
   STORIES GRID
========================================================= */

.stories-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}


/* =========================================================
   SUCCESS CARD
========================================================= */

.success-card {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border-color);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    opacity: 0;

    animation:
        successCardFadeUp
        0.7s
        ease-out
        forwards;
}


.success-card:hover {
    transform: translateY(-8px);

    border-color: var(--oydc-green);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   STAGGER CARD ANIMATION
========================================================= */

.success-card:nth-child(1) {
    animation-delay: 0.15s;
}

.success-card:nth-child(2) {
    animation-delay: 0.25s;
}

.success-card:nth-child(3) {
    animation-delay: 0.35s;
}

.success-card:nth-child(4) {
    animation-delay: 0.45s;
}

.success-card:nth-child(5) {
    animation-delay: 0.55s;
}

.success-card:nth-child(6) {
    animation-delay: 0.65s;
}

.success-card:nth-child(7) {
    animation-delay: 0.75s;
}

.success-card:nth-child(8) {
    animation-delay: 0.85s;
}


/* =========================================================
   CARD IMAGE
========================================================= */

.success-card-image {
    position: relative;

    display: block;

    height: 330px;

    overflow: hidden;

    background: #dce5df;
}


.success-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}


.success-card:hover .success-card-image img {
    transform: scale(1.06);
}


/* =========================================================
   IMAGE GREEN ANIMATED EDGE
========================================================= */

.success-card-image::before {

    content: "";

    position: absolute;

    z-index: 3;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background: var(--oydc-green);

    transform: scaleY(0);

    transform-origin: top;

    transition:
        transform 0.6s ease;
}


.success-card:hover .success-card-image::before {

    transform: scaleY(1);

}


/* =========================================================
   PROFILE TYPE
   BOTTOM LEFT EDGE OF IMAGE
========================================================= */

.success-card-type {
    position: absolute;

    z-index: 4;

    left: 0;
    bottom: 0;

    padding: 8px 12px;

    background: var(--oydc-green);

    color: #ffffff;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* =========================================================
   NO IMAGE
========================================================= */

.success-card-no-image {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #dce5df;

    color: var(--oydc-green);

    font-size: 50px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.success-card-content {
    padding: 17px 18px 18px;
}


.success-card-sport {
    display: block;

    margin-bottom: 6px;

    color: var(--oydc-green);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


.success-card h3 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: 27px;

    line-height: 0.95;

    text-transform: uppercase;
}


.success-card-role {
    margin-top: 6px;

    font-size: 14px;

    font-weight: bold;

    color: #333333;
}


.success-card-programme {
    margin-top: 5px;

    color: var(--medium-grey);

    font-size: 13px;

    line-height: 1.35;
}


.success-card-description {
    margin-top: 10px;

    color: #6a716d;

    font-size: 14px;

    line-height: 1.45;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   READ STORY
========================================================= */

.read-story {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 13px;

    color: var(--oydc-green);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}


.read-story i {
    transition: transform 0.25s ease;
}


.read-story:hover {
    color: var(--oydc-dark-green);

    gap: 12px;
}


.read-story:hover i {
    transform: translateX(5px);
}


/* =========================================================
   LOADING
========================================================= */

.stories-loading {
    padding: 70px 20px;

    text-align: center;

    background: #ffffff;
}


.stories-loading i {
    display: block;

    margin-bottom: 18px;

    color: var(--oydc-green);

    font-size: 42px;

    animation:
        successSpin
        1.2s
        linear
        infinite;
}


.stories-loading p {
    color: var(--medium-grey);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   NO STORIES
========================================================= */

.no-stories {
    padding: 70px 20px;

    text-align: center;

    background: #ffffff;
}


.no-stories i {
    display: block;

    margin-bottom: 15px;

    color: var(--oydc-green);

    font-size: 40px;
}


.no-stories h3 {
    font-family: 'World Athletics Headline', sans-serif;

    color: var(--oydc-black);

    font-size: 35px;

    text-transform: uppercase;
}


.no-stories p {
    margin-top: 8px;

    color: #777777;
}


/* =========================================================
   ERROR
========================================================= */

.stories-error {
    padding: 70px 20px;

    text-align: center;

    background: #ffffff;
}


.stories-error i {
    display: block;

    margin-bottom: 18px;

    color: var(--oydc-green);

    font-size: 42px;
}


.stories-error h3 {
    font-family: 'World Athletics Headline', sans-serif;

    color: var(--oydc-black);

    font-size: 35px;

    text-transform: uppercase;
}


.stories-error p {
    margin-top: 8px;

    color: var(--medium-grey);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   IMPACT SECTION
========================================================= */

.success-impact {
    position: relative;

    padding: 90px 0;

    background: var(--oydc-black);

    color: #ffffff;

    overflow: hidden;
}


/* =========================================================
   IMPACT TOP GREEN LINE
========================================================= */

.success-impact::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--oydc-green);

    transform: scaleX(0);

    transform-origin: left;

    animation:
        successHorizontalLine
        1.2s
        ease-out
        0.3s
        forwards;
}


.success-impact .success-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}


.impact-content {
    max-width: 800px;
}


.impact-content .section-label {
    color: var(--impact-green);
}


.impact-content h2 {
    font-family: 'World Athletics Headline', sans-serif;

    font-size: clamp(50px, 6vw, 85px);

    line-height: 0.9;

    text-transform: uppercase;
}


.impact-content h2 strong {
    display: block;

    color: var(--impact-green);
}


.impact-content p {
    max-width: 700px;

    margin-top: 25px;

    color: #b9c0bc;

    font-size: 18px;

    line-height: 1.7;
}


.impact-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 130px;
    height: 130px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    color: var(--oydc-green);

    font-size: 50px;

    animation:
        successIconPulse
        3s
        ease-in-out
        infinite;
}


/* =========================================================
   PAGE LOAD ANIMATIONS
========================================================= */

@keyframes successHorizontalLine {

    0% {

        transform: scaleX(0);

        transform-origin: left;

        opacity: 1;

    }

    70% {

        transform: scaleX(1);

        transform-origin: left;

        opacity: 1;

    }

    85% {

        transform: scaleX(1);

        transform-origin: right;

        opacity: 1;

    }

    100% {

        transform: scaleX(0);

        transform-origin: right;

        opacity: 0;

    }

}


/* =========================================================
   HERO FADE-UP
========================================================= */

@keyframes successFadeUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


.success-hero .hero-label {

    animation:
        successFadeUp
        0.8s
        ease-out
        0.15s
        both;

}


.success-hero h1 {

    animation:
        successFadeUp
        0.9s
        ease-out
        0.30s
        both;

}


.success-hero p {

    animation:
        successFadeUp
        0.9s
        ease-out
        0.45s
        both;

}


.success-hero .hero-buttons {

    animation:
        successFadeUp
        0.9s
        ease-out
        0.60s
        both;

}


/* =========================================================
   CARD FADE-UP
========================================================= */

@keyframes successCardFadeUp {

    from {

        opacity: 0;

        transform: translateY(35px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* =========================================================
   GREEN HERO ACCENT LINE
========================================================= */

.success-hero::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 5px;

    background: var(--oydc-green);

    z-index: 4;

    transform: scaleX(0);

    transform-origin: left;

    animation:
        successHorizontalLine
        1.3s
        ease-out
        0.5s
        forwards;
}


/* =========================================================
   ICON PULSE
========================================================= */

@keyframes successIconPulse {

    0%,
    100% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.06);

        opacity: 0.75;

    }

}


/* =========================================================
   LOADING SPINNER
========================================================= */

@keyframes successSpin {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}


/* =========================================================
   HERO GREEN LIGHT EFFECT
========================================================= */

.success-hero-overlay::after {

    content: "";

    position: absolute;

    top: 0;
    left: -30%;

    width: 35%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(141,224,174,0.10),
            transparent
        );

    transform: skewX(-15deg);

    animation:
        successLightSweep
        4s
        ease-in-out
        1.2s
        infinite;

}


@keyframes successLightSweep {

    0% {

        left: -40%;

    }

    50% {

        left: 110%;

    }

    100% {

        left: 110%;

    }

}


/* =========================================================
   BUTTON ARROW ANIMATION
========================================================= */

.hero-btn i,
.hero-btn-outline i {

    transition:
        transform 0.3s ease;
}


.hero-btn:hover i,
.hero-btn-outline:hover i {

    transform:
        translateX(5px);

}


/* =========================================================
   SECTION LABEL GREEN LINE
========================================================= */

.section-label::before,
.section-heading > span::before {

    content: "";

    display: inline-block;

    width: 25px;
    height: 3px;

    margin-right: 10px;

    vertical-align: middle;

    background: var(--oydc-green);

    transform: scaleX(0);

    transform-origin: left;

    animation:
        successShortLine
        0.8s
        ease-out
        0.5s
        forwards;
}


@keyframes successShortLine {

    from {

        transform: scaleX(0);

    }

    to {

        transform: scaleX(1);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .stories-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .success-introduction .success-container {

        grid-template-columns:
            1fr;

        gap:
            35px;

    }

    .stories-heading {

        grid-template-columns:
            1fr;

        gap:
            25px;

    }

    .stories-controls {

        align-items:
            flex-start;

        flex-direction:
            column;

    }

    .story-search {

        max-width:
            100%;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .success-hero {

        min-height:
            600px;

        padding:
            70px 0;

    }

    .success-hero h1 {

        font-size:
            65px;

        letter-spacing:
            -2px;

    }

    .success-hero p {

        font-size:
            17px;

    }

    .hero-buttons {

        flex-direction:
            column;

        align-items:
            stretch;

    }

    .hero-btn,
    .hero-btn-outline {

        width:
            100%;

    }

    .success-introduction,
    .success-stories {

        padding:
            70px 0;

    }

    .stories-grid {

        grid-template-columns:
            1fr;

    }

    .success-card-image {

        height:
            350px;

    }

    .success-card-content {

        padding:
            18px 20px 20px;

    }

    .success-card-description {

        -webkit-line-clamp:
            3;

    }

    .success-impact {

        padding:
            70px 0;

    }

    .success-impact .success-container {

        flex-direction:
            column;

        align-items:
            flex-start;

    }

    .impact-icon {

        width:
            90px;

        height:
            90px;

        font-size:
            35px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .success-container,
    .success-hero-content {

        width:
            90%;

    }

    .success-hero h1 {

        font-size:
            53px;

    }

    .section-heading h2,
    .stories-heading h2 {

        font-size:
            48px;

    }

    .story-filters {

        width:
            100%;

    }

    .story-filter {

        flex:
            1 1 auto;

    }

    .success-card-image {

        height:
            310px;

    }

    .success-card-content {

        padding:
            17px 18px 18px;

    }

    .success-card h3 {

        font-size:
            25px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;

    }

}