:root {
  --primary-color: #2196f3;
  --secondary-color: #e3f2fd;
  --text-color: #333;
  --transition-speed: 0.3s;
  --nav-height: 60px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: var(--text-color);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.logo h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  padding: 0.5rem;
}

.nav-btn {
  position: relative;
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.nav-btn:hover {
  transform: translateY(-2px);
}

.nav-btn:hover .nav-icon {
  transform: scale(1.2);
}

.nav-btn:hover .nav-text {
  color: #4CAF50;
  font-weight: 500;
}

.nav-icon {
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

.nav-text {
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.nav-btn.active {
  color: #4CAF50;
  font-weight: 500;
}

.nav-btn.active .nav-icon {
  transform: scale(1.1);
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition-speed);
}

.content-section {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.tool-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed);
  text-decoration: none;
  cursor: pointer;
  display: block;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.tool-card h3 {
  color: #1976D2;
  margin-bottom: 1rem;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.tool-card p {
  color: #666;
}

/* 顶部导航栏样式 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.top-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.top-nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  text-decoration: none;
  color: #555;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  font-size: 1.15rem;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item > a:hover::after {
  width: 80%;
}

.nav-item > a:hover {
  color: var(--primary-color);
}

/* 下拉菜单样式 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  width: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

/* 增加物种下拉菜单的宽度 */
.nav-item:has(a[href="/static/Specieslist.html"]) .dropdown-menu,
.nav-item:nth-child(2) .dropdown-menu {
  min-width: 300px;
}

/* 增加功能基因子菜单的宽度 */
.submenu-content {
  position: absolute;
  top: 0;
  left: 100%;
  background: white;
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 101;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.2rem;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 6px;
  font-size: 1.05rem;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: #1a6f5c;
}

.dropdown-menu {
  transition-delay: 0.1s;
}

.nav-item:hover .dropdown-menu {
  transition-delay: 0s;
}

.nav-item.no-dropdown > a:hover {
  color: var(--primary-color);
  background: var(--secondary-color);
}

.key-genes-section {
margin-top: 3rem;
padding: 1rem;
}

.key-genes-section h2 {
color: #333;
font-size: 1.5rem;
margin-bottom: 1.5rem;
text-align: center;
}

.key-genes-section h2::after {
content: '';
display: block;
width: 60px;
height: 3px;
background: var(--primary-color);
margin: 0.5rem auto 0;
border-radius: 2px;
}

.genes-grid,
.library-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem;
margin: 1.5rem 0;
}

.gene-card,
.library-card {
text-decoration: none;
cursor: pointer;
display: block;
background: #f8f9fa;
padding: 1rem;
transition: all 0.3s ease;
text-align: center;
border-radius: 8px;
}

.gene-card:hover,
.library-card:hover {
background: #e3f2fd;
}

.gene-card h3,
.library-card h3 {
margin: 0;
color: #1976D2;
font-size: 1rem;
font-weight: 500;
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
letter-spacing: 0.5px;
}


.library-grid {
margin-top: 2rem;
}

.library-card:hover {
background: #e8eaf6;
}


.community-section {
margin-top: 3rem;
padding: 1rem;
}

.community-section h2 {
color: #333;
font-size: 1.5rem;
margin-bottom: 1.5rem;
text-align: center;
}

.community-section h2::after {
content: '';
display: block;
width: 60px;
height: 3px;
background: var(--primary-color);
margin: 0.5rem auto 0;
border-radius: 2px;
}

.community-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.5rem;
margin: 1.5rem 0;
}

.community-card {
text-decoration: none;
cursor: pointer;
display: block;
background: white;
border-radius: 12px;
overflow: hidden;
transition: all 0.3s ease;
box-shadow: 0 3px 6px rgba(0,0,0,0.08);
border: 1px solid #eee;
}

.community-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border-color: var(--primary-color);
}

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

.community-card h3 {
margin: 0;
padding: 1rem;
color: #1976D2;
font-size: 1.1rem;
font-weight: 500;
text-align: center;
background: #fff;
font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
letter-spacing: 0.5px;
}


.content-section > h2,
.key-genes-section h2,
.community-section h2 {
color: #333;
font-size: 1.5rem;
margin-bottom: 1.5rem;
text-align: center;
}


.content-section > h2::after,
.key-genes-section h2::after,
.community-section h2::after {
content: '';
display: block;
width: 60px;
height: 3px;
background: var(--primary-color);
margin: 0.5rem auto 0;
border-radius: 2px;
}


.tools-grid,
.genes-grid,
.library-grid,
.community-grid {
margin-top: 2.5rem;
}


.key-genes-section,
.community-section {
background: white;
border-radius: 12px;
padding: 2rem;
margin-top: 2.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


.gene-card,
.library-card {
padding: 1.2rem;
border-radius: 8px;
background: #f8f9fa;
transition: all 0.3s ease;
}


.community-card {
background: white;
border-radius: 12px;
overflow: hidden;
transition: all 0.3s ease;
box-shadow: 0 3px 6px rgba(0,0,0,0.08);
border: 1px solid #eee;
}

.community-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border-color: var(--primary-color);
}


.header-picture {
width: 100%;
height: 400px;
overflow: hidden;
margin-bottom: 2rem;
}

.header-picture img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 50%;
}

.info-sections {
margin: 20px 0;
padding: 20px;
background: white;
border-radius: 8px;
box-shadow: none;
}

.info-section {
display: none;
padding: 15px;
background: transparent;
}

.info-section.active {
display: block;
}

.info-section h2 {
color: #333;
margin-bottom: 15px;
}

.news-item, .funding-item, .team-info {
margin-bottom: 20px;
}

.info-section ul {
list-style-type: disc;
margin-left: 20px;
}

.info-section p {
line-height: 1.6;
color: #666;
}

.dropdown-menu.scrollable {
max-height: 300px;
overflow-y: auto;
scrollbar-width: thin;
}

.dropdown-menu.scrollable::-webkit-scrollbar {
width: 6px;
}

.dropdown-menu.scrollable::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}

.dropdown-menu.scrollable::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}

.dropdown-menu.scrollable::-webkit-scrollbar-thumb:hover {
background: #555;
}


.footer {
background-color: #f8f9fa;
padding: 20px 0;
margin-top: 50px;
}

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

.footer-content {
display: flex;
justify-content: center;
align-items: center;
}

.footer-content p {
margin: 0;
color: #666;
font-size: 14px;
}

.footer-section h4 {
color: #333;
margin-bottom: 15px;
}

.footer-section ul {
list-style: none;
padding: 0;
}

.footer-section ul li {
margin-bottom: 8px;
}

.footer-section a {
color: #666;
text-decoration: none;
}

.footer-section a:hover {
color: #007bff;
}

.footer-bottom {
text-align: center;
padding-top: 20px;
border-top: 1px solid #ddd;
}

.social-links {
display: flex;
gap: 15px;
}


.species-header {
text-align: center;
margin: 2rem 0;
padding: 2rem;
background-color: #f8f9fa;
border-radius: 8px;
}

.species-title h1 {
color: #333;
margin-bottom: 0.5rem;
}

.species-title h2 {
color: #666;
font-weight: normal;
}

.species-overview {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin: 2rem 0;
}

.species-image {
margin-bottom: 2rem;
}

.species-image img {
width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-caption {
text-align: center;
margin-top: 1rem;
color: #666;
font-style: italic;
}

.info-table {
width: 100%;
border-collapse: collapse;
}

.info-table td {
padding: 0.5rem;
border-bottom: 1px solid #eee;
}

.info-table td:first-child {
font-weight: bold;
width: 30%;
}

.species-description {
margin: 2rem 0;
}

.genome-info {
background-color: #f8f9fa;
padding: 2rem;
border-radius: 8px;
margin: 2rem 0;
}

.genome-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin: 1rem 0;
}

.stat-item {
background: white;
padding: 1rem;
border-radius: 6px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-label {
font-weight: bold;
color: #666;
}

.reference {
margin-top: 2rem;
}

.reference-item {
padding: 1rem;
background: white;
border-radius: 6px;
margin-top: 1rem;
}

.genome-source {
background-color: #f8f9fa;
padding: 2rem;
border-radius: 8px;
margin: 2rem 0;
}

.source-item {
background: white;
padding: 1.5rem;
border-radius: 6px;
margin-top: 1rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.source-item p {
margin: 0.5rem 0;
line-height: 1.6;
color: #333;
}


.species-content {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.species-main, .species-details {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.common-names, .taxonomy {
margin-top: 2rem;
padding: 1.5rem;
background: #f8f9fa;
border-radius: 8px;
}

.common-names h3, .taxonomy h3 {
color: #333;
margin-bottom: 1rem;
font-size: 1.2rem;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.5rem;
}

.common-names ul, .taxonomy ul {
list-style: none;
padding: 0;
}

.common-names li, .taxonomy li {
padding: 0.5rem 0;
color: #666;
border-bottom: 1px solid #eee;
}

.taxonomy li em {
color: #333;
}

.species-details .species-description,
.species-details .reference {
margin-bottom: 2rem;
}

.species-details h3 {
color: #333;
margin-bottom: 1rem;
font-size: 1.2rem;
border-bottom: 2px solid var(--primary-color);
padding-bottom: 0.5rem;
}

.reference-item {
background: #f8f9fa;
padding: 1.5rem;
border-radius: 8px;
}


@media (max-width: 768px) {
.species-content {
  grid-template-columns: 1fr;
}
}

.taxonomy p {
color: #666;
line-height: 1.6;
margin: 0;
padding: 0.5rem 0;
}


.species-details .species-image {
position: relative;
}


.species-details {
display: flex;
flex-direction: column;
gap: 2rem;
}


.species-details .info-card {
opacity: 1;
visibility: visible;
}


.info-card {
margin-bottom: 1.5rem;
}


.info-card:last-child {
margin-bottom: 0;
}


.species-container {
max-width: 1300px;
margin: 1.5rem auto;
padding: 2rem 3rem;
background: #ffffff;
border-radius: 20px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.species-header {
text-align: center;
margin-bottom: 2rem;
padding: 1.5rem;
background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
border-radius: 16px;
}

.species-title h1 {
font-size: 2.6rem;
color: #1a365d;
margin: 0;
font-weight: 500;
letter-spacing: -0.5px;
}

.species-content {
margin-top: 0.5rem;
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 2.5rem;
align-items: start;
}

.species-main {
display: flex;
flex-direction: column;
gap: 1.8rem;
}

.species-main .info-card {
padding: 1.8rem;
border-radius: 14px;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.04);
}

.card-header {
margin-bottom: 1.2rem;
}

.card-header h3 {
color: #2d3748;
font-size: 1.25rem;
font-weight: 600;
padding-bottom: 0.8rem;
border-bottom: 2px solid #e2e8f0;
position: relative;
}

.card-header h3::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 35px;
height: 2px;
background: var(--primary-color);
border-radius: 2px;
}

.content-wrapper {
display: flex;
flex-direction: column;
gap: 1.2rem;
}

.species-description {
padding: 2.2rem;
border-radius: 14px;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.species-description .card-content {
color: #2d3748;
line-height: 1.8;
font-size: 1.05rem;
}

.common-names .card-content li {
padding: 0.9rem 0;
border-bottom: 1px solid #edf2f7;
display: flex;
align-items: center;
gap: 1.2rem;
}

.label {
min-width: 90px;
color: #4a5568;
font-weight: 500;
}

.taxonomy .card-content p {
color: #4a5568;
font-size: 0.95rem;
line-height: 1.8;
margin: 0;
}

.reference-item {
background: #f8fafc;
padding: 1.5rem;
border-radius: 10px;
font-size: 0.95rem;
line-height: 1.7;
}

@media (max-width: 1200px) {
.species-container {
  padding: 2rem;
}

.species-content {
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
}
}

@media (max-width: 768px) {
.species-container {
  margin: 1rem;
  padding: 1.5rem;
}

.species-title h1 {
  font-size: 2rem;
}

.species-content {
  grid-template-columns: 1fr;
}
}


.reference-item a {
color: var(--primary-color);
text-decoration: none;  
transition: color 0.3s ease;
}

.reference-item a:hover {
color: #1565C0;  
text-decoration: none;  
}


.image-card {
margin: 0;
padding: 1.25rem;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
margin-bottom: 1rem;
overflow: hidden;
transition: all 0.3s ease;
}

.image-card:hover {
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
transform: translateY(-2px);
}

.image-card img {
width: 100%;
height: auto;
max-height: 400px;
object-fit: cover;
border-radius: 12px;
transition: all 0.4s ease;
}

.image-card:hover img {
transform: scale(1.03);
filter: brightness(1.05);
}

.image-card.species-image {
  min-height: 500px; /* Ensure the card itself has a minimum height */
}


.functional-genes-submenu {
position: relative;
}

.functional-genes-submenu .submenu-trigger {
position: relative;
padding-right: 1.5rem;
}

.functional-genes-submenu .submenu-trigger::after {
content: '▶';
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 0.8em;
transition: transform 0.3s ease;
}

.functional-genes-submenu:hover .submenu-trigger::after {
transform: translateY(-50%) rotate(90deg);
}

.submenu-body {
max-height: 300px;
overflow-y: auto;
}

.submenu-body a {
padding: 0.8rem 1.2rem;
display: block;
color: #555;
transition: all 0.3s ease;
}

.submenu-body a:hover {
background: var(--secondary-color);
color: var(--primary-color);
}


.submenu-body.scrollable::-webkit-scrollbar {
width: 6px;
}

.submenu-body.scrollable::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}

.submenu-body.scrollable::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}

.submenu-body.scrollable::-webkit-scrollbar-thumb:hover {
background: #555;
}

.functional-genes-submenu:hover .submenu-content {
opacity: 1;
visibility: visible;
transform: translateX(0);
}

/* General Section Title Styling */
.section-title {
  font-size: 2.2rem;
  color: #2c3e50; /* Darker, more professional blue */
  text-align: center;
  margin-bottom: 2.5rem; /* Increased bottom margin */
  font-weight: 600; /* Slightly bolder */
  position: relative;
  padding-bottom: 0.8rem; /* Space for the underline */
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; /* Wider underline */
  height: 4px; /* Thicker underline */
  background-color: #3498db; /* Brighter blue for accent */
  border-radius: 2px;
}

/* Enhancements for the Species Collection section on the homepage */
#genomics.content-section {
  background-color: #f8f9fa; /* A very light, fresh green/cyan tint, adjusted for subtlety */
  padding: 3.5rem 3rem; /* Increased padding for a more spacious feel */
  border-radius: 20px; /* More pronounced rounded corners */
  margin-top: 2.5rem; /* Ensure some space from elements above */
  margin-bottom: 2.5rem; /* Ensure some space from elements below */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06); /* Slightly softer but deeper shadow */
}

#genomics .section-title {
  color: #16a085; /* A rich teal color for the title */
  margin-bottom: 3.5rem; /* More space below title within this section */
  font-size: 2.4rem; /* Slightly larger title for this section */
}

#genomics .section-title::after {
  background-color: #1abc9c; /* A vibrant turquoise for the underline */
  width: 120px; /* Wider underline for this prominent section title */
  height: 5px; /* Thicker underline */
}

/* Styles for Species Collection on index.html */
.species-preview-grid {
  display: grid;
  /* Adjust for 3 columns on wider screens */
  grid-template-columns: repeat(3, 1fr); /* Changed to ensure 3 columns */
  gap: 2.5rem; 
  margin-bottom: 2.5rem; 
}

.species-card {
  background: #ffffff; /* Pure white background for cards */
  border-radius: 16px; /* More rounded corners for a modern look */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer, more diffused shadow */
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth, refined transition */
  overflow: hidden; /* Ensures content stays within rounded corners */
  text-decoration: none; /* Remove underline from link */
  color: inherit; /* Inherit text color */
  display: flex; 
  flex-direction: column; /* Stack image and info vertically */
}

.species-card:hover {
  transform: translateY(-8px); /* More pronounced lift on hover */
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover for depth */
}

.species-image {
  width: 100%;
  height: 220px; /* Slightly taller images */
  object-fit: cover; /* Ensure image covers the area, cropping if necessary */
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth zoom effect on image */
}

.species-card:hover .species-image {
  transform: scale(1.05); /* Zoom image slightly on card hover */
}

.species-info {
  padding: 1.8rem; /* Increased padding inside the info section of the card */
  text-align: center;
  background-color: #f8f9fa; /* Light background for info section for subtle contrast with card */
  flex-grow: 1; /* Allows info section to fill available space if cards have varying text length */
}

.species-name {
  color: #34495e; /* Darker, more readable color for species name */
  font-size: 1.5rem; /* Slightly larger font for better readability */
  margin-bottom: 0.5rem;
  font-weight: 600; /* Bolder name for emphasis */
}

.species-latin {
  font-style: italic;
  color: #7f8c8d; /* Softer grey for latin name, for secondary emphasis */
  font-size: 1.1rem; /* Adjusted size for balance */
}

.more-link-container {
  text-align: center;
  margin-bottom: 3rem; /* Spacing below the link */
  margin-top: 1rem; /* Spacing above the link */
}

.more-link {
  display: inline-block;
  padding: 0.9rem 2.2rem; /* Slightly larger padding for a more substantial button */
  background: linear-gradient(45deg, #3498db, #2980b9); /* Gradient background for visual appeal */
  color: white;
  text-decoration: none;
  border-radius: 8px; /* More rounded corners */
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition for hover effects */
  font-size: 1.25rem; /* Larger font size */
  font-weight: 500; /* Medium weight for clear text */
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4); /* Shadow related to button color for depth */
}

.more-link:hover {
  background: linear-gradient(45deg, #2980b9, #3498db); /* Slightly darker gradient on hover */
  transform: translateY(-3px) scale(1.02); /* Lift and slight scale on hover */
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.55); /* Enhanced shadow on hover */
}

.top-showcase {
  display: flex;
  min-height: 600px;
  background: linear-gradient(135deg, #1a6f5c, #2e8b57);
  margin-bottom: 2rem;
}

.showcase-left {
  flex: 1;
  padding: 4rem;
  display: flex;
  align-items: center;
  color: white;
}

.welcome-content {
  max-width: 600px;
}

.welcome-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.feature-cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateX(10px);
}

.card-icon {
  font-size: 2rem;
}

.card-content {
  display: flex;
  flex-direction: column;
}

.card-number {
  font-size: 1.8rem;
  font-weight: 600;
}

.card-label {
  font-size: 1rem;
  opacity: 0.9;
}

.action-buttons {
  display: flex;
  gap: 1rem;
}

.action-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: white;
  color: #1a6f5c;
}

.action-btn.secondary {
  border: 2px solid white;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.showcase-right {
  flex: 1;
  padding: 2rem;
  display: flex;
  align-items: center;
}

.image-showcase {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.05);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .top-showcase {
    flex-direction: column;
  }

  .showcase-left,
  .showcase-right {
    padding: 2rem;
  }

  .feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.hero-section {
  background: linear-gradient(135deg, #ffffff 60%, #f8f9fa 60%);
  padding: 100px 0 4rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4rem;
  color: #0EA5E9;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.4;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-box {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a6f5c;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

.hero-image {
  flex: 1;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-image {
    width: 100%;
  }

  .hero-image img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #1a6f5c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-control:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .carousel {
    height: 300px;
  }
}

.info-nav-container {
  margin-bottom: 3rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.info-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.info-nav-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.info-nav-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #1a6f5c;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.info-nav-btn.active {
  color: #1a6f5c;
}

.info-nav-btn.active::after {
  transform: scaleX(1);
}

.info-panel {
  display: none;
}

.info-panel.active {
  display: block;
}

.nav-icon {
  font-size: 1.4rem;
}

.info-panel h2 {
  font-size: 1.8rem;
}

.info-panel p,
.info-panel ul,
.info-panel li {
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Reduce font size for About FB section */
#about p,
#about li {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  padding-left: 1em;
}

/* Remove bullet points from About FB list */
#about ul {
  list-style-type: none;
  padding-left: 0;
}

.news-item h3,
.funding-item h3,
.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.brand-title-row {
  text-align: center;
  font-weight: 500;
}

#recentVisitsList {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

#recentVisitsList li {
  background-color: #e9ecef;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #343a40;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Visit Trends Chart Section Styles */
.visit-trends-container {
  background-color: #ffffff;
  /* White background for contrast */
  padding: 2.5rem 2rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.visit-trends-title {
  text-align: center;
  font-size: 1.8rem;
  /* Slightly smaller than the other title */
  color: #1a6f5c;
  margin-bottom: 2rem;
  font-weight: 600;
}

.chart-wrapper {
  margin: 0 auto 1.5rem auto;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.trends-note {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Styles for More News Button - Updated */
.info-panel#news {
  /* Add relative positioning and padding for the button */
  position: relative;
  padding-bottom: 60px;
  /* Adjust as needed to make space for the button */
}

.more-news-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: inline-block;
  background-color: #1a6f5c;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  /* Smaller padding */
  border-radius: 6px;
  /* Slightly smaller radius */
  cursor: pointer;
  font-size: 0.9rem;
  /* Smaller font */
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  /* Smaller shadow */
}

.more-news-btn:hover {
  background-color: #155e4d;
  transform: translateY(-1px);
  /* Less movement */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Styles for Team Section */
.team-category-title {
  font-size: 1.4rem;
  color: #1a6f5c;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #d0d0d0;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.team-member-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 4px solid #e9ecef;
  background-color: #f8f9fa;
}

.team-member-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.3rem;
}

.team-member-role {
  font-size: 0.95rem;
  color: #6c757d;
}

/* Styles for side-by-side Team Leaders and Main Developers */
.team-leaders-developers-row {
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping on smaller screens */
  gap: 1.8rem;
  /* Consistent gap */
  margin-bottom: 2rem;
  /* Space before Participants section */
}

.team-column {
  flex: 1;
  min-width: 200px;
  /* Prevent over-squishing */
}

.team-column .team-category-title {
  margin-top: 0;
  /* Adjust for column layout */
}

/* General styling for Our Developers section title */
#developers h2 {
  margin-bottom: 2rem;
}

/* Styles for Year Tabs in News Section */
.year-tabs-nav {
  display: flex;
  gap: 0.5rem; /* Smaller gap between year tabs */
  margin-bottom: 1.5rem; /* Space below the tabs */
  border-bottom: 1px solid #e0e0e0; /* Lighter border */
  padding-bottom: 0.8rem; /* Padding for the bottom border */
}

.year-tab-btn {
  padding: 0.6rem 1.2rem; /* Standardized padding */
  background-color: #f0f0f0; /* Light grey background for inactive tabs */
  border: 1px solid #dcdcdc; /* Border for inactive tabs */
  border-bottom: none; /* Remove bottom border as it's handled by parent */
  cursor: pointer;
  color: #555; /* Darker grey text for inactive tabs */
  font-size: 1rem; /* Slightly smaller font */
  border-radius: 6px 6px 0 0; /* Rounded top corners */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-weight: 500;
}

.year-tab-btn:hover {
  background-color: #e9e9e9; /* Slightly darker on hover */
  color: #333;
}

.year-tab-btn.active {
  background-color: #1a6f5c; /* Main green color for active tab */
  color: white;
  border-color: #1a6f5c; /* Match border color with background */
  font-weight: 600;
}

.news-year-panel {
  display: none; /* Hide inactive panels */
  padding-top: 1rem; /* Add some space above the news items within a panel */
}

.news-year-panel.active {
  display: block; /* Show active panel */
}

.news-year-panel .news-item {
  padding: 0.8rem 0; /* Vertical padding for news items */
  border-bottom: 1px dashed #e7e7e7; /* Lighter, dashed border for items */
}

.news-year-panel .news-item:last-child {
  border-bottom: none; /* Remove border for the last item */
}

.news-year-panel .news-item p {
  font-size: 0.9rem; /* Slightly smaller font for news content */
  line-height: 1.6;
  color: #454545; /* Dark grey for readability */
  margin-bottom: 0.5rem; /* Reduced margin for paragraph */
}

/* Styles for Feedback Form */
#feedback {
  padding: 2rem;
}

#feedback h2 {
  color: #1a6f5c; /* Theme color for heading */
  margin-bottom: 1.5rem;
  text-align: center;
}

#feedback p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease;
  box-sizing: border-box; /* Ensures padding doesn't add to width */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
  border-color: #1a6f5c; /* Highlight focus with theme color */
  outline: none;
}

.form-group textarea {
  resize: vertical; /* Allow vertical resizing, disable horizontal */
}

.submit-feedback-btn {
  display: block; /* Make button block to center it */
  width: auto;
  min-width: 200px; /* Minimum width for the button */
  margin: 1rem auto 0; /* Center the button with some top margin */
  padding: 0.8rem 1.5rem;
  background-color: #1a6f5c; /* Theme color for button */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-feedback-btn:hover {
  background-color: #155e4d; /* Darker shade on hover */
  transform: translateY(-2px);
}

/* Styles for Phylogenetic Tree on Specieslist.html */
.species-container .page-title {
  color: #1a6f5c; 
}

/* Base styling for the tree container - can keep or modify */
.phylogenetic-tree {
  list-style-type: none;
  padding-left: 0; /* Original had 0, if angiosperms-group adds padding, this might be fine */
  margin: 2rem 0;
  font-family: 'Poppins', sans-serif;
}

/* Styling for the main Angiosperms group background - REMOVED/NEUTRALIZED */
.phylogenetic-tree.angiosperms-group {
  /* background-color: #e0f2f7; */ /* Lightest blue/cyan - REMOVED */
  /* padding: 15px; */ /* REMOVED */
  /* border-radius: 10px; */ /* REMOVED */
  /* border: 1px solid #cce8ee; */ /* REMOVED */
  /* Ensure it still behaves as a block or according to .phylogenetic-tree base style */
}

/* Styling for Monocots group background */
.phylogenetic-tree ul.monocots-group {
  background-color: #fffde7; /* Lighter Yellow */
  padding: 10px;
  margin-top: 8px; /* Space between this block and parent text */
  border-radius: 8px;
  border: 1px solid #fff9c4;
}

/* Styling for Eudicots group background */
.phylogenetic-tree ul.eudicots-group {
  background-color: #fce4ec; /* Lighter Pink */
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #f8bbd0;
}

/* Styles for individual Family groups */
.phylogenetic-tree ul.family-liliaceae-group {
  background-color: #F3E5F5; /* Light Purple */
  border: 1px solid #E1BEE7;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-colchicaceae-group {
  background-color: #EDE7F6; /* Light Lavender */
  border: 1px solid #D1C4E9;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-orchidaceae-group {
  background-color: #E0F7FA; /* Light Aqua */
  border: 1px solid #B2EBF2;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-nelumbonaceae-group {
  background-color: #FFF3E0; /* Light Orange/Peach */
  border: 1px solid #FFE0B2;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-paeoniaceae-group {
  background-color: #FFF0F0; /* Light Coral/Pink */
  border: 1px solid #FFDADA;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-rosaceae-group {
  background-color: #E8F5E9; /* Light Leaf Green */
  border: 1px solid #C8E6C9;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-ericaceae-group {
  background-color: #ECEFF1; /* Light Steel Blue */
  border: 1px solid #CFD8DC;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-oleaceae-group {
  background-color: #F9FBE7; /* Very Light Lime/Olive */
  border: 1px solid #F0F4C3;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-asteraceae-group {
  background-color: #FFF8E1; /* Pale Gold */
  border: 1px solid #FFECB3;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-caryophyllaceae-group {
  background-color: #E0FFFF; /* Pale Cyan */
  border: 1px solid #AFEEEE;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

.phylogenetic-tree ul.family-nyctaginaceae-group {
  background-color: #FFEBEE; /* Light Coral/Pink */
  border: 1px solid #FFCDD2;
  padding: 8px 10px;
  margin-top: 6px;
  margin-left: 0; /* Added for "顶格" */
  border-radius: 6px;
}

/* Nested ULs (for orders, families, genera within the colored blocks) */
.phylogenetic-tree ul {
  list-style-type: none;
  padding-left: 25px; 
  margin-left: 15px; 
  border-left: 1.5px solid #b0bec5; /* Slightly darker/neutral line color for contrast */
  position: relative;
  margin-top: 5px; /* Add some space above nested lists */
}

/* Remove outer border for the very first list if it's also a colored group */
ul.phylogenetic-tree.angiosperms-group > li > ul:not(.monocots-group):not(.eudicots-group) {
    /* This rule might be too complex or not needed if structure is consistent */
    /* border-left: none; */
    /* margin-left: 0; */ 
}

/* Connector lines for li elements */
.phylogenetic-tree li::before {
  content: "";
  position: absolute;
  top: 0.8em; 
  left: -15px; /* Connects to the margin-left of the parent ul */
  width: 15px; 
  height: 1.5px;
  background-color: #b0bec5; /* Match line color */
}

/* Ensure the root li (Angiosperms text) does not have a line trying to connect to nothing */
ul.phylogenetic-tree.angiosperms-group > li::before {
    display: none;
}

/* Text element styling to sit on top of colored backgrounds */
.phylogenetic-tree li span, 
.phylogenetic-tree li a {
    display: inline-block;
    padding: 0.3rem 0.6rem; /* Updated padding */
    border-radius: 4px; 
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; /* Added background-color and box-shadow to transition */
    font-size: 0.95rem; 
    text-decoration: none;
    line-height: 1.3;
    background-color: transparent; 
    border: none;   
    color: #222222; 
    margin-bottom: 3px; 
}

.phylogenetic-tree li span {
    font-weight: 600;
    /* Specific text colors will be applied by .clade-name, .order-name etc. */
    /* Ensure these specific colors also have good contrast. */
}

.phylogenetic-tree li span.clade-name { font-size: 1.05rem; color: #1a5258; } /* Darkened clade name color */
.phylogenetic-tree li span.order-name { font-size: 1rem; color: #204d74; } /* Darkened order name color */
.phylogenetic-tree li span.family-name { font-size: 0.95rem; color: #2874a6; } /* Darkened family name color */
.phylogenetic-tree li span.genus-name { font-size: 0.9rem; font-style: italic; color: #1f5a8c; } /* Darkened genus name color */

.phylogenetic-tree .species-item a {
    font-weight: 500;
    color: #111111; /* Even darker for species links for emphasis */
    cursor: pointer; /* Explicitly set cursor */
}
.phylogenetic-tree .species-item a:hover {
    background-color: #e0f2f7; /* Added background color on hover */
    color: #004d40; /* Darker teal on hover */
    transform: translateX(2px);
    text-decoration: underline; /* Add underline on hover for better affordance */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Added subtle shadow on hover */
}

.phylogenetic-tree .species-item .scientific-name {
    font-style: italic;
    /* color is inherited from the <a> tag or can be set if needed */
}
.phylogenetic-tree .species-item .common-name {
    font-style: normal;
    color: #434e5a; /* Slightly softer for common name */
    font-size: 0.85em; 
    margin-left: 0.3em;
}

/* Responsive styles for phylogenetic tree (adjustments might be needed) */
@media (max-width: 768px) {
  .phylogenetic-tree ul.angiosperms-group,
  .phylogenetic-tree ul.monocots-group,
  .phylogenetic-tree ul.eudicots-group {
    padding: 10px;
  }
  .phylogenetic-tree ul {
    padding-left: 20px;
    margin-left: 10px;
  }
  .phylogenetic-tree li::before {
    left: -10px;
    width: 10px;
  }
  .phylogenetic-tree li span, .phylogenetic-tree li a {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .phylogenetic-tree .species-item .common-name {
    display: block; 
    margin-left: 0;
    font-size: 0.85rem; /* Further adjust font size */
  }
  .phylogenetic-tree li span, .phylogenetic-tree li a {
    font-size: 0.85rem; /* Further adjust font size */
  }
}

/* Styles for 2-column layout on homepage */
.feature-columns-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

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

.column-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #e2e8f0;
}

.feature-column .column-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.feature-column .tool-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  text-align: left;
}

.feature-column .tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #1a6f5c;
}

.feature-column .tool-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a6f5c;
  margin: 0 0 0.5rem 0;
}

.feature-column .tool-card p {
  font-size: 0.95rem;
  color: #5a6872;
  line-height: 1.5;
  margin: 0;
}

.omics-category-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.omics-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.omics-category-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.omics-tool-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.omics-tool-link {
  color: #1a6f5c;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  background-color: #f7f7f7;
  border: 1px solid #eee;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.omics-tool-link:hover {
  background-color: #e6f7f2;
  color: #115744;
  text-decoration: none;
  border-color: #c3e9df;
}

@media (max-width: 1024px) {
  .feature-columns-container {
    grid-template-columns: 1fr;
  }
}

/* Styles for NEW OMICS section */
.omics-showcase {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.omics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch; /* Align row items to have the same height */
}

/* Unified card styles for the omics section */
.omics-category-card,
.omics-grid .tool-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in a row have same height */
  color: inherit; /* Ensure text color is inherited for links */
  text-decoration: none; /* Remove underline from links */
}

.omics-category-card:hover,
.omics-grid .tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.omics-category-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* Specific styles for tool-cards within the omics grid */
.omics-grid .tool-card {
  justify-content: center;
  text-align: center;
}

.omics-grid .tool-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #34495e;
  margin: 0 0 0.5rem 0;
}

.omics-grid .tool-card p {
  font-size: 0.9rem;
  color: #5a6872;
  line-height: 1.5;
  margin: 0;
}

.omics-tool-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto; /* Push tool links to the bottom, useful for alignment */
}

.omics-tool-link {
  color: #1a6f5c;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  background-color: #f7f7f7;
  border: 1px solid #eee;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.omics-tool-link:hover {
  background-color: #e6f7f2;
  color: #115744;
  text-decoration: none;
  border-color: #c3e9df;
}

@media (max-width: 1024px) {
  .feature-columns-container {
    grid-template-columns: 1fr;
  }
}

/* Remove/disable old and intermediate omics styles */
.omics-grid,
.omics-category-card,
.omics-tool-list,
.omics-tool-link,
.omics-column,
.omics-title {
  display: none;
}

/* Styles for NEW Omics Tabs Showcase */
.omics-tabs-showcase {
  background: linear-gradient(to top, #f3f9f7, #ffffff);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 90, 60, 0.08);
}

.omics-tabs-showcase .section-title {
  font-size: 2rem;
  color: #0c4b33;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.omics-tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.omics-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d6e5a;
  background-color: #ffffff;
  border: 1px solid #d8e6e1;
  border-radius: 50px; /* pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.omics-tab:hover {
  background-color: #e6f7f2;
  border-color: #a3d9c8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.omics-tab.active {
  background-color: #1a6f5c;
  color: #ffffff;
  border-color: #1a6f5c;
  box-shadow: 0 4px 15px rgba(26, 111, 92, 0.3);
  transform: translateY(-2px);
}

.omics-tab i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.omics-tab.active i {
  transform: scale(1.1);
}

.omics-tab-content {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
}

.omics-tab-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-in-out;
}

.omics-tab-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-tool-card {
  display: block;
  background: white;
  padding: 1.5rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.panel-tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-color: #1a6f5c;
}

.panel-tool-card h4 {
  font-size: 1.1rem;
  color: #1a6f5c;
  margin: 0 0 0.5rem 0;
}

.panel-tool-card p {
  font-size: 0.9rem;
  color: #5a6872;
  line-height: 1.5;
  margin: 0;
}

.submenu-body {
  max-height: 300px;
}

/* Specific layout for Genomics panel */
#genomics-panel.active {
  grid-template-columns: repeat(3, 1fr);
}

/* Styles for NEW Genetics and Breeding Tabs Showcase */
.genetics-tabs-showcase {
  background: linear-gradient(to top, #f3f9f7, #ffffff);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 30px rgba(0, 90, 60, 0.08);
}

.genetics-tabs-showcase .section-title {
  font-size: 2rem;
  color: #0c4b33;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.genetics-tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.genetics-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d6e5a;
  background-color: #ffffff;
  border: 1px solid #d8e6e1;
  border-radius: 50px; /* pill shape */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.genetics-tab:hover {
  background-color: #e6f7f2;
  border-color: #a3d9c8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.genetics-tab.active {
  background-color: #1a6f5c;
  color: #ffffff;
  border-color: #1a6f5c;
  box-shadow: 0 4px 15px rgba(26, 111, 92, 0.3);
  transform: translateY(-2px);
}

.genetics-tab i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.genetics-tab.active i {
  transform: scale(1.1);
}

.genetics-tab-content {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 2rem;
  min-height: 200px;
}

.genetics-tab-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-in-out;
}

.genetics-tab-panel.active {
  display: grid;
}

.submenu-body {
  max-height: 300px;
}