/* Add your CSS styles here */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

header {
  background-color: #ffeb3b;
  color: #333;
  padding: 20px;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
}

nav li {
  margin-right: 20px;
}

nav a {
  color: #333;
  text-decoration: none;
}

nav a:hover {
  color: #fbc02d;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.hero {
  background-image: linear-gradient(to bottom, #ffeb3b, #fff176);
  padding: 100px;
  text-align: center;
  color: #333;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.service-card {
  background-color: #fff;
  padding: 20px;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 300px; /* Set a fixed width for the service cards */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.about {
  padding: 20px;
}

.about h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.about ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about li {
  margin-bottom: 10px;
}

.about li:before {
  content: "\2022";
  margin-right: 10px;
  color: #ffeb3b;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.project-card h3 {
  font-size: 20px;
  margin: 10px 0;
  font-family: 'Playfair Display', serif;
}

.project-card p {
  font-size: 14px;
  margin-bottom: 10px;
}

.project-card a {
  text-decoration: none;
  color: #ffeb3b;
  font-weight: bold;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: #fbc02d;
}

.contact {
  padding: 20px;
}

.contact h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.contact-card {
  background-color: #fff;
  padding: 30px;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3 s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#contact-form label {
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
}

#contact-form input, #contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact-form input:focus, #contact-form textarea:focus {
  border-color: #ffeb3b;
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

#contact-form button[type="submit"] {
  background-color: #ffeb3b;
  color: #333;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contact-form button[type="submit"]:hover {
  background-color: #fbc02d;
}

footer {
  background-color: #ffeb3b;
  color: #333;
  padding: 20px;
  text-align: center;
  clear: both;
}

.social-media {
  margin-bottom: 10px;
}

.social-media h3 {
  margin: 10px 0;
}

.social-media ul {
  list-style: none;
  padding: 0;
}

.social-media li {
  display: inline;
  margin: 0 15px;
}

.social-media a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #fbc02d;
}

/* Blog specific styles */
.blog-posts {
  flex: 3; /* Take up more space */
  margin-right: 20px; /* Space between blog posts and sidebar */
}

.post {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.post-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.sidebar {
  flex: 1; /* Take up less space */
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  margin-top: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  color: #333;
  text-decoration: none;
}

.sidebar a:hover {
  color: #fbc02d;
}

/* Additional styles for responsiveness */
@media (max-width: 768px) {
  main {
    flex-direction: column; /* Stack main content and sidebar on smaller screens */
  }

  .blog-posts {
    margin-right: 0; /* Remove right margin on smaller screens */
  }
}