/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;700&display=swap');

:root {
    --background-color: #fbfbfb;
    --text-color: #1a1a1a;
    --text-color-light: #555555;
    --accent-color: #42745c;
    --border-color: #e0e0e0;
    --font-serif: 'Libre Baskerville', serif;
    --font-sans: 'Inter', sans-serif;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

main {
    padding: 150px 5vw 40px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
    max-width: 65ch;
    font-family: var(--font-sans);
}

.mission-statement {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    color: var(--text-color);
}

.mission-statement a {
    font-weight: 700;
}

.request-issues-note {
    text-align: left;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

.request-issues-note a {
    font-weight: 700;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 1.5rem;
    /* Spacing between cards */
    margin-top: 3rem;
    /* Space from the heading */
    align-items: stretch;
    /* Make all grid items the same height */
}

.problem-card {
    background-color: var(--background-color);
    /* Use background color variable */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    /* Smooth transitions for hover effects */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    min-height: 100px;
    /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center content */
}

.problem-card:hover {
    transform: translateY(-5px);
    /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* Enhanced shadow on hover */
    border-color: var(--accent-color);
    /* Highlight border on hover */
}

.problem-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    /* Use text color variable */
    margin-bottom: 0;
    /* Remove default margin-bottom */
    font-family: var(--font-sans);
    /* Use sans-serif for card titles */
    font-weight: 600;
    /* Slightly bolder */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    height: clamp(30px, 8vw, 40px);
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    font-family: var(--font-sans);
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--text-color-light);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a.active {
    color: var(--text-color);
    font-weight: 700;
}

.hamburger {
    display: none;
}

/* --- Hero & Page Headers --- */
.hero {
    text-align: left;
    padding: 6rem 0;
}

.hero h1 {
    color: var(--accent-color);
}

.page-header {
    text-align: center;
    padding: 4rem 0;
}

.hero .subtitle,
.page-header .subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    max-width: 60ch;
}

.hero .subtitle {
    margin: 0;
}

.page-header .subtitle {
    margin: 0 auto;
}

/* --- Marquee --- */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    margin: 2rem 0;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--background-color) 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    animation: marquee 80s linear infinite;
    will-change: transform;
}

.marquee-content span {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color-light);
    margin: 0 40px;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--marquee-width));
    }
}

.marquee .accent-text {
    color: var(--accent-color);
    font-weight: 700;
}

/* --- Homepage Sections --- */
.home-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
    align-items: start;
}

.grid-item h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.grid-item p {
    max-width: 50ch;
}

.directory {
    padding: 4rem 0;
}

.directory h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.directory-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.directory-card h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0;
}

/* --- News Page & Modal --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    /* Remove padding to let image bleed */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* Ensure image stays within border radius */
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.news-card .news-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.news-grid.is-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.news-empty {
    text-align: center;
    padding: 4rem;
    font-family: var(--font-sans);
    color: var(--text-color-light);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.modal-content-container {
    background-color: #fefefe;
    margin: auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
}

/* --- Footer --- */
.new-main-footer {
    width: 100%;
    padding: 4rem 0;
    /* py-16 */
    background-color: #F5F2EC;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* border-t border-black/10 */
}

.new-footer-container {
    max-width: 1280px;
    /* max-w-7xl */
    margin: 0 auto;
    /* mx-auto */
    padding: 0 1.5rem;
    /* px-6 */
    display: grid;
    /* grid */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* grid-cols-2 */
    gap: 2rem;
    /* gap-8 */
}

@media (min-width: 768px) {

    /* md breakpoint */
    .new-footer-container {
        padding: 0 3rem;
        /* md:px-12 */
        grid-template-columns: repeat(4, minmax(0, 1fr));
        /* md:grid-cols-4 */
    }
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .new-footer-container {
        padding: 0 6rem;
        /* lg:px-24 */
        grid-template-columns: repeat(6, minmax(0, 1fr));
        /* lg:grid-cols-6 */
    }
}

.new-footer-section-brand {
    grid-column: span 2 / span 2;
    /* col-span-2 */
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .new-footer-section-brand {
        grid-column: span 3 / span 3;
        /* lg:col-span-3 */
    }
}

.new-footer-logo-link {
    display: flex;
    /* flex */
    align-items: center;
    /* items-center */
    gap: 0.75rem;
    /* gap-3 */
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    /* font-bold */
    letter-spacing: -0.05em;
    /* tracking-tighter */
    transition: opacity 0.15s ease-in-out;
    /* transition-opacity */
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit color */
}

.new-footer-logo-link:hover {
    opacity: 0.8;
    /* hover:opacity-80 */
}

.new-footer-logo {
    width: 2rem;
    /* w-8 */
    height: 2rem;
    /* h-8 */
}

.new-footer-brand-text {
    color: var(--accent-color);
    /* Using existing accent color */
    font-family: var(--font-serif);
    /* Using existing font */
}

.new-footer-description {
    margin-top: 1rem;
    /* mt-4 */
    font-size: 0.875rem;
    /* text-sm */
    color: rgba(51, 61, 59, 0.7);
    /* text-[#333D3B]/70 */
    max-width: 20rem;
    /* max-w-xs */
    font-family: var(--font-sans);
    /* Using existing font */
}

.new-footer-section-nav {
    grid-column: span 2 / span 2;
    /* col-span-2 */
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .new-footer-section-nav {
        grid-column: span 2 / span 2;
        /* lg:col-span-2 */
    }
}

.new-footer-nav-links {
    margin-top: 1rem;
    /* mt-4 */
    display: grid;
    /* grid */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* grid-cols-2 */
    gap: 1rem;
    /* gap-4 */
    list-style: none;
    /* Remove bullet points */
    padding: 0;
    /* Remove default padding */
}

.new-footer-nav-links li a {
    font-size: 1rem;
    /* text-base */
    color: rgba(51, 61, 59, 0.7);
    /* text-[#333D3B]/70 */
    transition: color 0.15s ease-in-out;
    /* transition-colors */
    text-decoration: none;
    /* Remove underline */
    font-family: var(--font-sans);
    /* Using existing font */
}

.new-footer-nav-links li a:hover {
    color: var(--accent-color);
    /* hover:text-[#ff1f00] - using existing accent color */
}

.new-footer-section-social {
    grid-column: span 2 / span 2;
    /* col-span-2 */
    display: flex;
    justify-content: flex-start;
    /* Align social icons to the left */
    align-items: center;
    margin-top: 1rem;
    /* Add some margin top */
}

@media (min-width: 768px) {

    /* md breakpoint */
    .new-footer-section-social {
        grid-column: span 4 / span 4;
        /* Take full width on medium screens */
        justify-content: center;
        /* Center social icons on medium screens */
    }
}

@media (min-width: 1024px) {

    /* lg breakpoint */
    .new-footer-section-social {
        grid-column: span 1 / span 1;
        /* Adjust column span for large screens */
        justify-content: flex-end;
        /* Align social icons to the right on large screens */
    }
}

.new-footer-social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Adjust gap as needed */
}

.new-footer-social-links svg {
    width: 24px;
    height: 24px;
    color: rgba(51, 61, 59, 0.7);
    /* Adjust color */
    transition: color 0.15s ease-in-out;
}

.new-footer-social-links .feather {
    fill: none;
}

.new-footer-social-links a:hover svg {
    color: var(--accent-color);
    /* Adjust hover color */
}

.new-footer-bottom-text {
    margin-top: 4rem;
    /* mt-16 */
    padding-top: 2rem;
    /* pt-8 */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* border-t border-black/10 */
    text-align: center;
    /* text-center */
    font-size: 0.875rem;
    /* text-sm */
    color: rgba(51, 61, 59, 0.6);
    /* text-[#333D3B]/60 */
    font-family: var(--font-sans);
    /* Using existing font */
}

/* Existing footer styles to be removed or overridden */
.main-footer {
    padding: 0;
    /* Override existing padding */
    margin-top: 0;
    /* Override existing margin */
    background-color: transparent;
    /* Override existing background */
    border-top: none;
    /* Override existing border */
}

.footer-content {
    display: block;
    /* Override existing flex */
    justify-content: initial;
    align-items: initial;
}

.footer-left,
.footer-right {
    display: block;
    /* Override existing flex */
    gap: 0;
    margin: 0;
}

.footer-nav {
    display: block;
    /* Override existing grid */
    grid-template-columns: initial;
    gap: 0;
}

.footer-nav a {
    margin: 0;
}

.footer-social {
    display: block;
    /* Override existing flex */
    gap: 0;
}


/* --- Other pages --- */
.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.goal-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.goal-card h3 {
    color: var(--accent-color);
}

.goal-card ul {
    list-style-position: inside;
    padding-left: 1rem;
    font-family: var(--font-sans);
}

.contact-info {
    text-align: center;
    padding: 4rem 0;
}

.contact-info a {
    font-size: 1.5rem;
    font-weight: 700;
}

main .involved-container {
    display: block;
}

.involved-section {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.involved-section.disabled {
    background-color: #f0f0f0;
    color: #999;
}

.involved-section.disabled h2,
.involved-section.disabled p {
    color: #999;
}

.btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn.disabled:hover {
    transform: none;
}

.involved-section .social-links {
    display: flex;
    justify-content: flex-start;
    /* Align icons to the left */
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.involved-section .social-links svg {
    width: 30px;
    /* Slightly larger icons */
    height: 30px;
    stroke: var(--accent-color);
    /* Change outline to accent color */
    fill: none;
    /* Ensure no fill */
    transition: stroke 0.3s ease;
    /* Transition stroke property */
}

.involved-section .social-links .feather {
    fill: none;
}

.involved-section .social-links a:hover svg {
    stroke: var(--text-color);
    /* Change stroke to text color on hover */
}

/* --- Team Section --- */
.team-section {
    padding: 4rem 0;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.team-member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member-title {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.team-member-contact {
    display: flex;
    gap: 1rem;
}

/* --- Founder Section --- */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.founder-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.founder-message .founder-name {
    font-style: italic;
    text-align: right;
}

/* --- Work Page --- */
.work-section {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-content {
    padding: 2rem;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    main {
        padding-top: 100px;
    }

    .main-header {
        padding: 0.5rem 0;
        margin: 1.5rem 0;
        top: 10px;
        width: 95%;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 10px;
        /* Adjusted to match header top */
        right: -100%;
        width: 95%;
        /* Adjusted to match header width */
        max-width: 1200px;
        /* Adjusted to match header max-width */
        height: auto;
        /* Changed from 100vh */
        background-color: rgba(255, 255, 255, 0.8);
        /* Frosted glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        /* More rounded */
        padding: 2rem;
        /* Added padding */
    }

    .nav-links.nav-active {
        display: flex;
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger .line {
        width: 25px;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s ease;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .line2 {
        opacity: 0;
    }

    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .goals-grid,
    .home-section-grid,
    .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo,
    .footer-nav,
    .footer-social {
        margin: 1rem 0;
    }

    .marquee {
        margin: 0.5rem 0;
    }

    .marquee-content {
        animation-duration: 60s;
    }

    .marquee-content span {
        font-size: 1.2rem;
        margin: 0 10px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .founder-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
    }
}

.brand-name {
    color: var(--accent-color);
}

/* --- Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}

.timeline-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 2.5rem;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -10px;
}

.timeline-content {
    padding: 1rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.timeline-date {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

/* --- Work Page --- */
.work-controls {
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

#work-search {
    width: 100%;
    max-width: 500px;
    /* Longer search bar */
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.work-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.work-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.work-grid.is-empty {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    width: 100%;
}

.work-empty {
    text-align: center;
    padding: 4rem;
    font-family: var(--font-sans);
    color: var(--text-color-light);
}

/* --- News Controls (Matches Work Controls) --- */
.news-controls {
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
}

#news-search {
    width: 100%;
    max-width: 500px;
    /* Longer search bar */
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
}

@media screen and (max-width: 768px) {

    .news-controls,
    .work-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #news-search,
    #work-search {
        width: 100%;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }
}

/* --- Custom Multi-Select Dropdown --- */
.multi-select-container {
    position: relative;
    min-width: 250px;
    font-family: var(--font-sans);
}

.multi-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.multi-select-trigger:hover {
    border-color: var(--accent-color);
}

.multi-select-trigger::after {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.multi-select-container.open .multi-select-trigger::after {
    transform: rotate(-135deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.multi-select-container.open .multi-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    color: var(--text-color);
}

.multi-select-option:hover {
    background-color: #f5f5f5;
}

.multi-select-option.selected {
    background-color: rgba(66, 116, 92, 0.1);
    /* Accent color with opacity */
    color: var(--accent-color);
    font-weight: 500;
}

.option-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.multi-select-option.selected .option-checkbox {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.option-checkbox::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.multi-select-option.selected .option-checkbox::after {
    display: block;
}

/* --- Advanced Dynamic Grid Layout --- */
.news-grid,
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: auto;
    /* Allow content to dictate height */
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.grid-featured {
    grid-column: 1 / -1;
    /* Spans full width */
}

.grid-featured img {
    height: 280px;
    /* Constrained height for featured cards */
    max-height: 280px;
}

.grid-wide {
    grid-column: span 2;
}

.grid-wide img {
    height: 220px;
    max-height: 220px;
}

.grid-tall {
    grid-row: span 2;
}

.grid-tall img {
    height: 250px;
    max-height: 250px;
}

@media (max-width: 768px) {

    .grid-featured,
    .grid-wide {
        grid-column: span 1;
    }

    .grid-tall {
        grid-row: span 1;
    }

    .news-grid,
    .work-grid {
        grid-auto-rows: auto;
        /* Let content dictate height on mobile */
    }
}

/* --- Article Detail Page --- */
.article-container {
    max-width: 1000px;
    /* Increased from 800px */
    margin: 0 auto;
    padding-top: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-color-light);
}

.back-link:hover {
    color: var(--accent-color);
}

.article-header {
    margin-bottom: 2rem;
    text-align: left;
    /* Left aligned */
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left aligned */
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.article-hero-image {
    width: 100%;
    max-width: 800px;
    /* Increased size */
    /* Much smaller */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1rem;
    /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: block;
}

.article-body-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-body-content p {
    margin-bottom: 1.5rem;
}

.article-body-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-body-content ul,
.article-body-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body-content li {
    margin-bottom: 0.5rem;
}

.related-content {
    margin-top: 4rem;
    /* Reduced from 6rem */
    padding-top: 2rem;
    /* Reduced from 3rem */
    border-top: 1px solid var(--border-color);
}

.related-content h2 {
    margin-bottom: 1.5rem;
    /* Reduced from 2rem */
    font-size: 1.5rem;
    /* Smaller header */
}

.loading-state {
    text-align: center;
    padding: 4rem;
    font-size: 1.2rem;
    color: var(--text-color-light);
}

.project-links {
    text-align: center;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c5240;
    /* Darker shade of accent */
    color: white;
}

.card-tags {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f0f0f0;
    color: var(--text-color-light);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-family: var(--font-sans);
}

/* --- Program / Hub Page Styles --- */

.program-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.program-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.view-all-link {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Horizontal Scroll Grid (Events) */
.horizontal-scroll-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-grid::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.event-card {
    min-width: 300px;
    max-width: 350px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.event-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.event-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Split Section (Programs & Courses) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.split-column h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.vertical-list-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.list-card:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.list-card-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-card-content {
    flex-grow: 1;
}

.list-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.list-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Adaptive Hero Styles (Base/Desktop) --- */
.hero-spotlight {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid var(--border-color);
}

/* Single Hero Mode - Stacked Layout */
.hero-single-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
    background: #fff;
}

.hero-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.hero-summary {
    font-size: 1rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn:hover {
    background-color: #2c5240;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Slider Mode (Multi-Item) */
.hero-slider-container {
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* Slider Controls */
.hero-nav-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
    background: #fff;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Mobile Adjustments for New Sections */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .list-card {
        flex-direction: column;
    }

    .hero-image {
        height: 200px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }
}

/* --- Language Switcher Styles --- */
.lang-switcher {
    position: relative;
    margin-left: 20px; /* Adjust as needed */
    z-index: 1001; /* Ensure it's above other elements */
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-btn .current-lang {
    font-weight: 700;
    color: var(--text-color);
}

.lang-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-switcher.active .lang-btn i {
    transform: rotate(180deg);
}

.lang-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.lang-switcher.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-color-light);
    transition: all 0.2s ease;
}

.lang-menu li:hover {
    background-color: #f5f5f5;
    color: var(--text-color);
}

.lang-menu li.selected {
    background-color: rgba(66, 116, 92, 0.1); /* Accent color with opacity */
    color: var(--accent-color);
    font-weight: 600;
}

/* Adjust header layout for lang switcher */
.main-header {
    justify-content: space-between;
    /* Ensure space between logo, nav, and lang switcher */
}

.main-header nav {
    flex-grow: 1; /* Allow nav to take available space */
    display: flex;
    justify-content: center; /* Center nav links */
}

@media screen and (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .lang-menu {
        position: static;
        transform: translateY(0);
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
    }

    .lang-switcher.active .lang-menu {
        opacity: 1;
        visibility: visible;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-links.nav-active {
        padding-top: 2rem; /* Adjust padding when menu is active */
    }
}