* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f9ff;
  margin: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #2c3e50;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.nav-logo {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
}

h1, h2, h3 {
  text-align: center;
  color: #2c3e50;
}

form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 100%;
  padding: 12px;
  background: #2ecc71;
  color: white;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background: #27ae60;
}

#result {
  margin-top: 20px;
  padding: 15px;
  background: #e8f5e9;
  border-left: 6px solid #2ecc71;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.tips {
  margin-top: 40px;
  background: #fdf6ec;
  padding: 20px;
  border-radius: 10px;
}

.tips ul {
  padding-left: 20px;
}

.products {
  margin-top: 40px;
}

.product {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  background: #f7f9fc;
  padding: 15px;
  border-radius: 10px;
  align-items: center;
}

.product img {
  width: 120px;
  height: auto;
  border-radius: 10px;
}

.product .info {
  flex: 1;
}

.product .info a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #3498db;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
}

.product .info a:hover {
  background: #2980b9;
}


.section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #34495e;
}

.section ul {
  list-style: none;
  padding-left: 0;
}

.section ul li {
  margin: 10px 0;
  font-size: 1.1em;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h3 {
  color: #2c3e50;
  margin: 10px 0 5px;
}


.cta-button:hover {
  background: #27ae60;
}
.card-button {
  text-decoration: none;
  color: #2c3e50;
  text-align: center;
  transition: all 0.3s ease;
}

.card-button:hover {
  transform: scale(1.03);
}

.card-button h3 {
  margin-top: 10px;
}

/* Card Grid Responsiveness Fix */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Section Titles */
.section h2 {
  margin-bottom: 15px;
  font-size: 1.8em;
  text-align: center;
  color: #2c3e50;
}



.liver-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 {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 15px;
}

.product-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.product-card div {
  font-size: 14px;
  color: #444;
}
