* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #2d5016;
  --secondary-green: #4a7c2f;
  --light-green: #8bc34a;
  --text-dark: #333;
  --text-light: #666;
  --background: #f5f5f5;
  --white: #ffffff;
  --accent: #ffa500;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  color: var(--white);
  padding: 0.18rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-section img {
  width: 162px;
  height: 162px;
  object-fit: contain;
  background: transparent;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  background-color: var(--accent);
  color: var(--primary-green);
}

nav a.active {
  background-color: var(--accent);
  color: var(--primary-green);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

section {
  display: none;
}

section.active {
  display: block;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Despre Noi Section */
.despre-noi-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.despre-noi-content h2 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.despre-noi-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Counters */
.counters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.counter-card {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--light-green) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: transition(transform 0.3s ease);
}

.counter-card:hover {
  transform: translateY(-5px);
}

.counter-value {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
  color: var(--accent);
}

.counter-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Sponsori */
.sponsori-section {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  margin-top: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sponsori-section h3 {
  color: var(--primary-green);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
}

.sponsor-logo {
  width: 150px;
  height: 150px;
  background: var(--background);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  font-weight: bold;
  color: var(--secondary-green);
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sponsor-link {
  text-decoration: none;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

/* Stiri Section */
.stiri-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.stire-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.stire-card:hover {
  transform: translateY(-5px);
}

.stire-header {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--light-green) 100%);
  color: var(--white);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stire-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.stire-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.stire-card.collapsed .stire-toggle {
  transform: rotate(180deg);
}

.stire-content {
  padding: 2rem;
  max-height: 5000px;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.stire-card.collapsed .stire-content {
  max-height: 0;
  padding: 0 2rem;
}

.stire-preview {
  display: none;
  padding: 1.5rem 2rem;
  background: var(--background);
}

.stire-card.collapsed .stire-preview {
  display: block;
}

.stire-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.stire-preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.stire-descriere {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.poze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.poza-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.poza-thumbnail:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  padding: 10px;
  border-radius: 6px;
}

.lightbox-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Actiuni Viitoare */
.actiuni-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actiuni-content h2 {
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Anunt teren */
.anunt-teren {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid var(--secondary-green);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.anunt-teren h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.anunt-teren p {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.anunt-teren p:last-child {
  margin-bottom: 0;
}

.email-link {
  color: var(--secondary-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.email-link:hover {
  border-bottom-color: var(--secondary-green);
}

.actiuni-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.actiune-card.actiune-single {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.actiune-card {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--secondary-green) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.actiune-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Formular de inscriere */
.inscriere-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inscriere-section h3 {
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.inscriere-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.inscriere-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--secondary-green);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input {
  padding: 0.75rem;
  border: 2px solid var(--background);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-green);
}

.btn-submit {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--light-green) 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-group-gdpr {
  margin: 0.5rem 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  min-width: 20px;
  height: 20px;
  background-color: var(--white);
  border: 2px solid var(--background);
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 2px;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--secondary-green);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gdpr-text {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.gdpr-link {
  color: var(--secondary-green);
  text-decoration: underline;
  font-weight: 500;
}

.gdpr-link:hover {
  color: var(--primary-green);
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Contact Section */
.contact-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.contact-content h2 {
  color: var(--primary-green);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--background);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: bold;
  color: var(--secondary-green);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-value {
  color: var(--text-light);
  font-size: 1rem;
}

.contact-value a {
  color: var(--secondary-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--primary-green);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1.5rem;
  }

  .logo-section img {
    width: 121px;
    height: 121px;
  }

  .counters-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .sponsor-logo {
    width: 120px;
    height: 120px;
  }

  .poze-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .logo-section img {
    width: 101px;
    height: 101px;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  nav a {
    display: block;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  main {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .despre-noi-content,
  .sponsori-section,
  .actiuni-content,
  .contact-content {
    padding: 1.5rem;
  }

  .despre-noi-content h2,
  .actiuni-content h2,
  .contact-content h2 {
    font-size: 1.5rem;
  }

  .counters-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .counter-value {
    font-size: 2.5rem;
  }

  .counter-label {
    font-size: 1rem;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sponsor-logo {
    width: 100px;
    height: 100px;
  }

  .stire-header h3 {
    font-size: 1.3rem;
  }

  .stire-header {
    padding: 1.5rem;
  }

  .stire-toggle {
    font-size: 1.2rem;
  }

  .stire-preview {
    padding: 1rem 1.5rem;
  }

  .stire-preview-image {
    height: 100px;
  }

  .stire-content {
    padding: 1.5rem;
  }

  .poze-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .poza-thumbnail {
    height: 150px;
  }

  .lightbox-logo {
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 10px;
  }

  .lightbox-nav {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    padding: 8px 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .inscriere-section {
    padding: 1.5rem;
  }

  .anunt-teren {
    padding: 1.5rem;
  }

  .anunt-teren h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo-section img {
    width: 81px;
    height: 81px;
  }

  nav ul {
    flex-direction: column;
    gap: 0.3rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }

  .despre-noi-content,
  .sponsori-section,
  .actiuni-content,
  .contact-content,
  .stire-content {
    padding: 1rem;
  }

  .despre-noi-content h2,
  .actiuni-content h2,
  .contact-content h2 {
    font-size: 1.3rem;
  }

  .counter-value {
    font-size: 2rem;
  }

  .counter-label {
    font-size: 0.9rem;
  }

  .sponsors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sponsor-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  .stire-header {
    padding: 1rem;
  }

  .stire-header h3 {
    font-size: 1.1rem;
  }

  .stire-toggle {
    font-size: 1rem;
  }

  .stire-preview {
    padding: 1rem;
  }

  .stire-preview-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stire-preview-image {
    height: 150px;
  }

  .stire-descriere {
    font-size: 0.95rem;
  }

  .poze-grid {
    grid-template-columns: 1fr;
  }

  .poza-thumbnail {
    height: 200px;
  }

  footer {
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
  }

  .lightbox-logo {
    width: 50px;
    height: 50px;
  }

  .inscriere-section {
    padding: 1rem;
  }

  .btn-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .anunt-teren {
    padding: 1rem;
  }

  .anunt-teren h3 {
    font-size: 1.1rem;
  }

  .anunt-teren p {
    font-size: 0.95rem;
  }
}
