/* Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Old Standard TT', serif; /* A classic, western-style font */
    line-height: 1.6;
    margin: 20px;
    background-color: #F5F5DC; /* Beige background to mimic parchment paper */
}

/* Header Styles */
header {
    background: #8B4513; /* SaddleBrown color */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 5px solid #A0522D; /* Sienna color for a rugged look */
}

header h1 {
    margin: 0;
    font-size: 3rem;
    font-family: 'Alfa Slab One', cursive; /* Bold, slab-serif font for titles */
    letter-spacing: 2px;
    text-shadow: 2px 2px #000;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background: #A0522D; /* Sienna color */
    padding: 15px 0;
    border-bottom: 3px solid #8B4513;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Old Standard TT', serif;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #FFD700; /* Gold color on hover */
}

/* Section Styles */
section {
    margin: 30px 0;
    padding: 25px;
    background: #FFF8DC; /* Cornsilk background for an aged paper effect */
    border: 2px solid #D2B48C; /* Tan border */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h2 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: 'Alfa Slab One', cursive;
    text-align: center;
    color: #8B4513;
    text-shadow: 1px 1px #000;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 15px;
    background: #8B4513;
    color: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 3px solid #A0522D;
}

/* Additional Styling */
a {
    color: #8B4513;
}

a:hover {
    color: #D2691E; /* Chocolate color on hover */
}

ul {
    list-style-type: square;
    padding-left: 20px;
}

button {
    background-color: #8B4513;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-family: 'Old Standard TT', serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #A0522D;
}

/* Forum Input Styles */
#forum input, #forum textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid #D2B48C;
    border-radius: 5px;
    background-color: #FFF8DC;
    font-family: 'Old Standard TT', serif;
}

/* Comment Section Styles */
.comment-section {
    margin-top: 25px;
    background-color: #FAEBD7; /* AntiqueWhite background */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D2B48C;
}

.comment {
    border-bottom: 1px dashed #D2B48C;
    padding: 15px 0;
}

.comment:last-child {
    border-bottom: none;
}
/* Page-specific styles moved from index.html */
/* CSS Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}
header {
    background-color: #2e7d32;
    color: #fff;
    padding: 20px;
    text-align: center;
}
nav ul {
    background-color: #388e3c;
    overflow: hidden;
    color: #fff;
    padding: 0;
    margin: 0;
    list-style: none;
}
nav ul li {
    display: inline-block;
    padding: 20px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
}
nav ul li a:hover {
    background-color: #2e7d32;
}
section {
    padding: 20px;
    margin: 10px 0;
    background-color: #fff;
}
footer {
    background-color: #2e7d32;
    color: #fff;
    text-align: center;
    padding: 10px;
}
/* Styles for the forum */
.comment-section .comment {
    background-color: #e0e0e0;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}
.error-message {
    color: red;
    font-size: 0.9em;
    display: none;
}
/* Page-specific styles moved from resources.html */
/* CSS Styles specific to this page */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}
/* Reuse styles from index.html or link the same stylesheet */
/* Optional styling for the navigation links */
nav {
    margin: 20px;
}
nav a {
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
/* Styling for sections */
section {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
}
section h2, section h3 {
    margin-top: 0;
}
/* Page-specific styles moved from open-source-projects.html */
/* Existing CSS styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
}
header {
    background-color: #4CAF50;
    color: white;
    padding: 20px 10px;
    text-align: center;
}
nav {
    background-color: #333;
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav ul li a:hover {
    text-decoration: underline;
}
/* Section Styles */
section {
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
}
/* Auto Steer Section Styles */
#auto-steer {
    background-color: #e3f2fd; /* Light blue background */
}
#auto-steer h2 {
    color: #1565c0; /* Dark blue text */
}
#auto-steer ul li {
    margin: 10px 0;
}
/* Spraying Section Styles */
#spraying {
    background-color: #f0f4c3; /* Light yellow background */
}
#spraying h2 {
    color: #827717; /* Dark yellow text */
}
#spraying ul li {
    margin: 10px 0;
}
/* Irrigation Section Styles */
#irrigation {
    background-color: #e8f5e9; /* Light green background */
}
#irrigation h2 {
    color: #2e7d32; /* Dark green text */
}
#irrigation ul li {
    margin: 10px 0;
}
/* Data Management & Monitoring Section Styles */
#data-management {
    background-color: #fce4ec; /* Light pink background */
}
#data-management h2 {
    color: #c2185b; /* Dark pink text */
}
#data-management ul li {
    margin: 10px 0;
}
/* Simulation & Planning Section Styles */
#simulation {
    background-color: #ffe0b2; /* Light orange background */
}
#simulation h2 {
    color: #e65100; /* Dark orange text */
}
#simulation ul li {
    margin: 10px 0;
}
/* Additional Projects Section Styles */
#additional-projects {
    background-color: #f9fbe7; /* Light lime background */
}
#additional-projects h2 {
    color: #689f38; /* Dark lime text */
}
#additional-projects ul li {
    margin: 10px 0;
}
/* Difficulty Badge Styles */
.difficulty-badge {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 12px;
    font-size: 0.8em;
    color: white;
    vertical-align: middle;
}
.difficulty-badge.beginner {
    background-color: #4CAF50; /* Green */
}
.difficulty-badge.intermediate {
    background-color: #FF9800; /* Orange */
}
.difficulty-badge.advanced {
    background-color: #f44336; /* Red */
}
/* Popularity Badge Styles */
.popularity {
    display: inline-block;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 12px;
    font-size: 0.8em;
    background-color: #FFD700; /* Gold color for popularity */
    color: #333;
    vertical-align: middle;
}
/* Forum Section Styles */
#forum {
    background-color: #fff3e0; /* Light orange background */
}
#forum h2 {
    color: #e65100; /* Dark orange text */
}
#forum input, #forum textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}
#forum button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#forum button:hover {
    background-color: #45a049;
}
.comment-section {
    margin-top: 20px;
    background-color: #fafafa;
    padding: 10px;
    border-radius: 5px;
}
.comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}
.comment:last-child {
    border-bottom: none;
}
/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}
/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 10px 0;
    }
}
