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

:root {
    --brand: #4CAF50;
    --text: #333;
    --muted: #666;
    --bg: #f5f5f5;
    --border: #e5e5e5;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --max-width: 1000px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
}

h2 {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
}

h3 {
    font-size: 1.05rem;
}

section.content h2 {
    margin-top: 24px;
}

section.content h3 {
    margin-top: 18px;
}

p {
    margin: 0 0 0.8em;
}

ul {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

ul li {
    margin-bottom: 0.4em;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

main {
    min-height: 60vh;
}

/* Brand Top Section (Logo Area) */
.brand-top {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.brand-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Main Logo */
.brand-link {
    display: flex;
    align-items: center;
}

.brand-link .logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Partner Logos */
.partner-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.partner {
   display: inline-block;
}

.partner-logo {
    width: 90px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s;
}

.partner-logo[alt="WUR Logo"] {
    width: 100px;
    height: 44px;
}

.partner:hover .partner-logo {
    opacity: 0.7;
}

/* Navigation Section */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--brand);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.site-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
}

.site-nav li {
    display: inline-block;
}

.site-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.site-nav a:hover {
    background: #eaf7ea;
    color: var(--brand);
    text-decoration: none;
}

.site-nav a.active {
    color: var(--brand);
    background: #eaf7ea;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--brand);
    margin-bottom: 8px;
    line-height: 1.15;
}

.hero h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--brand);
   margin-bottom: 1px;
   margin-top: 0.8rem;
}

.hero p {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: var(--muted);
    margin-bottom: 1px;
    line-height: 1.15;
}

.lead {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--brand);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid var(--brand);
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #45a049;
    border-color: #45a049;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Section Styles */
section {
    padding: 30px 15px;
}

.content {
    padding: 40px 15px;
}

.content-tight {
    padding-bottom: 15px;
}

section h2 {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    margin-bottom: 16px;
    color: var(--brand);
    border-bottom: 1px solid var(--brand);
    padding-bottom: 2px;
}

.link {
    color: var(--brand);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.link:hover {
    color: #45a049;
    text-decoration: none;
    transform: translateX(5px);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--brand);
    margin-bottom: 10px;
}

.objective-icon {
    margin-right: 8px;
    color: var(--brand);
}

.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.objective-item {
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
}

.objective-item:last-child {
    border-bottom: none;
}

.field-trials-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
}

.field-trial-item {
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
}

.field-trial-item:last-child {
    border-bottom: none;
}

.field-icon {
    margin-right: 8px;
    color: var(--brand);
}

.work-packages-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 20px;
}

.work-package-item {
    padding: 2px 0;
    border-bottom: 1px solid var(--border);
}

.work-package-item:last-child {
    border-bottom: none;
}

.work-package-item h3 {
    color: var(--text);
    margin-bottom: 8px;
}

.work-package-lead {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag {
    font-size: 1.1rem;
}

.card p {
    color: var(--text);
    line-height: 1.5;
}

.news-section {
    background-color: var(--bg);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

/* News Card */
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f5e9, #4CAF50);
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--brand);
}

.news-card-date {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-card-description {
    color: var(--text);
    line-height: 1.6;
}

.news-card-category {
    display: inline-block;
    background-color: var(--brand);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: bold;
}

/* About Section */
.about-section {
    text-align: center;
    background: #fff;
}

.about-section p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg);
    text-align: center;
}

.contact-section p {
    color: var(--text);
}

/* Funding Logos Section */
.funding-section {
    background: var(--bg);
    padding: 24px 15px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.funding-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.funding-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 16px 15px;
    text-align: justify;
    margin-top: 24px;
    font-size: 0.85rem;
}

.footer p {
    margin: 0.4em 0;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

.footer a:hover {
    color: var(--brand);
}


.content-figure {
  text-align: center;
}
.responsive-img {
  max-width: 100%;   /* adapts to container width */
  height: auto;      /* keeps aspect ratio */
  display: block;    /* removes unnecessary gaps */
}
figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.2rem;
}

.split-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.split-media {
    flex: 1 1 50%;
    max-width: none;
    margin: 0;
}

.split-text {
    flex: 1 1 50%;
}


/* Container for side-by-side elements */

.image-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
 }

.image-row-tight {
    padding-top: 10px;
}

.image-row figure {
  text-align: center;
  max-width: 320px; /* limit image size */
  margin: 0;
}

.image-row img {
  width: 320px;      /* fixed width for all images */
  height: 240px;     /* fixed height */
}


.image-row figcaption {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #555;
}



/* Responsive Design */
@media (max-width: 768px) {
    /* Brand-Top Mobile */
    .brand-top-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .brand-link .logo {
        height: 50px;
    }
    
    .partner-logos {
        justify-content: center;
        gap: 10px;
    }
    
    .partner-logo {
        height: 26px;
    }
    
    /* Navigation Mobile */
    .site-nav {
        flex-direction: column;
        gap: 0.4rem;
        padding: 8px 0;
    }

    .hero {
        padding: 30px 15px;
    }

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

    .hero p {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-content {
        padding: 16px;
    }

    .split-layout {
        flex-direction: column;
    }

    .split-media {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.3rem;
    }
}
