/* General styles for the section */
.questions {
  text-align: center; /* Center-aligns the content */
  padding: 20px; /* Adds padding around the section */
  background-color: #f0f0f0; /* Optional: Adds a light background color for better visibility */
}

/* Style for the content paragraph */
.questions__show1 {
  text-align: justify; /* Justify the text */
  font-size: 1.5rem; /* Font size for readability */
  color: #000; /* Black text color */
  padding: 20px; /* Padding inside the paragraph */
  margin: 0 auto; /* Centers the paragraph horizontally */
  background-color: #ffffff; /* White background for contrast */
  border: 1px solid #1450A3; /* Blue border for visibility */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds subtle shadow */
  display: inline-block; /* Ensures the paragraph is displayed properly */
}

/* Adjustments for mobile devices */
@media (max-width: 768px) {
  .questions__show1 {
    font-size: 1.2rem; /* Slightly smaller font size on mobile */
    padding: 15px; /* Adjust padding for smaller screens */
  }
}

@media (max-width: 480px) {
  .questions__show1 {
    font-size: 1rem; /* Even smaller font size on very small screens */
    padding: 10px; /* Adjust padding for very small screens */
  }
}


/* General styles for the section containing cards */
.seccion2 {
  display: flex;
  flex-wrap: wrap; /* Allows cards to wrap onto multiple lines */
  gap: 20px; /* Adds space between cards */
  justify-content: center; /* Centers cards horizontally */
  padding: 20px; /* Adds padding around the section */
  border: 2px solid #1450A3; /* Border around the entire section */
  border-radius: 10px; /* Rounded corners for the section border */
  background-color: #f9f9f9; /* Light background color for contrast */
  max-width: 1200px; /* Optional: Limits the width of the section */
  margin: 0 auto; /* Centers the section horizontally */
}

/* Style for each card */
.card {
  background-color: #ffffff; /* White background for each card */
  border: 2px solid #1450A3; /* Border to define the card's edges */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  overflow: hidden; /* Ensures content does not overflow the card */
  width: calc(33.333% - 20px); /* Adjust width to fit three cards per row, with spacing */
  margin-bottom: 20px; /* Space below each card */
  transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

/* Hover effect for the cards */
.card:hover {
  transform: translateY(-5px); /* Slightly lift the card */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Style for images within cards */
.card img {
  width: 100%; /* Ensures the image covers the width of the card */
  height: auto; /* Maintains aspect ratio of the image */
  display: block; /* Removes bottom space below images */
}

/* Style for the card headings */
.card h2 {
  font-size: 1.5rem; /* Font size for the heading */
  margin: 15px 0; /* Adds space around the heading */
  color: #333; /* Dark text color for the heading */
  text-align: center; /* Center-aligns the heading */
}

/* Style for the paragraphs within cards */
.card p {
  font-size: 1rem; /* Font size for the paragraph */
  color: #666; /* Lighter text color for the paragraph */
  padding: 0 15px; /* Adds padding inside the card */
  text-align: center; /* Center-aligns the text */
  margin-bottom: 15px; /* Adds space below the paragraph */
}

/* Responsive design adjustments */
@media (max-width: 1024px) {
  .card {
    width: calc(50% - 20px); /* Two cards per row on medium screens */
  }
}

@media (max-width: 768px) {
  .card {
    width: calc(100% - 20px); /* One card per row on small screens */
  }
}
