:root {
    --color-primary: #560688; /* Corrected deep purple */
    --color-accent: #d928aa;  /* The pink highlight */
    --color-bg: #ffffff;
    --color-bg-light: #f9f9f9; /* CTA background */
    --color-text-primary: #333333;
    --color-text-muted: #666666;
    --color-border: #efefef;
    
    /* Shadows */
    --shadow-low: 0 4px 20px rgba(0,0,0,0.03);
    --shadow-mid: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-high: 0 20px 40px rgba(0,0,0,0.1);
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text-primary);
    font-size: 18px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: sans-serif;
    font-weight: 600;
    color: var(--color-text-primary);
}

h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 30px; line-height: 1.3; }

.contour-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    pointer-events: none;
}

.nav-link {
    position: relative;
    color: var(--color-text-primary);
    transition: color 0.2s;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-accent);
}

/* Dropdown Navigation */
.nav-item-with-dropdown {
    position: relative;
    padding: 10px 0;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-item-with-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 24px;
    color: var(--color-text-primary);
    font-size: 15px;
    transition: all 0.2s;
}

.dropdown-link:hover {
    background: #f8f8f8;
    color: var(--color-accent);
    padding-left: 30px;
}

/* Timeline Styles */
/* CD-Inspired Timeline Structure */
.timeline-container {
    position: relative;
    padding: 2em 0;
    margin: 2em auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    height: 100%;
    width: 4px;
    background: #e5e7eb;
    margin-left: -2px;
}

.timeline-progress-line {
    position: absolute;
    left: 25%;
    top: 0;
    width: 4px;
    background: var(--color-primary);
    margin-left: -2px;
    z-index: 1;
    height: 0;
    transition: height 0.1s linear;
}

.timeline-block {
    position: relative;
    margin: 4em 0;
}

.timeline-block::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-block:first-child { margin-top: 0; }
.timeline-block:last-child { margin-bottom: 0; }

.timeline-img {
    position: absolute;
    top: 15px;
    left: 25%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: -12px;
    background: white;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.4s ease;
}

.timeline-block.active .timeline-img {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 8px rgba(217, 40, 170, 0.1);
    transform: scale(1.2);
}

.timeline-content {
    position: relative;
    margin-left: 30%;
    background: white;
    border-radius: 4px;
    padding: 2.5em;
    box-shadow: var(--shadow-mid);
    transition: all 0.4s ease;
    transform: translateX(10px);
}

.timeline-block.active .timeline-content {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 100%;
    height: 0;
    width: 0;
    border: 12px solid transparent;
    border-right: 12px solid white;
}

.timeline-year-label {
    position: absolute;
    width: 20%;
    right: 78%;
    top: 8px;
    text-align: right;
}

.timeline-year-sticky {
    position: sticky;
    top: 180px;
    font-size: 48px;
    font-weight: 800;
    color: #2B2B2B;
    transition: all 0.4s ease;
    line-height: 1;
    letter-spacing: -1px;
}

.timeline-block.active .timeline-year-sticky {
    color: var(--color-accent);
}

.timeline-image-frame {
    margin-top: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.timeline-image-frame img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media only screen and (max-width: 1170px) {
    .timeline-container::before, .timeline-progress-line { left: 40px; }
    .timeline-img { left: 40px; }
    .timeline-content { margin-left: 90px; padding: 1.5em; }
    .timeline-year-label { position: static; width: 100%; text-align: left; margin-bottom: 1em; padding-left: 90px; }
    .timeline-year-sticky { position: static; font-size: 32px; color: var(--color-primary); }
    .timeline-content::before { top: 16px; }
}

/* Archive Page Styles */
.search-container {
    display: flex;
    align-items: stretch;
}

.search-input {
    background: white;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 15px;
    width: 300px;
    outline: none;
}

.search-input:focus {
    border-color: var(--color-primary);
}

.archive-grid {
    display: grid;
    grid-template-cols: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.archive-card {
    background: white;
    border: 1px solid #efefef;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 0px #C98EEF;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #C98EEF;
}

.archive-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.archive-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.archive-card-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.archive-card-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .archive-grid { grid-template-cols: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .archive-grid { grid-template-cols: 1fr; }
    .search-container { width: 100%; margin-top: 20px; }
    .search-input { flex-grow: 1; }
}

/* Accessibility Utilities */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

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

/* Focus Indicators */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.scroll-top-btn:focus-visible {
    outline-offset: 2px;
}

.work-card {
    background: #ffffff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 6px 6px 0px #C98EEF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    height: 100%;
}
.work-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 10px 10px 0px #C98EEF;
}

.update-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-low);
}
.update-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 12px 30px rgba(86, 6, 136, 0.05);
    transform: translateY(-6px);
}

.partner-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-mid);
}
.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(86, 6, 136, 0.1);
}

/* Latest News Card Styles */
.news-card {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 6px 6px 0px #C98EEF;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #C98EEF;
}
.news-card-date {
    color: #6A0DAD;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.news-card-title {
    color: #6A0DAD;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-excerpt {
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}
.news-card-link {
    color: #6A0DAD;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Stories of Impact New Styles */
.impact-card-new {
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    box-shadow: 6px 6px 0px #C98EEF;
    transition: all 0.3s ease;
    height: 300px;
}
.impact-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px #C98EEF;
}
.impact-card-image {
    width: 40%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.impact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.impact-card-content {
    width: 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.impact-card-title {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.impact-card-description {
    color: #4A4A4A;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.impact-card-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Banner section */
.image-banner-section {
    position: relative;
    z-index: 5;
    height: 600px;
}

.banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
    clip-path: url(#wave-clip);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(217, 40, 170, 0.3);
}

@media print {
    .scroll-top-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px;
    }
    .scroll-top-btn span {
        display: none;
    }
}

/* New Hero Section Styles - Structural changes from snippet */
.hero-section {
    position: relative;
    background-color: var(--color-primary);
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: visible; 
    padding: 0 8% 40px; 
    z-index: 10;
}

.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../images/bg-lines.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 0.12; 
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 20; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 500px;
    color: #ffffff;
}

.hero-content h1 {
    color: #ffffff;
    margin-bottom: 20px;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.image-wrapper {
    position: relative;
    z-index: 30; 
}

.white-blob-frame {
    background-color: #ffffff;
    border-radius: 140px 140px 600px 140px; 
    width: 540px;
    height: 710px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin-bottom: -240px; 
    box-shadow: none;
}

.white-blob-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.custom-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 15; 
    transform: scaleY(-1); 
}

.custom-shape-divider svg {
    display: block;
    width: 100%;
    height: 140px; 
}

.elementor-shape-fill {
    fill: #ffffff;
}

.footer-shape-fill {
    fill: var(--color-bg-light);
}

.cta-section {
    background-color: var(--color-bg-light);
    padding: 120px 0 120px;
    position: relative;
    z-index: 10;
}

.cta-card {
    background-color: white;
    width: 75%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/cta_image.jpg');
    background-size: cover;
    background-position: left center;
    opacity: 0.12;
    pointer-events: none;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

.btn-cta {
    background-color: var(--color-accent);
    color: white;
    padding: 16px 44px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(217, 40, 170, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-cta:hover {
    background-color: #c42499;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(217, 40, 170, 0.3);
}

@media (max-width: 992px) {
    .cta-card { width: 90%; padding: 60px 30px; }
    .cta-section { padding-top: 120px; }
}

.footer-container {
    position: relative;
    background-color: var(--color-primary);
    padding-top: 180px;
    z-index: 20;
    overflow: hidden;
}

.custom-shape-divider-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 15;
}

.custom-shape-divider-footer svg {
    display: block;
    width: 100%;
    height: 140px;
}

.footer-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: image-set(
        url('../images/pattern.webp') type('image/webp'),
        url('../images/pattern.jpg') type('image/jpeg')
    );
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

.social-icon-wrapper {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.social-icon-wrapper:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(217, 40, 170, 0.3);
}

.footer-link {
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.85;
    display: inline-block;
}
.footer-link:hover {
    color: var(--color-accent);
    transform: translateX(8px);
    opacity: 1;
}

.contact-item {
    display: flex;
    gap: 14px;
    color: white;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.6;
}
.contact-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    width: 20px;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .footer-container {
        margin-top: -60px;
        padding-top: 100px;
        text-align: center;
    }
    .contact-item {
        justify-content: center;
    }
    .social-icons-row {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .white-blob-frame { width: 320px; height: 450px; margin-bottom: -150px; margin-top: 50px; }
    .hero-section { padding-bottom: 200px; }
}
