/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f7fcfe;
  color: #222;
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background: linear-gradient(to right, #43cea2, #185a9d);
  padding: 20px;
  text-align: center;
  color: #fff;
}

header h1 {
  margin-bottom: 10px;
  font-size: 28px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #d6f2ff;
  padding: 10px 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #0b3d91;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #1d76c2;
}

/* Layout */
main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}

section {
  margin-bottom: 50px;
}

section h2 {
  color: #185a9d;
  margin-bottom: 15px;
  border-bottom: 2px solid #43cea2;
  padding-bottom: 5px;
}

/* Form styling */
form {
  background-color: #e8faff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #185a9d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #10487f;
}

#result {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.1em;
  color: #10487f;
}

/* Lists */
ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 8px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: #e8faff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 10px rgba(24, 90, 157, 0.1);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin: 10px 0 5px;
  color: #185a9d;
}

.product-card p {
  font-size: 0.95em;
  color: #444;
}

.product-card a {
  display: inline-block;
  margin-top: 10px;
  background-color: #185a9d;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.product-card a:hover {
  background-color: #10487f;
}



/* Responsive */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 5px 0;
  }
}

.eye-problems {
  padding: 50px 20px;
  background-color: #f7f7f7;
  font-family: 'Segoe UI', sans-serif;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.problem-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  padding: 20px;
}

.problem-content h3 {
  color: #1a1a1a;
  margin-bottom: 15px;
}

.problem-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.text-left {
  flex: 1;
  padding-right: 20px;
  min-width: 220px;
}

.text-left p {
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

.image-right {
  flex: 1;
  text-align: right;
  min-width: 200px;
}

.image-right img {
  max-width: 180px;
  border-radius: 10px;
}

.treatment-box {
  background: #e8f5e9;
  padding: 15px;
  border-left: 4px solid #4caf50;
  border-radius: 8px;
}

.treatment-box h4 {
  margin-top: 0;
  color: #2e7d32;
}

.product-card-problem {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 15px;
}
