/* General reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #f0f7f3; /* soft nature greenish */
  color: #234;
}

/* Layout */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header & Nav */
header {
  background: linear-gradient(135deg, #3b7a57, #2e5c43);
  color: #fff;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

header h1 {
  text-align: center;
  letter-spacing: 1px;
}

nav {
  margin-top: 1rem;
  text-align: center;
}

nav a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.4rem 0.8rem;
  color: #f0f7f3;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  background: #f0f7f3;
  color: #2e5c43;
}

/* Main content */
main h2 {
  margin-bottom: 0.75rem;
  font-size: xx-large;
  color: #2e5c43;
}

main h3 {
  margin-bottom: 0.75rem;
}

main p,
main li {
  font-size: large;
  margin-bottom: 0.75rem;
}

section {
  margin-bottom: 1.5rem;
}

/* Lists */
ul {
  list-style: disc;
  padding-left: 1.5rem;
}

/* Buttons & forms */
button,
input[type="submit"] {
  background: #2e5c43;
  color: #f0f7f3;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover,
input[type="submit"]:hover {
  opacity: 0.9;
}

/* Voting section */
.vote-options {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.vote-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 220px 1fr; /* wider image column */
  gap: 1rem;
  align-items: center;
}

.vote-card img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
  max-height: 200px; /* bigger images */
}
.vote-card .vote-radio {
  text-align: center;
 
}

.vote-card h3 {
  margin-bottom: 0.25rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

figure {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

figure img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}

figcaption {
  padding: 0.75rem 0.9rem 1rem;
  font-size: 0.9rem;
}

/* Tags for categories */
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  background: #e3f2e9;
  color: #2e5c43;
}

/* Styled forms */

form.styled-form {
  background: #ffffff;
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 900px;
}

form.styled-form h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: #2e5c43;
  border-bottom: 2px solid #e0f0e6;
  padding-bottom: 0.3rem;
}

/* Form groups */
form.styled-form p,
form.styled-form .form-group {
  margin-bottom: 1rem;
}

/* Labels */
form.styled-form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2e5c43;
  display: block;
  margin-bottom: 0.3rem;
}

/* Text Inputs, Email, File Inputs, Selects, Textareas */
form.styled-form input[type="text"],
form.styled-form input[type="email"],
form.styled-form input[type="file"],
form.styled-form input[type="number"],
form.styled-form input[type="password"],
form.styled-form select,
form.styled-form textarea {
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #b8cdbf;
  background: #f7fbf8;
  font-size: 0.95rem;
  color: #234;
  transition: 0.25s ease;
}

/* Hover + Focus */
form.styled-form input:focus,
form.styled-form select:focus,
form.styled-form textarea:focus {
  outline: none;
  border-color: #2e5c43;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(46,92,67,0.2);
}

/* Textarea sizing */
form.styled-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* File input spacing */
form.styled-form input[type="file"] {
  padding: 0.4rem 0.2rem;
}

/* Submit Button */
form.styled-form input[type="submit"],
form.styled-form button[type="submit"],
form.styled-form button {
  background: #2e5c43;
  color: #f0f7f3;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.5rem;
  transition: 0.25s ease;
}

form.styled-form input[type="submit"]:hover,
form.styled-form button[type="submit"]:hover,
form.styled-form button:hover {
  background: #3b7a57;
  transform: translateY(-1px);
}

/* Checkboxes & radio buttons */
form.styled-form input[type="checkbox"],
form.styled-form input[type="radio"] {
  margin-right: 0.4rem;
  transform: scale(1.2);
}

/* Inline label for checkboxes / radios */
form.styled-form .checkbox-label,
form.styled-form .radio-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Required field asterisk */
form.styled-form label.required::after {
  content: " *";
  color: #c62828;
  font-weight: bold;
}

/* Form section titles */
form.styled-form h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid #e0f0e6;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

@media (min-width: 700px) {
  form.styled-form {
    max-width: 600px;
  }
}

form.vote-form {
  background: #ffffff;
  padding: 1.5rem;
  margin: 1rem auto;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 900px;
}

form.vote-form input[type="text"],
form.vote-form input[type="email"],
form.vote-form input[type="file"],
form.vote-form input[type="number"],
form.vote-form input[type="password"],
form.vote-form select,
form.vote-form textarea {
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #b8cdbf;
  background: #f7fbf8;
  font-size: 0.95rem;
  color: #234;
  transition: 0.25s ease; 
}


/* Footer */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  padding: 1rem 0 2rem;

 .footer-nav {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  margin: 0 0.5rem;
  text-decoration: none;
  color: #2e5c43;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-nav a.active {
  color: #3b7a57;
  text-decoration: underline;
}
 
}
