body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0px;
    background-color: #f5f7fa;
}

/* Main grid container */
.plant-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns by default */
    gap: 20px;
    text-align: center;
}

/* Plant card box */
.plant-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
.plant-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Image section */
.plant-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.plant-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Detail section */
.plant-detail {
    padding: 0px;
}

.title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.uses{
    margin: 1rem;
}

.other-names,
.other-text,
.reference {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

.reference a {
    color: #0066cc;
    text-decoration: none;
}

.reference a:hover {
    text-decoration: underline;
}

/* ----------------------------
   RESPONSIVE BREAKPOINTS
---------------------------- */

/* For tablets — show 2 columns */
@media (max-width: 1024px) {
    .plant-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For small mobile — show 1 column */
@media (max-width: 600px) {
    .plant-container {
        grid-template-columns: 1fr;
    }
}
