:root {
  --primary: #2c5e1a;       /* Deep plant green */
  --secondary: #6b8f71;     /* Muted sage */
  --accent: #d4af37;        /* Gold accent */
  --light: #f8f9fa;
  --dark: #212529;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #000;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #000;
  margin-bottom: 10px;
}

.subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
}

nav {
  margin: 20px auto 0;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  max-width: 900px;
  text-align: center;
}

nav a {
  margin: 0 12px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
}

nav a:hover {
  color: #c00;
}

nav a.active {
  color: #c00;
  text-decoration: underline;
}

@media (max-width: 768px) {
  nav {
    padding: 10px;
  }
  nav a {
    margin: 0 8px;
    font-size: 0.9rem;
    display: inline-block;
    padding: 5px;
  }
}

.publication {
  margin-bottom: 25px;
  padding: 15px;
  border-left: 3px solid var(--secondary);
  transition: var(--transition);
}

.publication:hover {
  background-color: var(--light);
  transform: translateX(5px);
}

.position {
  background-color: var(--light);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.position:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-grid {
    display: grid;
    gap: 2rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-members.four-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
	gap: 1rem; /* Horizontal and top gaps */
    row-gap: 4rem; /* Top gap */
	margin-bottom: 4rem; /* Bottom gap */
    padding: 1rem 0;
}

@media (max-width: 1200px) {
    .team-members.four-columns {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 900px) {
    .team-members.four-columns {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 600px) {
    .team-members.four-columns {
        grid-template-columns: 1fr;
    }
}

.team-member-link {
    text-decoration: none;
    color: inherit;
}

.team-member {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    justify-content: space-between;
}

.team-member-link:hover .team-member {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    border: 3px solid var(--secondary);
    margin-bottom: 1rem;
    background: rgba(44, 94, 26, 0.05);
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
    aspect-ratio: 1;
    display: block;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.team-member:hover img {
    transform: scale(1.05);
    border-color: var(--accent);
}

.team-member h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.team-member h3 a:hover {
    color: var(--accent);
}

.team-member h3 a i {
    font-size: 0.8em;
    opacity: 0.8;
}

.team-member h3 a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.position {
    color: var(--secondary);
    font-weight: 500;
    margin: 0.5rem 0;
}

.research-focus {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .team-members {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }
}
/* Card Layout Styles */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.research-card-link {
    text-decoration: none;
    color: inherit;
}

.research-card-link:hover .research-card {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.research-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 300px;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Special animations for the main project card (first card) */
.research-card:first-child {
    position: relative;
    overflow: visible;
}



.research-card:first-child:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 94, 26, 0.2);
}

.research-card:first-child .card-image img {
    filter: brightness(1.1) contrast(1.05);
}

.research-card:first-child:hover .card-image img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) contrast(1.05);
}

.research-card:first-child .card-content {
    position: relative;
}



.research-card:first-child h2 {
    transition: all 0.3s ease;
}

.research-card:first-child:hover h2 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.research-card:first-child .lead {
    transition: all 0.3s ease;
}

.research-card:first-child:hover .lead {
    transform: translateX(3px);
}

.research-card:first-child .key-point {
    transition: all 0.3s ease;
    transform-origin: left center;
}

.research-card:first-child:hover .key-point {
    transform: translateX(8px) scale(1.02);
    background-color: rgba(44, 94, 26, 0.08);
    border-left-width: 6px;
}



.card-image {
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 300px;
    display: block;
}

.research-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-highlight {
    background-color: rgba(44, 94, 26, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid var(--primary);
}

@media (max-width: 768px) {
    .research-card {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-image img {
        min-height: auto;
    }
}

/* Enhanced Media Sections */
.media-text-section {
    display: flex;
    margin: 15px 0;
    position: relative;
}

.media-text-content {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.media-text-image {
    flex: 1;
    min-height: 320px;
    max-width: 48%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.image-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.media-text-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 20px;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    backdrop-filter: blur(2px);
}

.image-container:hover .image-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Layout */
.media-text-section.staggered:nth-child(odd) .media-text-content {
    padding-top: 20px;
    padding-bottom: 10px;
}

.media-text-section.staggered:nth-child(even) .media-text-content {
    padding-top: 10px;
    padding-bottom: 20px;
}

.media-text-section.staggered:nth-child(odd) .media-text-text {
    margin-top: -15px;
}

.media-text-section.staggered:nth-child(even) .media-text-text {
    margin-top: 15px;
}

/* CSS-only Animation Effects */
.slide-in {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for multiple elements */
.research-card:nth-child(1) { animation-delay: 0.1s; }
.research-card:nth-child(2) { animation-delay: 0.2s; }
.research-card:nth-child(3) { animation-delay: 0.3s; }
.research-card:nth-child(4) { animation-delay: 0.4s; }
.research-card:nth-child(5) { animation-delay: 0.5s; }


.media-text-text {
    flex: 1;
    padding: 5px 10px;
    min-width: 48%;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.key-point {
    background-color: rgba(44, 94, 26, 0.05);
    border-left: 4px solid var(--primary);
    padding: 0.8rem;
    margin: 0.8rem 0;
    border-radius: 0 4px 4px 0;
}

.key-point h4 {
    margin-top: 0;
    color: var(--primary);
}

.impact-box {
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.impact-box h4 {
    margin-top: 0;
    color: var(--primary);
}

.impact-box ul {
    padding-left: 1.5rem;
}

.impact-box li {
    margin-bottom: 0.5rem;
    position: relative;
}

.impact-box li:before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.research-highlight {
    position: relative;
}

/* Enhanced Text Styles */
.science-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-width: 300px;
}

.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.science-card h3 {
    font-size: 1.3rem;
    margin-top: 0;
    color: var(--primary);
}

.science-card p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.science-card h4 {
    color: var(--secondary);
    margin-top: 0;
}

.impact-box.accent {
    background-color: rgba(212, 175, 55, 0.08);
    border-left: 4px solid var(--accent);
}

.section-heading {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    width: 100%;
    grid-column: 1 / -1;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
}

.key-point ul {
    padding-left: 1.5rem;
}

.key-point li {
    margin-bottom: 0.5rem;
    position: relative;
}

.key-point li:before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: -1.2em;
}

.right-image .media-text-content {
    flex-direction: row-reverse;
}

/* Header Image */
.header-image {
    width: 100%;
    margin: 0 auto 20px;
    text-align: center;
}

.header-image img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Journal Cover Styles */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cover-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.cover-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cover-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cover-info h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: var(--primary);
}

.cover-info p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.3rem 0 0.8rem;
}

.cover-card.placeholder {
    background: rgba(44, 94, 26, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.coming-soon {
    color: var(--secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .cover-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cover-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cover-grid {
        grid-template-columns: 1fr;
    }
}

/* Publication Card Styles */
.publication-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.publication-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
    min-width: 3rem;
    text-align: center;
    padding-top: 0.5rem;
}

.publication-content {
    flex: 1;
}

.publication-authors {
    color: var(--secondary);
    margin: 0.5rem 0;
    font-style: italic;
}

.publication-journal {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.publication-link {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.publication-link:hover {
    background-color: var(--accent);
    color: var(--dark);
}

@media (max-width: 768px) {
    .publication-card {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    background: rgba(44, 94, 26, 0.05);
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Collaborators Section */
.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.collaborator {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.collaborator:hover {
    transform: translateY(-5px);
}

.collaborator img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--secondary);
}

.institution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.institution-logo {
    max-height: 20px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 10px auto;
    display: block;
    padding: 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.institution {
    height: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .collaborators-grid {
        grid-template-columns: 1fr;
    }
}

/* Flower pattern decorative elements */
.page-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08; /* Increased from 0.03 to 0.08 */
    background-size: 300px; /* Reduced from 400px for larger pattern */
    background-repeat: repeat;
    background-position: 0 0;
    animation: floatPattern 40s linear infinite; /* Faster animation */
    background-blend-mode: multiply;
    background-color: rgba(108, 142, 90, 0.15); /* Subtle green tint */
}

.page-decoration.petunia-pattern {
    background-image: url('./web_photos/projects/pppp/petunia-1.png');
}

.page-decoration.chrysanthemum-pattern {
    background-image: url('./web_photos/projects/pppp/chrys-1.png');
}

.page-decoration.orchid-pattern {
    background-image: url('./web_photos/projects/pppp/orchid-3.png');
}

@keyframes floatPattern {
    0% { background-position: 0 0; }
    100% { background-position: 300px 300px; } /* Matches new background size */
}

.flower-accent {
    position: relative;
}

.flower-accent::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1;
}

.research-card:first-child .card-content {
    position: relative;
}


.key-point {
    position: relative;
}

.key-point::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    border-radius: 50%;
    filter: blur(1px);
}

/* Static flower pattern decorations */
.research-card:first-child .card-content::before,
.key-point::after,
.section-divider-icon {
    background-image: url('./web_photos/projects/pppp/petunia-1.png');
}

/* Section dividers with petunia motifs */
.section-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
    opacity: 0.3;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.section-divider-icon {
    width: 40px;
    height: 40px;
    background-image: url('./web_photos/projects/pppp/petunia-1.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0.4;
    filter: grayscale(50%);
}

/* NWO Banner Styles */
.nwo-banner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nwo-banner-link:hover {
    transform: translateY(-2px);
}

.nwo-banner-link:hover .nwo-banner {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.nwo-banner {
    background: #0066cc;
    color: white;
    padding: 20px 0;
    margin: 20px 0 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    position: relative;
}

.nwo-content {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.nwo-logo {
    flex-shrink: 0;
}

.nwo-logo img {
    height: 60px;
    width: auto;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nwo-text {
    flex: 1;
}

.nwo-text h3 {
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nwo-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.95);
    font-weight: 300;
}

@media (max-width: 768px) {
    .nwo-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nwo-logo img {
        height: 50px;
    }
    
    .nwo-text h3 {
        font-size: 1.2rem;
    }
    
    .nwo-text p {
        font-size: 0.9rem;
    }
}

/* Footer Styles */
.footer-links {
    text-align: center;
    margin-top: 60px;
    padding: 40px 0;
    background-color: #f5f5f5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.affiliation-links {
    margin-top: 20px;
}

.affiliation-links a {
    margin: 0 10px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .media-text-content {
        flex-direction: column;
        gap: 15px;
        padding: 5px 0 !important;
    }
    
    .media-text-image {
        max-width: 100%;
    }
    
    .media-text-image,
    .media-text-image img {
        min-height: 220px;
        height: 220px;
        width: 100%;
    }
    
    .media-text-section.staggered .media-text-text {
        margin-top: 0 !important;
    }
    
    .right-image .media-text-content {
        flex-direction: column;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
}

/* Media Coverage Grid Styles */
.media-coverage-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.media-coverage-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1.2rem;
    background-color: rgba(44, 94, 26, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.media-coverage-item:hover {
    background-color: rgba(44, 94, 26, 0.08);
    transform: translateX(5px);
}

.media-coverage-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--secondary);
}

.media-coverage-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.media-coverage-content p {
    margin: 0 0 0.8rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .media-coverage-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .media-coverage-image {
        margin: 0 auto;
        max-width: 120px;
    }
}

/* CSS-only touch device support */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices - make hover effects work on tap */
    .research-card:active {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(44, 94, 26, 0.2);
    }
    
    .team-member:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .image-container:active {
        transform: scale(1.03);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }
    
    .image-container:active img {
        transform: scale(1.05);
    }
}

/* Enhanced CSS animations for better visual feedback */
.research-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for important elements */
.nwo-support-card {
    animation: fadeInUp 0.6s ease-out forwards, subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
    0% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    50% { 
        box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15);
    }
    100% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .page-decoration {
        animation: none;
    }
}
