/* Base styles */
body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* Container styles */
#container {
  width: 100%;
  display: grid;
  gap: 2rem;
  padding: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 5rem;
}

/* Card styles */
#card,
#card2,
#new4 {
  background-color: #ffffff;
  text-align: left;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

#card:hover,
#card2:hover,
#new4:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #2980b9;
}

/* Card header styles */
#card h3,
#card2 h3,
#new4 h3 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.7rem;
  font-weight: 600;
}

/* Card content styles */
#card p,
#card2 p,
#new4 p,
#card ul,
#card2 ul,
#new4 ul {
  color: #4b4b4b;
  line-height: 1.8;
  flex-grow: 1;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

/* List styles */
#card ul,
#card2 ul,
#new4 ul {
  padding-left: 1.5rem;
}

#card li,
#card2 li,
#new4 li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* Iframe styles */
#iframe {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
}

/* Button Styles */
button {
  background-color: #3498db;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

button:hover {
  background-color: #2980b9;
}

/* Responsive styles */
@media (max-width: 768px) {
  #container {
    grid-template-columns: 1fr;
  }

  #card,
  #card2,
  #new4 {
    width: 100%;
  }
}

@media (max-width: 567px) {
  body {
    font-size: 14px;
  }

  #card,
  #card2,
  #new4 {
    padding: 1.5rem;
  }

  #card h3,
  #card2 h3,
  #new4 h3 {
    font-size: 1.3rem;
  }
}

/* Error message style */
#er {
  font-size: 2rem !important;
  color: #e74c3c;
  margin-top: 1rem;
  text-align: center;
}
