/* Base styling */
:root {
  --primary-color: #014421; /* escuro verde principal */
  --accent-color: #f5a623; /* laranja dourado para CTAs */
  --light-color: #f9f9f9;
  --dark-color: #0b2e13;
  --text-color: #333;
  --white-color: #ffffff;
  --grey-color: #eaeaea;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.site-header {
  background-color: var(--dark-color);
  color: var(--white-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-list li a {
  color: var(--white-color);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.nav-list li a:hover {
  background-color: var(--primary-color);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--white-color);
  cursor: pointer;
}

/* Hero section */
.hero-section {
  position: relative;
  height: 65vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white-color);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 68, 33, 0.8);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--grey-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background-color: #d48e1c;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: #022e18;
  transform: translateY(-2px);
}

/* Benefits section */
.benefits-section {
  padding: 4rem 0;
  text-align: center;
}

.benefits-section h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.benefit-item p {
  color: #555;
}

/* Courses section */
.courses-section {
  padding: 4rem 0;
  background-color: var(--grey-color);
}

.courses-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-input,
.category-select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 220px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-img {
  background-size: cover;
  background-position: center;
  height: 160px;
}

.course-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.course-content p {
  flex: 1;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.course-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.rating {
  color: #f5c518; /* star color (yellow) */
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--grey-color);
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: var(--grey-color);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white-color);
}

.footer-section p,
.footer-section ul li a {
  color: var(--grey-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--grey-color);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--dark-color);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}