/* Hero Section - Enhanced with Slider */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-color: transparent !important;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.35) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-shadow {
    text-shadow: 2px 4px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
}

/* Breadcrumb Custom */
.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.breadcrumb-custom .breadcrumb {
    margin: 0;
    background: transparent;
}

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

.breadcrumb-custom .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* Section Padding */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Stat Cards - Enhanced */
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.stat-card .display-4 {
    font-weight: 800;
    line-height: 1;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px !important;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Image Cover - Fixed aspect ratio and positioning */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Priority Species Cards */
.card-hover .card-body {
    padding: 1.5rem;
}

.card-hover .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

/* Gallery Grid - Masonry style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

.gallery-grid .card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.gallery-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.gallery-grid .card img {
    transition: transform 0.4s ease;
}

.gallery-grid .card:hover img {
    transform: scale(1.08);
}

/* Table Custom */
.table-custom {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table-custom thead {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-custom tbody tr {
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background-color: #f8fdf8;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badge Enhancements */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Card Headers */
.card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
}

/* List Group */
.list-group-item-action {
    transition: all 0.3s ease;
    border-radius: 8px !important;
    margin-bottom: 4px;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
    padding-left: 1.5rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Hero badges */
.hero-content .badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
}

/* Card border colors */
.border-primary {
    border-width: 2px !important;
}

.border-success {
    border-width: 2px !important;
}

/* Enhanced shadows */
.shadow-sm {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.shadow-sm:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
