/* Basic Reset & Body Styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif; /* Using Lato font from Google Fonts */
    line-height: 1.6;
    background-color: #f9f9f9; /* Light grey background */
    color: #333; /* Dark grey text */
}

.container {
    max-width: 1100px; /* Limit content width */
    margin: 0 auto; /* Center content */
    padding: 0 20px; /* Add padding on the sides */
}

a {
    color: #0066cc; /* Standard link blue */
    text-decoration: none; /* Remove underline */
}

a:hover {
    text-decoration: underline; /* Underline on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    margin-bottom: 15px; /* Space below images if you add them */
}

/* Header Styling */
header {
    background-color: #ffffff; /* White background */
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between; /* Space title and nav */
    align-items: center; /* Vertically align items */
}

.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c5e3a; /* Dark Green to match garden theme potentially */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Arrange nav items horizontally */
}

nav li {
    margin-left: 20px; /* Space between nav items */
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a.active /* Add class="active" to the current page link if desired */ {
    background-color: #eee; /* Light grey background on hover */
    text-decoration: none;
}

/* Main Content Styling */
main {
    padding: 30px 0; /* Space above and below main content */
}

.welcome {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #eef;
    border-radius: 8px;
}

.welcome h2 {
    margin-top: 0;
    color: #335;
}

/* Highlights Section (Grid Layout) */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 30px; /* Space between grid items */
    margin-bottom: 40px;
}

.highlight {
    background-color: #ffffff; /* White background for cards */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.highlight h3 {
    margin-top: 0;
    color: #4a7c59; /* Medium Green */
}

/* Hobby Link Section */
.hobby-link {
     text-align: center;
     background-color: #f0f0f0;
     padding: 20px;
     border-radius: 8px;
     margin-top: 20px;
}

.hobby-link h3 {
     margin-top: 0;
     color: #555;
}


/* Button Styling */
.button {
    display: inline-block;
    background-color: #4a7c59; /* Medium Green */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #3a6748; /* Darker Green */
    text-decoration: none;
}

/* Footer Styling */
footer {
    background-color: #333; /* Dark background */
    color: #eee; /* Light text */
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
}

/* === Table Styling === */

.table-responsive {
    overflow-x: auto; /* Allows horizontal scrolling on small screens if needed */
    margin-bottom: 20px;
    background-color: #ffffff; /* Optional: White background for table area */
    padding: 15px;          /* Optional: Padding around table */
    border-radius: 8px;    /* Optional: Rounded corners */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Optional: Subtle shadow */
}

table.plant-table {
    width: 100%;            /* Make table take full width of container */
    border-collapse: collapse; /* Collapse borders */
    font-size: 0.9em;       /* Slightly smaller font for dense tables */
}

table.plant-table th,
table.plant-table td {
    border: 1px solid #ccc; /* Lighter border */
    padding: 8px 10px;      /* Cell padding */
    text-align: left;
    /* Text wrapping rules from original embedded style */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

table.plant-table thead th {
    background-color: #eef; /* Light blue-grey background for header */
    font-weight: bold;
    color: #333;
}

table.plant-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Zebra striping for rows */
}

table.plant-table tbody tr:hover {
    background-color: #f1f1f1; /* Hover effect for rows */
}

/* === Responsive Table CSS (from original embedded style, adapted) === */
@media (max-width: 768px) { /* Apply only on smaller screens */
    .table-responsive thead {
        display: none; /* Hide table header */
    }
    .table-responsive .plant-table tr {
        display: block; /* Make rows behave like blocks */
        margin-bottom: 1rem;
        border: 1px solid #ddd; /* Add border around each "card" */
    }
    .table-responsive .plant-table td {
        display: block; /* Make cells behave like blocks */
        text-align: right; /* Align cell content to the right */
        padding: 0.75rem; /* Adjust padding */
        padding-left: 40%; /* Make space for the label */
        position: relative; /* Needed for label positioning */
        border-bottom: 1px dotted #eee; /* Separator between "fields" */
    }
    .table-responsive .plant-table td:last-child {
        border-bottom: none; /* Remove border from last cell in a "card" */
    }
    /* Add the data label before the cell content */
    .table-responsive .plant-table td::before {
        content: attr(data-label); /* Use the data-label attribute value */
        font-weight: bold;
        position: absolute; /* Position label absolutely */
        left: 10px;         /* Position from the left */
        width: calc(40% - 20px); /* Calculate width based on padding */
        text-align: left;   /* Align label text left */
        white-space: nowrap; /* Prevent label text wrapping */
    }
}