:root {
    --color-yale-blue-50: #e8f4fd;
    --color-yale-blue-100: #d0eafb;
    --color-yale-blue-200: #a1d5f7;
    --color-yale-blue-300: #72bff3;
    --color-yale-blue-400: #43aaef;
    --color-yale-blue-500: #1495eb;
    --color-yale-blue-600: #1077bc;
    --color-yale-blue-700: #0c598d;
    --color-yale-blue-800: #083c5e;
    --color-yale-blue-900: #041e2f;
    --color-yale-blue-950: #031521;
}

html {
    scroll-behavior: smooth;
}

body {
    width:100%;
    height:100%;
    margin: 0;
}

/* Navigation and Footer Link Styling */
nav a, 
footer a {
    text-decoration: none !important;
    transition: all 1.5s ease;
    position: relative;
    display: inline-block;
}
.nav-logo img{width:70px;height:auto !important;}
footer ul {
    list-style: none !important;
    padding-left: 0 !important;
}

nav a::after,
footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 1.5s ease;
}

nav a:hover::after,
footer a:hover::after {
    width: 100%;
}

footer a {
    color: #9ca3af !important; /* text-gray-400 */
}

footer a:hover {
    color: var(--color-yale-blue-300) !important;
}

nav a:hover {
    color: var(--color-yale-blue-600) !important;
}

nav div .logo img{
    width:70px !important; 
    height:auto;
}

/* Hero Section Button Styling */
.custom-hero .hero-left .hero-left-container button {
    width: fit-content;
    padding: 0.7em 1.7em;
    font-size: 14px;
    border-radius: 1.5em;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px #c5c5c5, -3px -3px 8px #ffffff;
}

.custom-hero .hero-left .hero-left-container button:hover {
    color: #666;
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.custom-hero .hero-right .hero-right-container {
    width: 70%;
    margin: auto;
    height: 480px !important;
    background-image: url('/dist/img/black\ children.webp');
    background-size: cover;
    background-position: center;
    -webkit-mask-image: url('/dist/img/shape.png');
    mask-image: url('/dist/img/shape.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Timeline Styling */
.timeline-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5vh 0rem 5vh;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    background-color: var(--color-yale-blue-300);
    transform: translateX(-50%);
}

.timeline-line-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-yale-blue-800), var(--color-yale-blue-300));
    transform-origin: top;
    transform: scaleY(0);
    animation: fill-line linear forwards;
    animation-timeline: scroll(root);
}

.timeline-section {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    padding: 3rem 0;
    min-height: 250px;
}

.timeline-section:nth-child(even) {
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: var(--color-yale-blue-100);
    border: 1px solid var(--color-yale-blue-200);
    border-radius: 50%;
    z-index: 3;
    transition: background-color 0.3s, border-color 0.3s;
    animation: light-up linear forwards;
    animation-timeline: view();
    animation-range: contain 40% contain 60%;
}

.timeline-content {
    width: calc(50% - 20px);
    padding: 2rem;
    background: var(--color-yale-blue-50);
    border-radius: 12px;
    border: 1px solid var(--color-yale-blue-100);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px var(--color-yale-blue-200);
    position: relative;
    animation: fade-in-up linear forwards;
    animation-timeline: view();
    animation-range: entry 20% cover 50%;
}

.timeline-section:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--color-yale-blue-700);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timeline-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    font-weight: 300;
}

/* Section 2 */
.section-2 div:nth-child(2),
.section-2 div:nth-child(3),
.section-2 div:nth-child(4) {
    min-height: -webkit-fill-available;
}

/* Section 3 Image */
.custom-section-3 .section-3-left .section-3-left-container {
    width: 90%;
    margin: auto;
    height: 500px;
    background-image: url('/dist/img/mental_health1.webp');
    background-size: cover;
    background-position: center;
    -webkit-mask-image: url('/dist/img/shape11.png');
    mask-image: url('/dist/img/shape11.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Animations */
@keyframes fill-line {
    to {
        transform: scaleY(1);
    }
}

@keyframes light-up {
    from,
    to {
        border-color: var(--color-yale-blue-200);
        background-color: var(--color-yale-blue-100);
        box-shadow: none;
    }
    50% {
        border-color: var(--color-yale-blue-600);
        background-color: var(--color-yale-blue-300);
        box-shadow: 0 0 15px 5px var(--color-yale-blue-200);
    }
    100% {
        border-color: var(--color-yale-blue-700);
        background-color: var(--color-yale-blue-400);
        box-shadow: 0 0 15px 5px var(--color-yale-blue-500);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Utility Classes */
.autoShow {
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 50vh;
}

.fadeUp {
    animation: fadeUp both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
}

.material-symbols-outlined {
    font-size: inherit;
}

.blur-3xl {
    filter: blur(64px);
}

.opacity-20 {
    opacity: 0.2;
}

.color-yale-900 {
    color: var(--color-yale-blue-900);
}

.bg-yale-950 {
    background-color: var(--color-yale-blue-950);
}

.color-yale-950 {
    color: var(--color-yale-blue-950);
}


/* Yale Blue Border Utility Classes */

.border-yale-50 {
    border-color: var(--color-yale-blue-50);
}

.border-yale-100 {
    border-color: var(--color-yale-blue-100);
}

.border-yale-200 {
    border-color: var(--color-yale-blue-200);
}

.border-yale-300 {
    border-color: var(--color-yale-blue-300);
}

.border-yale-400 {
    border-color: var(--color-yale-blue-400);
}

.border-yale-500 {
    border-color: var(--color-yale-blue-500);
}

.border-yale-600 {
    border-color: var(--color-yale-blue-600);
}

.border-yale-700 {
    border-color: var(--color-yale-blue-700);
}

.border-yale-800 {
    border-color: var(--color-yale-blue-800);
}

.border-yale-900 {
    border-color: var(--color-yale-blue-900);
}

.border-yale-950 {
    border-color: var(--color-yale-blue-950);
}

body {
    margin: 0;
}

nav a, 
footer a {
    text-decoration: none !important;
    transition: all 1.5s ease;
    position: relative;
    display: inline-block;
}

footer ul {
    list-style: none !important;
    padding-left: 0 !important;
}

nav a::after,
footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 1.5s ease;
}

nav a:hover::after,
footer a:hover::after {
    width: 100%;
}

footer a {
    color: #9ca3af !important; /* text-gray-400 */
}

footer a:hover {
    color: var(--color-yale-blue-300) !important;
}

nav a:hover {
    color: var(--color-yale-blue-600) !important;
}
nav div .logo img{width:70px !important; height:auto;}
.custom-hero .hero-left .hero-left-container button {
    width: fit-content;
    padding: 0.7em 1.7em;
    font-size: 14px;
    border-radius: 1.5em;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    transition: all 0.3s;
    box-shadow: 3px 3px 8px #c5c5c5, -3px -3px 8px #ffffff;
}

.custom-hero .hero-left .hero-left-container button:hover {
    color: #666;
    box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
}

.custom-hero .hero-right .hero-right-container {
    width: 70%;
    margin: auto;
    height: 480px !important;
}

.custom-hero .hero-right .hero-right-container {
    background-image: url('/dist/img/black\ children.webp');
    background-size: cover;
    background-position: center;
    -webkit-mask-image: url('/dist/img/shape.png');
    mask-image: url('/dist/img/shape.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.sectio-1 *::before,
.section-1 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.timeline-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 5vh 0rem 5vh;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    background-color: var(--color-yale-blue-300);
    transform: translateX(-50%);
}

.timeline-line-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-yale-blue-800), var(--color-yale-blue-300));
    transform-origin: top;
    transform: scaleY(0);
    animation: fill-line linear forwards;
    animation-timeline: scroll(root);
}

.timeline-section {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    padding: 3rem 0;
    min-height: 250px;
}

.timeline-section:nth-child(even) {
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: var(--color-yale-blue-100);
    border: 1px solid var(--color-yale-blue-200);
    border-radius: 50%;
    z-index: 3;
    transition: background-color 0.3s, border-color 0.3s;
    animation: light-up linear forwards;
    animation-timeline: view();
    animation-range: contain 40% contain 60%;
}

/* .timeline-content {
    width: calc(42% - 20px);
    padding: 2rem;
    background: var(--color-yale-blue-50);
    border-radius: 12px;
    border: 1px solid var(--color-yale-blue-100);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px var(--color-yale-blue-200);
    position: relative;
    animation: fade-in-up linear forwards;
    animation-timeline: view();
    animation-range: entry 20% cover 50%;
} */

.timeline-section:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--color-yale-blue-700);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.timeline-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    font-weight: 300;
}

.section-2 div:nth-child(2),
.section-2 div:nth-child(3),
.section-2 div:nth-child(4) {
    min-height: -webkit-fill-available;
}

.custom-section-3 .section-3-left .section-3-left-container {
    width: 90%;
    margin: auto;
    height: 500px;
    background-image: url('/dist/img/mental_health1.webp');
    background-size: cover;
    background-position: center;
    -webkit-mask-image: url('/dist/img/shape11.png');
    mask-image: url('/dist/img/shape11.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@keyframes fill-line {
    to {
        transform: scaleY(1);
    }
}

@keyframes light-up {
    from,
    to {
        border-color: var(--color-yale-blue-200);
        background-color: var(--color-yale-blue-100);
        box-shadow: none;
    }
    50% {
        border-color: var(--color-yale-blue-600);
        background-color: var(--color-yale-blue-300);
        box-shadow: 0 0 15px 5px var(--color-yale-blue-200);
    }
    100% {
        border-color: var(--color-yale-blue-700);
        background-color: var(--color-yale-blue-400);
        box-shadow: 0 0 15px 5px var(--color-yale-blue-500);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* @media screen and (max-width:768px) {
    .timeline-wrapper {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    .timeline-line {
        left: 18px;
        transform: none;
    }
    .timeline-marker {
        left: 18px;
        transform: none;
    }
    .timeline-section,
    .timeline-section:nth-child(even) {
        justify-content: flex-start;
        padding-right: 36px;
    }
    .timeline-content,
    .timeline-section:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
    }
} */


/* Animations */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autoShow {
    animation: text-appear both;
    animation-timeline: view();
    animation-range: entry 20% cover 50vh;
}

@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeUp {
    animation: fadeUp both;
    animation-timeline: view();
    animation-range: entry 20% cover 45%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



/* Gradient Utility Classes */

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-yale-400 {
    --tw-gradient-from: var(--color-yale-blue-400);
    --tw-gradient-to: rgb(67 170 239 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-yale-500 {
    --tw-gradient-from: var(--color-yale-blue-500);
    --tw-gradient-to: rgb(20 149 235 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-yale-600 {
    --tw-gradient-from: var(--color-yale-blue-600);
    --tw-gradient-to: rgb(16 119 188 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-yale-700 {
    --tw-gradient-from: var(--color-yale-blue-700);
    --tw-gradient-to: rgb(12 89 141 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-transparent {
    --tw-gradient-from: transparent;
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-white {
    --tw-gradient-from: #ffffff;
    --tw-gradient-to: rgb(255 255 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-yale-600 {
    --tw-gradient-to: rgb(16 119 188 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--color-yale-blue-600), var(--tw-gradient-to);
}

.via-yale-50 {
    --tw-gradient-to: rgb(232 244 253 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--color-yale-blue-50), var(--tw-gradient-to);
}

.via-white {
    --tw-gradient-to: rgb(255 255 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), #ffffff, var(--tw-gradient-to);
}

.via-transparent {
    --tw-gradient-to: transparent;
    --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to);
}

.to-yale-300 {
    --tw-gradient-to: var(--color-yale-blue-300);
}

.to-yale-400 {
    --tw-gradient-to: var(--color-yale-blue-400);
}

.to-yale-500 {
    --tw-gradient-to: var(--color-yale-blue-500);
}

.to-yale-600 {
    --tw-gradient-to: var(--color-yale-blue-600);
}

.to-yale-700 {
    --tw-gradient-to: var(--color-yale-blue-700);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

.text-transparent {
    color: transparent;
}

.blur-3xl {
    filter: blur(64px);
}

.opacity-20 {
    opacity: 0.2;
}