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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    color: #222;
    font-size: 1rem;
    overflow-x: hidden;
    width: 100%;
}
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 1rem; */
}
header {
    background: #2d3e50 url('img/texture.png') repeat;
    color: #fff;
    padding: 1.5rem 1rem 1rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 164px;
    max-height: 164px;
    overflow-y: hidden;
    overflow-x: hidden  ;
}
header > div {
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-left: 2vw;
    padding-right: 2vw;
}

header > div h1 {
    margin: 0;
    width: 100%;
    min-width: 322px;
    display: block;
}
@media (min-width: 600px) {
    header > div {
        justify-content: flex-start;
        padding-left: 2vw;
    }
}
.header-logo {
    height: 160px;
    width: auto;
    vertical-align: middle;
    margin-right: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #fff;
    padding: 2px;
}
header nav {
    background: none;
    color: inherit;
    position: static;
    display: block;
    float:left;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
nav a {
    color: #1f4639;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.5em 1.2em;
    border-radius: 2em;
    transition: all 0.15s ease;
    z-index: 1;
    text-wrap: nowrap;
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

header nav a {
    color: #1f4639 !important;
}

header nav a:hover, 
header nav a:focus,
header nav a:active {
    background: rgba(31, 70, 57, 0.12);
    box-shadow: 0 0 8px 2px rgba(31, 70, 57, 0.15), 0 2px 6px rgba(0,0,0,0.05);
    color: #1f4639 !important;
    outline: none;
    transform: translateY(-1px);
}

/* Ensure links work on first click */
header nav a:visited {
    color: #1f4639 !important;
}

/* Force hardware acceleration on Mac Safari */
header nav a {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

header, header h1, header p {
    color: #1f4639 !important;
}
main {
    width: 100%;
    margin: 164px auto 120px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 0.5rem 0; /*0.5rem;*/
    min-height: calc(100vh - 164px - 120px);
}
section {
    margin-bottom: 2.5rem;
}
h1, h2 {
    margin-top: 0;
}
.events, .agenda, .initiatives {
    padding-left: 1rem;
}
footer {
    text-align: center;
    padding: 1rem;
    background: #2d3e50;
    color: #fff;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    max-height: 120px;
}
.hero-section {
    position: relative;
    min-height: 250px;
    margin-top: 2.2em;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: visible;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: block;
    max-width: none;
}
.hero-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    z-index: 1;
    border-radius: 8px;
    max-width: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #1f4639;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content-box {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 4px 24px 0 rgba(31,70,57,0.08);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    max-width: 540px;
    margin: 0 auto;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: inline-block;
}
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mission {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    display: block;
    width: 60%;
    margin: auto;
}
.cta-buttons {
    margin-top:6em;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 400px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-buttons .cta {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Hero section fixes for small screens */
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content-box {
        padding: 1rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content .mission {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-img {
        max-height: 200px;
        object-fit: cover;
    }
    
    /* Container adjustments */
    .container {
        /* padding: 0 0.5rem; */
        width: 100%;
    }
}
.cta {
    background: #1f4639;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.cta:hover {
    background: #163526;
}
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    width: 100%;
}
.stat {
    background: #f1f1f1;
    border-radius: 8px;
    padding: 1rem 2rem;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex: 1 1 120px;
    margin: 0.5rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2d3e50;
}
.stat-label {
    display: block;
    font-size: 1rem;
    color: #555;
}
.about-section, .about-section-alt {
    margin: 2.5rem 0;
}
.about-section-alt {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem 1rem;
}
.team-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.team-gallery .team-member {
    flex: 0 0 auto;
    text-align: center;
    width: 140px;
}
.team-gallery .team-member:nth-child(-n+3) {
    /* First 3 members (first row) */
    order: 1;
}
.team-gallery .team-member:nth-child(n+4) {
    /* Members 4-7 (second row) */
    order: 2;
}
.team-member {
    text-align: center;
    width: 160px;
}
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2d3e50;
    margin-bottom: 0.5rem;
}
.partners {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}
.partner-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
.canada-flag {
    width: 80px;
    height: 40px;
    aspect-ratio: 2 / 1;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-radius: 6px;
    object-fit: cover;
    display: inline-block;
}
.canada-proud {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}
.testimonials-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
}
.testimonials-preview blockquote {
    background: #f8f9fa;
    border-left: 4px solid #2d3e50;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-style: italic;
    color: #333;
    margin: 0;
    flex: 0 0 calc(50% - 1rem);
    box-sizing: border-box;
}
.testimonials-preview blockquote footer {
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
    border-top: none;
    padding-top: 0;
    background: none;
    margin-bottom: 0;
    position: relative;
    z-index: 1001;
    height:20px;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonials-preview {
        flex-direction: column;
        gap: 1rem;
    }
    .testimonials-preview blockquote {
        flex: 1 1 auto;
        width: 100%;
    }
}
.see-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2d3e50;
    text-decoration: underline;
    font-weight: 500;
}
.footer-content {
    display:none;
    /* display: flex; */
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 1rem 1rem 1rem;
    background: #2d3e50;
    color: #fff;
    border-top: 1px solid #1a2533;
    width: 100%;
    box-sizing: border-box;
}
.footer-section {
    min-width: 180px;
    flex: 1 1 200px;
}
.footer-section h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section a {
    color: #a3d2ca;
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}
.social-links a {
    color: #a3d2ca;
    margin: 0 0.25rem;
}
.footer-bottom {
    text-align: center;
    background: #2d3e50;
    color: #b0b0b0;
    padding: 0.5rem 1rem 0.25rem 1rem;
    font-size: 0.95rem;
    margin-bottom: 0;
}
/* Add styles for footer legal links */
.footer-legal {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}
.footer-legal a {
    color: #a3d2ca;
    text-decoration: none;
    margin: 0 0.5rem;
}
.footer-legal a:hover {
    text-decoration: underline;
}
.cta, .contact-form button, .paypal-btn {
    background: #1f4639;
    color: #fff;
}
.cta:hover, .contact-form button:hover, .paypal-btn:hover {
    background: #163526;
    color: #fff;
}
.donate-section {
    margin: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    align-items: flex-start;
}
.donate-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    min-width: 280px;
    max-width: 400px;
    text-align: center;
}
.donate-block img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.paypal-btn {
    display: inline-block;
    background: #1f4639;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: background 0.2s;
}
.paypal-btn:hover {
    background: #163526;
    color: #fff;
}
/* --- Vertical Timeline Styles --- */
.vertical-timeline {
    position: relative;
    margin: 2rem 0 2rem 90px;
    padding-left: 32px;
    border-left: 4px solid #a3d2ca;
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-date {
    position: absolute;
    left: -110px;
    top: 0;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: #1f4639;
    background: #e6f2ef;
    border-radius: 4px;
    padding: 0.2em 0.5em;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.timeline-content {
    background: rgba(163, 210, 202, 0.25); /* light green, transparent */
    border-radius: 12px;
    box-shadow: 0 4px 16px 0 rgba(31,70,57,0.13);
    padding: 2.2rem 2.2rem 2.2rem 2.2rem;
    position: relative;
    min-height: 12em;
    display: block;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.timeline-content h3,
.timeline-content p,
.timeline-links {
    position: relative;
    z-index: 2;
}
.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #2d3e50;
    line-height: 1.4;
}

.title-separator {
    color: #a3d2ca;
    font-size: 1.2em;
    margin: 0.3rem 0;
    display: inline-block;
}

.desc-separator {
    color: #a3d2ca;
    font-size: 1.1em;
    margin: 0.5rem 0;
    display: inline-block;
}

.content-separator {
    height: 2px;
    background: #a3d2ca;
    margin: 1rem 0;
    border-radius: 1px;
    opacity: 0.6;
}

/* Type-specific separators */
.timeline-content.group-activity .content-separator {
    background: rgba(21, 101, 192, 0.4);
}

.timeline-content.cooking-bakery .content-separator {
    background: rgba(230, 81, 0, 0.4);
}

.timeline-content.sports-fitness .content-separator {
    background: rgba(46, 125, 50, 0.4);
}
.timeline-content p{
    min-height: 10em;
}
.timeline-links {
    margin-top: 0.5rem;
}
.timeline-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.4em 0.8em;
    border-radius: 1.5em;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.link-icon {
    font-size: 1.1em;
}

.lang-badge {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 0.7em;
    font-weight: bold;
    padding: 0.1em 0.3em;
    border-radius: 0.3em;
    border: 1px solid rgba(0,0,0,0.2);
    min-width: 1.2em;
    text-align: center;
}

/* Base link styles */
.timeline-link.gallery-link {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.timeline-link.youtube-link {
    background: #fff5f5;
    color: #dc3545;
    border-color: #ffcaca;
}

.timeline-link.report-link {
    background: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.timeline-link.translate-link {
    background: #f0f8ff;
    color: #0066cc;
    border-color: #b3d9ff;
}

/* Color-coded link styles based on event type */
/* Gathering events - Blue theme */
.timeline-link.group-activity.gallery-link {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.3);
}

.timeline-link.group-activity.youtube-link {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.3);
}

.timeline-link.group-activity.report-link {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.3);
}

.timeline-link.group-activity.translate-link {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border-color: rgba(21, 101, 192, 0.3);
}

/* Cooking & Bakery events - Orange theme */
.timeline-link.cooking-bakery.gallery-link {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.3);
}

.timeline-link.cooking-bakery.youtube-link {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.3);
}

.timeline-link.cooking-bakery.report-link {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.3);
}

.timeline-link.cooking-bakery.translate-link {
    background: rgba(230, 81, 0, 0.1);
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.3);
}

/* Sports & Fitness events - Green theme */
.timeline-link.sports-fitness.gallery-link {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
}

.timeline-link.sports-fitness.youtube-link {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
}

.timeline-link.sports-fitness.report-link {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
}

.timeline-link.sports-fitness.translate-link {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
}

/* Hover effects for all links */
.timeline-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Specific hover effects for each event type */
.timeline-link.group-activity:hover {
    background: rgba(21, 101, 192, 0.2);
    border-color: rgba(21, 101, 192, 0.5);
}

.timeline-link.cooking-bakery:hover {
    background: rgba(230, 81, 0, 0.2);
    border-color: rgba(230, 81, 0, 0.5);
}

.timeline-link.sports-fitness:hover {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.5);
}

/* Hover effects for timeline items */
.timeline-item:hover .timeline-date {
    box-shadow: 0 0 15px rgba(163, 210, 202, 0.8), 0 0 30px rgba(31, 70, 57, 0.4);
    transform: scale(1.05);
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 8px 32px 0 rgba(31,70,57,0.25), 0 0 20px rgba(163, 210, 202, 0.3);
    transform: translateY(-2px);
}

/* Enhanced hover effects for color-coded events */
.timeline-item:hover .timeline-date.group-activity {
    box-shadow: 0 0 15px rgba(21, 101, 192, 0.6), 0 0 30px rgba(21, 101, 192, 0.3);
}

.timeline-item:hover .timeline-date.cooking-bakery {
    box-shadow: 0 0 15px rgba(230, 81, 0, 0.6), 0 0 30px rgba(230, 81, 0, 0.3);
}

.timeline-item:hover .timeline-date.sports-fitness {
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.6), 0 0 30px rgba(46, 125, 50, 0.3);
}

.timeline-item:hover .timeline-content.group-activity {
    box-shadow: 0 8px 32px 0 rgba(21, 101, 192, 0.2), 0 0 20px rgba(21, 101, 192, 0.2);
    border-color: rgba(21, 101, 192, 0.6);
}

.timeline-item:hover .timeline-content.cooking-bakery {
    box-shadow: 0 8px 32px 0 rgba(230, 81, 0, 0.2), 0 0 20px rgba(230, 81, 0, 0.2);
    border-color: rgba(230, 81, 0, 0.6);
}

.timeline-item:hover .timeline-content.sports-fitness {
    box-shadow: 0 8px 32px 0 rgba(46, 125, 50, 0.2), 0 0 20px rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.6);
}
.timeline-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 80%;
    height: 80%;
    max-width: 180px;
    max-height: 180px;
    min-width: 80px;
    min-height: 80px;
    transform: translate(-10%, -50%);
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 1;
    pointer-events: none;
    filter: grayscale(100%);
}
/* Event type backgrounds (example images, update URLs as needed) */
.timeline-icon.group-activity {
    background-image: url('img/logo-2.png');
}
.timeline-icon.cooking-bakery {
    background-image: url('img/logo-3.png');
}
.timeline-icon.sports-fitness {
    background-image: url('img/logo.png');
}

/* Event type color coding */
/* Gathering events - Blue theme */
.timeline-date.group-activity {
    background: #e3f2fd;
    color: #1565c0;
}
.timeline-content.group-activity {
    background: rgba(21, 101, 192, 0.1);
    border: 2px solid rgba(21, 101, 192, 0.3);
}

/* Cooking & Bakery events - Orange theme */
.timeline-date.cooking-bakery {
    background: #fff3e0;
    color: #e65100;
}
.timeline-content.cooking-bakery {
    background: rgba(230, 81, 0, 0.1);
    border: 2px solid rgba(230, 81, 0, 0.3);
}

/* Sports & Fitness events - Green theme */
.timeline-date.sports-fitness {
    background: #e8f5e8;
    color: #2e7d32;
}
.timeline-content.sports-fitness {
    background: rgba(46, 125, 50, 0.1);
    border: 2px solid rgba(46, 125, 50, 0.3);
}

/* Timeline Legend Styles */
.timeline-legend {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #e0e0e0;
}

.timeline-legend h3 {
    margin: 0 0 1rem 0;
    color: #2d3e50;
    font-size: 1.2rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-item.group-activity .legend-color {
    background: #e3f2fd;
    border-color: #1565c0;
}

.legend-item.cooking-bakery .legend-color {
    background: #fff3e0;
    border-color: #e65100;
}

.legend-item.sports-fitness .legend-color {
    background: #e8f5e8;
    border-color: #2e7d32;
}

.legend-item.all .legend-color {
    background: #f5f5f5;
    border-color: #666;
}

.legend-item span {
    font-weight: 500;
    color: #2d3e50;
    font-size: 0.95rem;
}

/* Active filter state */
.legend-item.active {
    opacity: 0.7;
    transform: scale(0.95);
    background: #e8f5e8;
    border: 2px solid #2e7d32;
}
/* Add more .timeline-icon.TYPE as needed */
@media (max-width: 700px) {
    .vertical-timeline {
        padding-left: 12px;
        border-left-width: 2px;
    }
    .timeline-date {
        left: -90px;
        width: 80px;
        font-size: 0.95rem;
    }
    .timeline-content {
        padding: 1.2rem 0.7rem 1.2rem 0.7rem;
        min-height: 80px;
    }
    .timeline-icon {
        width: 80%;
        height: 80%;
        min-width: 50px;
        min-height: 50px;
        max-width: 90px;
        max-height: 90px;
    }
    
    /* Mobile legend styles */
    .timeline-legend {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .legend-items {
        gap: 1rem;
        justify-content: center;
    }
    
    .legend-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 400px) {
    .timeline-content {
        width: 75%;
    }
}


/* --- Contact Page Styles --- */
.contact-section {
    margin: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-between;
}
.contact-form {
    flex: 1 1 320px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    min-width: 300px;
    max-width: 420px;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.contact-form textarea {
    min-height: 80px;
    resize: vertical;
}
.contact-form button {
    background: #2d3e50;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-form button:hover {
    background: #1a2533;
}
.contact-info {
    flex: 1 1 320px;
    min-width: 280px;
}
.info-block {
    margin-bottom: 1.5rem;
}
.info-block h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.map-embed {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
        gap: 2rem;
    }
    .contact-form, .contact-info {
        max-width: 100%;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.email-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.email-option:hover {
    border-color: #a3d2ca;
    background: #f8fffe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(163, 210, 202, 0.2);
}

.email-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.email-option-text {
    flex: 1;
}

.email-option-text strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.email-option-text small {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .email-option {
        padding: 1rem;
    }
    
    .email-icon {
        font-size: 1.5rem;
    }
}


/* --- Board Page Styles (moved from board.html) --- */
.board-gallery-wrapper {
    position: sticky;
    top: 7.5rem; /* header + nav height */
    z-index: 10;
    background: #f8f9fa;
    padding: 1rem 0 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.board-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin: 0 0 1.5rem 0;
    overflow: visible;
    padding-bottom: 0;
}
.board-gallery::-webkit-scrollbar {
    height: 8px;
    background: #f8f9fa;
}
.board-gallery::-webkit-scrollbar-thumb {
    background: #a3d2ca;
    border-radius: 4px;
}
.board-member {
    width: 100%;
    max-width: 800px;
    min-height: 220px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px 0 rgba(31,70,57,0.13);
    padding: 2.2rem 2.2rem 2.2rem 2.2rem;
    font-size: 1.15em;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    border: 1.5px solid #e0e0e0;
    transition: box-shadow 0.2s, transform 0.2s;
    gap: 2rem;
}
.member-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
    min-width: 200px;
}
.member-left img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2d3e50;
    margin-bottom: 0.7rem;
    transition: border 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 0 0 rgba(163, 210, 202, 0);
}
.member-separator {
    width: 2px;
    height: 200px;
    background: #e0e0e0;
    flex: 0 0 auto;
}
.member-right {
    flex: 1 1 auto;
    padding-left: 1rem;
}
.member-right h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5em;
    color: #2d3e50;
}
.member-right h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1em;
    color: #1f4639;
    font-weight: 500;
}
.member-right p {
    margin: 0;
    color: #333;
    font-size: 1em;
    line-height: 1.6;
}
.board-member:hover {
    /* Remove or reduce box-shadow so glow is only on the image */
    box-shadow: 0 2px 12px 0 rgba(31,70,57,0.10);
    transform: translateY(-4px) scale(1.02);
    border-color: #a3d2ca;
}
.board-member:hover .member-left img {
    border: 3px solid #a3d2ca !important;
    box-shadow: 0 0 16px 4px rgba(163, 210, 202, 0.7), 0 0 32px 8px rgba(45, 62, 80, 0.15) !important;
}
.board-member strong {
    font-size: 1.25em;
    color: #2d3e50;
}
.board-member,
.board-member:link,
.board-member:visited {
    text-decoration: none !important;
    color: inherit;
}
.board-member div {
    margin-bottom: 0.3em;
}
.member-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.member-section:last-child {
    border-bottom: none;
}
.member-portrait {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.member-portrait img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2d3e50;
    box-shadow: 0 0 8px 0 rgba(163, 210, 202, 0.15);
}
.member-info {
    flex: 1 1 0;
}
.member-section.alt {
    flex-direction: row-reverse;
}
.board-content {
    margin-top: 1.5rem;
}
@media (max-width: 700px) {
    .board-gallery {
        gap: 1.2rem;
    }
    .board-member {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        box-sizing: border-box;
    }
    .member-left {
        min-width: auto;
    }
    .member-left img {
        width: 180px;
        height: 180px;
    }
    .member-left div>strong {
        display: none;
    }
    .member-separator {
        width: 80%;
        height: 2px;
        background: #e0e0e0;
    }
    .member-right {
        padding-left: 0;
    }
    .board-gallery-wrapper {
        top: 6.5rem;
    }
    .member-section, .member-section.alt {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
    }
    .member-portrait img {
        width: 80px;
        height: 80px;
    }
}
.member-detail-callout {
    width:70%;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0 2.5rem 2%;
    padding: 1.5rem 1.5rem;
    background: #f8fefc;
    border: 1.5px solid #a3d2ca;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(31,70,57,0.10);
    transition: box-shadow 0.2s;
}
.member-detail-callout .member-portrait {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.member-detail-callout .member-portrait img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #2d3e50;
    box-shadow: 0 0 8px 0 rgba(163, 210, 202, 0.15);
}
.member-detail-callout .member-info {
    flex: 1 1 0;
}
.member-detail-callout h3 {
    margin: 0 0 0.3em 0;
    font-size: 1.5em;
    color: #2d3e50;
}
.member-detail-callout h4 {
    margin: 0 0 0.7em 0;
    font-size: 1.1em;
    color: #1f4639;
    font-weight: 500;
}
.member-detail-callout p {
    margin: 0;
    color: #333;
    font-size: 1em;
}
@media (max-width: 700px) {
    .member-detail-callout {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    .member-detail-callout .member-portrait img {
        width: 80px;
        height: 80px;
    }
}
.board-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
@media (max-width: 900px) {
    .board-row {
        flex-direction: column;
        gap: 1.2rem;
        margin-bottom: 2rem;
        align-items: stretch;
    }
}
@media (max-width: 1760px) {
    .main-nav {
        display: flex !important;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    .main-nav a {
        font-size: 1.08em;
        padding: 0.5em 1.2em;
    }
}

#nav-buttons{
    display:flex;
    gap:1.5rem;
    align-items:center;
}

#nav-title{
    display:flex;
}

@media (max-width: 1740px){
    #nav-buttons{
        margin-top: 1rem;
    }
    header{
        flex-wrap: nowrap;
        max-height:none;
        height: 220px;
    }
    #nav-title{
        display:block;
    }
    main{
        margin:254px auto 120px auto;
    }
    
}
/* Mobile header styles */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 0 1rem;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
}

.mobile-title {
    flex: 1;
    width:50%
}

#mobile-nav-title-text h1 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #1f4639;
}

#mobile-nav-title-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #1f4639;
    opacity: 0.8;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-right: -0.5rem;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #1f4639;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 70, 57, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1002;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 2rem; */
    text-align: center;
}

.mobile-nav a {
    color: #1f4639;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(163, 210, 202, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(31, 70, 57, 0.2);
    display: block;
    text-align: center;
    min-width: 200px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mobile-nav a:hover,
.mobile-nav a:active,
.mobile-nav a:focus {
    background: rgba(31, 70, 57, 0.12);
    color: #1f4639;
    transform: translateY(-2px);
    box-shadow: 0 0 12px 4px rgba(31, 70, 57, 0.18), 0 2px 8px rgba(0,0,0,0.07);
    outline: none;
}

/* Mobile nav footer styles */
.mobile-nav-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-legal-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.mobile-legal-links a {
    color: #1f4639;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(163, 210, 202, 0.8);
    transition: all 0.3s ease;
}

.mobile-legal-links a:hover {
    background: rgba(31, 70, 57, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 70, 57, 0.15);
}

.mobile-social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.mobile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(163, 210, 202, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-social-links a:hover {
    background: rgba(31, 70, 57, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 70, 57, 0.2);
}

.mobile-social-links svg {
    transition: all 0.3s ease;
}

.mobile-social-links a:hover svg {
    fill: #1f4639;
}

@media (max-width: 780px){
    /* Hide desktop header elements */
    #nav-title-text{
        display: none;
    }
    #nav-title{
        display: none;
    }
    #nav-title div a{
        display: none;
    }
    #nav-buttons{
        display: none;
    }
    
    /* Show mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Adjust header height */
    header{
        height: 80px;
        padding: 0;
    }
    
    /* Adjust main content margin */
    main{
        margin-top: 80px;
    }
    
    /* Hide the main header div */
    header > div {
        display: none;
    }
    
    /* Mobile footer styling */
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    main {
        flex: 1;
        margin-bottom: 0;
    }
    
    footer {
        margin-top: auto;
        position:static;
    }
    h2{
        font-size: 1.2rem;
    }

    .hero-content {
        width: 90%;
    }
}
