/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", serif;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32; /* A green for the "Green Thumb" */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: bold;
}

/* Main Content Area */
main {
    width: 90%;
    margin: 20px auto;
}

section {
    background: #fff;
    margin-bottom: 20px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background-color: #e8f5e9; /* Light green background */
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1b5e20; /* Darker green */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto;
}

.cta-button {
    display: inline-block;
    background: #4caf50;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.cta-button:hover {
    background: #43a047;
    text-decoration: none;
}

/* Quick Topics Section */
.quick-topics h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.topic-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topic-cards .card {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 2rem 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Newsletter Section */
.newsletter form {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.newsletter input[type="email"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}

.newsletter button {
    padding: 10px 20px;
    border: none;
    background: #2e7d32;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

/* Care Guide Page Specifics */
.care-guide-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.toc {
    flex: 0 0 220px; /* Do not grow, do not shrink, base width 220px */
    position: sticky;
    top: 100px; /* Adjust based on header height */
    background: #fdfdfd;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.toc h3 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    color: #2e7d32;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li a {
    display: block;
    padding: 8px 0;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.toc ul li a:hover {
    color: #1b5e20;
    text-decoration: none;
}

.care-content {
    flex: 1; /* Take up the remaining space */
}

.care-content h1 {
    font-size: 2.8rem;
    color: #1b5e20;
}

.care-content section {
    margin-bottom: 40px; /* Increase space between topics */
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.care-content section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Troubleshooting Page Specifics */
.diagnostic-tool h1 {
    text-align: center;
    color: #1b5e20;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.diagnostic-tool > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.symptom-selector {
    text-align: center;
    margin-bottom: 2rem;
}

.symptom-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.symptom-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 2px solid #a5d6a7;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.symptom-btn:hover, .symptom-btn.active {
    background-color: #2e7d32;
    color: #fff;
    border-color: #1b5e20;
}

.results-area {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-left: 5px solid #4caf50;
    min-height: 100px;
}

.results-area .placeholder {
    color: #777;
    font-style: italic;
    text-align: center;
}

.result-item {
    margin-bottom: 1.5rem;
}
.result-item:last-child {
    margin-bottom: 0;
}

.result-item h4 {
    margin-bottom: 0.5rem;
    color: #1b5e20;
}

.common-issues h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.issue-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Advanced Cultivation Page Specifics */
.page-header {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    margin-bottom: 2rem;
    border-radius: 8px;
}
.page-header h1 {
    font-size: 2.8rem;
    color: #1b5e20;
    margin: 0;
}
.page-header p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
}

.advanced-content .topic-article {
    background: #fff;
    padding: 2rem;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advanced-content .topic-article h2 {
    color: #2e7d32;
    border-bottom: 2px solid #e8f5e9;
    padding-bottom: 10px;
}

.community-section {
    background-color: #e8f5e9;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-radius: 8px;
}
.community-section h2 {
    color: #1b5e20;
}

/* About Us/Contact Page Specifics */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Important for 100% width */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .cta-button {
    width: 100%;
    border: none;
}

/* Homepage New Layout */
.main-content-wrapper {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 20px;
}

.page-content section {
    margin-bottom: 40px;
}

.page-content section h2 {
    font-size: 2rem;
    color: #1b5e20;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.page-content section h3 {
    font-size: 1.4rem;
    color: #2e7d32;
    margin-top: 1.5rem;
}

.page-content ul {
    list-style: disc;
    padding-left: 20px;
}

/* Content Images */
.content-image-full {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-image-right {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Clearfix for floated elements */
.page-content section::after {
    content: "";
    display: table;
    clear: both;
}
