/* =========================================================================
   Flora & Fauna Page - Complete CSS
   ========================================================================= */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8ddd4 50%, #d4c4a0 100%);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 156px;
}

/* Language Toggle Styles */
body.tibetan .title-en, body.tibetan .section-en, body.tibetan .desc-en,
body.tibetan .cat-en, body.tibetan .flora-en, body.tibetan .cons-en,
body.tibetan .eco-en, body.tibetan .research-en, body.tibetan .species-en,
body.tibetan .plant-en, body.tibetan .bird-en, body.tibetan .mammal-en,
body.tibetan .flower-en, body.tibetan .tree-en, body.tibetan .area-en,
body.tibetan .program-en, body.tibetan .impact-en, body.tibetan .level-en,
body.tibetan .adapt-en, body.tibetan .keystone-en, body.tibetan .threat-en,
body.tibetan .use-en, body.tibetan .rarity-en, body.tibetan .season-en,
body.tibetan .stat-en, body.tibetan .info-en, body.tibetan .zone-en,
body.tibetan .compact-desc-en, body.tibetan .species-desc-en,
body.tibetan .plant-desc-en, body.tibetan .bird-desc-en,
body.tibetan .mammal-desc-en, body.tibetan .flower-desc-en,
body.tibetan .tree-desc-en, body.tibetan .area-desc-en,
body.tibetan .program-desc-en, body.tibetan .impact-desc-en,
body.tibetan .adapt-desc-en, body.tibetan .keystone-desc-en,
body.tibetan .threat-item-en, body.tibetan .use-item-en,
body.tibetan .name-en, body.tibetan .status-en, body.tibetan .meta-en,
body.tibetan .results-en, body.tibetan .finding-en, body.tibetan .tech-en,
body.tibetan .tech-desc-en, body.tibetan .partner-en, body.tibetan .partner-desc-en {
    display: none;
}

body:not(.tibetan) .title-bo, body:not(.tibetan) .section-bo, body:not(.tibetan) .desc-bo,
body:not(.tibetan) .cat-bo, body:not(.tibetan) .flora-bo, body:not(.tibetan) .cons-bo,
body:not(.tibetan) .eco-bo, body:not(.tibetan) .research-bo, body:not(.tibetan) .species-bo,
body:not(.tibetan) .plant-bo, body:not(.tibetan) .bird-bo, body:not(.tibetan) .mammal-bo,
body:not(.tibetan) .flower-bo, body:not(.tibetan) .tree-bo, body:not(.tibetan) .area-bo,
body:not(.tibetan) .program-bo, body:not(.tibetan) .impact-bo, body:not(.tibetan) .level-bo,
body:not(.tibetan) .adapt-bo, body:not(.tibetan) .keystone-bo, body:not(.tibetan) .threat-bo,
body:not(.tibetan) .use-bo, body:not(.tibetan) .rarity-bo, body:not(.tibetan) .season-bo,
body:not(.tibetan) .stat-bo, body:not(.tibetan) .info-bo, body:not(.tibetan) .zone-bo,
body:not(.tibetan) .compact-desc-bo, body:not(.tibetan) .species-desc-bo,
body:not(.tibetan) .plant-desc-bo, body:not(.tibetan) .bird-desc-bo,
body:not(.tibetan) .mammal-desc-bo, body:not(.tibetan) .flower-desc-bo,
body:not(.tibetan) .tree-desc-bo, body:not(.tibetan) .area-desc-bo,
body:not(.tibetan) .program-desc-bo, body:not(.tibetan) .impact-desc-bo,
body:not(.tibetan) .adapt-desc-bo, body:not(.tibetan) .keystone-desc-bo,
body:not(.tibetan) .threat-item-bo, body:not(.tibetan) .use-item-bo,
body:not(.tibetan) .name-bo, body:not(.tibetan) .status-bo, body:not(.tibetan) .meta-bo,
body:not(.tibetan) .results-bo, body:not(.tibetan) .finding-bo, body:not(.tibetan) .tech-bo,
body:not(.tibetan) .tech-desc-bo, body:not(.tibetan) .partner-bo, body:not(.tibetan) .partner-desc-bo {
    display: none;
}

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

/* =========================================================================
   Hero Section
   ========================================================================= */
.flora-fauna-hero {
    height: 100vh;
    background: linear-gradient(rgba(34, 139, 34, 0.7), rgba(85, 107, 47, 0.7)),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=1080&fit=crop') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(34, 139, 34, 0.6), rgba(85, 107, 47, 0.6));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.breadcrumb {
    margin-top: 30px;
    opacity: 0.9;
    font-size: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.separator {
    margin: 0 10px;
}

.current {
    font-weight: 600;
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.3;
    animation: float-elements 8s ease-in-out infinite;
}

.float-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.float-icon:nth-child(3) {
    bottom: 40%;
    left: 20%;
    animation-delay: 4s;
}

.float-icon:nth-child(4) {
    bottom: 20%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float-elements {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* =========================================================================
   Section Navigation
   ========================================================================= */
.section-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(34, 139, 34, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: #228B22;
    transform: scale(1.3);
}

.nav-dot::before {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::before {
    opacity: 1;
}

/* =========================================================================
   Content Sections
   ========================================================================= */
.content-section {
    padding: 100px 0;
    display: block;
    opacity: 1;
    visibility: visible;
    transition: all 0.6s ease;
}

.content-section:nth-child(odd) {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f8ff 100%);
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e8 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2F4F2F;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================================
   Biodiversity Overview
   ========================================================================= */
.biodiversity-overview {
    margin-top: 50px;
}

.bio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 139, 34, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    font-size: 3rem;
    color: #228B22;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    color: #32CD32;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.stat-card h4 {
    font-size: 1.3rem;
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.stat-card p {
    color: #666;
    line-height: 1.6;
}

/* Ecosystem Map */
.ecosystem-map {
    margin-top: 60px;
}

.ecosystem-map h3 {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.eco-zone {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #228B22;
}

.eco-zone:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.15);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zone-header i {
    font-size: 1.5rem;
    color: #228B22;
}

.zone-header h4 {
    color: #2F4F2F;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.eco-zone p {
    color: #666;
    line-height: 1.6;
}

/* =========================================================================
   Wildlife Categories
   ========================================================================= */
.wildlife-categories {
    margin-top: 50px;
}

.category-section {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border-radius: 2px;
}

/* Species Grid */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.species-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.species-card.featured {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.species-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.species-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.species-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.species-status.endangered {
    background: #ff4757;
    color: white;
}

.species-status.vulnerable {
    background: #ffa502;
    color: white;
}

.species-status.stable {
    background: #2ed573;
    color: white;
}

.species-content {
    padding: 30px;
}

.species-content h4 {
    font-size: 1.4rem;
    color: #2F4F2F;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.species-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.info-item i {
    color: #228B22;
    width: 16px;
}

.species-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.species-threats {
    background: #fff5f5;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff4757;
}

.species-threats h5 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 1rem;
}

.species-threats ul {
    list-style: none;
    padding: 0;
}

.species-threats li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.species-threats li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 5px;
}

/* Species Row (Compact View) */
.species-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.species-compact {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.species-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.15);
}

.compact-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
}

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

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

.compact-content {
    flex: 1;
    padding: 20px;
}

.compact-content h4 {
    color: #2F4F2F;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.compact-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.compact-facts {
    font-size: 12px;
    color: #228B22;
    font-weight: 600;
}

/* Birds Showcase */
.birds-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.bird-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.bird-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
}

.bird-image {
    height: 200px;
    overflow: hidden;
}

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

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

.bird-content {
    padding: 25px;
}

.bird-content h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.bird-status {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bird-status .status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.bird-status .vulnerable {
    background: #ffa502;
    color: white;
}

.bird-status .stable {
    background: #2ed573;
    color: white;
}

.bird-status .migration {
    background: #5352ed;
    color: white;
}

.bird-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Small Mammals Grid */
.small-mammals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mammal-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mammal-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.mammal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.mammal-item:hover .mammal-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.mammal-item h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.mammal-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* =========================================================================
   Flora Categories
   ========================================================================= */
.flora-categories {
    margin-top: 50px;
}

.flora-section {
    margin-bottom: 80px;
}

.flora-title {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.flora-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border-radius: 2px;
}

/* Medicinal Plants Grid */
.medicinal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.plant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.plant-card.premium {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.plant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.plant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.plant-rarity {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plant-rarity.legendary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.plant-rarity.rare {
    background: linear-gradient(45deg, #9932CC, #8A2BE2);
    color: white;
}

.plant-rarity.uncommon {
    background: linear-gradient(45deg, #4169E1, #1E90FF);
    color: white;
}

.plant-rarity.common {
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
}

.plant-content {
    padding: 30px;
}

.plant-content h4 {
    color: #2F4F2F;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.plant-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.info-row i {
    color: #228B22;
    width: 16px;
}

.plant-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.medicinal-uses {
    background: #f0fff0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #228B22;
}

.medicinal-uses h5 {
    color: #2F4F2F;
    margin-bottom: 10px;
    font-size: 1rem;
}

.medicinal-uses ul {
    list-style: none;
    padding: 0;
}

.medicinal-uses li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.medicinal-uses li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 5px;
}

/* Flower Gallery */
.flower-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.flower-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flower-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.flower-image {
    height: 180px;
    overflow: hidden;
}

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

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

.flower-details {
    padding: 20px;
}

.flower-details h4 {
    color: #2F4F2F;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.flower-season {
    display: inline-block;
    background: #228B22;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flower-details p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Trees Grid */
.trees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tree-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.tree-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
}

.tree-image {
    height: 200px;
    overflow: hidden;
}

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

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

.tree-content {
    padding: 30px;
}

.tree-content h4 {
    color: #2F4F2F;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.tree-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tree-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fff0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #2F4F2F;
    font-weight: 500;
}

.tree-stats .stat i {
    color: #228B22;
}

.tree-content p {
    color: #666;
    line-height: 1.7;
}

/* =========================================================================
   Conservation Section
   ========================================================================= */
.conservation-initiatives {
    margin-top: 50px;
}

.conservation-section {
    margin-bottom: 80px;
}

.conservation-title {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.conservation-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border-radius: 2px;
}

/* Protected Areas */
.protected-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.area-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.area-card.flagship {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.area-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.area-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.area-header h4 {
    flex: 1;
    margin: 0 20px;
    color: #2F4F2F;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.area-size {
    background: #228B22;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.area-details {
    margin-top: 20px;
}

.area-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.area-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fff0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #2F4F2F;
    font-weight: 500;
}

.area-info .info-item i {
    color: #228B22;
}

.area-details p {
    color: #666;
    line-height: 1.7;
}

/* Community Programs */
.community-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.program-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.program-content {
    flex: 1;
}

.program-content h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.program-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.program-stats .stat {
    background: #228B22;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.program-content p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* Climate Impacts */
.climate-impacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.impact-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: center;
}

.impact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.impact-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.temp-gauge {
    width: 60px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ffa502);
    border-radius: 10px;
    transition: width 2s ease-out;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.precipitation-chart {
    width: 30px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.precip-bar {
    width: 100%;
    background: linear-gradient(180deg, #3742fa, #5352ed);
    border-radius: 5px;
    position: absolute;
    bottom: 0;
    transition: height 2s ease-out;
}

.precip-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #3742fa;
}

.species-trend {
    width: 60px;
    height: 60px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.trend-arrow {
    font-size: 2rem;
    color: #ff4757;
}

.trend-text {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #ff4757;
}

.impact-content {
    flex: 1;
}

.impact-content h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

.impact-content p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* =========================================================================
   Ecosystem Section
   ========================================================================= */
.ecosystem-analysis {
    margin-top: 50px;
}

.ecosystem-section {
    margin-bottom: 80px;
}

.eco-title {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.eco-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border-radius: 2px;
}

/* Food Web */
.food-web-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    margin-top: 30px;
}

.trophic-level {
    background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.trophic-level:hover {
    transform: scale(1.02);
    border-color: #228B22;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
}

.trophic-level.apex {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.trophic-level.secondary {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    color: white;
}

.trophic-level.primary {
    background: linear-gradient(135deg, #42a5f5, #2196f3);
    color: white;
}

.trophic-level.producers {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    color: white;
}

.trophic-level h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.species-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.food-species {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.species-avatar {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.food-species:hover .species-avatar {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.species-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.trophic-arrows {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 20px 0;
}

.arrow {
    font-size: 2rem;
    color: #228B22;
    opacity: 0.7;
}

/* Seasonal Adaptations */
.seasonal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.season-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.season-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.season-card.winter {
    border-left: 5px solid #3498db;
}

.season-card.summer {
    border-left: 5px solid #e74c3c;
}

.season-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.season-header i {
    font-size: 2rem;
}

.season-card.winter .season-header i {
    color: #3498db;
}

.season-card.summer .season-header i {
    color: #e74c3c;
}

.season-header h4 {
    color: #2F4F2F;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.adaptations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adaptation {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #228B22;
}

.adaptation strong {
    color: #2F4F2F;
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.adaptation p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Keystone Species */
.keystone-species {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.keystone-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.keystone-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
}

.keystone-image {
    height: 250px;
    overflow: hidden;
}

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

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

.keystone-content {
    padding: 30px;
}

.keystone-content h4 {
    color: #2F4F2F;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.keystone-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ecosystem-impact {
    background: #f0fff0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #228B22;
}

.ecosystem-impact h5 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-size: 1rem;
}

.ecosystem-impact ul {
    list-style: none;
    padding: 0;
}

.ecosystem-impact li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.ecosystem-impact li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 5px;
}

/* =========================================================================
   Research Section
   ========================================================================= */
.research-initiatives {
    margin-top: 50px;
}

.research-section {
    margin-bottom: 80px;
}

.research-title {
    font-size: 2rem;
    color: #2F4F2F;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.research-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #228B22, #32CD32);
    border-radius: 2px;
}

/* Research Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card.featured {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff 0%, #fffacd 100%);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(47, 79, 47, 0.15);
    border-color: #228B22;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.project-status {
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-status.active {
    background: #2ed573;
    color: white;
}

.project-status.planning {
    background: #ffa502;
    color: white;
}

.project-content h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0fff0;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #2F4F2F;
    font-weight: 500;
}

.project-meta i {
    color: #228B22;
}

.project-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.project-results {
    background: #f0fff0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #228B22;
}

.project-results h5 {
    color: #2F4F2F;
    margin-bottom: 10px;
    font-size: 1rem;
}

.project-results ul {
    list-style: none;
    padding: 0;
}

.project-results li {
    padding: 5px 0;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.project-results li::before {
    content: '🔬';
    position: absolute;
    left: 0;
    top: 5px;
}

/* Technology Innovations */
.tech-innovations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tech-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tech-content {
    flex: 1;
}

.tech-content h4 {
    color: #2F4F2F;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.tech-content p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Research Partnerships */
.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.partner-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(47, 79, 47, 0.1);
    transition: all 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(47, 79, 47, 0.15);
}

.partner-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #228B22, #32CD32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.partner-card h4 {
    color: #2F4F2F;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.partner-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* =========================================================================
   Animations and Effects
   ========================================================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in[data-delay="0.1"] { transition-delay: 0.1s; }
.fade-in[data-delay="0.2"] { transition-delay: 0.2s; }
.fade-in[data-delay="0.3"] { transition-delay: 0.3s; }
.fade-in[data-delay="0.4"] { transition-delay: 0.4s; }

/* =========================================================================
   Lightbox Styles
   ========================================================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease forwards;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .section-navigation {
        right: 20px;
    }

    .species-grid,
    .medicinal-grid,
    .trees-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .seasonal-grid,
    .keystone-species {
        grid-template-columns: 1fr;
    }

    .species-icons {
        gap: 20px;
    }

    .species-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .flora-fauna-hero {
        background-attachment: scroll;
        height: 80vh;
    }

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

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

    .section-navigation {
        display: none;
    }

    .content-section {
        padding: 80px 0;
    }

    .bio-stats,
    .ecosystem-grid,
    .species-grid,
    .species-row,
    .birds-showcase,
    .small-mammals-grid,
    .medicinal-grid,
    .flower-gallery,
    .trees-grid,
    .protected-areas,
    .community-programs,
    .climate-impacts,
    .projects-grid,
    .tech-innovations,
    .partnerships-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .species-compact {
        flex-direction: column;
    }

    .compact-image {
        width: 100%;
        height: 200px;
    }

    .trophic-arrows {
        gap: 20px;
    }

    .species-icons {
        gap: 15px;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
    }

    .tree-stats {
        flex-direction: column;
        gap: 10px;
    }

    .area-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .lightbox-close {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .content-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stat-card,
    .species-card,
    .plant-card,
    .tree-card,
    .area-card,
    .program-card,
    .project-card {
        padding: 20px;
    }

    .species-content,
    .plant-content,
    .tree-content {
        padding: 20px;
    }

    .food-web-container {
        padding: 20px;
    }

    .season-card,
    .keystone-content {
        padding: 20px;
    }

    .floating-elements {
        display: none;
    }

    .hero-content {
        padding: 0 15px;
    }
}

/* =========================================================================
   Print Styles
   ========================================================================= */
@media print {
    .section-navigation,
    .floating-elements {
        display: none !important;
    }

    .content-section {
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }

    .flora-fauna-hero {
        height: 50vh;
        background: #228B22;
        color: white;
    }

    .species-card,
    .plant-card,
    .tree-card {
        break-inside: avoid;
    }
}
