/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f6f8fa;
    color: #333333;
}

/* Navbar Style */
.navbar {
    background-color: #ffffff;
    padding: 15px 5%;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Logo Style */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap; 
}

.leaf-icon {
    font-size: 28px;
}

.blue-text {
    color: #007BFF;
}

/* Search Bar Style */
.search-container {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 5px 15px;
    flex: 1;
    max-width: 300px;
    margin: 0 15px;
}

.search-container input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    width: 100%;
}

.search-icon {
    font-size: 16px;
    color: #555555;
    background: none;
    border: none;
    cursor: pointer;
}

/* Menu Style */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #007BFF;
}

/* Content Grid Style */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

/* Info Card Style */
.info-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-details {
    padding: 20px 25px;
}

.category-tag {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007BFF;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.scientific-name {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 15px;
}

.card-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-secondary {
    text-decoration: none;
    color: #007BFF;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.btn-secondary:after {
    content: " ›";
    font-size: 16px;
}

.btn-secondary:hover {
    opacity: 0.8;
}

/* --- Responsive Adjustments (Mobile Fix) --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column !important;
        gap: 15px;
        padding: 10px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .search-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .search-container input {
        width: 100%;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 15px;
    }
}
