/* Design System Variables */
:root {
    /* Color Palette */
    --primary-color: #FF9F1C;
    /* Sunshine Orange */
    --secondary-color: #2EC4B6;
    /* Sky Blue */
    --accent-color: #CBF3F0;
    /* Leaf Green (Backgrounds) */
    --text-color: #2D3142;
    /* Charcoal */
    --white: #FFFFFF;
    --light-gray: #F7F9FC;

    /* Typography */
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Animation Timing */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
    padding-top: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Timeline Styles - Vertical */
.timeline-section {
    position: relative;
    padding: var(--spacing-lg) 0;
    overflow: visible;
}

.timeline-wrapper {
    position: relative;
    padding: 3rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ddd 0%, var(--primary-color) 50%, #ddd 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 0 4px #ddd;
    transition: all 0.4s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.timeline-dot:hover,
.timeline-item:hover .timeline-dot,
.timeline-content:hover~.timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(46, 196, 182, 0.3);
    background: var(--secondary-color);
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(50% - 40px);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.timeline-content:hover h3 {
    color: var(--primary-color);
}

.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    transition: color 0.3s ease;
    flex-grow: 1;
}

.timeline-content:hover p {
    color: var(--text-color);
}

.timeline-content span {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.timeline-content:hover span {
    transform: scale(1.05);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-dot {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-dot:hover,
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.3);
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }

    .timeline-items {
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-item {
        max-width: 100%;
        width: 100%;
    }

    .timeline-dot {
        box-shadow: 0 0 0 3px #ddd;
    }
}

.text-logo-blue {
    color: #3183CF;
}

/* Close Button Style */
.close-btn {
    position: fixed;
    top: 100px;
    /* Adjusted to be below navbar */
    right: 20px;
    font-size: 3rem;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1001;
    line-height: 1;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.close-btn:hover {
    color: var(--secondary-color);
    background: var(--white);
}

@media (max-width: 768px) {
    .close-btn {
        top: 80px;
        right: 10px;
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }
}

/* SDG List Styles */
.sdg-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.sdg-item {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sdg-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sdg-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.sdg-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}