/* Color Variables */
:root {
  --primary-color: #00420D; /* Foreground color (dark green) */
  --background-color: #CFCFCF; /* Background color (light gray) */
  --text-color: #ffffff; /* White text for contrast */
  --card-bg: rgba(255, 255, 255, 0.8); /* Slightly transparent white for cards */
  --shadow: rgba(0, 0, 0, 0.2); /* Shadow */
}

/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color); /* Light gray background */
  color: var(--primary-color); /* Dark green text */
}

/* Header Styles */
header {
  padding: 50px 20px;
  text-align: center;
  background-color: rgba(0, 66, 13, 0.8); /* Dark green with transparency */
  color: #ffffff; /* White text for contrast */
  border-bottom: 2px solid #00420D; /* Dark green border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow for depth */
  display: flex; /* Use Flexbox for alignment */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items */
}

/* Header Text Styles */
header h1 {
  font-size: 3rem; /* Larger font size */
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
}

header p {
  font-size: 1.5rem; /* Slightly larger subtitle */
  margin-bottom: 20px;
}

/* Search Input Styles */
.search-input {
  width: 100%;
  max-width: 400px; /* Limit the width */
  padding: 15px; /* Padding for a comfortable click area */
  border: 2px solid #00420D; /* Dark green border */
  border-radius: 25px; /* Rounded corners */
  background: rgba(255, 255, 255, 0.9); /* Light background for input */
  color: #00420D; /* Dark green text */
  font-size: 1rem; /* Font size */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; /* Smooth transition */
}

/* Focus State */
.search-input:focus {
  outline: none; /* Remove outline */
  background: rgba(255, 255, 255, 1); /* Solid white on focus */
  box-shadow: 0 4px 15px rgba(0, 66, 13, 0.5); /* Darker shadow on focus */
  border-color: #e3b23c; /* Change border color on focus */
}

/* Placeholder Styles */
.search-input::placeholder {
  color: #A0A0A0; /* Light gray for placeholder text */
  opacity: 1; /* Ensure full opacity */
}
/* Grid Container Styles */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; /* Space between cards */
  margin: 20px;
}

/* Tutorial Card Styles */
.tutorial-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px var(--shadow), inset 0 4px 10px rgba(255, 255, 255, 0.1); /* Neumorphism effect */
  transition: transform 0.3s;
}

.tutorial-card:hover {
  transform: translateY(-5px);
}

.tutorial-title {
  font-size: 1.5rem;
  color: var(--primary-color); /* Dark green */
  margin-bottom: 10px;
}

.category-tag {
  font-size: 0.9rem;
  color: var(--primary-color); /* Dark green */
  background-color: rgba(255, 255, 255, 0.5); /* Light background for tags */
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-block;
}

/* Footer Styles */
footer {
  background-color: rgba(0, 66, 13, 0.8); /* Dark green with transparency */
  color: #ffffff; /* White text for contrast */
  text-align: center; /* Center text */
  padding: 20px 0; /* Padding for spacing */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

.footer-container {
  max-width: 1200px; /* Limit the width */
  margin: 0 auto; /* Center the container */
  padding: 0 20px; /* Padding for responsiveness */
}

.footer-container p {
  font-size: 1rem; /* Font size */
  margin: 0; /* Remove default margin */
}

.timeline-container {
  position: relative;
  padding: 20px;
  width: 300px; /* Adjust width as needed */
}

.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px; /* Adjust position */
  top: 0;
  height: 100%;
  border-left: 2px solid #ccc; /* Line color */
}

.timeline-content {
  background: #f9f9f9; /* Background color */
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.2em;
}

.timeline-content p {
  margin: 5px 0 0;
}