/* General Styles */
:root {
  --primary-color: #004d00;
  --primary-dark: #003300;
  --accent-color: #f1c40f;
  --accent-hover: #f39c12;
  --text-color: #333;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--white);
  padding: 5px 10px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.lang-btn:hover, .lang-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.separator {
  color: var(--white);
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 15px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/hero-bg.jpg') center/cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  color: var(--white);
  font-size: 2.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  color: var(--white);
  font-size: 1.1em;
  line-height: 1.6;
  opacity: 0.9;
}

/* Form Styling */
.form-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  color: var(--white);
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Services & Eligibility Sections */
.services, .eligibility {
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.services h2, .eligibility h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2em;
}

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

.styled-list li {
  background: var(--bg-light);
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 15px;
}

.styled-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-radius: 15px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero {
      padding: 30px 20px;
  }

  .hero-content h2 {
      font-size: 1.8em;
  }

  .form-container {
      width: 100%;
      margin-top: 20px;
  }

  .services, .eligibility {
      padding: 30px 20px;
  }

  .styled-list li {
      padding: 15px;
      font-size: 0.9em;
  }
}

/* RTL Support */
[dir="rtl"] .styled-list li:hover {
  transform: translateX(-5px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero, .services, .eligibility {
  animation: fadeIn 0.8s ease-out;
}